History log of /freebsd-14.2/sys/compat/linuxkpi/common/include/linux/kernel.h (Results 1 – 25 of 74)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0
# 5942658c 24-Oct-2024 Zhenlei Huang <[email protected]>

LinuxKPI: Remove stray semicolons

MFC after: 1 week

(cherry picked from commit b4856b8e9d872ca6ee0c4ef43e7047693ef7645b)


Revision tags: release/13.4.0
# c0b32a4e 26-Jun-2024 Vladimir Kondratyev <[email protected]>

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

(cherry picked from commit 256eb8d5361143b7d436a195530e0eefe1450e6d)

show more ...


# fb884c72 06-Jun-2024 Vladimir Kondratyev <[email protected]>

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

(cherry picked from commit a97f3a9ec96a2de542326a158d1ab8e65ad4fe5f)

show more ...


# 9cc3f82d 06-Jun-2024 Vladimir Kondratyev <[email protected]>

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

(cherry picked from commit 588064e658d32f037854dd852b988728197a28de)

show more ...


# 18a9913f 06-Jun-2024 Vladimir Kondratyev <[email protected]>

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

(cherry picked from commit f79474c4e3eeb48c6acb0a9e3163195a50cef577)

show more ...


Revision tags: release/14.1.0
# fbb9ca96 08-Apr-2024 Vladimir Kondratyev <[email protected]>

LinuxKPI: Add PTR_IF macro

Sponsored by: Serenity Cyber Security, LLC
Reviewed by: emaste
MFC after: 1 week

(cherry picked from commit e0eeeca8b83a17aeebc4da525e813699bf3fabc2)


# e180ccb0 08-Apr-2024 Vladimir Kondratyev <[email protected]>

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

(cherry picked from commit 3208d4ad2b8320a24af4a8293f7fd3ef9c35caa6)

show more ...


# 265b5c16 08-Apr-2024 Vladimir Kondratyev <[email protected]>

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

(cherry picked from commit 8cfd1dd821bd8102dd91971c6ac88a64e25057d1)

show more ...


Revision tags: release/13.3.0
# 21d85c41 24-Dec-2023 Vladimir Kondratyev <[email protected]>

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

(cherry picked from commit fa862482fb0a8759984437d71221b17377625491)

show more ...


# c3a10c23 24-Dec-2023 Vladimir Kondratyev <[email protected]>

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

(cherry picked from commit 31ef29091b0fbadefb4ccfb21e4b30ca7ddca3ed)

show more ...


Revision tags: release/14.0.0
# 15314c51 07-Sep-2023 Emmanuel Vadot <[email protected]>

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

(cherry picked from commit 229c65a83fbe0ede8c617e35d8f8c14d5ebadc19)

show more ...


# 95ee2897 16-Aug-2023 Warner Losh <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 ...


# 64dab63f 25-Dec-2021 Vladimir Kondratyev <[email protected]>

LinuxKPI: Use negative bit field size to trigger BUILD_BUG_ON_ZERO

compile time assertion on non-NULL pointers. Tests conducted show that
_Static_assert, negative array size method and current code

LinuxKPI: Use negative bit field size to trigger BUILD_BUG_ON_ZERO

compile time assertion on non-NULL pointers. Tests conducted show that
_Static_assert, negative array size method and current code does not
handle pointers well enough. Bit field method solves this problem.

This change is derrived from Linux implementation of BUILD_BUG_ON_ZERO.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D33674

show more ...


123