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] [day] [month] [year] [list]
Message-ID: <201703281258.Trc7L3Cb%fengguang.wu@intel.com>
Date:   Tue, 28 Mar 2017 12:20:42 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Matthias Kaehlcke <mka@...omium.org>
Cc:     kbuild-all@...org, Liam Girdwood <lgirdwood@...il.com>,
        Mark Brown <broonie@...nel.org>,
        Javier Martinez Canillas <javier@....samsung.com>,
        linux-kernel@...r.kernel.org,
        Douglas Anderson <dianders@...omium.org>,
        Brian Norris <briannorris@...omium.org>,
        Matthias Kaehlcke <mka@...omium.org>
Subject: Re: [PATCH v2] regulator: core: Limit propagation of parent voltage
 count and list

Hi Matthias,

[auto build test WARNING on regulator/for-next]
[also build test WARNING on v4.11-rc4 next-20170327]
[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/Matthias-Kaehlcke/regulator-core-Limit-propagation-of-parent-voltage-count-and-list/20170328-095816
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
config: x86_64-randconfig-s0-03281146 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers//regulator/core.c: In function 'regulator_count_voltages':
>> drivers//regulator/core.c:2543: warning: unused variable 'ops'

vim +/ops +2543 drivers//regulator/core.c

  2527	
  2528		return ret;
  2529	}
  2530	EXPORT_SYMBOL_GPL(regulator_is_enabled);
  2531	
  2532	/**
  2533	 * regulator_count_voltages - count regulator_list_voltage() selectors
  2534	 * @regulator: regulator source
  2535	 *
  2536	 * Returns number of selectors, or negative errno.  Selectors are
  2537	 * numbered starting at zero, and typically correspond to bitfields
  2538	 * in hardware registers.
  2539	 */
  2540	int regulator_count_voltages(struct regulator *regulator)
  2541	{
  2542		struct regulator_dev	*rdev = regulator->rdev;
> 2543		const struct regulator_ops *ops = rdev->desc->ops;
  2544	
  2545		if (rdev->desc->n_voltages)
  2546			return rdev->desc->n_voltages;
  2547	
  2548		if (!rdev->is_switch || !rdev->supply)
  2549			return -EINVAL;
  2550	
  2551		return regulator_count_voltages(rdev->supply);

---
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" (22079 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ