Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2385229pxb; Thu, 11 Feb 2021 10:58:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRybpKKqHeuLEFCzxh7JRob/CRbPM3JckYzrEkMiI5JNLyiwUAS2xFOVFVUS3M8ZrO8Bo8 X-Received: by 2002:a05:6402:b86:: with SMTP id cf6mr9960386edb.66.1613069906933; Thu, 11 Feb 2021 10:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613069906; cv=none; d=google.com; s=arc-20160816; b=yFl+DUO09QoMEscsgr590XtEvr3qruJLh7cACT8jDH1YdTz/5tUNFReY0EGp5if4q8 eULbI8Qv9f/J0L+KkHTHR4JhfilAUUTbDAT/6qFUs1krFslNBFWuWJU033+RBHaAu8Xx mJ5YhSraxMP+o3Ym6Hmcx5ajJWwc0NU0WEY6slyjYn1bWzqp9x+n47LJCmFWyZAUko3F w2b+sprfOVyNZBVyn3q12K7UHb+kUx9nIUyq3zyRi0LhU48O/06LlGXe9CFXao3lv960 vi0MJdzQnfcpM41MgKnvZP0wNdbWBYfYRMrxsWVWLrz+wExp+bogdXOTeFd492Cq0Y77 meMQ== 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=1jmyGVktapkh6qfM8bIJnHx7xqAc92nYkNV3TutbC78=; b=ABqPfBssMKlURVPhntBJ1UukzK9dKqXfctTosozuYitLnoQHnG8F8csDJXIGYSClAR Q9m1M4GY3BcyRJXpF9TASb+ms5H2XtZ4UX2jLzjMkNnAXnAnybnqGJJ4QF40tk0aoE2r 38ztHfJwnIMtUTHM017DIyfXfjyuKpZlwZbwJ1L6xwj92Ay2z/fa3kJ4t0Gkz004FG73 QxwPAKvDJwmvNih5coSOY1MAtV+pIplskPnmrkht1N3iy4tvUVQTWQYStj0acHWGubTw pYOEDQEhv1oVdj5BxuoFEcovRu1m6MRZmo+x2eav/nyCqEu4HXspunYCYOCoFzVd1Pwa bSzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b="hekY1/1q"; 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 v17si4358945edr.19.2021.02.11.10.57.40; Thu, 11 Feb 2021 10:58:26 -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="hekY1/1q"; 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 S230489AbhBKSzC (ORCPT + 99 others); Thu, 11 Feb 2021 13:55:02 -0500 Received: from mail2.protonmail.ch ([185.70.40.22]:39070 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230318AbhBKSyJ (ORCPT ); Thu, 11 Feb 2021 13:54:09 -0500 Date: Thu, 11 Feb 2021 18:53:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1613069607; bh=1jmyGVktapkh6qfM8bIJnHx7xqAc92nYkNV3TutbC78=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=hekY1/1qCKJsRIICxOgdhuJ6FiARFH04v4IT+W023LZ/GlAuYL9cmtJz5HSDvMmaq EHX9f9BYbUCe+ucVWBrymmCJKbDT+tBxu5xuIcpT0DE5WSm2VxMwJ1oZmgNjGTWw9a NAa9hDCpedYO9ry5Sq0b0iGCi946L9Ftk0FisCD8ZYLr1w1SF6pxuudB0HfZFMksWK BjFmLyY4HBlUkqb//dRIgGXEYLd7KnXEB+j7blMqUIoaloCUiI8FEWYW/+5Ia7Jzkq n2bwl34OIE/SRTeaGd3CijuzN4O9kpavVlnxnh7GpACdXXiDVevNvTmikqHQv1EfdT xlF5/rYWFWAWQ== 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 , Jesper Dangaard Brouer , Alexander Duyck , 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 , Florian Westphal , Edward Cree , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v5 net-next 02/11] skbuff: simplify kmalloc_reserve() Message-ID: <20210211185220.9753-3-alobakin@pm.me> In-Reply-To: <20210211185220.9753-1-alobakin@pm.me> References: <20210211185220.9753-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.1