tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 82172a1aab828c57e585665010f2488972ebc69a
commit: 82172a1aab828c57e585665010f2488972ebc69a [7/7] CHROMIUM: media: platform:
mtk-mdp3: add debug function
config:
arm64-chromiumos-arm64-customedconfig-chrome-os:chromeos-4.19:a4425f5643abe8fe5df8bc6e171bfd18e7a36124
(attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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
git checkout 82172a1aab828c57e585665010f2488972ebc69a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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 >>):
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:14,
from include/asm-generic/bug.h:18,
from arch/arm64/include/asm/bug.h:37,
from include/linux/bug.h:5,
from include/linux/io.h:23,
from drivers/media/platform/mtk-mdp3/mtk-mdp3-debug.c:17:
drivers/media/platform/mtk-mdp3/mtk-mdp3-debug.c: In function
'mdp_alloc_reference_VA_by_name':
> include/linux/kern_levels.h:5:18: error: format '%lx'
expects argument of type 'long unsigned int', but argument 6 has type 'void
*' [-Werror=format=]
5 | #define KERN_SOH "\001" /* ASCII
Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO'
310 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/media/platform/mtk-mdp3/mtk-mdp3-core.h:67:4: note: in expansion of macro
'pr_info'
67 | pr_info("[MTK-MDP3] %d %s:%d: " fmt "\n",\
| ^~~~~~~
drivers/media/platform/mtk-mdp3/mtk-mdp3-debug.c:87:2: note: in expansion of macro
'mdp_dbg'
87 | mdp_dbg(2, "DEV: VA ref(%s): 0x%lx\n", ref_name, VA);
| ^~~~~~~
drivers/media/platform/mtk-mdp3/mtk-mdp3-debug.c:87:35: note: format string is defined
here
87 | mdp_dbg(2, "DEV: VA ref(%s): 0x%lx\n", ref_name, VA);
| ~~^
| |
| long unsigned int
| %p
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:14,
from include/asm-generic/bug.h:18,
from arch/arm64/include/asm/bug.h:37,
from include/linux/bug.h:5,
from include/linux/io.h:23,
from drivers/media/platform/mtk-mdp3/mtk-mdp3-debug.c:17:
drivers/media/platform/mtk-mdp3/mtk-mdp3-debug.c: In function
'mdp_init_module_base_VA':
include/linux/kern_levels.h:5:18: error: format '%lx' expects argument of type
'long unsigned int', but argument 5 has type 'void *' [-Werror=format=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO'
310 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/media/platform/mtk-mdp3/mtk-mdp3-core.h:67:4: note: in expansion of macro
'pr_info'
67 | pr_info("[MTK-MDP3] %d %s:%d: " fmt "\n",\
| ^~~~~~~
drivers/media/platform/mtk-mdp3/mtk-mdp3-debug.c:107:3: note: in expansion of macro
'mdp_dbg'
107 | mdp_dbg(2, "MDP_RDMA va: 0x%lx\n", va);
| ^~~~~~~
drivers/media/platform/mtk-mdp3/mtk-mdp3-debug.c:107:32: note: format string is defined
here
107 | mdp_dbg(2, "MDP_RDMA va: 0x%lx\n", va);
| ~~^
| |
| long unsigned int
| %p
cc1: all warnings being treated as errors
vim +5 include/linux/kern_levels.h
314ba3520e513a Joe Perches 2012-07-30 4
04d2c8c83d0e3a Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII
Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3a Joe Perches 2012-07-30 7
:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for
KERN_<LEVEL> to a 2 byte pattern
:::::: TO: Joe Perches <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org