Skip to content

Commit 736b16e

Browse files
Bjoern A. ZeebBjoern A. Zeeb
authored andcommitted
LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()
The code introduced abs_diff() as migrated from drm to standard linux headers. The LINUXKPI_VERSION check did not allow this to be visible by default in-tree. Make sure the v6.6 check is optional. drm-kmod always defines LINUXKPI_VERSION so this should be fine. Sponsored by: The FreeBSD Foundation (initially) Fixes: afc450f MFC after: 3 days Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D52071
1 parent 6272346 commit 736b16e

File tree

1 file changed

+1
-1
lines changed
  • sys/compat/linuxkpi/common/include/linux

1 file changed

+1
-1
lines changed

sys/compat/linuxkpi/common/include/linux/math.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
__ret; \
5757
})
5858

59-
#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 60600
59+
#if !defined(LINUXKPI_VERSION) || (LINUXKPI_VERSION >= 60600)
6060
#define abs_diff(x, y) ({ \
6161
__typeof(x) _x = (x); \
6262
__typeof(y) _y = (y); \

0 commit comments

Comments
 (0)