lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201709190516.ryWjCYJq%fengguang.wu@intel.com>
Date:   Tue, 19 Sep 2017 05:57:15 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Tirupathi Reddy <tirupath@...eaurora.org>
Cc:     kbuild-all@...org, sboyd@...eaurora.org, mturquette@...libre.com,
        robh+dt@...nel.org, mark.rutland@....com, andy.gross@...aro.org,
        david.brown@...aro.org, linux-clk@...r.kernel.org,
        devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-arm-msm@...r.kernel.org, linux-soc@...r.kernel.org,
        Tirupathi Reddy <tirupath@...eaurora.org>
Subject: Re: [PATCH V4] clk: qcom: Add spmi_pmic clock divider support

Hi Tirupathi,

[auto build test WARNING on clk/clk-next]
[also build test WARNING on v4.14-rc1 next-20170918]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Tirupathi-Reddy/clk-qcom-Add-spmi_pmic-clock-divider-support/20170919-043600
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/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from include/linux/clk.h:16,
                    from drivers/clk/qcom/clk-spmi-pmic-div.c:14:
   drivers/clk/qcom/clk-spmi-pmic-div.c: In function 'spmi_pmic_div_clk_hw_get':
>> include/linux/kern_levels.h:4:18: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
    #define KERN_ERR KERN_SOH "3" /* error conditions */
                     ^~~~~~~~
   include/linux/printk.h:301:9: note: in expansion of macro 'KERN_ERR'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
            ^~~~~~~~
>> drivers/clk/qcom/clk-spmi-pmic-div.c:219:3: note: in expansion of macro 'pr_err'
      pr_err("%s: index value %u is invalid; allowed range: [%d, %d]\n",
      ^~~~~~

vim +/pr_err +219 drivers/clk/qcom/clk-spmi-pmic-div.c

   211	
   212	static struct clk_hw *spmi_pmic_div_clk_hw_get(struct of_phandle_args *clkspec,
   213					      void *data)
   214	{
   215		struct spmi_pmic_div_clk_cc *clk_cc = data;
   216		unsigned int idx = (clkspec->args[0] - SPMI_PMIC_CLKDIV_MIN_INDEX);
   217	
   218		if (idx < 0 || idx >= clk_cc->nclks) {
 > 219			pr_err("%s: index value %u is invalid; allowed range: [%d, %d]\n",
   220			       __func__, SPMI_PMIC_CLKDIV_MIN_INDEX, clk_cc->nclks);
   221			return ERR_PTR(-EINVAL);
   222		}
   223	
   224		return clk_cc->div_clks[idx];
   225	}
   226	

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

Download attachment ".config.gz" of type "application/gzip" (60647 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ