Skip to content

Commit 8c55e44

Browse files
fcui-amdjokim-amd
authored andcommitted
drm/amd/autoconf: fix check for hwmon_device_register_with_groups()
<linux/stddef.h> is needed for NULL pointer definition this is for rhel 7.4/7.5/7.6 Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Jack Gui <Jack.Gui@amd.com>
1 parent fa92c4f commit 8c55e44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/amd/dkms/m4/hwmon-device-register-with-groups.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dnl # to the hwmon device directly and no longer with its parent device.
77
AC_DEFUN([AC_AMDGPU_4ARGS_HWMON_DEVICE_REGISTER_WITH_GROUPS],
88
[AC_MSG_CHECKING([whether hwmon_device_register_with_groups() wants 4 args])
99
AC_KERNEL_TRY_COMPILE_SYMBOL([
10+
#include <linux/stddef.h>
1011
#include <linux/hwmon.h>
1112
], [
1213
hwmon_device_register_with_groups(NULL, NULL, NULL, NULL);

0 commit comments

Comments
 (0)