linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [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}'
Date: Tue, 12 Jul 2016 02:44:54 +0800	[thread overview]
Message-ID: <201607120253.IBaTrq7Z%fengguang.wu@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2016-07-11 18:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201607120253.IBaTrq7Z%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).