From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24E3FC2D0D1 for ; Tue, 17 Dec 2019 14:00:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EAD8221835 for ; Tue, 17 Dec 2019 14:00:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="GbGZzaEh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728725AbfLQN7u (ORCPT ); Tue, 17 Dec 2019 08:59:50 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:15008 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728539AbfLQN7u (ORCPT ); Tue, 17 Dec 2019 08:59:50 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 17 Dec 2019 05:59:40 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 17 Dec 2019 05:59:49 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 17 Dec 2019 05:59:49 -0800 Received: from [10.2.165.11] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 17 Dec 2019 13:59:48 +0000 Subject: Re: [RFC PATCH] mm/gup: try_pin_compound_head() can be static To: kbuild test robot CC: , Andrew Morton , Al Viro , Alex Williamson , Benjamin Herrenschmidt , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Christoph Hellwig , Dan Williams , Daniel Vetter , Dave Chinner , David Airlie , "David S . Miller" , Ira Weiny , Jan Kara , Jason Gunthorpe , Jens Axboe , Jonathan Corbet , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Magnus Karlsson , Mauro Carvalho Chehab , Michael Ellerman , Michal Hocko , Mike Kravetz , Paul Mackerras , Shuah Khan , Vlastimil Babka , , , , , , , , , , , , , LKML , "Kirill A . Shutemov" References: <20191211025318.457113-24-jhubbard@nvidia.com> <20191217080358.q3k57ta62txvip5h@4978f4969bb8> From: John Hubbard X-Nvconfidentiality: public Message-ID: <7828a101-e422-8e2a-ef9b-9c0285065ed5@nvidia.com> Date: Tue, 17 Dec 2019 05:56:56 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20191217080358.q3k57ta62txvip5h@4978f4969bb8> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1576591180; bh=+kY6WrbKA7lSfaR6JiJsMhpW0kY3DW4edAlAk5Ve1Ws=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=GbGZzaEh7giluV7bpN/IIAOj3Mc18AXcjLeuEGsTgM8/schRNFGUqCq00YAc4ARRK 0PVe1s7+qdvFmh1Ttru614AJtLodM6wJzZ2UNnA1jIm2+JCvQssDVh7rwrwji91hSp Dmomrx8a2mkRdKDi+zuehTjS+cK+ceZUGuV2qS+Q00TgS6unnj2J/spZ+jPwNEGl3X xJTAKof+O0alRzDH3cC7VTlXjNJwIWhcBZya8mbb62MvfcrAHYE78VekfobHefcZXx ueLyg5p/jxUNWHBbbcLlFxuQBAi3TiHxhM/GsO23RipjSLUTZwruxA+61/WfeUhUby xcvllM2I0K27A== Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On 12/17/19 12:03 AM, kbuild test robot wrote: > > Fixes: 8086d1c61970 ("mm/gup: track FOLL_PIN pages") > Signed-off-by: kbuild test robot > --- > gup.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/gup.c b/mm/gup.c > index 038b71165a761..849a6f55938e6 100644 > --- a/mm/gup.c > +++ b/mm/gup.c > @@ -75,7 +75,7 @@ static inline struct page *try_get_compound_head(struct page *page, int refs) > * @Return: the compound head page, with ref appropriately incremented, > * or NULL upon failure. > */ > -__must_check struct page *try_pin_compound_head(struct page *page, int refs) > +static __must_check struct page *try_pin_compound_head(struct page *page, int refs) > { > struct page *head = try_get_compound_head(page, > GUP_PIN_COUNTING_BIAS * refs); > Yes, it should have been declared static. And this also applies to the latest version (v11). The preferred fix would stay within 80 columns, like this: diff --git a/mm/gup.c b/mm/gup.c index c2793a86450e..39b2f683bd2e 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -75,7 +75,8 @@ static inline struct page *try_get_compound_head(struct page *page, int refs) * @Return: the compound head page, with ref appropriately incremented, * or NULL upon failure. */ -__must_check struct page *try_pin_compound_head(struct page *page, int refs) +static __must_check struct page *try_pin_compound_head(struct page *page, + int refs) { struct page *head = try_get_compound_head(page, GUP_PIN_COUNTING_BIAS * refs); thanks, -- John Hubbard NVIDIA From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68F4DC43603 for ; Tue, 17 Dec 2019 14:06:09 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E1392072D for ; Tue, 17 Dec 2019 14:06:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="GbGZzaEh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E1392072D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 47cg0Z4NCYzDqVx for ; Wed, 18 Dec 2019 01:06:06 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nvidia.com (client-ip=216.228.121.65; helo=hqnvemgate26.nvidia.com; envelope-from=jhubbard@nvidia.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=nvidia.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nvidia.com header.i=@nvidia.com header.b="GbGZzaEh"; dkim-atps=neutral Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47cfsX429xzDqWL for ; Wed, 18 Dec 2019 00:59:59 +1100 (AEDT) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 17 Dec 2019 05:59:40 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 17 Dec 2019 05:59:49 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 17 Dec 2019 05:59:49 -0800 Received: from [10.2.165.11] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 17 Dec 2019 13:59:48 +0000 Subject: Re: [RFC PATCH] mm/gup: try_pin_compound_head() can be static To: kbuild test robot References: <20191211025318.457113-24-jhubbard@nvidia.com> <20191217080358.q3k57ta62txvip5h@4978f4969bb8> From: John Hubbard X-Nvconfidentiality: public Message-ID: <7828a101-e422-8e2a-ef9b-9c0285065ed5@nvidia.com> Date: Tue, 17 Dec 2019 05:56:56 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20191217080358.q3k57ta62txvip5h@4978f4969bb8> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1576591180; bh=+kY6WrbKA7lSfaR6JiJsMhpW0kY3DW4edAlAk5Ve1Ws=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=GbGZzaEh7giluV7bpN/IIAOj3Mc18AXcjLeuEGsTgM8/schRNFGUqCq00YAc4ARRK 0PVe1s7+qdvFmh1Ttru614AJtLodM6wJzZ2UNnA1jIm2+JCvQssDVh7rwrwji91hSp Dmomrx8a2mkRdKDi+zuehTjS+cK+ceZUGuV2qS+Q00TgS6unnj2J/spZ+jPwNEGl3X xJTAKof+O0alRzDH3cC7VTlXjNJwIWhcBZya8mbb62MvfcrAHYE78VekfobHefcZXx ueLyg5p/jxUNWHBbbcLlFxuQBAi3TiHxhM/GsO23RipjSLUTZwruxA+61/WfeUhUby xcvllM2I0K27A== X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michal Hocko , Jan Kara , kvm@vger.kernel.org, linux-doc@vger.kernel.org, David Airlie , Dave Chinner , dri-devel@lists.freedesktop.org, LKML , linux-mm@kvack.org, Paul Mackerras , linux-kselftest@vger.kernel.org, Ira Weiny , Jonathan Corbet , linux-rdma@vger.kernel.org, Christoph Hellwig , Jason Gunthorpe , Vlastimil Babka , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , linux-media@vger.kernel.org, Shuah Khan , linux-block@vger.kernel.org, =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Al Viro , Dan Williams , Mauro Carvalho Chehab , bpf@vger.kernel.org, Magnus Karlsson , Jens Axboe , kbuild-all@lists.01.org, netdev@vger.kernel.org, Alex Williamson , Daniel Vetter , linux-fsdevel@vger.kernel.org, Andrew Morton , linuxppc-dev@lists.ozlabs.org, "David S . Miller" , "Kirill A . Shutemov" , Mike Kravetz Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On 12/17/19 12:03 AM, kbuild test robot wrote: > > Fixes: 8086d1c61970 ("mm/gup: track FOLL_PIN pages") > Signed-off-by: kbuild test robot > --- > gup.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/gup.c b/mm/gup.c > index 038b71165a761..849a6f55938e6 100644 > --- a/mm/gup.c > +++ b/mm/gup.c > @@ -75,7 +75,7 @@ static inline struct page *try_get_compound_head(struct page *page, int refs) > * @Return: the compound head page, with ref appropriately incremented, > * or NULL upon failure. > */ > -__must_check struct page *try_pin_compound_head(struct page *page, int refs) > +static __must_check struct page *try_pin_compound_head(struct page *page, int refs) > { > struct page *head = try_get_compound_head(page, > GUP_PIN_COUNTING_BIAS * refs); > Yes, it should have been declared static. And this also applies to the latest version (v11). The preferred fix would stay within 80 columns, like this: diff --git a/mm/gup.c b/mm/gup.c index c2793a86450e..39b2f683bd2e 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -75,7 +75,8 @@ static inline struct page *try_get_compound_head(struct page *page, int refs) * @Return: the compound head page, with ref appropriately incremented, * or NULL upon failure. */ -__must_check struct page *try_pin_compound_head(struct page *page, int refs) +static __must_check struct page *try_pin_compound_head(struct page *page, + int refs) { struct page *head = try_get_compound_head(page, GUP_PIN_COUNTING_BIAS * refs); thanks, -- John Hubbard NVIDIA From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FEC1C2D0D1 for ; Tue, 17 Dec 2019 13:59:52 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5638B2176D for ; Tue, 17 Dec 2019 13:59:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="GbGZzaEh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5638B2176D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0389B6E9E8; Tue, 17 Dec 2019 13:59:51 +0000 (UTC) Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id D82A86E9E8 for ; Tue, 17 Dec 2019 13:59:49 +0000 (UTC) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 17 Dec 2019 05:59:40 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 17 Dec 2019 05:59:49 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 17 Dec 2019 05:59:49 -0800 Received: from [10.2.165.11] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 17 Dec 2019 13:59:48 +0000 Subject: Re: [RFC PATCH] mm/gup: try_pin_compound_head() can be static To: kbuild test robot References: <20191211025318.457113-24-jhubbard@nvidia.com> <20191217080358.q3k57ta62txvip5h@4978f4969bb8> From: John Hubbard X-Nvconfidentiality: public Message-ID: <7828a101-e422-8e2a-ef9b-9c0285065ed5@nvidia.com> Date: Tue, 17 Dec 2019 05:56:56 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20191217080358.q3k57ta62txvip5h@4978f4969bb8> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Language: en-US DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1576591180; bh=+kY6WrbKA7lSfaR6JiJsMhpW0kY3DW4edAlAk5Ve1Ws=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=GbGZzaEh7giluV7bpN/IIAOj3Mc18AXcjLeuEGsTgM8/schRNFGUqCq00YAc4ARRK 0PVe1s7+qdvFmh1Ttru614AJtLodM6wJzZ2UNnA1jIm2+JCvQssDVh7rwrwji91hSp Dmomrx8a2mkRdKDi+zuehTjS+cK+ceZUGuV2qS+Q00TgS6unnj2J/spZ+jPwNEGl3X xJTAKof+O0alRzDH3cC7VTlXjNJwIWhcBZya8mbb62MvfcrAHYE78VekfobHefcZXx ueLyg5p/jxUNWHBbbcLlFxuQBAi3TiHxhM/GsO23RipjSLUTZwruxA+61/WfeUhUby xcvllM2I0K27A== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michal Hocko , Jan Kara , kvm@vger.kernel.org, linux-doc@vger.kernel.org, David Airlie , Dave Chinner , dri-devel@lists.freedesktop.org, LKML , linux-mm@kvack.org, Paul Mackerras , linux-kselftest@vger.kernel.org, Ira Weiny , Jonathan Corbet , linux-rdma@vger.kernel.org, Michael Ellerman , Christoph Hellwig , Jason Gunthorpe , Vlastimil Babka , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , linux-media@vger.kernel.org, Shuah Khan , linux-block@vger.kernel.org, =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Al Viro , Dan Williams , Mauro Carvalho Chehab , bpf@vger.kernel.org, Magnus Karlsson , Jens Axboe , kbuild-all@lists.01.org, netdev@vger.kernel.org, Alex Williamson , linux-fsdevel@vger.kernel.org, Andrew Morton , linuxppc-dev@lists.ozlabs.org, "David S . Miller" , "Kirill A . Shutemov" , Mike Kravetz Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 12/17/19 12:03 AM, kbuild test robot wrote: > > Fixes: 8086d1c61970 ("mm/gup: track FOLL_PIN pages") > Signed-off-by: kbuild test robot > --- > gup.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/gup.c b/mm/gup.c > index 038b71165a761..849a6f55938e6 100644 > --- a/mm/gup.c > +++ b/mm/gup.c > @@ -75,7 +75,7 @@ static inline struct page *try_get_compound_head(struct page *page, int refs) > * @Return: the compound head page, with ref appropriately incremented, > * or NULL upon failure. > */ > -__must_check struct page *try_pin_compound_head(struct page *page, int refs) > +static __must_check struct page *try_pin_compound_head(struct page *page, int refs) > { > struct page *head = try_get_compound_head(page, > GUP_PIN_COUNTING_BIAS * refs); > Yes, it should have been declared static. And this also applies to the latest version (v11). The preferred fix would stay within 80 columns, like this: diff --git a/mm/gup.c b/mm/gup.c index c2793a86450e..39b2f683bd2e 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -75,7 +75,8 @@ static inline struct page *try_get_compound_head(struct page *page, int refs) * @Return: the compound head page, with ref appropriately incremented, * or NULL upon failure. */ -__must_check struct page *try_pin_compound_head(struct page *page, int refs) +static __must_check struct page *try_pin_compound_head(struct page *page, + int refs) { struct page *head = try_get_compound_head(page, GUP_PIN_COUNTING_BIAS * refs); thanks, -- John Hubbard NVIDIA _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1827887279984885278==" MIME-Version: 1.0 From: John Hubbard To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH] mm/gup: try_pin_compound_head() can be static Date: Tue, 17 Dec 2019 05:56:56 -0800 Message-ID: <7828a101-e422-8e2a-ef9b-9c0285065ed5@nvidia.com> In-Reply-To: <20191217080358.q3k57ta62txvip5h@4978f4969bb8> List-Id: --===============1827887279984885278== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 12/17/19 12:03 AM, kbuild test robot wrote: > = > Fixes: 8086d1c61970 ("mm/gup: track FOLL_PIN pages") > Signed-off-by: kbuild test robot > --- > gup.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > = > diff --git a/mm/gup.c b/mm/gup.c > index 038b71165a761..849a6f55938e6 100644 > --- a/mm/gup.c > +++ b/mm/gup.c > @@ -75,7 +75,7 @@ static inline struct page *try_get_compound_head(struct= page *page, int refs) > * @Return: the compound head page, with ref appropriately incremented, > * or NULL upon failure. > */ > -__must_check struct page *try_pin_compound_head(struct page *page, int r= efs) > +static __must_check struct page *try_pin_compound_head(struct page *page= , int refs) > { > struct page *head =3D try_get_compound_head(page, > GUP_PIN_COUNTING_BIAS * refs); > = Yes, it should have been declared static. And this also applies to the late= st version (v11). The preferred fix would stay within 80 columns, like this: diff --git a/mm/gup.c b/mm/gup.c index c2793a86450e..39b2f683bd2e 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -75,7 +75,8 @@ static inline struct page *try_get_compound_head(struct p= age *page, int refs) * @Return: the compound head page, with ref appropriately incremented, * or NULL upon failure. */ -__must_check struct page *try_pin_compound_head(struct page *page, int ref= s) +static __must_check struct page *try_pin_compound_head(struct page *page, + int refs) { struct page *head =3D try_get_compound_head(page, GUP_PIN_COUNTING_BIAS * = refs); thanks, -- = John Hubbard NVIDIA --===============1827887279984885278==--