Linux clock framework development
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Laura Abbott <labbott@redhat.com>
Cc: kbuild-all@01.org, Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@codeaurora.org>, Loc Ho <lho@apm.com>,
	Laura Abbott <labbott@redhat.com>,
	linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] clk: xgene: Don't call __pa on ioremaped address
Date: Fri, 28 Oct 2016 08:33:46 +0800	[thread overview]
Message-ID: <201610280856.KyKGCThE%fengguang.wu@intel.com> (raw)
In-Reply-To: <1477610508-7449-1-git-send-email-labbott@redhat.com>

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

Hi Laura,

[auto build test WARNING on clk/clk-next]
[also build test WARNING on v4.9-rc2 next-20161027]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/Laura-Abbott/clk-xgene-Don-t-call-__pa-on-ioremaped-address/20161028-072455
base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # 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/module.h:9,
                    from drivers/clk/clk-xgene.c:23:
   drivers/clk/clk-xgene.c: In function 'xgene_clk_enable':
>> drivers/clk/clk-xgene.c:489:12: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'u32 {aka unsigned int}' [-Wformat=]
      pr_debug("%s CSR RESET PADDR base %pa csr offset 0x%08X mask 0x%08X value 0x%08X\n",
               ^
   include/linux/printk.h:261:21: note: in definition of macro 'pr_fmt'
    #define pr_fmt(fmt) fmt
                        ^~~
   include/linux/printk.h:309:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
>> drivers/clk/clk-xgene.c:489:3: note: in expansion of macro 'pr_debug'
      pr_debug("%s CSR RESET PADDR base %pa csr offset 0x%08X mask 0x%08X value 0x%08X\n",
      ^~~~~~~~
>> drivers/clk/clk-xgene.c:489:12: warning: format '%X' expects a matching 'unsigned int' argument [-Wformat=]
      pr_debug("%s CSR RESET PADDR base %pa csr offset 0x%08X mask 0x%08X value 0x%08X\n",
               ^
   include/linux/printk.h:261:21: note: in definition of macro 'pr_fmt'
    #define pr_fmt(fmt) fmt
                        ^~~
   include/linux/printk.h:309:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
>> drivers/clk/clk-xgene.c:489:3: note: in expansion of macro 'pr_debug'
      pr_debug("%s CSR RESET PADDR base %pa csr offset 0x%08X mask 0x%08X value 0x%08X\n",
      ^~~~~~~~

vim +489 drivers/clk/clk-xgene.c

308964ca Loc Ho       2013-06-26  473  		data = xgene_clk_read(pclk->param.csr_reg +
308964ca Loc Ho       2013-06-26  474  					pclk->param.reg_clk_offset);
308964ca Loc Ho       2013-06-26  475  		data |= pclk->param.reg_clk_mask;
308964ca Loc Ho       2013-06-26  476  		xgene_clk_write(data, pclk->param.csr_reg +
308964ca Loc Ho       2013-06-26  477  					pclk->param.reg_clk_offset);
1ee1b519 Laura Abbott 2016-10-27  478  		pr_debug("%s clk offset 0x%08X mask 0x%08X value 0x%08X\n",
1ee1b519 Laura Abbott 2016-10-27  479  			clk_hw_get_name(hw),
308964ca Loc Ho       2013-06-26  480  			pclk->param.reg_clk_offset, pclk->param.reg_clk_mask,
308964ca Loc Ho       2013-06-26  481  			data);
308964ca Loc Ho       2013-06-26  482  
308964ca Loc Ho       2013-06-26  483  		/* Second enable the CSR */
308964ca Loc Ho       2013-06-26  484  		data = xgene_clk_read(pclk->param.csr_reg +
308964ca Loc Ho       2013-06-26  485  					pclk->param.reg_csr_offset);
308964ca Loc Ho       2013-06-26  486  		data &= ~pclk->param.reg_csr_mask;
308964ca Loc Ho       2013-06-26  487  		xgene_clk_write(data, pclk->param.csr_reg +
308964ca Loc Ho       2013-06-26  488  					pclk->param.reg_csr_offset);
6ae5fd38 Stephen Boyd 2015-05-01 @489  		pr_debug("%s CSR RESET PADDR base %pa csr offset 0x%08X mask 0x%08X value 0x%08X\n",
1ee1b519 Laura Abbott 2016-10-27  490  			clk_hw_get_name(hw),
308964ca Loc Ho       2013-06-26  491  			pclk->param.reg_csr_offset, pclk->param.reg_csr_mask,
308964ca Loc Ho       2013-06-26  492  			data);
308964ca Loc Ho       2013-06-26  493  	}
308964ca Loc Ho       2013-06-26  494  
308964ca Loc Ho       2013-06-26  495  	if (pclk->lock)
308964ca Loc Ho       2013-06-26  496  		spin_unlock_irqrestore(pclk->lock, flags);
308964ca Loc Ho       2013-06-26  497  

:::::: The code at line 489 was first introduced by commit
:::::: 6ae5fd381251993a650a7fad51bd9318c19a6c80 clk: xgene: Silence sparse warnings

:::::: TO: Stephen Boyd <sboyd@codeaurora.org>
:::::: CC: Stephen Boyd <sboyd@codeaurora.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 56821 bytes --]

      parent reply	other threads:[~2016-10-28  0:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-27 23:21 [PATCH] clk: xgene: Don't call __pa on ioremaped address Laura Abbott
2016-10-27 23:24 ` Laura Abbott
2016-10-27 23:33   ` Stephen Boyd
2016-10-28  4:57     ` Loc Ho
2016-10-28  0:33 ` kbuild test robot [this message]

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=201610280856.KyKGCThE%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=labbott@redhat.com \
    --cc=lho@apm.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@codeaurora.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