Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp918157pxb; Tue, 9 Feb 2021 16:39:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjCqsQx7sW8XDc2NBu7Z7SLhdCLkreiY8KOQfYpLqw3mS651FoEvhp7MTbbOLoXuB3K20H X-Received: by 2002:a17:906:d937:: with SMTP id rn23mr331541ejb.57.1612917584726; Tue, 09 Feb 2021 16:39:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612917584; cv=none; d=google.com; s=arc-20160816; b=aJY/TGuxKvnxAdi7zuDs+bL6bkB0CA6dj09/gLxionlhTEwOTqH+Nb8+zUJWIXV0+F QhaJPUtUPQKWhVdm+s8Om3eeDC6DYnR9skmiPn+4+v2KpTVovA896dCMQTzzx5sCmGmc dC/1LycB/a1wBeXSL4SGNQXT6KwbcfChLw2BYlpywI4VkM/sZe0kvW6qlfmUpu78zEgc Sj96hrvKdqtG9lZqQJmAdA0+cFLfgB3/wAxaroJv5kJzkwY3ItHEOcsnyPnfagyQDU/5 nC+fPL/NAo2ODmu580AWkx9B14Q15SMCCiwqPSuOFsdaTF7Et2vCSPBuEmbguA4rqzXO L79Q== 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=xAmMBMhVGogGcZQk9S0AyKPMPlFzoB8B7aZY5oTMpiQ=; b=X06rCTfn5E0rThBd+MIUuFpDVqupv8FnHA/VRLr5WzutNyIUCzRD/+wgfX6W8javwi VSL3hGJVRVxhLk6FZKAw8Ve/eluuTVBVOlOs0P0bPKF0kv6uVGJb6La6lsI3fN3f0AH9 GR5tUrm/bNA4bSwYyODUleS6s5Rvk6gtwXZ/1S6+D3Un+9sCpGZLDcsSYZfBprXbyb08 bWJY6AnntU4IaEcfELo4pCzZrWF0NGtmCzutKKRWwC7ichlVULKyYI7q1FFcnX9o91cm 1sagVV7YykL1P1SL3zOJHtfJ4rrP1kHsnraQgl2osL3BV5RSp/lWHXiamRCM1wMubb9G dQog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=aQ5LuT4w; 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 p12si204098ejx.70.2021.02.09.16.39.21; Tue, 09 Feb 2021 16:39:44 -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=aQ5LuT4w; 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 S234399AbhBJAiD (ORCPT + 99 others); Tue, 9 Feb 2021 19:38:03 -0500 Received: from mail1.protonmail.ch ([185.70.40.18]:23919 "EHLO mail1.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234032AbhBIUtB (ORCPT ); Tue, 9 Feb 2021 15:49:01 -0500 Date: Tue, 09 Feb 2021 20:47:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1612903667; bh=xAmMBMhVGogGcZQk9S0AyKPMPlFzoB8B7aZY5oTMpiQ=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=aQ5LuT4wsTYqKxn3iSk/2Lnu9KvcFIHXtgFzQfgA3JMv2LtYTxLdZ7YbgP+OD9NbO r5h0X9tR4kiLQxbAA1Rrg23v81povpP55oFXvCOJ3fMSJtNQuWu8LSoDjR8zfqF27g CtOqCDJ42T5jSd3gSTJ0Z02QE5s68FH+4R/wDpKGi/VzfxgCjFMM/Lr/bFB5+6B+A6 Vh9U6+4qUoAYnjZDXYyJjwgeMLtH+Zc6npLNHC/I4pJyQ/HdwhTd5/6YyLIvTC/OmJ 2k+c0kqroTRsASCJj7nbUltZfNGaBSVRWmhc3zHyee6a6t+eg4ZA3eDAXDxVh5azOb z78RNxxt2IH7g== To: "David S. Miller" , Jakub Kicinski From: Alexander Lobakin Cc: Jonathan Lemon , Eric Dumazet , Dmitry Vyukov , Willem de Bruijn , Alexander Lobakin , Randy Dunlap , Kevin Hao , Pablo Neira Ayuso , Jakub Sitnicki , Marco Elver , Dexuan Cui , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Taehee Yoo , Cong Wang , =?utf-8?Q?Bj=C3=B6rn_T=C3=B6pel?= , Miaohe Lin , Guillaume Nault , Yonghong Song , zhudi , Michal Kubecek , Marcelo Ricardo Leitner , Dmitry Safonov <0x7f454c46@gmail.com>, Yang Yingliang , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Reply-To: Alexander Lobakin Subject: [v3 net-next 02/10] skbuff: simplify kmalloc_reserve() Message-ID: <20210209204533.327360-3-alobakin@pm.me> In-Reply-To: <20210209204533.327360-1-alobakin@pm.me> References: <20210209204533.327360-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 Eversince the introduction of __kmalloc_reserve(), "ip" argument hasn't been used. _RET_IP_ is embedded inside kmalloc_node_track_caller(). Remove the redundant macro and rename the function after it. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index a0f846872d19..70289f22a6f4 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -273,11 +273,8 @@ EXPORT_SYMBOL(__netdev_alloc_frag_align); * may be used. Otherwise, the packet data may be discarded until enough * memory is free */ -#define kmalloc_reserve(size, gfp, node, pfmemalloc) \ -=09 __kmalloc_reserve(size, gfp, node, _RET_IP_, pfmemalloc) - -static void *__kmalloc_reserve(size_t size, gfp_t flags, int node, -=09=09=09 unsigned long ip, bool *pfmemalloc) +static void *kmalloc_reserve(size_t size, gfp_t flags, int node, +=09=09=09 bool *pfmemalloc) { =09void *obj; =09bool ret_pfmemalloc =3D false; --=20 2.30.0