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