tree:
https://github.com/frank-w/BPI-R2-4.14 5.15-bpi-r2-pro-drm
head: a958b73296c6541778093db348b18f9e3fe047bf
commit: a958b73296c6541778093db348b18f9e3fe047bf [89/89] drm: fourcc: add
drm_get_format_name
config: hexagon-randconfig-r041-20211015 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
a49f5386ce6b091da66ea7c3a1d9a588d53becf7)
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/frank-w/BPI-R2-4.14/commit/a958b73296c6541778093db348b...
git remote add frank-w-bpi-r2-4.14
https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.15-bpi-r2-pro-drm
git checkout a958b73296c6541778093db348b18f9e3fe047bf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/gpu/drm/drm_fourcc.c:102:4: error: implicit declaration
of function 'printable_char' [-Werror,-Wimplicit-function-declaration]
printable_char(format & 0xff),
^
1 error generated.
vim +/printable_char +102 drivers/gpu/drm/drm_fourcc.c
92
93 /**
94 * drm_get_format_name - fill a string with a drm fourcc format's name
95 * @format: format to compute name of
96 * @buf: caller-supplied buffer
97 */
98 const char *drm_get_format_name(uint32_t format, struct drm_format_name_buf *buf)
99 {
100 snprintf(buf->str, sizeof(buf->str),
101 "%c%c%c%c %s-endian (0x%08x)",
102 printable_char(format & 0xff),
103
printable_char((format >> 8) & 0xff),
104 printable_char((format >> 16) & 0xff),
105 printable_char((format >> 24) & 0x7f),
106 format & DRM_FORMAT_BIG_ENDIAN ? "big" : "little",
107 format);
108
109 return buf->str;
110 }
111 EXPORT_SYMBOL(drm_get_format_name);
112
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org