|
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, release/13.4.0 |
|
| #
0ab568c2 |
| 21-Jul-2024 |
Vladimir Kondratyev <[email protected]> |
LinuxKPI: Add __diag macros
__diag macros turn individual warnings and errors on and off locally, depending on version of compiler. Add dummy implementation as drm-kmod set warnings separately for e
LinuxKPI: Add __diag macros
__diag macros turn individual warnings and errors on and off locally, depending on version of compiler. Add dummy implementation as drm-kmod set warnings separately for each file.
Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: manu, emaste Differential Revision: https://reviews.freebsd.org/D45842
(cherry picked from commit 742088d9fb545296c8677119757a967141ba7d4a)
show more ...
|
|
Revision tags: release/14.1.0 |
|
| #
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 ...
|
| #
6290fe77 |
| 02-Apr-2024 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: add __counted_by() and __nonstring
Add checks for __counted_by(_x) and __nonstring as and depending on compiler support enable the attribute/feature.
This is needed to make mtk76 and ath1
LinuxKPI: add __counted_by() and __nonstring
Add checks for __counted_by(_x) and __nonstring as and depending on compiler support enable the attribute/feature.
This is needed to make mtk76 and ath1xk drivers compile.
Sposnored by: The FreeBSD Foundation Reviewed by: emaste, dim Differential Revision: https://reviews.freebsd.org/D44587
(cherry picked from commit 2a8c50592f7fce8bceedf004f674a5a9eae0fd46)
show more ...
|
|
Revision tags: release/13.3.0, release/14.0.0 |
|
| #
95ee2897 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
046d8d89 |
| 13-May-2023 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: fix WRITE_ONCE(), remove ACCESS_ONCE()
Fix a gcc warning: "to be safe all intermediate pointers in cast from '...' to '...' must be 'const' qualified [-Wcast-qual]". Doing what is essentia
LinuxKPI: fix WRITE_ONCE(), remove ACCESS_ONCE()
Fix a gcc warning: "to be safe all intermediate pointers in cast from '...' to '...' must be 'const' qualified [-Wcast-qual]". Doing what is essentially a __DECONST() adding the uintptr_t gets rid of the massive amount of warnings we get in LinuxKPI and lets us see the actual problems a lot better. This is a follow-up to 74e908b3c63b28de1d590dc42502fbe959a6da2e which fixed READ_ONCE(). ACCESS_ONCE() seems to be an obsolete KPI these days in Linux and FreeBSD does not use it either directly so we can entirely remove it now.
Sponsored by: The FreeBSD Foundation Suggested by: jhb Reviewed by: hselasky MFC after: 10 days Differential Revision: https://reviews.freebsd.org/D40084
show more ...
|
| #
53d821d6 |
| 22-Apr-2023 |
Vladimir Kondratyev <[email protected]> |
LinuxKPI: Define noinline_for_stack compiler attribute
It is identical to noinline and used for documentation reasons.
Required by: drm-kmod 5.15-lts Reviewed by: manu Differential Revision: https:
LinuxKPI: Define noinline_for_stack compiler attribute
It is identical to noinline and used for documentation reasons.
Required by: drm-kmod 5.15-lts Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D39553
show more ...
|
| #
74e908b3 |
| 19-Apr-2023 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: fix READ_ONCE() -Wcast-equal warnings
Rather than using ACCESS_ONCE() in READ_ONCE() add a missing cast to const in order to satisfy -Wcast-equal by gcc. Sadly we cannot do the same to WRI
LinuxKPI: fix READ_ONCE() -Wcast-equal warnings
Rather than using ACCESS_ONCE() in READ_ONCE() add a missing cast to const in order to satisfy -Wcast-equal by gcc. Sadly we cannot do the same to WRITE_ONCE() which still is very noisy.
Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D39706
show more ...
|
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0 |
|
| #
e5b95b22 |
| 09-Feb-2022 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: add sizeof_field()
Add sizeof_field() to linux/compiler.h needed by a driver.
MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34226
|
| #
307f78f3 |
| 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
|
|
Revision tags: release/12.3.0 |
|
| #
2fb5be79 |
| 04-Jul-2021 |
Vladimir Kondratyev <[email protected]> |
LinuxKPI: Implement smp_*mb barriers with atomic_thread_fence_*
for x86 and move them to asm/barrier.h
MFC after: 1 week Reviewed by: bz, hselasky, manu Differential Revision: https://reviews.freeb
LinuxKPI: Implement smp_*mb barriers with atomic_thread_fence_*
for x86 and move them to asm/barrier.h
MFC after: 1 week Reviewed by: bz, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33296
show more ...
|
| #
da717031 |
| 24-May-2021 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: compiler.h add three more defines
Add fallthrough, ____cacheline_aligned_in_smp, and smp_mb() to linux/compiler.h.
Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: hse
LinuxKPI: compiler.h add three more defines
Add fallthrough, ____cacheline_aligned_in_smp, and smp_mb() to linux/compiler.h.
Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D30420
show more ...
|
| #
43b4c006 |
| 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 MFC after: 2 weeks Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D30440
show more ...
|
|
Revision tags: release/13.0.0 |
|
| #
3b1ecc9f |
| 23-Mar-2021 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: remove < 5.0 version support
We are not aware of any out-of-tree consumers anymore which would need KPI support for before Linux version 5. Update the two in-tree consumers to use the new
LinuxKPI: remove < 5.0 version support
We are not aware of any out-of-tree consumers anymore which would need KPI support for before Linux version 5. Update the two in-tree consumers to use the new KPI. This allows us to remove the extra version check and will also give access to {lower,upper}_32_bits() unconditionally.
Sponsored-by: The FreeBSD Foundation Reviewed-by: hselasky, rlibby, rstone MFC-after: 2 weeks X-MFC: to 13 only Differential Revision: https://reviews.freebsd.org/D29391
show more ...
|
|
Revision tags: release/12.2.0, release/11.4.0 |
|
| #
93d70cd3 |
| 25-May-2020 |
Emmanuel Vadot <[email protected]> |
linuxkpi: Add __same_type and __must_be_array macros
The same_type macro simply wraps around builtin_types_compatible_p which exist for both GCC and CLANG, which returns 1 if both types are the same
linuxkpi: Add __same_type and __must_be_array macros
The same_type macro simply wraps around builtin_types_compatible_p which exist for both GCC and CLANG, which returns 1 if both types are the same. The __must_be_array macros returns 1 if the argument is an array.
This is needed for DRM v5.3
Sponsored-by: The FreeBSD Foundation Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D24953
show more ...
|
| #
482f0c02 |
| 15-Dec-2019 |
Conrad Meyer <[email protected]> |
Revert r355760, r355759
And remove the inline/deprecated attribute use entirely in stdlib.h, from r355747. The intent was to provide a buildable API transitionary period, but clearly that was count
Revert r355760, r355759
And remove the inline/deprecated attribute use entirely in stdlib.h, from r355747. The intent was to provide a buildable API transitionary period, but clearly that was counter-productive.
Reported by: delphij, imp, others
show more ...
|
| #
9d471059 |
| 14-Dec-2019 |
Conrad Meyer <[email protected]> |
linuxkpi: Drop incompatible __deprecated definition
Probably all of these linuxkpi stubs should be '#ifndef' guarded, but maybe that would prevent people from noticing when they are defined.
Introd
linuxkpi: Drop incompatible __deprecated definition
Probably all of these linuxkpi stubs should be '#ifndef' guarded, but maybe that would prevent people from noticing when they are defined.
Introduced in r355759. For some reason I only ran a buildworld and not a kernel. Mea culpa.
Reported by: Mark Millard X-MFC-with: r355759
show more ...
|
|
Revision tags: release/12.1.0, release/11.3.0 |
|
| #
0bb30b3a |
| 15-May-2019 |
Johannes Lundberg <[email protected]> |
LinuxKPI: Move {lower|upper}_32_bits macros from port to base.
This patch is part of D19565
Reviewed by: hps Approved by: imp (mentor), hps MFC after: 1 week
|
|
Revision tags: release/12.0.0, release/11.2.0 |
|
| #
cbea4f29 |
| 31-May-2018 |
Hans Petter Selasky <[email protected]> |
Define __initconst in the LinuxKPI.
Submitted by: Johannes Lundberg <[email protected]> MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
83630517 |
| 23-Mar-2018 |
Ed Maste <[email protected]> |
linuxkpi whitespace cleanup
Reviewed by: hselasky, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14807
|
| #
dc354b15 |
| 04-Mar-2018 |
Hans Petter Selasky <[email protected]> |
Define noinline and __maybe_unused macros in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
|
| #
2060ca65 |
| 17-Feb-2018 |
Hans Petter Selasky <[email protected]> |
Add support for __percpu and __weak macros in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies
|
|
Revision tags: release/10.4.0 |
|
| #
4e64c625 |
| 22-Jul-2017 |
Ryan Libby <[email protected]> |
linuxkpi compiler.h: avoid gcc -Wunused-value in dummy expressions
It looks like the __acquire and __release macros are for the consumption of static analysis tools and have no semantic effect. Tra
linuxkpi compiler.h: avoid gcc -Wunused-value in dummy expressions
It looks like the __acquire and __release macros are for the consumption of static analysis tools and have no semantic effect. Transform the definitions from constant expressions to empty statements in order to avoid -Wunused-value from gcc.
Likewise avoid future warnings for __chk_{user,io}_ptr, but with a cast to void, because it looks like some linux kernel code may use those in expression contexts.
Reviewed by: hselasky, markj Approved by: markj (mentor) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D11695
show more ...
|
|
Revision tags: release/11.1.0 |
|
| #
cb564d24 |
| 30-May-2017 |
Mark Johnston <[email protected]> |
Add some miscellaneous definitions to support DRM drivers.
Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D10985
|
| #
99e69077 |
| 07-Apr-2017 |
Hans Petter Selasky <[email protected]> |
The __stringify() macro in the LinuxKPI should expand any macros before stringifying.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
a767c188 |
| 07-Mar-2017 |
Hans Petter Selasky <[email protected]> |
Add support for constant pointer constructs to READ_ONCE() in the LinuxKPI. When the type of the argument is constant the temporary variable cannot be assigned after the barrier. Instead assign the t
Add support for constant pointer constructs to READ_ONCE() in the LinuxKPI. When the type of the argument is constant the temporary variable cannot be assigned after the barrier. Instead assign the temporary variable by initialization.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|