Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932683AbbLBPIR (ORCPT ); Wed, 2 Dec 2015 10:08:17 -0500 Received: from rs224.mailgun.us ([209.61.151.224]:43528 "EHLO rs224.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755946AbbLBPHQ (ORCPT ); Wed, 2 Dec 2015 10:07:16 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=variantweb.net; s=smtp; q=dns; h=Sender: From: To: Cc: Subject: Date: Message-Id: In-Reply-To: References; b=g//IDnPYvi+7H629a9cEOKPNe4uePvdS6XnwRsCWhKnz+X2Khbhx5E4Ad73TzMAkIcpaQu xO+Z/it5+cHmv0cAc0X4IjzQ1NsTB36khYa5IDurCpWMz5f4tdH23Ob1+h8X3rN4ut3CTHi3 dM1Lkbxc4L9RKnb6TGKUAKyapnzK0= X-Mailgun-Sid: WyJmNDFlMyIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgIjlkYjc2Il0= From: Seth Jennings To: Greg Kroah-Hartman Cc: Seth Jennings , Andrew Banman , Andrew Morton , Russ Anderson , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] drivers: memory: rename remove_memory_block() to remove_memory_section() Date: Wed, 2 Dec 2015 09:07:00 -0600 Message-Id: <1449068821-9870-2-git-send-email-sjennings@variantweb.net> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1449068821-9870-1-git-send-email-sjennings@variantweb.net> References: <1449068821-9870-1-git-send-email-sjennings@variantweb.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1204 Lines: 37 The function removes a section, not a block. Rename to reflect actual functionality. Signed-off-by: Seth Jennings --- drivers/base/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/memory.c b/drivers/base/memory.c index ca2ce02..dd30744 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c @@ -688,7 +688,7 @@ unregister_memory(struct memory_block *memory) device_unregister(&memory->dev); } -static int remove_memory_block(unsigned long node_id, +static int remove_memory_section(unsigned long node_id, struct mem_section *section, int phys_device) { struct memory_block *mem; @@ -712,7 +712,7 @@ int unregister_memory_section(struct mem_section *section) if (!present_section(section)) return -EINVAL; - return remove_memory_block(0, section, 0); + return remove_memory_section(0, section, 0); } #endif /* CONFIG_MEMORY_HOTREMOVE */ -- 2.5.0 -- 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/