From patchwork Tue Dec 4 05:14:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Adeodato_Sim=C3=B3?= X-Patchwork-Id: 10711113 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 2A740109C for ; Tue, 4 Dec 2018 05:14:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19ACE2AB15 for ; Tue, 4 Dec 2018 05:14:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A03A2AF7E; Tue, 4 Dec 2018 05:14: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=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 8A7912AB15 for ; Tue, 4 Dec 2018 05:14:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5115D6B6CFA; Tue, 4 Dec 2018 00:14:30 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 4DBFE6B6CFC; Tue, 4 Dec 2018 00:14:30 -0500 (EST) 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 244A86B6CFA; Tue, 4 Dec 2018 00:14:30 -0500 (EST) 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 C41746B6CFB for ; Tue, 4 Dec 2018 00:14:29 -0500 (EST) Received: by mail-wr1-f69.google.com with SMTP id d11so12376345wrq.18 for ; Mon, 03 Dec 2018 21:14:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:mime-version:content-transfer-encoding; bh=6O8ICnmIA1bl8F6MAMk9WLqLLO7z6c3SPydL88qudZM=; b=JdQJszXwuQgUlTtq/8f+c4PgSkmgMk2l93jwDG71p+Cl9xlcnxdQeZlG0rXY0wMonN jwWt3hDhatTlGsuHbD/XPdAdH6vB6/IwssRwMu1cxZ4xgaNByc9MnrvnTOTSeUgPrYiX SGU7cs28DXVE7Dip07g97X7U/MSAlBejJO7m/cM+FFt7LqQWG5V53/uBjb1URibk3DZq 6isPed5IWV74F4wy1F8Ye8OQz3axlA3VLHtZt5YpZZOQz7GVULKpCvje/wDpW0i6NxZs 4Rtgg9ig2cryknGZ+BNmHcbDnHhH9A9AVoTOU01Xh71LF7SO5p74I6+Ghypp/KMGBfad if/g== X-Gm-Message-State: AA+aEWZxpZK0w7dWEVIX4Q2r19yvV3WmjJlwQkuYMHJsooU4nbUiXj5g Ztnjj+MnnWr/lVPS9C6Butn8M/IR11SSSSBBg2tPkpRoaahNoZQ6kpdIy3UKWt3MImlvyY2ZDfA DgjcEuKR5Z+tWdib/40cDh2AK2NLYAIBv+kxIot6sz9WSQbgSqh47WQlWC3k6vQmWwQ== X-Received: by 2002:adf:edc1:: with SMTP id v1mr17008576wro.105.1543900469261; Mon, 03 Dec 2018 21:14:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/V4O7osLZZtThLMxlRq2f1MvXEqdCFi3ita7tNg5GqCN0ffB4rQpSmoyGfQ58ouy4K81ogF X-Received: by 2002:adf:edc1:: with SMTP id v1mr17008540wro.105.1543900467978; Mon, 03 Dec 2018 21:14:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543900467; cv=none; d=google.com; s=arc-20160816; b=lBWhi5Zh7CNYGQyQSbP7iEWx2h7IOwysejNm33xN0xgsqmijaknz3mT5uPMBPKxJH0 STFdPZFkEAVGtD62mHetCkik1s3kYdyGDDKihvpF0Kjid4OXrcAsYX0m0OMSutenLAKX XHFN/VO7Ym0G2NF8DctAixv+Wdijiq1Gmz2dPXk1olz0z3EMC6nmAWPxSsts+1Zk7K7q xTYu/zt5he9/zBVMzS8tE6vyj7iyZ6I7f9z03SLkvYq2l4J5F9qws+AZZncep0jJXhGc sZ5OScWOGrUV5ZSXGU+Goz/cYMbt6KUEGRaX65FwpENSAuOg10883v0Zjfx89qQw99k9 yIQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=6O8ICnmIA1bl8F6MAMk9WLqLLO7z6c3SPydL88qudZM=; b=hjgnSyBrgoxaPIBhb64gzUCkM25dHRVZwf5SY56RN6J8fQpyxHTIjNatKPeHZoJWh2 FgqeD1DhjoGDIQgi0XzEyb2Gdyg25O9hcsKFT+XTWWuOvHRPD129/yUDoX9Psk+oZppc C0kENEfkGmmhzOEbqvgXc8SWI0yKkgwsSIKH0vAHaxQDtEcFehJVJ6zlteUz+aq1Kgz3 nRoeO0rTslYmprh+wYH62zNQ6+V9CcME3Kq+cKYnosdK759v20Bl88/cvN8MiPa5/4Jd KqWli0gCAVho4P+nFQdcqVb+GXzGChuZUcz4VUKTuVH9kJZTeFUNVdjcIlNJ+UmKF5Vs fniw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@net.com.org.es header.s=delany-v1 header.b="jggpj1j/"; spf=pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) smtp.mailfrom=dato@net.com.org.es; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=net.com.org.es Received: from delany.relativists.org (delany.relativists.org. [176.31.98.17]) by mx.google.com with ESMTPS id v206si7692256wmb.108.2018.12.03.21.14.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 21:14:27 -0800 (PST) Received-SPF: pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) client-ip=176.31.98.17; Authentication-Results: mx.google.com; dkim=pass header.i=@net.com.org.es header.s=delany-v1 header.b="jggpj1j/"; spf=pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) smtp.mailfrom=dato@net.com.org.es; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=net.com.org.es Received: from geertz.rel (geertz.rel [192.168.82.3]) by delany.relativists.org (Postfix) with ESMTPSA id 19B488F2; Tue, 4 Dec 2018 02:14:27 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=net.com.org.es; s=delany-v1; t=1543900467; bh=6O8ICnmIA1bl8F6MAMk9WLqLLO7z6c3SPydL88qudZM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: From; b=jggpj1j/ilQsvgQFzEejNRhqXdvppBT7zcG/BBO2TecxBp4hw+BUWNJUJ+j03habV hCB85Hg1rT2ZudjZy0O8EHgtH6LnLzGXVSaoh7S9D08I6I9Mvp/FgpOGo7jHM7Flz4 H4ZHhT+I3sA+jSEYnuRyXyDlvrBZCyHsgLxXymS4= Received: by geertz.rel (Postfix, from userid 1000) id 211A280A5A; Tue, 4 Dec 2018 02:14:24 -0300 (-03) From: =?utf-8?q?Adeodato_Sim=C3=B3?= To: linux-mm@kvack.org Cc: kernel-janitors@vger.kernel.org Subject: [PATCH 1/3] mm: add include files so that function definitions have a prototype Date: Tue, 4 Dec 2018 02:14:22 -0300 Message-Id: <466ad4ebe5d788e7be6a14fbbcaaa9596bac7141.1543899764.git.dato@net.com.org.es> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 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 Previously, rodata_test(), usercopy_warn(), and usercopy_abort() were defined without a matching prototype. Detected by -Wmissing-prototypes GCC flag. Signed-off-by: Adeodato Simó Reviewed-by: Mike Rapoport --- I started poking at this after kernel-janitors got the suggestion[1] to look into the -Wmissing-prototypes warnings. Thanks for considering! [1]: https://www.spinics.net/lists/linux-kernel-janitors/msg43981.html mm/rodata_test.c | 1 + mm/usercopy.c | 1 + 2 files changed, 2 insertions(+) diff --git a/mm/rodata_test.c b/mm/rodata_test.c index d908c8769b48..01306defbd1b 100644 --- a/mm/rodata_test.c +++ b/mm/rodata_test.c @@ -11,6 +11,7 @@ */ #define pr_fmt(fmt) "rodata_test: " fmt +#include #include #include diff --git a/mm/usercopy.c b/mm/usercopy.c index 852eb4e53f06..f487ba4888df 100644 --- a/mm/usercopy.c +++ b/mm/usercopy.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include From patchwork Tue Dec 4 05:14:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Adeodato_Sim=C3=B3?= X-Patchwork-Id: 10711115 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 B6F5A109C for ; Tue, 4 Dec 2018 05:14:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A83A92AB15 for ; Tue, 4 Dec 2018 05:14:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C9B82AF7E; Tue, 4 Dec 2018 05:14:37 +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=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 402512AB15 for ; Tue, 4 Dec 2018 05:14:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 72F816B6CFB; Tue, 4 Dec 2018 00:14:30 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 59FB26B6CFD; Tue, 4 Dec 2018 00:14:30 -0500 (EST) 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 3A4F16B6CFE; Tue, 4 Dec 2018 00:14:30 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by kanga.kvack.org (Postfix) with ESMTP id CB2886B6CFC for ; Tue, 4 Dec 2018 00:14:29 -0500 (EST) Received: by mail-wm1-f70.google.com with SMTP id r11so6004371wmg.1 for ; Mon, 03 Dec 2018 21:14:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=iWtfFp51tdO0ywiSBY4+QUbWuwVP4bT9YY6aitPzIuA=; b=cn2BujFWJOalqb9Ij9TYs3bIx/JZHqvt/bMrVEJ58e84wevhUVYmT/r/yPb3QuYgsS 0k6b8PZR3zkOcvU3vSC7c5UECNKG+z6kBjIor0FfzD6zRENbaHtLHM0V9RAMSUcL6rJq i2ctNzACwAtpD2uIVJ8WfhUsbINUQTf9EAFaUqmrR4A30CtmoBjB2eY22mf4UvBToVw3 hz+pGeIuo3GMOonmdwYrvPcNhoeHRXMtPJuLX0RnDImpAPyiV0QIpemoXOp2y76W/7dl PU0eO/8S5PdIYcptVbWu8EQP28WWa9fwvdyvWBle8+aW7Ur06QG8RCRpiFQaZZkvC0Br 14cg== X-Gm-Message-State: AA+aEWZNvMwO10tSrYCnikFlGM+jIHXUVAeH5fx9+NCwcvO99uyabSzO FVi/ilyhAaDDqzYwYrhE6N4elyaYJvcml2whI+BtZglMLdNsua37u18WfWzNY4jO04RRGUdNjqK 19/d8sHe4sfF9MSG+S7Q1ntyJXyvBrXQdAMIWIr2ZdsZr66V+WAd3vRXk97eQrqYL+A== X-Received: by 2002:adf:de91:: with SMTP id w17mr17853622wrl.320.1543900469021; Mon, 03 Dec 2018 21:14:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/UByifm979nhw1btzvT4Wd8utNmm7SDCZxaKIYNFoE8TesAcr0vYf1Glc6716lYhy7zNOMe X-Received: by 2002:adf:de91:: with SMTP id w17mr17853581wrl.320.1543900467746; Mon, 03 Dec 2018 21:14:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543900467; cv=none; d=google.com; s=arc-20160816; b=AYyVQr6CkzxRYVuOYrJXMkOY0S7Gj73suiznlr99d2fDsELcTStCsq/U/ONSzYRZjY qc5eoJJbpl83Iowasa82swHF70GrUpD7jtFOH+tm0wQv5Yr1JRK27i0U0eOHoOj7R10M oH8IgLPM1ZUvztimw6CEf5MXFRjITMRWGJBTnIFvtvpOqI980ru1aZ8HceAaURRrhTCa +CLsbSetSPh8o/9qpW++AxRsGVbrMz0Hf8TpkGldyavExSEWl2cpAp1US0Gofq+YzxF/ rWCaR/jEqXda1EYh4m5mWEZMOBJjuxKfYbo5vSxbanpRldfxK+HnpdobVg/K/xUh5p6d 6zYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=iWtfFp51tdO0ywiSBY4+QUbWuwVP4bT9YY6aitPzIuA=; b=rSwvZ0eUODNMpDs2jOJuh0/zEi8+tFN/R6EL6tuVS6mJQ6V5bKLYXs8qW3VB91O78p aSrMW2f3hH8LI2yrZe0baW6wz0pGVaZ5FHgqrq4emaKaqClWRV4kcq++jK6OV4NqLWxP YIApIO2x3T3MOPFgIUPLsgh4jqQkGepyhJcCsYKCgrH+YPmWSuV+D2ERUyl0sZKI0Jtp Y87wz/BYC+kdUZHcUmDVBnuE65C79Plk1Ubn0aZGUvbAOpKAlzpvLwgxWQNrqMg0fHx4 dU/7H9r6efYCD34d0neYOOF3V0FHkg+2/mREG17B1A1P0S+2dEunHn1RFk+3ZDKNh3Gf lG6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@net.com.org.es header.s=delany-v1 header.b=avsd2G5K; spf=pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) smtp.mailfrom=dato@net.com.org.es; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=net.com.org.es Received: from delany.relativists.org (delany.relativists.org. [176.31.98.17]) by mx.google.com with ESMTPS id p3si11245430wrf.163.2018.12.03.21.14.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 21:14:27 -0800 (PST) Received-SPF: pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) client-ip=176.31.98.17; Authentication-Results: mx.google.com; dkim=pass header.i=@net.com.org.es header.s=delany-v1 header.b=avsd2G5K; spf=pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) smtp.mailfrom=dato@net.com.org.es; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=net.com.org.es Received: from geertz.rel (geertz.rel [192.168.82.3]) by delany.relativists.org (Postfix) with ESMTPSA id 706E21FA; Tue, 4 Dec 2018 02:14:26 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=net.com.org.es; s=delany-v1; t=1543900466; bh=iWtfFp51tdO0ywiSBY4+QUbWuwVP4bT9YY6aitPzIuA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type:From; b=avsd2G5KwHtb/o5PXeVJ2WzwuR0N1XoVDh25FTHxt+h3A93T5xJJucPvvHDJv5R0f ++Uw9IGYrQbQ9iX+IZjNh3rQIPiIrl+WsI2LJYsUwW7r2AvKe9a0bBRAvMJEg50dIQ tAezjBlEvawljIBFpvczl5aOnWwykgK4t9P5ndoE= Received: by geertz.rel (Postfix, from userid 1000) id 262FC80274; Tue, 4 Dec 2018 02:14:24 -0300 (-03) From: =?utf-8?q?Adeodato_Sim=C3=B3?= To: linux-mm@kvack.org Cc: kernel-janitors@vger.kernel.org Subject: [PATCH 2/3] mm: move two private functions to static linkage Date: Tue, 4 Dec 2018 02:14:23 -0300 Message-Id: <75cae66d92a074dbd62590a966d7005b187f4fe5.1543899764.git.dato@net.com.org.es> X-Mailer: git-send-email 2.19.2 In-Reply-To: <466ad4ebe5d788e7be6a14fbbcaaa9596bac7141.1543899764.git.dato@net.com.org.es> References: <466ad4ebe5d788e7be6a14fbbcaaa9596bac7141.1543899764.git.dato@net.com.org.es> MIME-Version: 1.0 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 follow_page_context() and __thp_get_unmapped_area() have no public declarations and are only used in the files that define them (mm/gup.c and mm/huge_memory.c, respectively). This change also appeases GCC if run with -Wmissing-prototypes. Signed-off-by: Adeodato Simó Reviewed-by: Mike Rapoport --- mm/gup.c | 6 +++--- mm/huge_memory.c | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index 6dd33e16a806..86a10a9b0344 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -399,9 +399,9 @@ static struct page *follow_p4d_mask(struct vm_area_struct *vma, * an error pointer if there is a mapping to something not represented * by a page descriptor (see also vm_normal_page()). */ -struct page *follow_page_mask(struct vm_area_struct *vma, - unsigned long address, unsigned int flags, - struct follow_page_context *ctx) +static struct page *follow_page_mask(struct vm_area_struct *vma, + unsigned long address, unsigned int flags, + struct follow_page_context *ctx) { pgd_t *pgd; struct page *page; diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 2dba2c1c299a..45c1ff36baf1 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -499,8 +499,9 @@ void prep_transhuge_page(struct page *page) set_compound_page_dtor(page, TRANSHUGE_PAGE_DTOR); } -unsigned long __thp_get_unmapped_area(struct file *filp, unsigned long len, - loff_t off, unsigned long flags, unsigned long size) +static unsigned long __thp_get_unmapped_area(struct file *filp, + unsigned long len, loff_t off, unsigned long flags, + unsigned long size) { unsigned long addr; loff_t off_end = off + len; From patchwork Tue Dec 4 05:14:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Adeodato_Sim=C3=B3?= X-Patchwork-Id: 10711111 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 D4EE514BD for ; Tue, 4 Dec 2018 05:14:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBB9E2AB15 for ; Tue, 4 Dec 2018 05:14:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFE6F2AF7E; Tue, 4 Dec 2018 05:14:32 +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=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 183292AB15 for ; Tue, 4 Dec 2018 05:14:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 248566B6CFF; Tue, 4 Dec 2018 00:14:30 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1CF126B6CFD; Tue, 4 Dec 2018 00:14:30 -0500 (EST) 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 0E9F56B6CFE; Tue, 4 Dec 2018 00:14:30 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by kanga.kvack.org (Postfix) with ESMTP id AF8196B6CFA for ; Tue, 4 Dec 2018 00:14:29 -0500 (EST) Received: by mail-wr1-f72.google.com with SMTP id j30so12665612wre.16 for ; Mon, 03 Dec 2018 21:14:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=LlaKK+QDyWoEPUPZtOWjPwfLms4Kd9A2H4duwBKvPe8=; b=FhAKjCOkcnOQnIIEyc9KiAM0UBFyEVfmwJs11P3xjCy9RixQICiaPWIakWXyjuF75+ RUL3vyIIyUIAZTnWMHQXYY/4Hpxiyc7swzC51x7dXR/zK7BW9quBOHn0LNIOoaZYIQdr byDIAKVq1d5p8rxCpPXmiFyPrTds9Ojb264d7xH4LPpP0JIcK7R9FhJHcnf+y+kEoMwJ 3xdSJz3kf9Qmi2IWoF4DtrxFk5yK7dFumBO+ADuICI8MJEPeY7pYnTq71/Jei4blomw0 lMXi65WIROmpo+jnDSaufaKiYKPkZAPfEi66GLQr5vFxF7BZJVlV1mVK6oI0/LsNYPca s9Xg== X-Gm-Message-State: AA+aEWYVdBPBqef0s+LpeiqzpfBGIOPOaj2Ap3QRBlHhfoq0re+2qm5R sM5zZA5Vby60lSLgukkYGpbKHp3+JORkOo+cKa+pXgrCB6Pe4j19hC59uoUzvlbo6XbaQZdeECh /QnNSSSWHHoO0vCM8iXVbRVh+Mk+UxADLsjVTGP6npeXGRMN6eKfPCy1S8mLlxvOlUg== X-Received: by 2002:a5d:444a:: with SMTP id x10mr17367193wrr.162.1543900468943; Mon, 03 Dec 2018 21:14:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/XXQBcsfyn1P0dyVgR/AFCgaIVJA41FK2oZQkJAxr4Utg9Yxs8MK2CmI2BUidEISut5ps5b X-Received: by 2002:a5d:444a:: with SMTP id x10mr17367156wrr.162.1543900467754; Mon, 03 Dec 2018 21:14:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543900467; cv=none; d=google.com; s=arc-20160816; b=jW2B1cn1eyaxvf7Cdsn1n3BRxwRV+9qL844ARuLtl7xT9CV8Kp84iuzsoLBhWVxu1i W1YLLWxOT3hHV+Bs60ifKX5tljL9gdR/YqZh1UWe/rjKyDiNXM5KswZZgPpJJA0mIq1e jNWfZ0cXRwXDm4ZXxgwxEgFiDhwPNdMsp1l2vGBbAMiq8AraiLVZ64MDqGPJQIbfD+/V 360Lmty68Wucq/xsCNauZnx4zRAkldsM0ZNGlzQsCIzU8M4zZidJPvF+o6HXrxitF+Ho OYaXdN1BFoocSl69naR2WDJ4UdIXMOVFqYjlrV4qwEP44iJTjRLQcXi3Vrijd6UYH0M0 1lIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=LlaKK+QDyWoEPUPZtOWjPwfLms4Kd9A2H4duwBKvPe8=; b=ONonZMwSLut83KiFaVtYqglcSJfzyuqY0KouufWGoyVc7ltV4/J9+zUtikI1D5QNw6 scSB2/u7TD4p8XXacmFbXbJRMBXnixxSAsXFBVhipeOVq5mIjED08PMjcWYqwTF1b+Mu KbUdo6sBNY3A4HVu8gyMHHwPWm0sMNAwfPYCCjhrI69Pwpy0qngJ69YRjuR0QjlspcC2 tH81q3sdV+k6EJQ0dMJ1vLoU84BCvpu/nvbSwc1uIzWefjoU/h39l7rMqcT1eG6L8oBT jH47maPEGyvWipngW635bnaMQBYurC2yFoaF3C53iZMnbSpFiY6tkKaS8VkUoNV6CZB/ Rlrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@net.com.org.es header.s=delany-v1 header.b=YMltWKuy; spf=pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) smtp.mailfrom=dato@net.com.org.es; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=net.com.org.es Received: from delany.relativists.org (delany.relativists.org. [176.31.98.17]) by mx.google.com with ESMTPS id b1si12076826wrj.176.2018.12.03.21.14.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 21:14:27 -0800 (PST) Received-SPF: pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) client-ip=176.31.98.17; Authentication-Results: mx.google.com; dkim=pass header.i=@net.com.org.es header.s=delany-v1 header.b=YMltWKuy; spf=pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) smtp.mailfrom=dato@net.com.org.es; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=net.com.org.es Received: from geertz.rel (geertz.rel [192.168.82.3]) by delany.relativists.org (Postfix) with ESMTPSA id 7B507336; Tue, 4 Dec 2018 02:14:26 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=net.com.org.es; s=delany-v1; t=1543900466; bh=LlaKK+QDyWoEPUPZtOWjPwfLms4Kd9A2H4duwBKvPe8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type:From; b=YMltWKuy9l6rBZ7WHLDKa5ZpaISBzjxyaOM2fGPbdfZKCd5QmT8COHtBQCc97/AGY FDFVYqyx16LHJ1gNzF2NuzeGLUefcUcRG+8BQDqasEM40pbO+BRWu4SUTr5rgO/axS mgROHQO0QDBkkUB9arT8WbZRA8TVeDVbaarcxoqw= Received: by geertz.rel (Postfix, from userid 1000) id 2E40380AB1; Tue, 4 Dec 2018 02:14:24 -0300 (-03) From: =?utf-8?q?Adeodato_Sim=C3=B3?= To: linux-mm@kvack.org Cc: kernel-janitors@vger.kernel.org Subject: [PATCH 3/3] mm: add missing declaration of memmap_init in linux/mm.h Date: Tue, 4 Dec 2018 02:14:24 -0300 Message-Id: X-Mailer: git-send-email 2.19.2 In-Reply-To: <466ad4ebe5d788e7be6a14fbbcaaa9596bac7141.1543899764.git.dato@net.com.org.es> References: <466ad4ebe5d788e7be6a14fbbcaaa9596bac7141.1543899764.git.dato@net.com.org.es> MIME-Version: 1.0 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 This follows-up commit dfb3ccd00a06 ("mm: make memmap_init a proper function"), which changed memmap_init from macro to function. Signed-off-by: Adeodato Simó Reviewed-by: Mike Rapoport --- scripts/checkpatch.pl complained about use of extern for a prototype, but I preferred to maintain consistency with surrounding code. -d include/linux/mm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index 3eb3bf7774f1..8597b864dd91 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2268,6 +2268,8 @@ static inline void zero_resv_unavail(void) {} #endif extern void set_dma_reserve(unsigned long new_dma_reserve); +extern void memmap_init(unsigned long size, int nid, + unsigned long zone, unsigned long start_pfn); extern void memmap_init_zone(unsigned long, int, unsigned long, unsigned long, enum memmap_context, struct vmem_altmap *); extern void setup_per_zone_wmarks(void);