Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp629006pxb; Tue, 2 Feb 2021 13:42:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1+yOjfOlOtcwuduarWAd33RhLUSDbM8qZUiMRPCKu8EdWPG/wkG6uN1iRTOYm7RGT0qv3 X-Received: by 2002:a17:906:708f:: with SMTP id b15mr4959ejk.267.1612302142293; Tue, 02 Feb 2021 13:42:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612302142; cv=none; d=google.com; s=arc-20160816; b=iq17ZKOev2Fz3DFxY4bR4JE/lJliha7bYmQUZVj1ozZLJah3sIsObqlx5dw6/2DPfk BkVOZdsgaM1yKBm1oknxifn1oPOuFVhb5FR41fjQWPWpOOVhroOcr3d7DMwRQ2CvEspt r4kHNZmtrA/9oPEb+yXW7M71F1JbeBvuj3b3mNmYdPkQTNIbU9xuZR7P//jU26EqUY/F a50jcg6fjcK/lCcUU3A6kn2NQpfPtSyX5zWVYmusPRQT3h4RPQWzrZNqHk34kcTyvEu9 2dXpQd9yxlaWRPgpkTLu4Pq78iP4+cHGO2jF+5l/nBef8+p4EHhQHw9/EG4f54ZFVRqS hiWg== 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=monHk/fxZ4nXXOyQDPpuUhxWD3m0gA2ARNLMpBDsCIdEvjROqTcPo3fC81ae5QOGwx QD1QhiD9+0sE0cUcWVFa/ytlw9VLF0aXNESrFYlYdPYgc33tmd5jsztosJVvxrqvAL+i BdWEjP8lZXnijBhAeakyCCVtHxGOP4GDDrAPJpHQJ7YDpQ5BCYmVcLs96wZzONWrR+TO S9nuHBNOzVjf5li6ztATPC+l/erA54nJNN9nTs2aM7OFiHa+5DWMIXqOMvPpTgKj9D0B a4Jw37jTKcyVaQdtNFHJZPqQ8XtFY/HvOBGFY8Hwz1nt2fKtSLpO37i7U41eGdWyd7U2 rq1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=VuC82FKp; 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 f23si13188502edm.270.2021.02.02.13.41.54; Tue, 02 Feb 2021 13:42:22 -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=VuC82FKp; 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 S232584AbhBBNjT (ORCPT + 99 others); Tue, 2 Feb 2021 08:39:19 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:31091 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232402AbhBBNb5 (ORCPT ); Tue, 2 Feb 2021 08:31:57 -0500 Date: Tue, 02 Feb 2021 13:31:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1612272671; bh=Ykp5oBUQqC+epeovOARUFyMIlBz94OtNSxnarlpoxCM=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=VuC82FKp0cBH26gfiPCBhPYJciwSACumC7iNgDRUYmQxnOJSShchLNXSwlnvj1Wib Pnai7uHviuGVYpmsC7xcVQk3XrKLW1nAUBTt3IEwNtXf83PPs5SJ6h3ISr4E4WlCXi uu9SNKnTLcVmdbqHA4oatbpUKg1qStJ5lBowG+ZKe72EykqijoPGY5zz8z+tRbOtfX TZGx5O1Yz2TbP6If5Nr18xeFqiT27iFM2T8lrexPfjlzaZI3Okyh4wvsEuEWdZrqA2 iujsg9mV236040xjxcu8kACpX3O4PIjbuWb6Yb2srEIUbdsJ6rqFfa1jPazJu3U8xw 075L/68sfYiAw== 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 RESEND v3 net-next 2/5] skbuff: constify skb_propagate_pfmemalloc() "page" argument Message-ID: <20210202133030.5760-3-alobakin@pm.me> In-Reply-To: <20210202133030.5760-1-alobakin@pm.me> References: <20210202133030.5760-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