#
b4856b8e |
| 24-Oct-2024 |
Zhenlei Huang <zlei@FreeBSD.org> |
LinuxKPI: Remove stray semicolons
MFC after: 1 week
|
Revision tags: release/13.4.0 |
|
#
256eb8d5 |
| 26-Jun-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Remove linux/sched.h include from linux/kernel.h header
This include prevents usage of any kernel.h helpers in sched.h and all of dependencies. Linux does not have it too. Fix building of
LinuxKPI: Remove linux/sched.h include from linux/kernel.h header
This include prevents usage of any kernel.h helpers in sched.h and all of dependencies. Linux does not have it too. Fix building of kernel and drm-kmod after than.
Sponsored by: Serenity CyberSecurity, LLC MFC after: 1 week Reviewed by: manu, bz Differential Revision: https://reviews.freebsd.org/D45692
show more ...
|
#
a97f3a9e |
| 06-Jun-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Move kstrto* functions to linux/kstrtox.h
from linux/kernel.h to match Linux and allow direct linux/kstrtox.h inclusion.
Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Revie
LinuxKPI: Move kstrto* functions to linux/kstrtox.h
from linux/kernel.h to match Linux and allow direct linux/kstrtox.h inclusion.
Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D45454
show more ...
|
#
588064e6 |
| 06-Jun-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Move linux/math.h content out of linux/kernel.h
To match Linux and allow direct linux/math.h inclusion.
Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: bz Differ
LinuxKPI: Move linux/math.h content out of linux/kernel.h
To match Linux and allow direct linux/math.h inclusion.
Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D45452
show more ...
|
#
f79474c4 |
| 06-Jun-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Move linux/minmax.h content out of linux/kernel.h
To match Linux and allow direct linux/minmax.h inclusion.
Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: bz Di
LinuxKPI: Move linux/minmax.h content out of linux/kernel.h
To match Linux and allow direct linux/minmax.h inclusion.
Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D45449
show more ...
|
Revision tags: release/14.1.0 |
|
#
e0eeeca8 |
| 08-Apr-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Add PTR_IF macro
Sponsored by: Serenity Cyber Security, LLC Reviewed by: emaste MFC after: 1 week
|
#
3208d4ad |
| 08-Apr-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Import vanilla linux/overflow.h
It is dual-licensed (GPLv2 & MIT) and self-contained header file. No need to reimplement it.
Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste
LinuxKPI: Import vanilla linux/overflow.h
It is dual-licensed (GPLv2 & MIT) and self-contained header file. No need to reimplement it.
Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste MFC after: 1 week
show more ...
|
#
8cfd1dd8 |
| 08-Apr-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Move [SU](8|16|32|64)_(MAX|MIN) defines to linux/limits.h
Some source files get them from linux/limits.h directly rather than from linux/kernel.h. While here replace Linux constant values
LinuxKPI: Move [SU](8|16|32|64)_(MAX|MIN) defines to linux/limits.h
Some source files get them from linux/limits.h directly rather than from linux/kernel.h. While here replace Linux constant values with sys/stdint.h provided ones.
Sponsored by: Serenity Cyber Security, LLC Reviewed by: emaste MFC after: 1 week
show more ...
|
Revision tags: release/13.3.0 |
|
#
fa862482 |
| 24-Dec-2023 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Split linux/container_of.h off from linux/kernel.h
Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.or
LinuxKPI: Split linux/container_of.h off from linux/kernel.h
Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42796
show more ...
|
#
31ef2909 |
| 24-Dec-2023 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Add static_assert() macro
And move it along BUILD_BUG family in to linux/build_bug.h to match Linux.
Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz MFC after: 1 week Dif
LinuxKPI: Add static_assert() macro
And move it along BUILD_BUG family in to linux/build_bug.h to match Linux.
Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42800
show more ...
|
#
fdafd315 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remov
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
229c65a8 |
| 07-Sep-2023 |
Emmanuel Vadot <manu@FreeBSD.org> |
kern: Globally define abs64
So we can use it in non-linuxkpi sources.
Reviewed by: emaste, mmel Differential Revision: https://reviews.freebsd.org/D41767 Sponsored by: Beckhoff Automation GmbH & Co
kern: Globally define abs64
So we can use it in non-linuxkpi sources.
Reviewed by: emaste, mmel Differential Revision: https://reviews.freebsd.org/D41767 Sponsored by: Beckhoff Automation GmbH & Co. KG
show more ...
|
#
95ee2897 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
Revision tags: release/13.2.0 |
|
#
ad83dd2b |
| 31-Mar-2023 |
John Baldwin <jhb@FreeBSD.org> |
LinuxKPI: Appease -Wunused-but-set-variable warnings from GCC.
- Mark assert dummy variables as __unused.
- Use a dummy (void) cast of the flags argument passed to spin_unlock_irqrestore so it ge
LinuxKPI: Appease -Wunused-but-set-variable warnings from GCC.
- Mark assert dummy variables as __unused.
- Use a dummy (void) cast of the flags argument passed to spin_unlock_irqrestore so it gets treated as used.
Reviewed by: manu, hselasky Differential Revision: https://reviews.freebsd.org/D39349
show more ...
|
#
4b0552d5 |
| 13-Feb-2023 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Move `IS_ENABLED()` and friends to <linux/kconfig.h>
The header is included in <linux/xarray.h> like it is on Linux. Some DRM code depends on this header "pollution".
Reviewed by: bz Appr
linuxkpi: Move `IS_ENABLED()` and friends to <linux/kconfig.h>
The header is included in <linux/xarray.h> like it is on Linux. Some DRM code depends on this header "pollution".
Reviewed by: bz Approved by: bz Differential Revision: https://reviews.freebsd.org/D38567
show more ...
|
#
d91cf060 |
| 10-Feb-2023 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add <linux/stdarg.h> + include it from <linux/string.h>
The <stdarg.h> header was moved in Linux 5.15.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.o
linuxkpi: Add <linux/stdarg.h> + include it from <linux/string.h>
The <stdarg.h> header was moved in Linux 5.15.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38540
show more ...
|
Revision tags: release/12.4.0 |
|
#
f82cf28b |
| 22-Oct-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add kstrtou32_from_user() and mac_pton()
While here: - fix an argument of kstrtouint_from_user() to correct signedness. - make kstrtou32() call kstrtouint() to avoid duplication (keep inli
LinuxKPI: add kstrtou32_from_user() and mac_pton()
While here: - fix an argument of kstrtouint_from_user() to correct signedness. - make kstrtou32() call kstrtouint() to avoid duplication (keep inline function)
Add kstrtou32_from_user() based on other examples in the file making it a copy of the now fixed kstrtouint_from_user().
Also add a rudimentarily hacked up version of mac_pton() which is leanient accepting non-well-formed input but so far only with ':' separators. It does not seem to obviously belong to any networking header file so add it here.
Both new functions are needed for debugfs support for iwlwifi hence coming together in one commit.
Sponsored by: The FreeBSD Foundation MFC after: 3 days Commented on by: emaste Differential Revision: https://reviews.freebsd.org/D37088
show more ...
|
#
d3584f92 |
| 11-Nov-2022 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Define `typeof_member()` in <linux/kernel.h>
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D36964
|
#
bf27839a |
| 09-Aug-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Add add_taint stub
Needed by drm-kmod.
Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D36112
|
#
4b2cb13e |
| 09-Aug-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Add few more include in linux/kernel.h
Those are needed and also included in linux (via polution).
Reviewed by: bz Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: h
linuxkpi: Add few more include in linux/kernel.h
Those are needed and also included in linux (via polution).
Reviewed by: bz Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D36111
show more ...
|
#
0e981d79 |
| 20-May-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: move pm_message_t from kernel.h to pm.h
Move pm_message_t from kernel.h to pm.h and remove a private define in usb.h as well as adjust the implementation in linux_usb.c. This cleans up wha
LinuxKPI: move pm_message_t from kernel.h to pm.h
Move pm_message_t from kernel.h to pm.h and remove a private define in usb.h as well as adjust the implementation in linux_usb.c. This cleans up what I believe to be a historic shortcut and is needed for future wireless driver updates.
Leave a note in UPDATING that drm-kmod users need to update to the latest version before re-compiling a new kernel to avoid errors (see PR).
Sponsored by: The FreeBSD Foundation MFC after: 3 days PR: 264449 (drm-kmod port update, thanks wulf) Obtained from: bz_git_iwlwifi (Dec 2020) (partly) Reviewed by: hselasky, imp Differential Revision: https://reviews.freebsd.org/D35276
show more ...
|
Revision tags: release/13.1.0 |
|
#
97f2e93a |
| 08-Apr-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add ALIGN_DOWN()
Add ALIGN_DOWN as rounddown2() along ALIGN() which is implemented as roundup2().
Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: manu, hselasky (now w
LinuxKPI: add ALIGN_DOWN()
Add ALIGN_DOWN as rounddown2() along ALIGN() which is implemented as roundup2().
Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: manu, hselasky (now with less ()) Differential Revision: https://reviews.freebsd.org/D34844
show more ...
|
#
8e587a5f |
| 22-Mar-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Add kstrtouint_from_user
Like kstrtoint_from_user but for uint. Needed by drm v5.10
MFC after: 1 month Reviewed by: hselasky Sponsored by: Beckhoff Automation GmbH & Co. KG Differential R
linuxkpi: Add kstrtouint_from_user
Like kstrtoint_from_user but for uint. Needed by drm v5.10
MFC after: 1 month Reviewed by: hselasky Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D34642
show more ...
|
#
fab601c5 |
| 22-Feb-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: change DECLARE_FLEX_ARRAY()
DECLARE_FLEX_ARRAY can be used inside a structure. On FreeBSD due to -Wgnu-variable-sized-type-not-at-end this yields an error. Use [0] instead of [] to overc
LinuxKPI: change DECLARE_FLEX_ARRAY()
DECLARE_FLEX_ARRAY can be used inside a structure. On FreeBSD due to -Wgnu-variable-sized-type-not-at-end this yields an error. Use [0] instead of [] to overcome this.
Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34350
show more ...
|
#
c840d5ce |
| 09-Feb-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add kstrtoint_from_user() and DECLARE_FLEX_ARRAY()
Add an implementation of kstrtoint_from_user() based on the other implementations and an attempt at DECLARE_FLEX_ARRAY() which works for
LinuxKPI: add kstrtoint_from_user() and DECLARE_FLEX_ARRAY()
Add an implementation of kstrtoint_from_user() based on the other implementations and an attempt at DECLARE_FLEX_ARRAY() which works for the driver needing it.
MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34231
show more ...
|