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