Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp601102pxb; Wed, 27 Jan 2021 16:22:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJ6Qf0pyWPhVGfN8T/zheWPlc7YhE2OKL2AxJT6BJXw2QhEZbRFwWWdzvohxjNs35g6wQD X-Received: by 2002:a17:907:77d2:: with SMTP id kz18mr8405695ejc.2.1611793326615; Wed, 27 Jan 2021 16:22:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611793326; cv=none; d=google.com; s=arc-20160816; b=ZN+CYUnvPL51bpAzHsbLSnOZRkDKpWk/JqlAy3nnpYhEgQwyX3E6jqT33bhkXHxwxl c5WxEpZO2ZzrSFrcL8K0EoOrmUJeQ9gjitiwdZeisUk6eeqWVVJvNvEZEb/7OhGQwIZP uiyyNvdjqGojOzdCzLbdmV6rUeYsLl3w9Vf1AdZyMOs3QbWH2ioHBUgyHk21rpURiSWJ 3kUkYFdKvAlZRKL9BqsXtc9MKzH8IRBLRQ8BOEXZlydXmx6PjXFLSNvSlBWl3nZ1YSju r7owo/ApHMhY1HXCX2lOoNGRHrrj2t9Z4R9djWpMYxJwa0Qf1nKVvmgVgSzVfcsw584/ HPYQ== 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=WGn3Y4XXY7ltWJBzRL8oxPGlTjtHLW5fnpeQGERPzl4=; b=v+NIz7WAc7njOf+8fw9oh+Su2X/zfIkoB3JlwL/ulgkLEq5Fm8oMHwVisCwZInjJdk bM2pxbUBF5IekbNFpraRopQwIEBLi2ApFwJpZ3R29zZaBdlBvpF15EpfnMBqErzTDPVC fzBRO8SmdiTmQJNWHgsu+NU/w2XDnnWFzKl8ryhjosb2uBXB6kEkPN72cT8zdSuKs2X5 oRki6qyK8Val03b/kz70pcr6jIvlus8HtzP+x+Ur4P2/RxxUZrCynQdDt+PxF5mnaC6+ i58/0M+w3GfJ1u090/NOj3XmJBNuj096QQq6c4RfAAbX5Pj4Hh8gW2bZHlV1n+IdTYUp ZdEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=kLg7qi7a; 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 z7si1943890edm.477.2021.01.27.16.21.42; Wed, 27 Jan 2021 16:22:06 -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=kLg7qi7a; 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 S232789AbhA0UMK (ORCPT + 99 others); Wed, 27 Jan 2021 15:12:10 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:40204 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232787AbhA0UL4 (ORCPT ); Wed, 27 Jan 2021 15:11:56 -0500 Date: Wed, 27 Jan 2021 20:11:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1611778273; bh=WGn3Y4XXY7ltWJBzRL8oxPGlTjtHLW5fnpeQGERPzl4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=kLg7qi7avVJ9qLl4flp/CXLvM3HChtTuCeAiof3s0V/YfAxu8HF+otf0ApeHUvgUG MxeMACV+4kgXuidZB8WCoonEBt21RadqT+/dYt3uW92WeHHN0G2sxWnxIgfJgZoWtk Mss+4kom9kQFB4kRGjcfD4efRioZ8gHF2oWgGpH7UIErdsXpGvrbYsYd9/I7XG3kS5 snI3iiHPi1hnxKGFqTltxOuLP1IzszKFhMc6FqGCwoyD9UafrD4G3jveOBC6wdyXO/ B8GRHXAA2t24hiBkfVeQfkTNi/I0gA/qIPvgPb0NLVaKDx1gNFkm/tlHcJMHS5c+bW IimfDh7I9ScXQ== To: "David S. Miller" , Jakub Kicinski From: Alexander Lobakin Cc: 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 v2 net-next 2/4] skbuff: constify skb_propagate_pfmemalloc() "page" argument Message-ID: <20210127201031.98544-3-alobakin@pm.me> In-Reply-To: <20210127201031.98544-1-alobakin@pm.me> References: <20210127201031.98544-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 --- 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