From patchwork Wed Apr 20 00:21:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Marchevsky X-Patchwork-Id: 12819517 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2432AC433EF for ; Wed, 20 Apr 2022 00:22:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346126AbiDTAZg (ORCPT ); Tue, 19 Apr 2022 20:25:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbiDTAZf (ORCPT ); Tue, 19 Apr 2022 20:25:35 -0400 Received: from mx0b-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 700852ED7F for ; Tue, 19 Apr 2022 17:22:51 -0700 (PDT) Received: from pps.filterd (m0109331.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23JMJEVK011745 for ; Tue, 19 Apr 2022 17:22:50 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=facebook; bh=a+37SnlEJQyI+SZmrCyUy+yLnFH8Q3gwYciumFrmm8w=; b=ifs9ha+mU0x0a5mr6rNK7kNR0gY6g1HhdS6Ca3gjJIRorp06LHuuiWfrP4E8DXecMAye kA/VoBVpEb2XNhuQbOyocmR042czxFNEADS6JdmRi5iQcB6HBY8MWTYamFlpkxVPPg7S nugWrSgINixgsL5cFEbtUzot9QLFiYDsbaU= Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3fhn50xxs5-11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 19 Apr 2022 17:22:50 -0700 Received: from twshared5730.23.frc3.facebook.com (2620:10d:c085:108::4) by mail.thefacebook.com (2620:10d:c085:11d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 19 Apr 2022 17:22:15 -0700 Received: by devbig030.frc3.facebook.com (Postfix, from userid 158236) id 7FE7610F66462; Tue, 19 Apr 2022 17:22:00 -0700 (PDT) From: Dave Marchevsky To: CC: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , KP Singh , Tejun Heo , , Dave Marchevsky Subject: [PATCH bpf-next 3/3] bpf: Remove duplicate define in bpf_local_storage.h Date: Tue, 19 Apr 2022 17:21:43 -0700 Message-ID: <20220420002143.1096548-4-davemarchevsky@fb.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220420002143.1096548-1-davemarchevsky@fb.com> References: <20220420002143.1096548-1-davemarchevsky@fb.com> MIME-Version: 1.0 X-FB-Internal: Safe X-Proofpoint-GUID: jd9VpfXD4YIVkB03KuUminEoJDoyaH8i X-Proofpoint-ORIG-GUID: jd9VpfXD4YIVkB03KuUminEoJDoyaH8i X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-19_08,2022-04-15_01,2022-02-23_01 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net BPF_LOCAL_STORAGE_CACHE_SIZE is defined elsewhere in the same header. Signed-off-by: Dave Marchevsky --- include/linux/bpf_local_storage.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/bpf_local_storage.h b/include/linux/bpf_local_storage.h index d87405a1b65d..a5e4c220fc0d 100644 --- a/include/linux/bpf_local_storage.h +++ b/include/linux/bpf_local_storage.h @@ -104,8 +104,6 @@ struct bpf_local_storage { container_of((_SDATA), struct bpf_local_storage_elem, sdata) #define SDATA(_SELEM) (&(_SELEM)->sdata) -#define BPF_LOCAL_STORAGE_CACHE_SIZE 16 - struct bpf_local_storage_cache { spinlock_t idx_lock; u64 idx_usage_counts[BPF_LOCAL_STORAGE_CACHE_SIZE];