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;