From nobody Thu Apr 9 23:23:12 2026 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (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 249DF3D7D9C for ; Thu, 5 Mar 2026 16:55:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772729723; cv=none; b=Y1FQja0sYNBU5OQs45o7hpXT2crAtkk8T4v2aw0M+svDdSixRw4wZx2QIWEczelEHyhLP12g0n43EsGDV84qZic6ZC9t9Lht2oRubGHZGdd20BolsnFLKGJV41uUFIu8BT97r2QhuMvH30lEt9f3npBozYSRbAOwztOz4rx6EqY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772729723; c=relaxed/simple; bh=Bb1KMrLqycT1mJTEbsbAR/yPkfis88j4rK2phU3dd5U=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=SkES4xoFVpsN2Rr66pXb5FLfrThggz22i8Gh2uP7OXPu5rwBl7jtYnB+9wegGgrxxNAihAuA8eG/6SIIwv8n1Y63KUvid0jI8/WatP+0x2jIbErshtD3FTrK/hc5myPBpQms4WTsERL+7jfp0n2T1kmedcLXc4CpI7CIpYfuYig= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--sidnayyar.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=GeTWH3E5; arc=none smtp.client-ip=209.85.128.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--sidnayyar.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GeTWH3E5" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-48378df3469so57387555e9.1 for ; Thu, 05 Mar 2026 08:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1772729720; x=1773334520; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=dBYdKguW4OR7832WAjw0ax/pGR/ObsDBsVmddi7GUko=; b=GeTWH3E58TZXYykT+YTk2W0CvHwg+oB/gc7GKfkDBBtS23oyRdK68pKoGKN0Z+mlx0 msULwJ/u6BQitz9M3oru+4V3K241i3+M7Pv2fNELKKS0lYR3ZwL13CVHivLAN5dfXkNh MXzdKB5arkDjyHB8aDApNS1eKVacpaJphSO/Yfd3Lxc/MlWfispc+4Hv0YrLOntkcTnB rrBRTIXqNH0LbpvU6KiqoEF/nlSijgjABuMX2f1pcV9hIrPS+v5szMCYhMz5FKXgk4Yc pqyjf482QCLyICY4AjbvaYxuaHQi6ZHNDxo+KnhI0x92IAfKl6pcFKppG3EVelLvn+ud AFuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772729720; x=1773334520; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dBYdKguW4OR7832WAjw0ax/pGR/ObsDBsVmddi7GUko=; b=Tp3wKFpZ9p+6lFFLeIIrLAlc0H7yr3Cc5a1FfPC8BMWOuJphYc4vbxOvYyQA7JqPxX 0N5hxsbxYXo+165W6z12IHN8ceDvaBqTvSzLJbyFzM4A4gRYRIR8ehEMfX5AF9PicGXQ 9ScU9U+IwxsgylUfQBSSMHLE6O7bZ5SM93idAdZcbAjrgVdtftO+MPRBSR9sqof8V9Vx 9csbdhaKQGbqVuUBWao6Gagg4jW8EuRAa6SGlGXjyQCTk/S3GwjplIeCGfxiX2YtzcSL UWfwvAi68VAdti/eO1Nm9c/OZmk9iJaN3xp7kK18X6PHfjRhURi19lfekrNwh7pdIUkB GJEw== X-Forwarded-Encrypted: i=1; AJvYcCVnQTNZi06aSOoubSq1Two/0uOEJvz/TH4xN9eDAmZ8GHJ3abz3RsbHUfM6C/PtY+jKhdueGoL1SHfX1EQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxWnABkFp+eixV+XvHaTSVLdTOBTa1qQsIxdqw82nisUftSg2vz H3bqM6+Ntf7CU3mpa8m8mrBa9EdkTT4Bsy//+YOL0w9w64IslcOzYRMkhChfn8nQ3NP7smQPZN6 /ieTbG15fnXTBbCxMZw== X-Received: from wmbd24.prod.google.com ([2002:a05:600c:58d8:b0:483:248b:3e95]) (user=sidnayyar job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:6814:b0:475:ddad:c3a9 with SMTP id 5b1f17b1804b1-4851ee9c2admr52391175e9.13.1772729720453; Thu, 05 Mar 2026 08:55:20 -0800 (PST) Date: Thu, 05 Mar 2026 16:55:17 +0000 In-Reply-To: <20260305-kflagstab-v4-0-6a76bf8b83c7@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260305-kflagstab-v4-0-6a76bf8b83c7@google.com> X-Mailer: b4 0.14.3 Message-ID: <20260305-kflagstab-v4-1-6a76bf8b83c7@google.com> Subject: [PATCH v4 1/8] define ksym_flags enumeration to represent kernel symbol flags From: Siddharth Nayyar To: Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Arnd Bergmann , Nathan Chancellor , Nicolas Schier , Jonathan Corbet , Shuah Khan Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, Siddharth Nayyar , maennich@google.com, gprocida@google.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Symbol flags is an enumeration used to represent flags as a bitset, for example a flag to tell if a symbol is GPL only. The said bitset is introduced in subsequent patches and will contain values of kernel symbol flags. These bitset will then be used to infer flag values rather than fragmenting ksymtab for separating symbols with different flag values, thereby eliminating the need to fragment the ksymtab. Signed-off-by: Siddharth Nayyar --- include/linux/module_symbol.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/module_symbol.h b/include/linux/module_symbol.h index 77c9895b9ddb..574609aced99 100644 --- a/include/linux/module_symbol.h +++ b/include/linux/module_symbol.h @@ -2,6 +2,11 @@ #ifndef _LINUX_MODULE_SYMBOL_H #define _LINUX_MODULE_SYMBOL_H =20 +/* Kernel symbol flags bitset. */ +enum ksym_flags { + KSYM_FLAG_GPL_ONLY =3D 1 << 0, +}; + /* This ignores the intensely annoying "mapping symbols" found in ELF file= s. */ static inline bool is_mapping_symbol(const char *str) { --=20 2.53.0.473.g4a7958ca14-goog