|
Revision tags: release/12.4.0, release/13.1.0 |
|
| #
4605fd58 |
| 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 Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34350
(cherry picked from commit fab601c5b76a1183c1849222667481fdde948ef9)
show more ...
|
| #
c3ffeddb |
| 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.
Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34231
(cherry picked from commit c840d5cec2607932d077ffcfee7ccf0a6b50cdf3)
show more ...
|
| #
ef743744 |
| 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
(cherry picked from commit 64dab63f3b3b6c6a1f8a92f43bed0aa28319d627)
show more ...
|
| #
2d0694b9 |
| 19-Dec-2021 |
Vladimir Kondratyev <[email protected]> |
LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards
MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
(cherry picked from
LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards
MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
(cherry picked from commit 307f78f3ed90a4145eeb2c8cc79bc95b2666f57a)
show more ...
|
|
Revision tags: release/12.3.0 |
|
| #
b30c7948 |
| 23-Nov-2021 |
Vladimir Kondratyev <[email protected]> |
LinuxKPI: Implement kstrtoull
Required by drm-kmod 5.7
MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D33291
(cherry picked from commit c427456fd5
LinuxKPI: Implement kstrtoull
Required by drm-kmod 5.7
MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D33291
(cherry picked from commit c427456fd560d6def83cd3867cc5bf01d20653e5)
show more ...
|
| #
f88fcc52 |
| 09-Jan-2022 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: add hex2bin()
Add a hex2bin() implementation needed by a driver's debugfs code.
Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D33798
(cherry picked from commit
LinuxKPI: add hex2bin()
Add a hex2bin() implementation needed by a driver's debugfs code.
Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D33798
(cherry picked from commit deb9bfbd5bcea70c79f70c7091c35d399b40fb0a)
show more ...
|
| #
4459c162 |
| 22-Oct-2021 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: add kstrtou8() and kstrtou8_from_user() to kernel.h
Analogous to the other sized version of kstrto[u]<type>() and kstrtobool_from_user() add the "u8" versions needed by a driver.
(cherry
LinuxKPI: add kstrtou8() and kstrtou8_from_user() to kernel.h
Analogous to the other sized version of kstrto[u]<type>() and kstrtobool_from_user() add the "u8" versions needed by a driver.
(cherry picked from commit b382b78503b56ad6b787b995b46418db27adaa61)
show more ...
|
| #
8ababf73 |
| 02-Nov-2021 |
Hans Petter Selasky <[email protected]> |
LinuxKPI: Add sysctl(8) knob to control verbosity of WARN_ON's.
The purpose of this change is to reduce the amount of dmesg(8) noise when VT switching after a panic.
Submitted by: Greg V <greg@unre
LinuxKPI: Add sysctl(8) knob to control verbosity of WARN_ON's.
The purpose of this change is to reduce the amount of dmesg(8) noise when VT switching after a panic.
Submitted by: Greg V <[email protected]> Differential Revision: https://reviews.freebsd.org/D30174 Sponsored by: NVIDIA Networking
(cherry picked from commit 2390a1441effaba0e3d0f2f447f448aaf20428f1)
show more ...
|
| #
14ff15e4 |
| 24-May-2021 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: change BUILD_BUG_ON()
BUILD_BUG_ON() can be used inside functions where the definition to CTASSERT() (_Static_assert()) seems to not work. Go back to an old-style CTASSERT() implementation
LinuxKPI: change BUILD_BUG_ON()
BUILD_BUG_ON() can be used inside functions where the definition to CTASSERT() (_Static_assert()) seems to not work. Go back to an old-style CTASSERT() implementation but also add a variable dclaration to avoid "unsued typedef" errors and dummy-use the variable to avoid "unusued variable" errors. Given it is all self-contained in a block and not used outside this should be optimised away.
Sponsored by: The FreeBSD Foundation Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D30431
(cherry picked from commit 1082490cd867a4d443862523c37ce947735342d0)
show more ...
|
| #
31b65faa |
| 24-May-2021 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: extract stringify() in their own header file
Add linux/stringify.h as directly included by drivers. Remove the definitions from compiler.h and include the new header in places where the s
LinuxKPI: extract stringify() in their own header file
Add linux/stringify.h as directly included by drivers. Remove the definitions from compiler.h and include the new header in places where the stringify macros are already used without linuxkpi.
I have adjusted the Copyright of the new file according to the commit originaly adding the macros (99e690772adbcb78c9e8441bedcf1913d72ea72f).
Sposnored by: The FreeBSD Foundation Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D30440
(cherry picked from commit 43b4c00643bacb9d1ba3aa1022648104bc7ff4a2)
show more ...
|
| #
4a3bd427 |
| 07-Jun-2021 |
Greg V <[email protected]> |
LinuxKPI: add pr_err_once
Reviewed by: hselasky, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30672
(cherry picked from commit 05c2d94a081d5948560a01c26c7f432960cde6
LinuxKPI: add pr_err_once
Reviewed by: hselasky, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30672
(cherry picked from commit 05c2d94a081d5948560a01c26c7f432960cde606)
show more ...
|
| #
df370b47 |
| 09-Jun-2021 |
Neel Chauhan <[email protected]> |
linuxkpi: Add _RET_IP_ macro in kernel.h
This is needed by the drm-kmod 5.7 update.
Approved by: hselasky (src) Differential Revision: https://reviews.freebsd.org/D30707
(cherry picked from commi
linuxkpi: Add _RET_IP_ macro in kernel.h
This is needed by the drm-kmod 5.7 update.
Approved by: hselasky (src) Differential Revision: https://reviews.freebsd.org/D30707
(cherry picked from commit fee0d486ef34c6bd113ed743e33357ff626f2495)
show more ...
|
|
Revision tags: release/13.0.0 |
|
| #
ec06521e |
| 28-Jan-2021 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: upstream a collection of drm-kmod conflicting changes
The upcoming in-kernel implementations for LinuxKPI based on work on iwlwifi (and other wireless drivers) conflicts in a few places wi
LinuxKPI: upstream a collection of drm-kmod conflicting changes
The upcoming in-kernel implementations for LinuxKPI based on work on iwlwifi (and other wireless drivers) conflicts in a few places with the drm-kmod graphics work outside the base system.
In order to transition smoothly extract the conflicting bits. This included "unaligned" accessor functions, sg_pcopy_from_buffer(), IS_*() macros (to be further restricted in the future), power management bits (possibly no longer conflicting with DRM), and other minor changes.
Obtained-from: bz_iwlwifi Sponsored-by: The FreeBSD Foundation MFC after: 3 days Reviewed by: kib, hselasky, manu, bdragon (looked at earlier versions) Differential Revision: https://reviews.freebsd.org/D26598
(cherry picked from commit 4abbf816bf06aa70200c5d1d976dd61c2752bdaf)
show more ...
|
|
Revision tags: release/12.2.0 |
|
| #
e23ee5b8 |
| 16-Oct-2020 |
Hans Petter Selasky <[email protected]> |
Remove ifdefs around IS_ALIGNED() definition in the LinuxKPI.
Discussed with: manu@ MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
|
| #
0e4e9e8f |
| 26-Jul-2020 |
Emmanuel Vadot <[email protected]> |
linuxkpi: Add taint* defines
This isn't used for us but allow us to port drivers more easily.
Reviewed by: hselasky Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freeb
linuxkpi: Add taint* defines
This isn't used for us but allow us to port drivers more easily.
Reviewed by: hselasky Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25703
show more ...
|
| #
d326a6c7 |
| 30-Jun-2020 |
Hans Petter Selasky <[email protected]> |
Document the is_signed(), type_max() and type_min() function macros in the LinuxKPI. Try to make the function argument more readable.
Suggested by: several MFC after: 1 week Sponsored by: Mellanox T
Document the is_signed(), type_max() and type_min() function macros in the LinuxKPI. Try to make the function argument more readable.
Suggested by: several MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
d0eed838 |
| 29-Jun-2020 |
Hans Petter Selasky <[email protected]> |
Implement is_signed(), type_max() and type_min() function macros in the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
|
Revision tags: release/11.4.0 |
|
| #
d053391c |
| 02-Jun-2020 |
Hans Petter Selasky <[email protected]> |
Implement __is_constexpr() function macro in the LinuxKPI. Bump the FreeBSD version.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
ef5f8c18 |
| 02-Jun-2020 |
Hans Petter Selasky <[email protected]> |
Implement struct_size() function macro in the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
c185f13b |
| 02-Jun-2020 |
Hans Petter Selasky <[email protected]> |
Implement BUILD_BUG_ON_ZERO() in the LinuxKPI. Tested using gcc and clang.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
8e52f22b |
| 27-May-2020 |
Emmanuel Vadot <[email protected]> |
linuxkpi: Add kstrtou16
This function convert a char * to a u16. Simply use strtoul and cast to compare for ERANGE
Sponsored-by: The FreeBSD Foundation Reviewed by: hselasky Differential Revision:
linuxkpi: Add kstrtou16
This function convert a char * to a u16. Simply use strtoul and cast to compare for ERANGE
Sponsored-by: The FreeBSD Foundation Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D24996
show more ...
|
| #
355711ea |
| 17-May-2020 |
Emmanuel Vadot <[email protected]> |
linuxkpi: Add offsetofend macro
This calculate the offset of the end of the member in the given struct. Needed by DRM in Linux v5.3
Sponsored-by: The FreeBSD Foudation Differential Revision: https:
linuxkpi: Add offsetofend macro
This calculate the offset of the end of the member in the given struct. Needed by DRM in Linux v5.3
Sponsored-by: The FreeBSD Foudation Differential Revision: https://reviews.freebsd.org/D24849
show more ...
|
| #
a164a32b |
| 13-May-2020 |
Andriy Gapon <[email protected]> |
linuxkpi: print stack trace in WARN_ON macros
Reviewed by: hselasky, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D24779
|
| #
61f7fe6b |
| 01-May-2020 |
Hans Petter Selasky <[email protected]> |
Implement kstrtou64() in the LinuxKPI.
Submitted by: ashafer_badland.io (Austin Shafer) MFC after: 1 week Sponsored by: Mellanox Technologies
|
|
Revision tags: release/12.1.0, release/11.3.0 |
|
| #
c4e0746e |
| 15-May-2019 |
Johannes Lundberg <[email protected]> |
LinuxKPI: Add helper macros IS_ALIGNED and DIV_ROUND_DOWN_ULL.
This patch is part of D19565
Reviewed by: hps Approved by: imp (mentor), hps MFC after: 1 week
|