Skip to content

Commit

Permalink
drm/amd/autoconf: fix check for hwmon_device_register_with_groups()
Browse files Browse the repository at this point in the history
<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>
  • Loading branch information
Flora Cui authored and Jonathan Kim committed Sep 25, 2019
1 parent fa92c4f commit 8c55e44
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dnl # to the hwmon device directly and no longer with its parent device.
AC_DEFUN([AC_AMDGPU_4ARGS_HWMON_DEVICE_REGISTER_WITH_GROUPS],
[AC_MSG_CHECKING([whether hwmon_device_register_with_groups() wants 4 args])
AC_KERNEL_TRY_COMPILE_SYMBOL([
#include <linux/stddef.h>
#include <linux/hwmon.h>
], [
hwmon_device_register_with_groups(NULL, NULL, NULL, NULL);
Expand Down

0 comments on commit 8c55e44

Please sign in to comment.