From patchwork Fri Aug 10 15:29:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 10562849 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 81438174A for ; Fri, 10 Aug 2018 15:29:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7013D2BCD2 for ; Fri, 10 Aug 2018 15:29:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 648132BCD9; Fri, 10 Aug 2018 15:29:49 +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 38CEB2BCD2 for ; Fri, 10 Aug 2018 15:29:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 947916B0005; Fri, 10 Aug 2018 11:29:39 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 75AC06B000D; Fri, 10 Aug 2018 11:29:39 -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 4C2486B0005; Fri, 10 Aug 2018 11:29:39 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id C27046B0008 for ; Fri, 10 Aug 2018 11:29:38 -0400 (EDT) Received: by mail-wm0-f71.google.com with SMTP id l4-v6so1433478wme.7 for ; Fri, 10 Aug 2018 08:29:38 -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=u8/RQnqvKaB52sUTxj99rxlBwtcgMKNF8ab+i1Lq2fw=; b=crY94YToYw0xzbuEG36Db4NJYX6MoPBlkLebg/GmzF76ZkTuau3WhrmGi7FPjaPh8q pbqQYmMRKK+qK0Ei7/pmjQqIQE5hGyP5ZVHDOpVCj2f2nlw3Txpc+7qiD1+XICxWd0rt M50HiwEy1oK6eGEYfSAWbrMS6eTREZdfMbbGUpLGCisgMJVWEXZbj7KnKcWXJj5s5kOh B7cn5hpYOQVqV0QT6cOp1gJO+P51ozRQaVvElfMF1OIMrLfAuzWlZQzlFQBTeZTVq5iW RMp5cSz0pJQzlKGDu521WTVRKkka3BjeoUDUsOWyWkg8OfBe34bukKbFtjSd5j5Q7POx ACVg== 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: AOUpUlHb3JOjR7aPZFYIQyYzSOoDKjTHQL8geb/O0RJ568nEUnbMYYmd HGa56baPjJjzr3khDOdJuc4ErsqoH9OcxjI5GDuIbSilygt6gPsgRBBo4DcZvxgVjvcOGnLAsZ9 QqyHaBC6G8NdO1ISGehUQpdA7inVrxVwdf4YT/EOSZsVu0DGYbifP848qYInuj38b1Sg+LY1BC7 zR8AS0aqRUXGgNWZNhKwPdPwhdKdUthDr1mNSX/7wKVkL+9rKZdsIY6YQt2pzbKtNWEm/7itRCY yI73FNQsxl0mxwQ7Y9leAxu2QlGN+Bx6h1l1a0Cdzundv4BEzyIl0Aat36oiJQ7LxeTNNd9Zaij o22meo4yE6Jo4T1gh89q+gmZX/BrFKeqS4fLKfznGnZndCT7a5FRmwELmKTBLxtoT9IEKDQg1A= = X-Received: by 2002:adf:ef03:: with SMTP id e3-v6mr4341994wro.182.1533914978183; Fri, 10 Aug 2018 08:29:38 -0700 (PDT) X-Received: by 2002:adf:ef03:: with SMTP id e3-v6mr4341958wro.182.1533914977292; Fri, 10 Aug 2018 08:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533914977; cv=none; d=google.com; s=arc-20160816; b=g5OwtGWnUI1JPYVVpSbd5M/tchwcqH8BL6B7YFiGQc6KeFoIoFjZbQCVsFr+GHBRsk 9zY16fXxGSKJKZiDviqkduGIs0w2W3x8rpGn+yefMZdkBdqyfd08gvkJukZL2h0gBslc gvkJRb7c4biYB0WaT190TbW56Pwq8ESYTH2DnN6sMddlPZMAGgCKL1l/YaNXiHoRSKem Oy+Wby0x834JVigh090BRy4fUTSlKz0oQbIpEfKx+VrdS+J50t39p4mAFzYJhzckZIo6 VBbX3jQAISsdK+Q3a7gFZOlB6V6dxqcKUnAWmDkfG/49AOROUb6FGiGfYWu6ktTm0/X3 KA9Q== 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=u8/RQnqvKaB52sUTxj99rxlBwtcgMKNF8ab+i1Lq2fw=; b=seZvscoX8YdTv1OZ2O8Uw8JajjfY8ddSPWwlgB0HJeUCe4K9g/TddpNxAmU7SimSWi iBFkcTvzGz3z6bhSboJJ2VnArj0wY4vAR5hnbLKB5oVe8jFWKjH3Kjldq2XeQe4cPHJZ VJJeAu2IoorwYrhEur07gaG1GnxV6CzpHHw7a3VoFMl3ccg0w1xlYTcphV4ypB1kvtQ2 /L0yWg17G3xP9qK8lGej7hLVxoSqo6hVFowlPpjGxPFnVO816QdbC9A+eEByLv1Rovr2 mWZvMDSatWcobMSW5uIjZTqoWgRnsgVQspfcAvdHsVhxI2mZCNbfrkc15VuslZS1eMkk PfTQ== 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 77-v6sor417636wmt.89.2018.08.10.08.29.37 for (Google Transport Security); Fri, 10 Aug 2018 08:29:37 -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+uWPw8xquqFk2mp3igFhB3kf6iBPtizGpKmD/cr0FGjeXNESOrUMg8g1YikVGecqhpmi8es9gZXQ== X-Received: by 2002:a1c:a989:: with SMTP id s131-v6mr2000324wme.136.1533914975948; Fri, 10 Aug 2018 08:29:35 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id r12-v6sm1581899wmh.0.2018.08.10.08.29.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 08:29:35 -0700 (PDT) Received: from d104.suse.de (charybdis-ext.suse.de [195.135.221.2]) by techadventures.net (Postfix) with ESMTPA id 340B612481D; Fri, 10 Aug 2018 17:29:34 +0200 (CEST) From: osalvador@techadventures.net 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, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oscar Salvador Subject: [PATCH 1/3] mm/memory_hotplug: Drop unused args from remove_memory_section Date: Fri, 10 Aug 2018 17:29:29 +0200 Message-Id: <20180810152931.23004-2-osalvador@techadventures.net> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180810152931.23004-1-osalvador@techadventures.net> References: <20180810152931.23004-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 --- 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 */