Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp347639yba; Sat, 4 May 2019 03:44:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvNwHl2x9u6vgGgzVVd/Yd+HaUYJ4n7VsQyD4VNDb3koBDZavJVDR4Coz+KeDqyqf1MRup X-Received: by 2002:a17:902:6809:: with SMTP id h9mr18058239plk.129.1556966682652; Sat, 04 May 2019 03:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556966682; cv=none; d=google.com; s=arc-20160816; b=sGRByGAIEi58juv+7ozGL7YciHd/uys6Y/DS5YqglErc/WdXuBmSpcWB88bo9uo8J8 S95Fa/F1e7P/seNFnRsGMlXIn/5J6OdVg1F0k1emiBAL2XGfox9AQaHrEkWBxWri9WR3 of1H4f3p3wMuy4It2eGm2XV1q3gE5IDGNKH3TEnbF7ZFVn8o9tPQ8sdJKxiLjf1VADzt 1MgZ+B6HIKzHvqnJy1miekzTsXEkQhJMF0dioEROS2xrXkPYrpCaSwmiA9slEgqH2/zD ZpKvuYYgsoxPmnHzUQmPVAovDRP6ZzvdAWyI1v5vE3iKjrZ2WFSskoGc1tgVScy8mefK +4tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=wRkvuk/ppkVfgQA/u04JxN+vTaK6+EHxMzg7OnHwzD4=; b=mghDQ6iQ3EczauCR/rpgTkJHCcdq1Zt9pZ+4CRPVJbJv9FUXE2t7APdYoPuw5bitQM p29hl8PU1dxuipcM9dPe8XyjX3k1RNK6gtAWPTgNPuw6dGZqwyAxgrk/6RsyMLzJAPB3 ccob4kRH6VdY9Qg4e+uN8mpnygmT1h5GCV6YSK4hTousTU8RUXKIkq6EwnIFMDwB8Q0V eDR34hIger0JuPfCwwbqROUI6kxvWCYLzSAJnJ1mcJhcKLggnLEgPmpmZVNxpA+2CBlF ixeZ25yLBPLPmysqedVu9b3VcbwtZfdR2zwUeA2R4CcUBWdvlxQ1il+T1MUAsJ3Ohoud Kz3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TWhWxleP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14si5282251pfe.187.2019.05.04.03.44.26; Sat, 04 May 2019 03:44:42 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TWhWxleP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727219AbfEDKYD (ORCPT + 99 others); Sat, 4 May 2019 06:24:03 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:43002 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726631AbfEDKYD (ORCPT ); Sat, 4 May 2019 06:24:03 -0400 Received: by mail-pl1-f196.google.com with SMTP id x15so3931602pln.9 for ; Sat, 04 May 2019 03:24:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=wRkvuk/ppkVfgQA/u04JxN+vTaK6+EHxMzg7OnHwzD4=; b=TWhWxleP46BcSY1Uz2j+Xjvmeef0FV+PfLIXvjO8h14c9L74PwqYaW6Jc5xw7Wwm+7 k9jPwsyb9PnXoycYekq77xwy8/S5vz2lSMmZ9fsweaBXYTJf7SDOr7kRsAP3ULdDw2Iy za5N12ES/9LZfVR74lHE5Kp2sfQ6LhAoWt6deUQ6heD2MXq/X1GDxww4jHcgmwxio7xB JUJlKd9wnKde61P9294kZxqQWf7skpo180qbkyc/tbFzVHKec9WG+8YzlngJ2YyKEIFj C+BuybUMl0OBV5l1ECAmTxYSDpuXHhsFw8iirHgx9Om9Zbz0V6qIRky+JTt6FfX7Ex/E jl4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=wRkvuk/ppkVfgQA/u04JxN+vTaK6+EHxMzg7OnHwzD4=; b=PLqvb2cDBPL4IFgUMndbHZhedOBYTWnJBCLJSx/oNBIWBFJEfKsj+eTq3VFAbF57me 6vlVEHfG3c8qk4ijQDyTOJxf5Vbr5Xyjgyl7uDU9HdfeXdxN4KcPJ9/+hS7xINdTsY1t hpz+z8sZnrbFDlZRhp1WDDiCesDxh2oYCNW23pxoZBgdx+fQy4b7knW0P3xVnyS1On4B /hT9HTotCe6msN/3lXMqJVK4zbKmpvt9huq6Hzmbj/bloAXSabzm55kXDyLX7GtTazPV ueqMJDRFf2BeI3zrKVQ59mdlDzDyvRalGZRC38zaR7CLKZ29azXzng8h4QQZ0MI2OY4P RyRQ== X-Gm-Message-State: APjAAAU+4smM8Bp4FaE0S7mninTs1vizpTDDTvtVZuQFIbNepYjDvQjr X8cypYP+PzbjkROhhZZOj2g= X-Received: by 2002:a17:902:6949:: with SMTP id k9mr17326462plt.59.1556965442466; Sat, 04 May 2019 03:24:02 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.33]) by smtp.gmail.com with ESMTPSA id d3sm5927732pfn.113.2019.05.04.03.23.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2019 03:24:01 -0700 (PDT) Date: Sat, 4 May 2019 15:53:54 +0530 From: Bharath Vedartham To: akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, vbabka@suse.cz, mhocko@suse.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm/huge_memory.c: Make __thp_get_unmapped_area static Message-ID: <20190504102353.GA22525@bharath12345-Inspiron-5559> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __thp_get_unmapped_area is only used in mm/huge_memory.c. Make it static. Tested by building and booting the kernel. Signed-off-by: Bharath Vedartham --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 165ea46..75fe2b7 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -509,7 +509,7 @@ 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, +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; -- 2.7.4