[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201509302240.9Pm4jp0Q%fengguang.wu@intel.com>
Date: Wed, 30 Sep 2015 22:21:01 +0800
From: kbuild test robot <lkp@...el.com>
To: Sascha Hauer <s.hauer@...gutronix.de>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>, kernel@...gutronix.de,
linux-arm-kernel@...ts.infradead.org,
Sascha Hauer <s.hauer@...gutronix.de>
Subject: Re: [PATCH 2/6] regulator: core: introduce function to lock
regulators and its supplies
Hi Sascha,
[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]
config: x86_64-randconfig-i0-201539 (attached as .config)
reproduce:
git checkout 70f6f03239f72ac3a34fad792af5200c613f4dbc
# 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_lock_supply':
>> drivers/regulator/core.c:141:6: warning: unused variable 'i' [-Wunused-variable]
int i = 0;
^
drivers/regulator/core.c: At top level:
drivers/regulator/core.c:138:13: warning: 'regulator_lock_supply' defined but not used [-Wunused-function]
static void regulator_lock_supply(struct regulator_dev *rdev)
^
drivers/regulator/core.c:158:13: warning: 'regulator_unlock_supply' defined but not used [-Wunused-function]
static void regulator_unlock_supply(struct regulator_dev *rdev)
^
vim +/i +141 drivers/regulator/core.c
125 else
126 return "";
127 }
128
129 static bool have_full_constraints(void)
130 {
131 return has_full_constraints || of_have_populated_dt();
132 }
133
134 /**
135 * regulator_lock_supply - lock a regulator and its supplies
136 * @rdev: regulator source
137 */
138 static void regulator_lock_supply(struct regulator_dev *rdev)
139 {
140 struct regulator *supply;
> 141 int i = 0;
142
143 while (1) {
144 mutex_lock_nested(&rdev->mutex, i++);
145 supply = rdev->supply;
146
147 if (!rdev->supply)
148 return;
149
---
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/octet-stream" (25033 bytes)
Powered by blists - more mailing lists