Message ID | 1453813753-32128-1-git-send-email-ynorov@caviumnetworks.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1946761lbb; Tue, 26 Jan 2016 05:09:39 -0800 (PST) X-Received: by 10.98.0.150 with SMTP id 144mr33442959pfa.139.1453813779295; Tue, 26 Jan 2016 05:09:39 -0800 (PST) Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fm5si1993239pab.89.2016.01.26.05.09.38; Tue, 26 Jan 2016 05:09:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965600AbcAZNJh (ORCPT <rfc822;bjorn.andersson@linaro.org> + 30 others); Tue, 26 Jan 2016 08:09:37 -0500 Received: from mail-bl2on0057.outbound.protection.outlook.com ([65.55.169.57]:17550 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965286AbcAZNJc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 26 Jan 2016 08:09:32 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (95.143.213.121) by BY2PR07MB615.namprd07.prod.outlook.com (10.141.222.150) with Microsoft SMTP Server (TLS) id 15.1.365.19; Tue, 26 Jan 2016 13:09:29 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: <s.hauer@pengutronix.de>, <broonie@kernel.org> CC: <lgirdwood@gmail.com>, <linux-kernel@vger.kernel.org>, Yury Norov <ynorov@caviumnetworks.com> Subject: [PATCH] drivers: regulator: core: fix 'unused' warning Date: Tue, 26 Jan 2016 16:09:13 +0300 Message-ID: <1453813753-32128-1-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: VI1PR07CA0088.eurprd07.prod.outlook.com (25.165.229.142) To BY2PR07MB615.namprd07.prod.outlook.com (10.141.222.150) X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB615; 2:PJPli0syOqrnwsbv1e1JIosWRSM+pSdvvp6WUZAGkzGMaX2HeUEaK/N+LcDKpoKRqL+zLnqiigDxNptZ5rWQOb8kMTYNwjVoQKI6ZQ0efgzQBPFz14barIsDfCFT4COHTnkuoEPk5dXXc56ZrWRgDw==; 3:RozPBGG9leMA9bNZWLqEYCEon+bYZrBnmyr7OPns+Rh0F22Xi+nKHDQpTwRJoLDSLaRhrv7RpRF/F7kB9NU55fDhJ4sUsGoX04rAe0XFTuuTs4KsaXW2CefY9kHoV9DW; 25:5wekVmpXsZR3HkbIJuBuGrYflY+dRlhvrw3NuVBR2Auusbt+q64XI2Q8b8qwrMWmZutoEgMnXMS4H9S5MLn2HkJ36CZbWGHzd2Qi0h9EwbBpOUbvSQ/MAJ+Ex3OsWH2GFloKsNPVRHfQTmISdh3C0gHjkxCVka4vTai0cyvQDtDSFGo7m+9ceQLTl1Iq5Zv8NwQMVXKm5sUxau99ZWFKI+M5FzrCOrK/wsAkRYdqpg3Z6RjmYFih+9sseZsep26z X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB615; X-MS-Office365-Filtering-Correlation-Id: e5b2f9d8-8a04-41f2-3614-08d32651ed1f X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB615; 20:rvbKlsmtI8s+2w/pCj1snKGIDJhvwHBi28Qox5NVyNJOmxCqUT2bVxUrpyWZ/smTQO6WUwDIUX7Zx51Y2jUwFfgIjaw7g4fy177bAeWB8TF0pxJn8VHgnWN97z4U+AVpz68SCKMJRkEkjeY62NEt4+0zNtwsT3cSVmW3J8rUAinEPrjPsElZVYAmk8SexByu2aUltXr20mWSmOWTT6dKQJOYst7muVUrziREts6VgRa5BxYrk6NWGEPPhZQkdie+81qWTJtUpRd3eVXeEmMXTImYcMAopSCsHvBcGepa+7Snp57WVgU2WyhUqGvDH8aB19zEW7Rip9a4AHH+MyVVWOR6be3gtMtafQRZONhn1IRzeMhpeUAzMKoedznXaKn4+uqapZcKhTI0YGCnq0ViOe7TUc/qhC/YDBvNS7PKqRIU3UlZF1FeSJOzfDq5x7gAlaVW543kANb3qe6otBnoX/RY6P0qo8ZPBbWlVDDGj8xlYt78uF26bWd+t+LhwDY6V4HQz1J4+03SXTjfbFxhgLqsb47s3lNPILyuxlp71h3PH/mj07YCT7TwkDJGdmU86jd1xbeMY40rRMYI6b5hjmSybxst/XolSUBeFLAZNVU= X-Microsoft-Antispam-PRVS: <BY2PR07MB615BCB1235A1F80A236BE96EED80@BY2PR07MB615.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046); SRVR:BY2PR07MB615; BCL:0; PCL:0; RULEID:; SRVR:BY2PR07MB615; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB615; 4:G2B99tPqcblRq61eKL/1oQ6WzpZEVxdXDi+4cSX/26RY5MRhTRz0OHQgah++17qa61dPbCLIgN3b2mXzw+toPoaflDnKo4WNge/j99ABT5hwi47sH+1a5uEa9cWlZsSzLSpiBgdi2LVmH9O92WIqBe/nstZlFNkw/+MDLEOo52DczLRARyYpqW4TFJPf1R5umYAEwIYquGIbCg5ZhUlgptm6ZHOXaKgjjLw30ySge/740FSnaIFkS7juh5A1sOImuYycQU+QqTw/HGGz/5NwvdLRFeOlb2T0KdvQjiCXmQPDh98VvS8eF8Mq8YvotxKkTqIPJyad1AwR7X7Q/Fq77I+Xr4fVHsJoswtJMdcaSTozpxfIQtiSgLz/kz2xOsCPwkQL3plUAUUv0rbzN0wouaNNi0xGBNo2GO/jqsfvszQ= X-Forefront-PRVS: 08331F819E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(189002)(199003)(5001960100002)(4001430100002)(3846002)(77096005)(1096002)(229853001)(107886002)(2870700001)(36756003)(106356001)(50986999)(5008740100001)(101416001)(105586002)(586003)(19580395003)(5001770100001)(81156007)(6116002)(47776003)(97736004)(189998001)(66066001)(50466002)(2906002)(19580405001)(122386002)(76506005)(4326007)(87976001)(5820100001)(50226001)(5004730100002)(42186005)(23676002)(40100003)(92566002)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB615; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BBY2PR07MB615=3B23=3AcNhU6?= =?utf-8?q?r8lq5VT1wc6K2ekbA29W4MK0lwgGrmZ0oNwc8tMzcQpjmzvqVdVG1aoS?= =?utf-8?q?2fKSRIbzL/aczdB9+r95eUPiSRnBNIjisPBlXNeXwiZcMEYBeLgHKzGw?= =?utf-8?q?+sXeQcL/DiWN+6IlPl4WLGWBUg9ggUN79/yxTibY7/JkBA5r6fAPUOPI?= =?utf-8?q?JMQ1mW54r907COd1u4Nrx1tyJrQMSE2CS9ywtQbDL++1Xxlog6dYpyWL?= =?utf-8?q?8BfpR1S5an7CPvaM2Wo5wMscUNAir6p61OAtH79nVKf3vNx/CNCbdi6u?= =?utf-8?q?fi4QCNhvvsbXz9SoEIFPFWiBB3IjaQ7PjY52uDFQ8s/qcO8jZSM/y+5y?= =?utf-8?q?dkDQnBa/VTSET4QCCQU3vXbnVhRTUJimlHXVNxHu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kzBHnAD5NO90PD540rV2elg==; 24:99sMI49n9TKlLWFMi6ci2pfUlVVdtWy+l96vXpbS3uTEFFqtLxcfZvFCk48+1DfNf5S6ekR9Elte3dF4nRDLWMV0YlvvtHmcNJ3gIW/eSPs= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2016 13:09:29.6980 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB615 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 73b7683..2453bce 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -139,7 +139,7 @@ static bool have_full_constraints(void) static void regulator_lock_supply(struct regulator_dev *rdev) { struct regulator *supply; - int i = 0; + int __maybe_unused i = 0; while (1) { mutex_lock_nested(&rdev->mutex, i++);
Patch 9f01cd4a91 (regulator: core: introduce function to lock regulators and its supplies) introduces function regulator_lock_supply(). On my kernel it causes compile-time error: drivers/regulator/core.c: In function ‘regulator_lock_supply’: drivers/regulator/core.c:142:6: warning: unused variable ‘i’ [-Wunused-variable] int i = 0; Please pull this fix. Signed-off-by: Yury Norov <ynorov@caviumnetworks.com> --- drivers/regulator/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.5.0