Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935033Ab1ETANM (ORCPT ); Thu, 19 May 2011 20:13:12 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:56162 "EHLO out2.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935021Ab1ETAMX (ORCPT ); Thu, 19 May 2011 20:12:23 -0400 X-Sasl-enc: zrMmjTqYdV1hfjqYJfgeVsaVOdMJVzcHETVYxuo9KvRe 1305850342 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Anton Blanchard , Greg Kroah-Hartman Subject: [PATCH 42/44] drivers/base/memory.c: fix warning due to "memory hotplug: Speed up add/remove when blocks are larger than PAGES_PER_SECTION" Date: Thu, 19 May 2011 17:11:00 -0700 Message-Id: <1305850262-9575-42-git-send-email-gregkh@suse.de> X-Mailer: git-send-email 1.7.4.2 In-Reply-To: <1305850262-9575-1-git-send-email-gregkh@suse.de> References: <20110520000821.GA9367@kroah.com> <1305850262-9575-1-git-send-email-gregkh@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1114 Lines: 35 From: Andrew Morton drivers/base/memory.c: In function 'memory_block_change_state': drivers/base/memory.c:281: warning: unused variable 'i' less beer, more testing Cc: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- drivers/base/memory.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/base/memory.c b/drivers/base/memory.c index c4c443d..0a134a4 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c @@ -278,7 +278,7 @@ memory_block_action(unsigned long phys_index, unsigned long action) static int memory_block_change_state(struct memory_block *mem, unsigned long to_state, unsigned long from_state_req) { - int i, ret = 0; + int ret = 0; mutex_lock(&mem->state_mutex); -- 1.7.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/