tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 930de90fa348e756eb438c6e3e875c75eace3a49
commit: 930de90fa348e756eb438c6e3e875c75eace3a49 [2/2] CHROMIUM: img: Dump mfg_top
registers when power fail
config:
arm64-chromiumos-mediatek-customedconfig-chrome-os:chromeos-4.19:930de90fa348e756eb438c6e3e875c75eace3a49
(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 remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.19
git checkout 930de90fa348e756eb438c6e3e875c75eace3a49
# 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/linux/clk.h:16,
from drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:15:
drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c: In function
'dump_range':
> include/linux/kern_levels.h:5:18: error: format '%x'
expects argument of type 'unsigned int', but argument 3 has type 'long
unsigned int' [-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/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:416:2: note: in expansion of
macro 'pr_info'
416 | pr_info("%s: 0x%08x +0x%x\n", __func__, reg, len);
| ^~~~~~~
drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:416:20: note: format string is
defined here
416 | pr_info("%s: 0x%08x +0x%x\n", __func__, reg, len);
| ~~~^
| |
| unsigned int
| %08lx
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:14,
from include/linux/clk.h:16,
from drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:15:
> include/linux/kern_levels.h:5:18: error: format '%x'
expects argument of type 'unsigned int', but argument 4 has type 'size_t'
{aka 'long unsigned int'} [-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/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:416:2: note: in expansion of
macro 'pr_info'
416 | pr_info("%s: 0x%08x +0x%x\n", __func__, reg, len);
| ^~~~~~~
drivers/gpu/drm/img-rogue/1.10/mt8173/mt8173_mfgsys.c:416:26: note: format string is
defined here
416 | pr_info("%s: 0x%08x +0x%x\n", __func__, reg, len);
| ~^
| |
| unsigned int
| %lx
cc1: all warnings being treated as errors
vim +5 include/linux/kern_levels.h
314ba3520e513a7 Joe Perches 2012-07-30 4
04d2c8c83d0e3ac Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII
Start Of Header */
04d2c8c83d0e3ac Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3ac 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