Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp567965rdb; Sat, 27 Jan 2024 21:54:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjQ0oUpAqWiKsEjQD4l26uF6mWWZDXRawXod5hxZ8ECt9PD1idutBPzA+ooONML7N+Fbi4 X-Received: by 2002:a17:906:4719:b0:a31:580b:2239 with SMTP id y25-20020a170906471900b00a31580b2239mr2089911ejq.29.1706421277681; Sat, 27 Jan 2024 21:54:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706421277; cv=pass; d=google.com; s=arc-20160816; b=FAdKwpfH74Zy3ZFzqAW5jGGT2WMYUBr2km85dUSpgqLjNPGRi7NR2Afusg2+IMWA9c bsZ9tj9ZmHKWwC5zvJ6v8qcTois0c6FxwkbtBQJOqPv4pQ375y6S/xjKW2UsIazbA+pt 5vc4J7R8n+0skE2ZkOMI39bWy6PAHm1JQU9tymtHCzfWJNRxpSSnpXgkVs/CNsSol8+1 nUa5pLD+KpHk0qkp1zB29KiI4Nv0ls8fhy3AV83m8VwKWGmMpRCiJhEQIX5VkhXN6V8N QYNXtjN6YhbQLoBEGtXkV4TtQnaZTChTr/odJTrzfVQnwFBMPYPt6izUv7Xcdd3XHxPE xNew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=WoMzznv9gs9CVHyNB3sDyYu8pYaEpVdO9qAfTUaEKLQ=; fh=0Zkfzfipp+8LhjGznmhIEGvKHjXbwYndni5OS+wIEiQ=; b=qKTs01Fvut5ryIbuj2+wEal5T+vm0gEAfb8e+ERfm+G8DUbfIO+EfQCXPlXWoup9cL rQh+ReoCOqGhUJ53IUwsKFQpSMkTeNiFh2bxCgSlZtPqf8Fl2upfhlalw9mqnjBiDz4z Zyh7jpHPrTXRilpbWZnNpHTg9Z5qY136zcGkY7SJmOP/SeCnkXfYOOTA3Rw53hbpV8XV 4H4uyFgPWuc/GRx15sStKgt5O+2gjSDh9Xd1QR7Ld2VgKDiOOZiOUZEjJ6htR5cgMTxW 6nhj94UHwXJ1i0M1zS0eJ8Lg+JVwNajzMkde7H8DSLSghRctj2Rh5YjhYwPSVCAIP/NP ePiw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=iS7lodvy; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-41546-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id oy4-20020a170907104400b00a3498eb611dsi2187995ejb.748.2024.01.27.21.54.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 21:54:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41546-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=iS7lodvy; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-41546-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 70A441F22A57 for ; Sun, 28 Jan 2024 05:54:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 712E6D52B; Sun, 28 Jan 2024 05:54:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="iS7lodvy" Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6D90D50F for ; Sun, 28 Jan 2024 05:54:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706421269; cv=none; b=WWvUU3kv3IJMWDMI2SjwSuCHoipg6u9DItUyt/MqyV8WPcNShnCg3HL1aFO+W0v8juzgFPjvHoznQh6MgH/egqZqhaQbFvfUGQN+la142WQpHRZDzGDsPzYalcom0qyN8tRImdhBirAT3cyrQRwdamlzUzgc3GalUb7MPjiqF8A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706421269; c=relaxed/simple; bh=T4a0KkJe3ySw24IAuPysHE97+mezCU60c6pezH3/Qas=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eNPboro1ORPeS8EDL0wRRI5ms5QoqVHbxmvvr3UQpEi1ZGbKOX6Be7pHPMqaGjajvTYu1LH2mqCzHHeBsQT7HzyBynSuySmEPq1DdrsxgWHQXlXt/iNY1SVWTUngFiiOTMzANqM506jGnURh0Dt6SqArGD/Tvyvd/vTyKyovaf4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=iS7lodvy; arc=none smtp.client-ip=209.85.161.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Received: by mail-oo1-f45.google.com with SMTP id 006d021491bc7-599fc25071bso1222168eaf.3 for ; Sat, 27 Jan 2024 21:54:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1706421267; x=1707026067; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WoMzznv9gs9CVHyNB3sDyYu8pYaEpVdO9qAfTUaEKLQ=; b=iS7lodvy3t5Qh83KiRk2C+o90nyiiD0XPE5FagdFsePnYmypF8cHdcz+A7XGNhY9pm sDgYBhHQWahhjYmFeqEbEP4QlxQHt9ybJLUg9SDViqmr8i04OW4bHQdi6Svq9EmWpDlt 396GCnd+fXSIvgzJxAf4pAwwaqYgR8LgBtE9YDV6GyscBD/qbBhJlLKSG1VW6wM8tT4w qhbUOfixZs1o1DsfW2vKsbv8FOQqbqimFBEhDIuZNnuAoqnbstoElakQM4RbfTXTiG71 n4P2xsDZJTVQswtj/gs44tYoO8wIY9zSGX9KJOHInPUJIgHjqAyUaFWtC8MpY4EW65EK Of7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706421267; x=1707026067; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WoMzznv9gs9CVHyNB3sDyYu8pYaEpVdO9qAfTUaEKLQ=; b=vyR22x+nKjgOPqcSRDERMdkv2QAaDnrQKoLXKdQ2Ng6ps4+7kouFcLV4V3NSe7Ib20 nhsMIiQgbKHIFzU7IZVOWMeaUCEyIQMf3gMs8I8M03aErdin91hRJ0C2CTYv557gyrOa TOEn1gfFltuokMf1w9EOLpAz61qrnhx0uVc/JCv+1SD0PoS6T/UBtW6V9J3febBWIi9t /Nxu5E/KuSV9l4ZUnRmVg7AAG3BAs3egaE96GTxZ2tZk9JSEIibRCYfc88olGl7oDWT0 dkk+j2yGR6wbBLhE2ntX+lR8fu/nVTPb7Sn5sRpF+gdmvKRbkglZXtSnFEyihWk5Tz/K DlgQ== X-Gm-Message-State: AOJu0YxVbDB/M/mN1Ep1VUOBNlkqRbC5V3LCTcah4n2wAsNytUnuGYt3 8WW6ohgMWrUJUhmsAHPRbqlnqrgrWiUo8hiP7CVMWSxXvs18MUQE8NZwxiffh5k= X-Received: by 2002:a05:6358:2489:b0:176:a102:568e with SMTP id m9-20020a056358248900b00176a102568emr3049490rwc.5.1706421266793; Sat, 27 Jan 2024 21:54:26 -0800 (PST) Received: from localhost.localdomain ([43.129.244.20]) by smtp.gmail.com with ESMTPSA id u12-20020a17090ac88c00b0029272682390sm3757020pjt.27.2024.01.27.21.54.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 21:54:26 -0800 (PST) From: Menglong Dong To: andrii@kernel.org Cc: ast@kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Menglong Dong Subject: [PATCH bpf-next] bpf: remove unused field "mod" in struct bpf_trampoline Date: Sun, 28 Jan 2024 13:54:43 +0800 Message-Id: <20240128055443.413291-1-dongmenglong.8@bytedance.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit It seems that the field "mod" in struct bpf_trampoline is not used anywhere after the commit 31bf1dbccfb0 ("bpf: Fix attaching fentry/fexit/fmod_ret/lsm to modules"). So we can just remove it now. Signed-off-by: Menglong Dong --- include/linux/bpf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/bpf.h b/include/linux/bpf.h index b86bd15a051d..1ebbee1d648e 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -1189,7 +1189,6 @@ struct bpf_trampoline { int progs_cnt[BPF_TRAMP_MAX]; /* Executable image of trampoline */ struct bpf_tramp_image *cur_image; - struct module *mod; }; struct bpf_attach_target_info { -- 2.39.2