tree: git://git.ragnatech.se/linux media-tree
head: c4176e12a755d0c761736c14bd2656ffc733eb95
commit: f90cf6079bf67988f8b1ad1ade70fc89d0080905 [319/322] media: vidtv: add a bridge
driver
config: nios2-randconfig-r002-20200913 (attached as .config)
compiler: nios2-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 f90cf6079bf67988f8b1ad1ade70fc89d0080905
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
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 >>):
In file included from drivers/media/test-drivers/vidtv/vidtv_common.c:11:
drivers/media/test-drivers/vidtv/vidtv_common.c: In function 'vidtv_memcpy':
> include/linux/kern_levels.h:5:18: warning: format '%lu'
expects argument of type 'long unsigned int', but argument 4 has type
'size_t' {aka 'unsigned int'} [-Wformat=]
5 | #define
KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:508:10: note: in definition of macro
'printk_ratelimited'
508 | printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:522:21: note: in expansion of macro 'KERN_ERR'
522 | printk_ratelimited(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_common.c:45:3: note: in expansion of macro
'pr_err_ratelimited'
45 | pr_err_ratelimited("overflow detected, skipping. Try increasing the
buffer size. Needed %lu, had %zu\n",
| ^~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_common.c: In function 'vidtv_memset':
> include/linux/kern_levels.h:5:18: warning: format '%lu'
expects argument of type 'long unsigned int', but argument 4 has type
'size_t' {aka 'unsigned int'} [-Wformat=]
5 | #define
KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:508:10: note: in definition of macro
'printk_ratelimited'
508 | printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:522:21: note: in expansion of macro 'KERN_ERR'
522 | printk_ratelimited(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_common.c:81:3: note: in expansion of macro
'pr_err_ratelimited'
81 | pr_err_ratelimited("overflow detected, skipping. Try increasing the
buffer size. Needed %lu, had %zu\n",
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
drivers/media/test-drivers/vidtv/vidtv_pes.c: In function
'vidtv_pes_write_pts_dts':
> include/linux/bits.h:36:11: warning: right shift count is
negative [-Wshift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 -
(h))))
| ^~
include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:98:10: note: in expansion of macro
'GENMASK'
98 | mask1 = GENMASK(32, 30);
| ^~~~~~~
--
In file included from include/linux/kernel.h:15,
from include/asm-generic/bug.h:20,
from ./arch/nios2/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/media/test-drivers/vidtv/vidtv_s302m.c:21:
drivers/media/test-drivers/vidtv/vidtv_s302m.c: In function
'vidtv_s302m_write_frames':
> include/linux/kern_levels.h:5:18: warning: format '%lu'
expects argument of type 'long unsigned int', but argument 5 has type
'u32' {aka 'unsigned int'} [-Wformat=]
5 | #define KERN_SOH
"\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:508:10: note: in definition of macro
'printk_ratelimited'
508 | printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:12:22: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:524:21: note: in expansion of macro 'KERN_WARNING'
524 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_s302m.c:425:4: note: in expansion of macro
'pr_warn_ratelimited'
425 | pr_warn_ratelimited("write size was %d, expected %lu\n",
| ^~~~~~~~~~~~~~~~~~~
git remote add ragnatech git://git.ragnatech.se/linux
git fetch --no-tags ragnatech media-tree
git checkout f90cf6079bf67988f8b1ad1ade70fc89d0080905
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