[jimc:dd-drm 9/14] drivers/gpu/drm/drm_debugfs_crc.c:134:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category'
by kernel test robot
tree: https://github.com/jimc/linux.git dd-drm
head: 53eb9c019e1fcde368ae0c5b16a0a5802d418396
commit: 84c32d359d6fb8799fe6adafa9aac70e3417972b [9/14] drm_print: use _dynamic_func_call_no_desc_cls
config: arm-buildonly-randconfig-r004-20220207 (https://download.01.org/0day-ci/archive/20220208/202202081525.N5NGPIFg-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/jimc/linux/commit/84c32d359d6fb8799fe6adafa9aac70e3417...
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm
git checkout 84c32d359d6fb8799fe6adafa9aac70e3417972b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/drm_debugfs_crc.c:134:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("Expected < %lu bytes into crtc crc control\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
>> drivers/gpu/drm/drm_debugfs_crc.c:134:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_KMS("Expected < %lu bytes into crtc crc control\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:12: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
2 warnings generated.
--
>> drivers/gpu/drm/arm/hdlcd_crtc.c:243:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("Invalid source width: %d\n", src_h);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
>> drivers/gpu/drm/arm/hdlcd_crtc.c:243:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_KMS("Invalid source width: %d\n", src_h);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:12: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
2 warnings generated.
--
>> drivers/gpu/drm/arm/malidp_drv.c:217:4: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_DRIVER("timed out waiting for updated configuration\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:576:2: note: expanded from macro 'DRM_DEBUG_DRIVER'
__drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
>> drivers/gpu/drm/arm/malidp_drv.c:217:4: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_DRIVER("timed out waiting for updated configuration\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:576:12: note: expanded from macro 'DRM_DEBUG_DRIVER'
__drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_drv.c:284:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("AFBC buffers' plane offset should be 0\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_drv.c:284:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_KMS("AFBC buffers' plane offset should be 0\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:12: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_drv.c:291:4: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("AFBC buffers must be aligned to 16 pixels\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_drv.c:291:4: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_KMS("AFBC buffers must be aligned to 16 pixels\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:12: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_drv.c:296:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("Unsupported AFBC block size\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_drv.c:296:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_KMS("Unsupported AFBC block size\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:12: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_drv.c:321:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("AFBC superblock size is not supported\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
--
>> drivers/gpu/drm/arm/malidp_hw.c:505:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_DRIVER("mclk requirement of %lu kHz can't be met.\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:576:2: note: expanded from macro 'DRM_DEBUG_DRIVER'
__drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
>> drivers/gpu/drm/arm/malidp_hw.c:505:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_DRIVER("mclk requirement of %lu kHz can't be met.\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:576:12: note: expanded from macro 'DRM_DEBUG_DRIVER'
__drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_hw.c:846:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_DRIVER("mclk requirement of %lu kHz can't be met.\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:576:2: note: expanded from macro 'DRM_DEBUG_DRIVER'
__drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_hw.c:846:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_DRIVER("mclk requirement of %lu kHz can't be met.\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:576:12: note: expanded from macro 'DRM_DEBUG_DRIVER'
__drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
4 warnings generated.
--
>> drivers/gpu/drm/arm/malidp_planes.c:175:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("Unsupported modifiers\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
>> drivers/gpu/drm/arm/malidp_planes.c:175:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_KMS("Unsupported modifiers\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:12: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_planes.c:198:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("Unsupported modifier\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_planes.c:198:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_KMS("Unsupported modifier\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:12: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_planes.c:205:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("AFBC buffers expect one plane\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_planes.c:205:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_KMS("AFBC buffers expect one plane\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:12: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_planes.c:210:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("Given format (0x%x) is supported is linear mode only\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/drm/drm_print.h:525:41: note: passing argument to parameter 'category' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_planes.c:210:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
DRM_DEBUG_KMS("Given format (0x%x) is supported is linear mode only\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:12: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~
include/drm/drm_print.h:530:47: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:525:63: note: passing argument to parameter 'format' here
void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
^
drivers/gpu/drm/arm/malidp_planes.c:220:3: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'enum drm_debug_category' [-Wint-conversion]
DRM_DEBUG_KMS("AFBC_FORMAT_MOD_YTR is %s for %s formats\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:580:2: note: expanded from macro 'DRM_DEBUG_KMS'
__drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:530:41: note: expanded from macro '__drm_dbg'
#define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
..
vim +134 drivers/gpu/drm/drm_debugfs_crc.c
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 119
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 120 static ssize_t crc_control_write(struct file *file, const char __user *ubuf,
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 121 size_t len, loff_t *offp)
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 122 {
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 123 struct seq_file *m = file->private_data;
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 124 struct drm_crtc *crtc = m->private;
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 125 struct drm_crtc_crc *crc = &crtc->crc;
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 126 char *source;
d5cc15a0c66e207 Mahesh Kumar 2018-07-13 127 size_t values_cnt;
d5cc15a0c66e207 Mahesh Kumar 2018-07-13 128 int ret;
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 129
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 130 if (len == 0)
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 131 return 0;
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 132
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 133 if (len > PAGE_SIZE - 1) {
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 @134 DRM_DEBUG_KMS("Expected < %lu bytes into crtc crc control\n",
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 135 PAGE_SIZE);
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 136 return -E2BIG;
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 137 }
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 138
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 139 source = memdup_user_nul(ubuf, len);
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 140 if (IS_ERR(source))
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 141 return PTR_ERR(source);
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 142
72a848f5c46bab4 Dingchen Zhang 2019-06-10 143 if (source[len - 1] == '\n')
72a848f5c46bab4 Dingchen Zhang 2019-06-10 144 source[len - 1] = '\0';
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 145
d5cc15a0c66e207 Mahesh Kumar 2018-07-13 146 ret = crtc->funcs->verify_crc_source(crtc, source, &values_cnt);
f7ec68b341dbd5d Dinghao Liu 2020-08-19 147 if (ret) {
f7ec68b341dbd5d Dinghao Liu 2020-08-19 148 kfree(source);
d5cc15a0c66e207 Mahesh Kumar 2018-07-13 149 return ret;
f7ec68b341dbd5d Dinghao Liu 2020-08-19 150 }
d5cc15a0c66e207 Mahesh Kumar 2018-07-13 151
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 152 spin_lock_irq(&crc->lock);
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 153
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 154 if (crc->opened) {
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 155 spin_unlock_irq(&crc->lock);
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 156 kfree(source);
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 157 return -EBUSY;
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 158 }
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 159
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 160 kfree(crc->source);
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 161 crc->source = source;
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 162
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 163 spin_unlock_irq(&crc->lock);
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 164
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 165 *offp += len;
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 166 return len;
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 167 }
9edbf1fa600a2ef Tomeu Vizoso 2016-10-06 168
:::::: The code at line 134 was first introduced by commit
:::::: 9edbf1fa600a2ef17c7553c2103d0055d0320d15 drm: Add API for capturing frame CRCs
:::::: TO: Tomeu Vizoso <tomeu.vizoso(a)collabora.com>
:::::: CC: Daniel Vetter <daniel.vetter(a)ffwll.ch>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 2 weeks
[jimc:dd-drm 9/14] include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
by kernel test robot
tree: https://github.com/jimc/linux.git dd-drm
head: 53eb9c019e1fcde368ae0c5b16a0a5802d418396
commit: 84c32d359d6fb8799fe6adafa9aac70e3417972b [9/14] drm_print: use _dynamic_func_call_no_desc_cls
config: arc-randconfig-r003-20220207 (https://download.01.org/0day-ci/archive/20220208/202202081544.THJ4Z36e-lk...)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/jimc/linux/commit/84c32d359d6fb8799fe6adafa9aac70e3417...
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm
git checkout 84c32d359d6fb8799fe6adafa9aac70e3417972b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/limits.h:6,
from include/linux/kernel.h:16,
from drivers/gpu/drm/drm_rect.c:26:
drivers/gpu/drm/drm_rect.c: In function 'drm_rect_debug_print':
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:580:9: note: in expansion of macro '__drm_dbg'
580 | __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_rect.c:231:17: note: in expansion of macro 'DRM_DEBUG_KMS'
231 | DRM_DEBUG_KMS("%s" DRM_RECT_FP_FMT "\n", prefix, DRM_RECT_FP_ARG(r));
| ^~~~~~~~~~~~~
In file included from drivers/gpu/drm/drm_rect.c:29:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
>> include/drm/drm_print.h:580:19: warning: passing argument 2 of '___drm_dbg' makes pointer from integer without a cast [-Wint-conversion]
580 | __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~
| |
| int
include/drm/drm_print.h:530:58: note: in definition of macro '__drm_dbg'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/drm_rect.c:231:17: note: in expansion of macro 'DRM_DEBUG_KMS'
231 | DRM_DEBUG_KMS("%s" DRM_RECT_FP_FMT "\n", prefix, DRM_RECT_FP_ARG(r));
| ^~~~~~~~~~~~~
include/drm/drm_print.h:525:63: note: expected 'const char *' but argument is of type 'int'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~^~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/limits.h:6,
from include/linux/kernel.h:16,
from drivers/gpu/drm/drm_rect.c:26:
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:580:9: note: in expansion of macro '__drm_dbg'
580 | __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_rect.c:233:17: note: in expansion of macro 'DRM_DEBUG_KMS'
233 | DRM_DEBUG_KMS("%s" DRM_RECT_FMT "\n", prefix, DRM_RECT_ARG(r));
| ^~~~~~~~~~~~~
In file included from drivers/gpu/drm/drm_rect.c:29:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
>> include/drm/drm_print.h:580:19: warning: passing argument 2 of '___drm_dbg' makes pointer from integer without a cast [-Wint-conversion]
580 | __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~
| |
| int
include/drm/drm_print.h:530:58: note: in definition of macro '__drm_dbg'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/drm_rect.c:233:17: note: in expansion of macro 'DRM_DEBUG_KMS'
233 | DRM_DEBUG_KMS("%s" DRM_RECT_FMT "\n", prefix, DRM_RECT_ARG(r));
| ^~~~~~~~~~~~~
include/drm/drm_print.h:525:63: note: expected 'const char *' but argument is of type 'int'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~^~~~~~
--
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/err.h:5,
from include/linux/dma-fence.h:16,
from drivers/gpu/drm/drm_file.c:35:
drivers/gpu/drm/drm_file.c: In function 'drm_file_free':
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_file.c:253:9: note: in expansion of macro 'DRM_DEBUG'
253 | DRM_DEBUG("comm=\"%s\", pid=%d, dev=0x%lx, open_count=%d\n",
| ^~~~~~~~~
In file included from drivers/gpu/drm/drm_file.c:45:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/err.h:5,
from include/linux/dma-fence.h:16,
from drivers/gpu/drm/drm_file.c:35:
drivers/gpu/drm/drm_file.c: In function 'drm_open_helper':
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_file.c:348:9: note: in expansion of macro 'DRM_DEBUG'
348 | DRM_DEBUG("comm=\"%s\", pid=%d, minor=%d\n", current->comm,
| ^~~~~~~~~
In file included from drivers/gpu/drm/drm_file.c:45:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/err.h:5,
from include/linux/dma-fence.h:16,
from drivers/gpu/drm/drm_file.c:35:
drivers/gpu/drm/drm_file.c: In function 'drm_lastclose':
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_file.c:458:9: note: in expansion of macro 'DRM_DEBUG'
458 | DRM_DEBUG("\n");
| ^~~~~~~~~
In file included from drivers/gpu/drm/drm_file.c:45:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/err.h:5,
from include/linux/dma-fence.h:16,
from drivers/gpu/drm/drm_file.c:35:
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_file.c:462:9: note: in expansion of macro 'DRM_DEBUG'
462 | DRM_DEBUG("driver lastclose completed\n");
| ^~~~~~~~~
In file included from drivers/gpu/drm/drm_file.c:45:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/err.h:5,
from include/linux/dma-fence.h:16,
from drivers/gpu/drm/drm_file.c:35:
drivers/gpu/drm/drm_file.c: In function 'drm_release':
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_file.c:493:9: note: in expansion of macro 'DRM_DEBUG'
493 | DRM_DEBUG("open_count = %d\n", atomic_read(&dev->open_count));
| ^~~~~~~~~
In file included from drivers/gpu/drm/drm_file.c:45:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
--
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from drivers/gpu/drm/drm_gem.c:28:
drivers/gpu/drm/drm_gem.c: In function 'drm_gem_objects_lookup':
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_gem.c:714:17: note: in expansion of macro 'DRM_DEBUG'
714 | DRM_DEBUG("Failed to copy in GEM handles\n");
| ^~~~~~~~~
In file included from include/drm/drm_mm.h:51,
from include/drm/drm_vma_manager.h:26,
from include/drm/drm_gem.h:40,
from drivers/gpu/drm/drm_gem.c:47:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from drivers/gpu/drm/drm_gem.c:28:
drivers/gpu/drm/drm_gem.c: In function 'drm_gem_dma_resv_wait':
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_gem.c:769:17: note: in expansion of macro 'DRM_DEBUG'
769 | DRM_DEBUG("Failed to look up GEM BO %d\n", handle);
| ^~~~~~~~~
In file included from include/drm/drm_mm.h:51,
from include/drm/drm_vma_manager.h:26,
from include/drm/drm_gem.h:40,
from drivers/gpu/drm/drm_gem.c:47:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
--
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/nospec.h:9,
from drivers/gpu/drm/drm_ioctl.c:32:
drivers/gpu/drm/drm_ioctl.c: In function 'drm_noop':
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_ioctl.c:443:9: note: in expansion of macro 'DRM_DEBUG'
443 | DRM_DEBUG("\n");
| ^~~~~~~~~
In file included from drivers/gpu/drm/drm_ioctl.c:41:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/nospec.h:9,
from drivers/gpu/drm/drm_ioctl.c:32:
drivers/gpu/drm/drm_ioctl.c: In function 'drm_ioctl':
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_ioctl.c:853:9: note: in expansion of macro 'DRM_DEBUG'
853 | DRM_DEBUG("comm=\"%s\" pid=%d, dev=0x%lx, auth=%d, %s\n",
| ^~~~~~~~~
In file included from drivers/gpu/drm/drm_ioctl.c:41:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/nospec.h:9,
from drivers/gpu/drm/drm_ioctl.c:32:
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_ioctl.c:862:17: note: in expansion of macro 'DRM_DEBUG'
862 | DRM_DEBUG("no function\n");
| ^~~~~~~~~
In file included from drivers/gpu/drm/drm_ioctl.c:41:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/nospec.h:9,
from drivers/gpu/drm/drm_ioctl.c:32:
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_ioctl.c:891:17: note: in expansion of macro 'DRM_DEBUG'
891 | DRM_DEBUG("invalid ioctl: comm=\"%s\", pid=%d, dev=0x%lx, auth=%d, cmd=0x%02x, nr=0x%02x\n",
| ^~~~~~~~~
In file included from drivers/gpu/drm/drm_ioctl.c:41:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/nospec.h:9,
from drivers/gpu/drm/drm_ioctl.c:32:
>> include/linux/stddef.h:8:14: error: incompatible type for argument 1 of '___drm_dbg'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
include/drm/drm_print.h:530:52: note: in expansion of macro 'NULL'
530 | #define __drm_dbg(fmt, ...) ___drm_dbg(NULL, fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:572:9: note: in expansion of macro '__drm_dbg'
572 | __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
drivers/gpu/drm/drm_ioctl.c:899:17: note: in expansion of macro 'DRM_DEBUG'
899 | DRM_DEBUG("comm=\"%s\", pid=%d, ret=%d\n", current->comm,
| ^~~~~~~~~
In file included from drivers/gpu/drm/drm_ioctl.c:41:
include/drm/drm_print.h:525:41: note: expected 'enum drm_debug_category' but argument is of type 'void *'
525 | void ___drm_dbg(enum drm_debug_category category, const char *format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
..
vim +/___drm_dbg +8 include/linux/stddef.h
^1da177e4c3f415 Linus Torvalds 2005-04-16 6
^1da177e4c3f415 Linus Torvalds 2005-04-16 7 #undef NULL
^1da177e4c3f415 Linus Torvalds 2005-04-16 @8 #define NULL ((void *)0)
6e2182874324727 Richard Knutsson 2006-09-30 9
:::::: The code at line 8 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 2 weeks