Message ID | 20180817090017.17610-2-osalvador@techadventures.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 70BC71575 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 17 Aug 2018 09:00:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6004F2B039 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 17 Aug 2018 09:00:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 540892B042; Fri, 17 Aug 2018 09:00:27 +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 E18272B039 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 17 Aug 2018 09:00:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 75F7D6B0767; Fri, 17 Aug 2018 05:00:25 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6E64A6B0750; Fri, 17 Aug 2018 05:00:25 -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 5FC766B0766; Fri, 17 Aug 2018 05:00:25 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by kanga.kvack.org (Postfix) with ESMTP id F25A56B0722 for <linux-mm@kvack.org>; Fri, 17 Aug 2018 05:00:24 -0400 (EDT) Received: by mail-wr1-f69.google.com with SMTP id z16-v6so5143214wrs.22 for <linux-mm@kvack.org>; Fri, 17 Aug 2018 02:00:24 -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=upiL4gOH82Gjjlk/+gr255iw16SUVePVGsiKWqYTAYM=; b=thTCqdTHRKqZ3Xapl3PvysmGfBGyHF5rt2YmbNLq5yP8/N4aoW7hbEbYgSgLLB9ktQ mN50aENBr+6C6n0efHdMUDG7r18NWqzxnWbEwxvs0qpP8gDRSwK+vL4NsKEkMNwPI2HZ cW2KqAuxuZUPxJ9gCuwyW00jWs9oje+LnmEu9yao1ksZ/uJgxMrOQNNda8xT9ZOmVQ0e /2Aa6Lb4xe80kp1IagIQZlsgByTq8LmV5lx9YqxfSZezS8A7/cTn5yXGOdoHNXQRhloZ Uwynlmr4YSfnPqEOgyA5YGtGXwK5cJBgHyvTtFEn2ssOU4p7Lhw++pL52dRMoUdxZwZf 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: AOUpUlEIEXwpq7Azz9bHekw+NFgipZYd4aVTbmgsJf7SBDA7oncj0eGg faLSSQVr2o6fNjD3j3Zn59aFfOpKwUC5s9czkrptwu7S4iLXewW1BlcaAVrjKGZbO1Cv7utzirb XFtbJNPo7nNKU367aLO7T22pGGHHJJOTWfMeU2+7c8/8cYbn+yRaV2sAjZLmrPKoNkD2IRzHs/0 hZ1fixcCBK1MY4uJMVGAuNERfbN5yP5homzD3lEIWf+UgUrlVtfff5f0GUlo0uRGF1gOFuOFNi+ k2VI3fLjKJj6kK2zY/b/r6q72FK5R4FyWWd8LTbRB9G62hsIkkz85NujCc8Rle+U6m9YFwiE3oq 8ESgzb98JYc+mZO2ihEqExqZO9IX9jYY1WH3SMOgT0oOxD/owjW00ANbcVcYY+9HyftvsfUXow= = X-Received: by 2002:adf:e3c5:: with SMTP id k5-v6mr20791876wrm.94.1534496424534; Fri, 17 Aug 2018 02:00:24 -0700 (PDT) X-Received: by 2002:adf:e3c5:: with SMTP id k5-v6mr20791829wrm.94.1534496423327; Fri, 17 Aug 2018 02:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534496423; cv=none; d=google.com; s=arc-20160816; b=pcJJatnD71xBGMUVTXQ4ExiaSiGm97FVtz5x17/7UQVZfCRTPv6b7sjuXDkYrpnnzj jYZuaEOAqhLeRs7Lh9SYiCthlNWDmIT57xL8z+ox5gdZLohPKjDbYTLJ3l3hOsNlrLg+ 5aI+w127m/UmtnZcAuBiF1x5vFfFAz4GCre6P554KVRDAB6iOzAssQFqLziMBfyqvGe4 vZhvA6/iSVTUxipEtK/dFNRuzD2uroPa6zUW0RzXgrGmXhPTUbePneLhESX4mxHde9J5 2XENRFp5u1AmgR3RhX7SxBHQdvqLG+oejcTs+nWGqGALmh06+5hPzFR9kTeZ5/P+tbou xmCw== 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=upiL4gOH82Gjjlk/+gr255iw16SUVePVGsiKWqYTAYM=; b=e9G8BEU7G/UfZDJEKTj5Gp5F0gCfA/DQLGCUDnwTrCoX1xEPOBkFQnEliTugmMqG/i dOotOeS4DD5kBH2Dq0S4HiDmFdCcMMIppQNkqYOopAN0qcDt54c/PlhGafu6I/QTybJe wPMP3ZXeQQ24K67EzI3s1BfeA5fIom19lvq2gPH7E7ao0OPS/vqwrywDpgbIY2pYk0RL +6434ilwmPaHgX9XXKn9P1brYa1FOpQnNX0VMmsZ60IZ5qGpqCcaF4F8ToqetijoJtDG uIRMN6xb8VZip6GeqtDyU8GQsuz0XFTbsJIgslVXdMWzTNmijLsX/fg/iW/l7aj6mcu7 slww== 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 x8-v6sor875564wme.29.2018.08.17.02.00.23 for <linux-mm@kvack.org> (Google Transport Security); Fri, 17 Aug 2018 02:00:23 -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+uWPxd4nwZq9IopgDnsyqrIM7yxwFr1StDyiY9YZHh2vQ+Ngsn1PhRbOX/fYKtoQg7Snjw6pf/Hw== 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 <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, Pavel.Tatashin@microsoft.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oscar Salvador <osalvador@suse.de> 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> 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Refactoring for remove_memory_section/unregister_mem_sect_under_nodes
|
expand
|
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 */