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: powerpc-allyesconfig
(
https://download.01.org/0day-ci/archive/20211124/202111241622.pQvwVlQN-lk...)
compiler: powerpc-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=powerpc
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/printk.h:7,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
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/platform/mtk-vcodec/vdec/vdec_vp8_req_if.c:7:
drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_req_if.c: In function
'vdec_vp8_slice_init':
> include/linux/kern_levels.h:5:25: warning: format '%ld'
expects argument of type 'long int', but argument 4 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: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_vp8_req_if.c:306:9: note: in expansion of
macro 'mtk_vcodec_debug'
306 | mtk_vcodec_debug(inst, "vp8 struct size = %ld vsi: %ld\n",
| ^~~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of
type 'long 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: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_vp8_req_if.c:306:9: note: in expansion of
macro 'mtk_vcodec_debug'
306 | mtk_vcodec_debug(inst, "vp8 struct size = %ld vsi: %ld\n",
| ^~~~~~~~~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_req_if.c: In function
'vdec_vp8_slice_decode':
include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of
type 'long int', but argument 5 has type 'size_t' {aka '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_vp8_req_if.c:357:9: note: in expansion of
macro 'mtk_vcodec_debug'
357 | mtk_vcodec_debug(inst, "frame[%d] bs(%ld 0x%lx) y/c(0x%llx
0x%llx)",
| ^~~~~~~~~~~~~~~~
> include/linux/kern_levels.h:5:25: warning: too many arguments for
format [-Wformat-extra-args]
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_vp8_req_if.c:391:17: note: in expansion of
macro 'mtk_vcodec_debug'
391 | mtk_vcodec_debug(inst, "error while calling vpu_dec_end:
%d",
| ^~~~~~~~~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_req_if.c:328:24: warning: variable
'bs_va' set but not used [-Wunused-but-set-variable]
328 | unsigned char *bs_va;
| ^~~~~
--
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_if.c:3:
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c: In function
'vdec_h264_slice_init':
> include/linux/kern_levels.h:5:25: warning: format '%ld'
expects argument of type 'long int', but argument 4 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: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_if.c:294:9: note: in expansion of
macro 'mtk_vcodec_debug'
294 | mtk_vcodec_debug(inst, "struct size = %ld,%ld,%ld,%ld\n",
| ^~~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of
type 'long 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: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_if.c:294:9: note: in expansion of
macro 'mtk_vcodec_debug'
294 | mtk_vcodec_debug(inst, "struct size = %ld,%ld,%ld,%ld\n",
| ^~~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of
type 'long int', but argument 6 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: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_if.c:294:9: note: in expansion of
macro 'mtk_vcodec_debug'
294 | mtk_vcodec_debug(inst, "struct size = %ld,%ld,%ld,%ld\n",
| ^~~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of
type 'long int', but argument 7 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: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_if.c:294:9: note: in expansion of
macro 'mtk_vcodec_debug'
294 | mtk_vcodec_debug(inst, "struct size = %ld,%ld,%ld,%ld\n",
| ^~~~~~~~~~~~~~~~
In file included 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_if.c:3:
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c: In function
'vdec_h264_slice_decode':
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c:404:26: error:
'nal_type' undeclared (first use in this function); did you mean
'part_type'?
404 | nal_type);
| ^~~~~~~~
include/linux/printk.h:373:41: note: in definition of macro 'pr_info'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c:403:9: note: in expansion of
macro 'mtk_vcodec_debug'
403 | mtk_vcodec_debug(inst, "\n - NALU[%d] type=%d -\n",
inst->num_nalu,
| ^~~~~~~~~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c:404:26: note: each undeclared
identifier is reported only once for each function it appears in
404 | nal_type);
| ^~~~~~~~
include/linux/printk.h:373:41: note: in definition of macro 'pr_info'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c:403:9: note: in expansion of
macro 'mtk_vcodec_debug'
403 | mtk_vcodec_debug(inst, "\n - NALU[%d] type=%d -\n",
inst->num_nalu,
| ^~~~~~~~~~~~~~~~
--
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_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