Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3694038pxb; Sat, 13 Feb 2021 06:15:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxY1Zckzog2mGe4BdoFgyCwXJwOR4pDHuEFvLjEctorGSsCF0olvN49aZt5X5q+X7gpbJCI X-Received: by 2002:a17:906:d8ca:: with SMTP id re10mr7767982ejb.18.1613225702837; Sat, 13 Feb 2021 06:15:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613225702; cv=none; d=google.com; s=arc-20160816; b=MgoycoXwWv5VgM84R3wAz8uNvuTmRdwvpOYl2KIwCDie8SEjs1XAtMT3mLff/COZqi G0utNYWfaL0fV8mRs6ZNz79iIvK+u+ZcbsqBaeuqW7lc6UawAOpEMehyM8s7kPjGNeIN kFvbgCD/egbaLCHqZtsshYta/qJjha3Pmp7oMTdApY2YFzsJkQnQHpocx9mAV43BeX8H x01cC954snrbcHWqR99pdnyRbvSRrya5bBvt2kk+vrbcNTcwz9UXHNKLNriouJkufB5g K8Iuy+ALWclLdALumNKA2xfy7DG4qdIDo2ALW/AOTTjSZkMhn9YEOdHcUOPs0b7O/tpn Z7Fw== 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=bYjL4t0w9KusUM56gM4lSh0wb/Msg80fnqwWV5XUl4KFQXwfizKBDoAHotfWAtDAOn WKzNQA4/Uvwu4uslYXwvkGXiqySUy5E8ySiReu4F4GMqUk+OzDeWTIkAd2x8fbtvqiZg gCxrVYE/FxhUsYYmbYlwr8XkVsek5lnqITx8XsY5oMq8D7GiI6MgJ8/NxgrnHDaNtRqt HNDwU+JVP+rS7iF7Alk1b2m7j7BKh6DpV4n9btwURscaMu1WulOvSm8B+N/8lUQVLjug pNbAopJi6KAzJlB0R9JtMsVodIJxRwa+QAcOrN31F5kQ5eLJm1SJxqNrhlxDfVcdlQvw KANw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=dM+f8wDu; 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 hc39si298364ejc.410.2021.02.13.06.14.39; Sat, 13 Feb 2021 06:15:02 -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=dM+f8wDu; 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 S229775AbhBMOMb (ORCPT + 99 others); Sat, 13 Feb 2021 09:12:31 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:30037 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbhBMOL7 (ORCPT ); Sat, 13 Feb 2021 09:11:59 -0500 Date: Sat, 13 Feb 2021 14:11:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1613225476; bh=1jmyGVktapkh6qfM8bIJnHx7xqAc92nYkNV3TutbC78=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=dM+f8wDuubDRCaJEpwYfJkNoSzCIyCLBT/PPspNL/xDD5KLXunLojDr+xthEj4yJH HKOndABHYBk77bRUo8c833waXmVq0GENM4pLkrgbR1yxu3TKY8ZWD9RpY3IMutV41F fra4R1/4deJg7uefcqXClC05v0h02LMSiePvkLUmFcXJ7na2bbuereTnCLhVgnC0DC rnJhpI/mScTRtRcume3v1qw56xijmIG4OWUbbMvdKQjS8Gj72RFarrQv1cEGYrFC38 U2TE16f4Ci4cf4tbw21r5zCziYlWU7rN79zZY8n1fjGeDpkIKiVLjXmMePpJOFlXDq MV0m6aRDlf7Dg== 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 , Alexander Duyck , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Taehee Yoo , Wei Wang , Cong Wang , =?utf-8?Q?Bj=C3=B6rn_T=C3=B6pel?= , Miaohe Lin , Guillaume Nault , Florian Westphal , Edward Cree , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v6 net-next 02/11] skbuff: simplify kmalloc_reserve() Message-ID: <20210213141021.87840-3-alobakin@pm.me> In-Reply-To: <20210213141021.87840-1-alobakin@pm.me> References: <20210213141021.87840-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