linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 9476/9481] drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h:40:12: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'size_t {aka unsigned int}'
@ 2016-07-11 18:44 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-07-11 18:44 UTC (permalink / raw)
  Cc: kbuild-all, Andrew Morton, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 4529 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   dd27435af10bb67660f1e9f5689aea1854c20f26
commit: 57fae3d0483b8bde28bd2203a32197505f374ad1 [9476/9481] drivers/net/wireless/intel/iwlwifi/dvm/calib.c: simplfy min() expression
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 57fae3d0483b8bde28bd2203a32197505f374ad1
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:13:0,
                    from include/linux/list.h:8,
                    from include/linux/preempt.h:10,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/videodev2.h:59,
                    from include/media/v4l2-event.h:29,
                    from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c:16:
   drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c: In function 'mtk_venc_worker':
>> drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h:40:12: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'size_t {aka unsigned int}' [-Wformat=]
       pr_info("[MTK_V4L2] level=%d %s(),%d: " fmt "\n",\
               ^
   include/linux/printk.h:251:21: note: in definition of macro 'pr_fmt'
    #define pr_fmt(fmt) fmt
                        ^~~
   drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h:40:4: note: in expansion of macro 'pr_info'
       pr_info("[MTK_V4L2] level=%d %s(),%d: " fmt "\n",\
       ^~~~~~~
   drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c:1030:2: note: in expansion of macro 'mtk_v4l2_debug'
     mtk_v4l2_debug(2,
     ^~~~~~~~~~~~~~
   drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h:40:12: warning: format '%lx' expects argument of type 'long unsigned int', but argument 10 has type 'size_t {aka unsigned int}' [-Wformat=]
       pr_info("[MTK_V4L2] level=%d %s(),%d: " fmt "\n",\
               ^
   include/linux/printk.h:251:21: note: in definition of macro 'pr_fmt'
    #define pr_fmt(fmt) fmt
                        ^~~
   drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h:40:4: note: in expansion of macro 'pr_info'
       pr_info("[MTK_V4L2] level=%d %s(),%d: " fmt "\n",\
       ^~~~~~~
   drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c:1030:2: note: in expansion of macro 'mtk_v4l2_debug'
     mtk_v4l2_debug(2,
     ^~~~~~~~~~~~~~

vim +40 drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h

4e855a6e Tiffany Lin 2016-05-03  24  	void *va;
4e855a6e Tiffany Lin 2016-05-03  25  	dma_addr_t dma_addr;
4e855a6e Tiffany Lin 2016-05-03  26  };
4e855a6e Tiffany Lin 2016-05-03  27  
4e855a6e Tiffany Lin 2016-05-03  28  struct mtk_vcodec_ctx;
4e855a6e Tiffany Lin 2016-05-03  29  
4e855a6e Tiffany Lin 2016-05-03  30  extern int mtk_v4l2_dbg_level;
4e855a6e Tiffany Lin 2016-05-03  31  extern bool mtk_vcodec_dbg;
4e855a6e Tiffany Lin 2016-05-03  32  
4e855a6e Tiffany Lin 2016-05-03  33  #define DEBUG	1
4e855a6e Tiffany Lin 2016-05-03  34  
4e855a6e Tiffany Lin 2016-05-03  35  #if defined(DEBUG)
4e855a6e Tiffany Lin 2016-05-03  36  
4e855a6e Tiffany Lin 2016-05-03  37  #define mtk_v4l2_debug(level, fmt, args...)				 \
4e855a6e Tiffany Lin 2016-05-03  38  	do {								 \
4e855a6e Tiffany Lin 2016-05-03  39  		if (mtk_v4l2_dbg_level >= level)			 \
4e855a6e Tiffany Lin 2016-05-03 @40  			pr_info("[MTK_V4L2] level=%d %s(),%d: " fmt "\n",\
4e855a6e Tiffany Lin 2016-05-03  41  				level, __func__, __LINE__, ##args);	 \
4e855a6e Tiffany Lin 2016-05-03  42  	} while (0)
4e855a6e Tiffany Lin 2016-05-03  43  
4e855a6e Tiffany Lin 2016-05-03  44  #define mtk_v4l2_err(fmt, args...)                \
4e855a6e Tiffany Lin 2016-05-03  45  	pr_err("[MTK_V4L2][ERROR] %s:%d: " fmt "\n", __func__, __LINE__, \
4e855a6e Tiffany Lin 2016-05-03  46  	       ##args)
4e855a6e Tiffany Lin 2016-05-03  47  
4e855a6e Tiffany Lin 2016-05-03  48  

:::::: The code at line 40 was first introduced by commit
:::::: 4e855a6efa5470d87d6148e3eb0d881255876c74 [media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver

:::::: TO: Tiffany Lin <tiffany.lin@mediatek.com>
:::::: CC: Mauro Carvalho Chehab <mchehab@s-opensource.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 55687 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-11 18:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-11 18:44 [linux-next:master 9476/9481] drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h:40:12: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'size_t {aka unsigned int}' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).