Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3117154pxb; Sun, 31 Jan 2021 04:59:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPcNJuLZh1woqJzZRjwN+r5tFkxdT1jXy1I6zzZWikp8w/3T0RfkxLrRCZ5QpPmnmlYDEj X-Received: by 2002:aa7:c58e:: with SMTP id g14mr5736315edq.318.1612097940666; Sun, 31 Jan 2021 04:59:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612097940; cv=none; d=google.com; s=arc-20160816; b=VbHKTa5kSx5WIKIaojcHjNqcxgvrU/yM13oaSBRdiZwjSF1LWu+Dzgn8FWFrMR6WxM SfsQBS5dUPMlyuX8GYQbdI8EeHPAKrcyD/xhkLhqCD4nb1DJUBF8SC6JYBMuw27BsT1s WCuY2SVWerJYPB43a13X+Hs2p+v4VHfsHBB33FHK9rDm4kHgeLDGDrnZ46S9yw2LdwDA nKclP0dzMnDWwDmK7vqSwacxYyVxmMooQnoU4jASAcCw7yJRf1ApBrI57jKz0jinyW8c YfaCWkwszbWmnazhrMpdJmCh0tYD+KUtT0FaBfkRCAresnXGuZRLX61br6Tao/AZQ+JY wPRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=Ykp5oBUQqC+epeovOARUFyMIlBz94OtNSxnarlpoxCM=; b=FoZuKsSJ/yuy1SoVzEHhEPWPlJcoI2ogiwALfRk3AB0DmMwNu3U64UCBjYI9IDomOg /KjPFxI9KB1pZIVHq7WpCcrk7Cylz++r9FUcbHD1NcVDIfQpDEjk3kepabSPVEqerxrQ s2+pP36i0KdNu1de4BMwoxOya++vNByXJwJAY6QpfORzd+GeNHDIdsXL/PsCN/9KiSEV M8Dsg9THTv5V0elCMvkFq7OiYB+MoBs6WzWfL3Egg6MzUINWUgTX5mJxqKWjxEodmPLa dbedOx4HYqLZFx6PlZr0ed0zH3ZCFbeZmTmII5vD35wyCThisJC4dRx3LZi/y8Qdhpr7 /mvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=LJR8R1X2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si8852628edy.77.2021.01.31.04.58.36; Sun, 31 Jan 2021 04:59:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=LJR8R1X2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232192AbhAaM5t (ORCPT + 99 others); Sun, 31 Jan 2021 07:57:49 -0500 Received: from mail1.protonmail.ch ([185.70.40.18]:59120 "EHLO mail1.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231665AbhAaMMj (ORCPT ); Sun, 31 Jan 2021 07:12:39 -0500 X-Greylist: delayed 73759 seconds by postgrey-1.27 at vger.kernel.org; Sun, 31 Jan 2021 07:12:38 EST Date: Sun, 31 Jan 2021 12:11:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1612095102; bh=Ykp5oBUQqC+epeovOARUFyMIlBz94OtNSxnarlpoxCM=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=LJR8R1X2kFUuhJewwMRVd3JmaazqCi9JsjdefF2SfLX05I5/jCfUIZc11l6MuTL+g i2HRMCEoZW525NoYLuMFEhfi5Ff4oJag2t4PUqvGxfO/UeX8QeM09STbyYmmrADfiv d38pZbH8Aw0/L9PXz4Cj0AuTmTscavwrO/hApgtreB+QxjqPu7STFPDYf89SxgYW2l BwgzfpPv0NXCY9a8JwzqiNGowkucW/e4I1nM9oTv4eKTRyDzY5vAmyWDokdDtpadYh mPnb0wI0VKahgRNsSolhFuKmahSWnIIFEIJRgthufSr718lYZg4Q7e9VIIzUli3fIQ 4a1lSZhgJ4HNw== To: "David S. Miller" , Jakub Kicinski From: Alexander Lobakin Cc: John Hubbard , David Rientjes , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Saeed Mahameed , Leon Romanovsky , Andrew Morton , Jesper Dangaard Brouer , Ilias Apalodimas , Jonathan Lemon , Willem de Bruijn , Randy Dunlap , Pablo Neira Ayuso , Dexuan Cui , Jakub Sitnicki , Marco Elver , Paolo Abeni , Alexander Lobakin , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, linux-mm@kvack.org Reply-To: Alexander Lobakin Subject: [PATCH v3 net-next 2/5] skbuff: constify skb_propagate_pfmemalloc() "page" argument Message-ID: <20210131120844.7529-3-alobakin@pm.me> In-Reply-To: <20210131120844.7529-1-alobakin@pm.me> References: <20210131120844.7529-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function doesn't write anything to the page struct itself, so this argument can be const. Misc: align second argument to the brace while at it. Signed-off-by: Alexander Lobakin Reviewed-by: Jesse Brandeburg Acked-by: David Rientjes --- include/linux/skbuff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 9313b5aaf45b..b027526da4f9 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -2943,8 +2943,8 @@ static inline struct page *dev_alloc_page(void) *=09@page: The page that was allocated from skb_alloc_page *=09@skb: The skb that may need pfmemalloc set */ -static inline void skb_propagate_pfmemalloc(struct page *page, -=09=09=09=09=09 struct sk_buff *skb) +static inline void skb_propagate_pfmemalloc(const struct page *page, +=09=09=09=09=09 struct sk_buff *skb) { =09if (page_is_pfmemalloc(page)) =09=09skb->pfmemalloc =3D true; --=20 2.30.0