tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: 6bd1d8cd360d3a9717c2bad0c23a38b63416ebb5
commit: 6e20d24f3176ce867e3b93d298dc03495e2aeb8e [100/108] CHROMIUM: Revert "[media]
media: mtk-vcodec: remove informative log"
config: h8300-allyesconfig
(
https://download.01.org/0day-ci/archive/20211124/202111241602.haULA14f-lk...)
compiler: h8300-linux-gcc (GCC) 11.2.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-5.10
git checkout 6e20d24f3176ce867e3b93d298dc03495e2aeb8e
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=h8300
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 include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:7:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:93:51: warning: ordered comparison of pointer with null
pointer [-Wextra]
93 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET)
&& \
| ^~
include/linux/compiler.h:78:45: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:9: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:17: note: in expansion of macro
'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:16,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:7:
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c: In function
'vdec_h264_slice_alloc_mv_buf':
include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of
type 'long unsigned int', but argument 5 has type 'unsigned int'
[-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:373:16: note: in expansion of macro 'KERN_INFO'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/../mtk_vcodec_util.h:47:25: note: in expansion
of macro 'pr_info'
47 | pr_info("[MTK_V4L2] level=%d %s(),%d: " fmt
"\n",\
| ^~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:228:9: note: in expansion
of macro 'mtk_v4l2_debug'
228 | mtk_v4l2_debug(3, "size = 0x%lx", buf_sz);
| ^~~~~~~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c: In function
'vdec_h264_slice_init':
> include/linux/kern_levels.h:5:25: warning: format '%d'
expects argument of type 'int', but argument 4 has type 'long unsigned
int' [-Wformat=]
5 | #define KERN_SOH "\001" /*
ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:373:16: note: in expansion of macro 'KERN_INFO'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/../mtk_vcodec_util.h:57:25: note: in expansion
of macro 'pr_info'
57 | pr_info("[MTK_VCODEC][%d]: %s() " fmt
"\n", \
| ^~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:338:9: note: in expansion
of macro 'mtk_vcodec_debug'
338 | mtk_vcodec_debug(inst, "lat struct size = %d,%d,%d,%d vsi:
%d\n",
| ^~~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type
'int', but argument 5 has type 'long unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:373:16: note: in expansion of macro 'KERN_INFO'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/../mtk_vcodec_util.h:57:25: note: in expansion
of macro 'pr_info'
57 | pr_info("[MTK_VCODEC][%d]: %s() " fmt
"\n", \
| ^~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:338:9: note: in expansion
of macro 'mtk_vcodec_debug'
338 | mtk_vcodec_debug(inst, "lat struct size = %d,%d,%d,%d vsi:
%d\n",
| ^~~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type
'int', but argument 6 has type 'long unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:373:16: note: in expansion of macro 'KERN_INFO'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/../mtk_vcodec_util.h:57:25: note: in expansion
of macro 'pr_info'
57 | pr_info("[MTK_VCODEC][%d]: %s() " fmt
"\n", \
| ^~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:338:9: note: in expansion
of macro 'mtk_vcodec_debug'
338 | mtk_vcodec_debug(inst, "lat struct size = %d,%d,%d,%d vsi:
%d\n",
| ^~~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type
'int', but argument 7 has type 'long unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:373:16: note: in expansion of macro 'KERN_INFO'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/../mtk_vcodec_util.h:57:25: note: in expansion
of macro 'pr_info'
57 | pr_info("[MTK_VCODEC][%d]: %s() " fmt
"\n", \
| ^~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:338:9: note: in expansion
of macro 'mtk_vcodec_debug'
338 | mtk_vcodec_debug(inst, "lat struct size = %d,%d,%d,%d vsi:
%d\n",
| ^~~~~~~~~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c: In function
'vdec_h264_slice_core_decode':
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:388:22: warning: cast
from pointer to integer of different size [-Wpointer-to-int-cast]
388 | vdec_fb_va = (u64)fb;
| ^
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:16,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:7:
include/linux/kern_levels.h:5:25: warning: format '%x' expects argument of type
'unsigned int', but argument 4 has type 'uint64_t' {aka 'long long
unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:373:16: note: in expansion of macro 'KERN_INFO'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/../mtk_vcodec_util.h:57:25: note: in expansion
of macro 'pr_info'
57 | pr_info("[MTK_VCODEC][%d]: %s() " fmt
"\n", \
| ^~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:397:9: note: in expansion
of macro 'mtk_vcodec_debug'
397 | mtk_vcodec_debug(inst, "[h264-core] y/c addr = 0x%x 0x%x",
y_fb_dma,
| ^~~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%x' expects argument of type
'unsigned int', but argument 5 has type 'uint64_t' {aka 'long long
unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:373:16: note: in expansion of macro 'KERN_INFO'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/../mtk_vcodec_util.h:57:25: note: in expansion
of macro 'pr_info'
57 | pr_info("[MTK_VCODEC][%d]: %s() " fmt
"\n", \
| ^~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:397:9: note: in expansion
of macro 'mtk_vcodec_debug'
397 | mtk_vcodec_debug(inst, "[h264-core] y/c addr = 0x%x 0x%x",
y_fb_dma,
| ^~~~~~~~~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_lat_if.c:375:35: warning: variable
'dst_buf_info' set but not used [-Wunused-but-set-variable]
375 | struct mtk_video_dec_buf *dst_buf_info;
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