From patchwork Wed Aug 15 14:42:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 10566669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 727BC1510 for ; Wed, 15 Aug 2018 14:42:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 616502A902 for ; Wed, 15 Aug 2018 14:42:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 557C92A905; Wed, 15 Aug 2018 14:42:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E36952A902 for ; Wed, 15 Aug 2018 14:42:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 384D46B000A; Wed, 15 Aug 2018 10:42:32 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 29B276B000D; Wed, 15 Aug 2018 10:42:32 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F152B6B000C; Wed, 15 Aug 2018 10:42:31 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by kanga.kvack.org (Postfix) with ESMTP id 9A1656B0008 for ; Wed, 15 Aug 2018 10:42:31 -0400 (EDT) Received: by mail-wr1-f71.google.com with SMTP id t10-v6so1009583wrs.17 for ; Wed, 15 Aug 2018 07:42:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=BdZLNw52aqmLAxMqJGxlH9ECMAhyOUNtYTzW93zUZJ4=; b=CD9aTpf2qBAZIUa2bvnIAoX73/X/HyQhy3o5YIpUJO8iuLcja1rvyB6K1oxTBZPghw 958pgQqvFBmhkU8M/RCVITa3HdcXSd9/fqFkgtY73mN8LrndF/kPs4ZDBJTvdO3T8pjC i7Z5xWK+2LjUX3cGCg+D8t2jGb75OqYdFHttwZxaeLxakQRrVZyW+pl+1nuridLSwejQ kN8zqlG4TuHEEg1jMjkduIRV/g6llweYjmm+JNiWQRkfOiJkzjUZS2bC69nH5eyL4Glp j9Qpt/lp7hIYp8gn7XNLcZsDxL65R3Uv9vzSaZRH1o3itS1Gqtv0gmEuqqfd43n8aeac exYg== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=osalvador.vilardaga@gmail.com X-Gm-Message-State: AOUpUlEZuETIahUa0BB+l5Cd5cUHzihuP8eSRfMgEbQFRXZS3Ipp9pRY 7wk91lOmCmH5JPkRscaNYvPVkFSaor9rMV6ZHR/0J0Bf6kT9ktiPl5YRe2Y3Z1KC4M3y/tlS09w zKchVIL5YaeGXU4AgTP97r+ajp21bJHydyJsfLu2gwp+fRpsUiQ9742I1nCXcV4/sA0BWBOPScw /TBG/E8kmSmp6NrojRXNJc6JiCyxNdIUjrVOqOR3ubnKbHawZnUn8jLBwCfgSDte/IxdtIgXJf3 pydqU0ZyKoQyd1mCbGRQA8tiMNck+g05W+sDu83XlCcWbGkFezvndLeZd8+gKl1k4kTIM2oq4B+ hYKHE15laZAxJavvnGO7TCsFappZrABtnieqpvDjgu5EJGze8+R2Kq7l9Bi8dKz8bY5okrqyDw= = X-Received: by 2002:a1c:3:: with SMTP id 3-v6mr12545920wma.99.1534344151157; Wed, 15 Aug 2018 07:42:31 -0700 (PDT) X-Received: by 2002:a1c:3:: with SMTP id 3-v6mr12545895wma.99.1534344150298; Wed, 15 Aug 2018 07:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534344150; cv=none; d=google.com; s=arc-20160816; b=VMkkjiiJtc1uoSU7b8EKJQwjQ7H/xUh1/U2gysdn+vOIK0lI7Deo1DNohhM0iUuWpY 3nthGgNTFvUsK5w5YA8beldmKsBDXsv+xMwr8Ex7ArXIXO+ybGKgJy7Rswkuk3BTlmis gbuA2b0qFLexA2KTM/hHrirCS+9A/gG5arlHHxHvuxmQPkicTwb7q4Yb/dikC3coGE2o gJEaAj0FHdBOD9paPL22du2cT1dyX37bLe95P/wQXDR02TAelKQ8vPSFYBxIv9kDepau q6OKMqNFm885+PeiSWR6c3weHHJq/ZE8bMJx4I/hKmjSW6qf6F58wbwCDr8y3dnIiXAM GsoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BdZLNw52aqmLAxMqJGxlH9ECMAhyOUNtYTzW93zUZJ4=; b=XiWVznlUutH0Lgkh+iCcg5sxYNmg1UAEwg43/DSRx8cvGLGjk8dEKrRx5HX1W/q8Of EhJeJ7DnqmNP/1AqYrQW4ZEj0xPnP8JRJbdq6mBVAzlTio3pIJeuAwLel76VQwpTWFAo E3lN0jgal3QhoEB6+aLeXX13hk/vuNauXRyeB0oFje/uz+4uP/AozrbUoxcNWAGuQ1eJ gRyFHbSX33BPeMD0DkUQzeNvwo0APxP/YGWspvIBOJmZatzRSvRrNqqBn/kpsIPePfiO 2OEYT4XhC0ugcTHvCK1dTkptruYI33WR223vEw9sTbSWpr6yqibWzTiAnBXNegmGvF3O PINw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=osalvador.vilardaga@gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id m193-v6sor440117wma.79.2018.08.15.07.42.30 for (Google Transport Security); Wed, 15 Aug 2018 07:42:30 -0700 (PDT) Received-SPF: pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; spf=pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=osalvador.vilardaga@gmail.com X-Google-Smtp-Source: AA+uWPx9ixWGPbeEHyin7m7JcOEBDGAlima7k0RWmR3Rh+WlJhrZpRgeGVDdayuKkTnw1auJGx6RFQ== X-Received: by 2002:a1c:b609:: with SMTP id g9-v6mr12788596wmf.73.1534344150025; Wed, 15 Aug 2018 07:42:30 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id h7-v6sm22889162wrs.8.2018.08.15.07.42.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Aug 2018 07:42:29 -0700 (PDT) Received: from d104.suse.de (charybdis-ext.suse.de [195.135.221.2]) by techadventures.net (Postfix) with ESMTPA id E90C112489E; Wed, 15 Aug 2018 16:42:27 +0200 (CEST) From: Oscar Salvador To: akpm@linux-foundation.org Cc: mhocko@suse.com, vbabka@suse.cz, dan.j.williams@intel.com, yasu.isimatu@gmail.com, jonathan.cameron@huawei.com, david@redhat.com, Pavel.Tatashin@microsoft.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oscar Salvador Subject: [PATCH v3 1/4] mm/memory-hotplug: Drop unused args from remove_memory_section Date: Wed, 15 Aug 2018 16:42:16 +0200 Message-Id: <20180815144219.6014-2-osalvador@techadventures.net> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180815144219.6014-1-osalvador@techadventures.net> References: <20180815144219.6014-1-osalvador@techadventures.net> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: Oscar Salvador unregister_memory_section() calls remove_memory_section() with three arguments: * node_id * section * phys_device Neither node_id nor phys_device are used. Let us drop them from the function. Signed-off-by: Oscar Salvador Reviewed-by: David Hildenbrand Reviewed-by: Andrew Morton Reviewed-by: Pavel Tatashin --- drivers/base/memory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/base/memory.c b/drivers/base/memory.c index c8a1cb0b6136..2c622a9a7490 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c @@ -752,8 +752,7 @@ unregister_memory(struct memory_block *memory) device_unregister(&memory->dev); } -static int remove_memory_section(unsigned long node_id, - struct mem_section *section, int phys_device) +static int remove_memory_section(struct mem_section *section) { struct memory_block *mem; @@ -785,7 +784,7 @@ int unregister_memory_section(struct mem_section *section) if (!present_section(section)) return -EINVAL; - return remove_memory_section(0, section, 0); + return remove_memory_section(section); } #endif /* CONFIG_MEMORY_HOTREMOVE */