Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp524510imm; Fri, 17 Aug 2018 02:01:57 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwviJfHDRFw57nc6+3jRGD8z5vkO25g9CCJLXUzj2QDr/squY9IdrdbC4nwqXvB8nRrWiip X-Received: by 2002:a62:768f:: with SMTP id r137-v6mr35871363pfc.250.1534496517488; Fri, 17 Aug 2018 02:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534496517; cv=none; d=google.com; s=arc-20160816; b=zrCK2ZL1BYt3L+k4u/u7zmPDPk3I//enhwenEBxRQBQRxcnMDGg4b4c0grv3ISvJgb h+Qi4Lw7ByyrGdTgddvNV60i+IhtVrLbBXH55qjdq8TgzSarSJl73BFHx0/KqtfD0bb+ JJdr2v2nnHbD9OVv9U1krVE2d9p+ILFF7W+euQpORyGF4M0bJSSeDmS8bL5Zc347FunX D2M9XvBiBjfLKLdYXnn/C5GY8D3vx5UQH581eUHQ3oo3pZSbvo6PVmFyk/CROefPJp7L Q6APf6z49/pYOm8SF/ROsJxr9VF6q/r6vXkUH/0pIcAXfD7nSCfbd5q6M7wnqgkox4xp 0VCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=upiL4gOH82Gjjlk/+gr255iw16SUVePVGsiKWqYTAYM=; b=FBcAJbwYYKDLzpTIemfmGVLb1vhO4eg3LFJMNzjvrCebpi+ur7HlNO0c6MRNmFbkD2 6lbziD7ImuWw0M7xwDdurAT4edoN55a14kSVTeZwK9h0ql65ynfS4siWtb9+3vv3ksvL d/fS4VLaiSRB0m8TCNisM59hieV2oFh985gEoA3ktXi67pWFPxpSUrM7HuCh09BpU0uR QN3GWcoDx4EAIbL1wApvZcKF2vn/j4VjQRsEkfnErwf+mE06yePBh3OPcD8MIRtL2r7Y 32T2RdFmOUpVvUXkmnc5Qwvbgc7DaNEuL1AMay5xCxStUrgmfVgkTEyORvNp9ho/7fYF gXYA== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8-v6si1731613ple.171.2018.08.17.02.01.42; Fri, 17 Aug 2018 02:01:57 -0700 (PDT) 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 S1726644AbeHQMDB (ORCPT + 99 others); Fri, 17 Aug 2018 08:03:01 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:52224 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbeHQMC7 (ORCPT ); Fri, 17 Aug 2018 08:02:59 -0400 Received: by mail-wm0-f68.google.com with SMTP id o11-v6so6853810wmh.2 for ; Fri, 17 Aug 2018 02:00:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=upiL4gOH82Gjjlk/+gr255iw16SUVePVGsiKWqYTAYM=; b=C9hkLcbzymB4bVQwcxpzWL2Z86BdIwQJhVm5Rl8GHkI1GJUiAS6xrB5x6o03UuGIjk ze3LV2z9U1K9kLmDOGeJVKh0Xikxd5iRvtEBg33jJsNag0HxQ8c4O5EJ7dzONDVPIJcX wuqoHViWpuzUw1o50NW7TsvsNq62EA+RpBLlsfx4kqiQBj8elfZAAEBUFetS+tRbK7X8 A51AFfNGdmbRV5jIbVGmZ8dhp2o2gLwIlzG6DU30EytPLBeT8r5lp6YXlEzD+rUm2S7+ iDghJt1oTIcLI0y5EMp/jfHCxT+VClYNAFyiF5Ji22JTiXPstzODiduJx0wFsMT0odew zZlA== X-Gm-Message-State: AOUpUlFdnkS5a7KOY+oJPQEfmLKYTtbUEwglebE/DqHv91xVgMyW1Omx XA9XdG7rRxmKpd40+bwmmqE= X-Received: by 2002:a1c:e54:: with SMTP id 81-v6mr19334799wmo.84.1534496423040; Fri, 17 Aug 2018 02:00:23 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id l10-v6sm1433555wre.0.2018.08.17.02.00.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Aug 2018 02:00:22 -0700 (PDT) Received: from d104.suse.de (nat.nue.novell.com [195.135.221.2]) by techadventures.net (Postfix) with ESMTPA id D8A9B124935; Fri, 17 Aug 2018 11:00:20 +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 v4 1/4] mm/memory-hotplug: Drop unused args from remove_memory_section Date: Fri, 17 Aug 2018 11:00:14 +0200 Message-Id: <20180817090017.17610-2-osalvador@techadventures.net> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180817090017.17610-1-osalvador@techadventures.net> References: <20180817090017.17610-1-osalvador@techadventures.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 */ -- 2.13.6