From nobody Thu Apr 9 23:23:25 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 69BAC3DA5B4 for ; Thu, 5 Mar 2026 16:54:30 +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=1772729671; cv=none; b=iGZBV46xZ+euZJGJ0zXj870zA0TjNQuHjnxJWR+iqBy85MsOJYLWExte3FodM+LS89nBtkZJsYOHLna2NOhkkZPFWVaYaiwA+GW0Rj+eiTkAYm0xE73A9U4O3zlMM2Qa/gREHHqMzdUh4ehH9ZGAUJfGxVvBmLcBpHmBl4cMIC8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772729671; c=relaxed/simple; bh=Bb1KMrLqycT1mJTEbsbAR/yPkfis88j4rK2phU3dd5U=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Cj3QBIqyJaKdpGEDbvqYSfFOVOI+53J+ho5PoXIpncPDzvtGZh/LyJd9zUMZo2LdtIVPGdBHSenGJkm2i3ZhR5aCYsJbGj3BoM6jbeXIVECNELIYSmCcfJ/XbTYrQ25341uDNrEdZISNlGAaX/WsNGHqFz8Aajd8AuCr1fncZp0= 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=sluHBj5J; 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="sluHBj5J" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-482d8e6e13aso67093695e9.3 for ; Thu, 05 Mar 2026 08:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1772729669; x=1773334469; 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=sluHBj5JfAAw33DMwk5C0P7EoC2p68PVq8RIlHzHG68iPKFgypy4gCkU+ybrrSk/mR +T4SjJSSWUaJSOFm4/INlHG7cYUMj9WxW7/H+3Nl1LpMOeQLUmZgrRmvtkAFzBNdah12 gS+n8yoY2V+rSh+zyKmbofIW/TYWQejCb+fQa2gp4pKtsGpNT34YmIgF9Xw+e70a16vJ O2mhpZERm/kgnJ/c67dnCwCdzTx0XKdFX/9k5OwGivtd5h8RiBsT/fARLO18LmHP+1po WQaSA4CQsyKZWJTH9Ef8qbx86eEvWCuDZ9r5qyBZkrGCRrMG/9ZWvdpXrqEOYKgt0YBy B2hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772729669; x=1773334469; 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=E560Atd4dSHyMbLLLLXOpK8jtEAriVc3b3hlHFaZu2i7Rgc0AtNO0c2jCE6QWYoWSN OymLJ+3YBxseFUDjZwVc7PVyDdbGYT8t5/LFYqbogVdjpz/U7pJFBwlYN49NzVzMtejT kz0wT04MafxPN8t14c7jvqYpLP20m7V7Dts72jwMds8j+CYK+yGmxYXs4hsy7ASP5SXw S/nj24tRqnvQ03OtRLQJYhQOFsWDMnC/YGIk+4UWsF685YsAYk8bRI8wJg/SRMChGLIG Wh7nnAGgSFPzyxd5GZQZoDTESET4ATJv9iJdOGWwIQQ3d++F6VS1weUlLiLUBDHmC7F8 QiKQ== X-Forwarded-Encrypted: i=1; AJvYcCU7zlYQ4xBnxU8fcX+YmpccZ/RL2YyicgTwamsR+fTb+gupWw2I8u9se5qleRkEujyvrLgNGmIr6xCm58w=@vger.kernel.org X-Gm-Message-State: AOJu0YyAyaEJEwy34zUGMY6iCZ4JyDowI66H2Ixp8oOT/0HRFEjuxx6p UY2BQivesf5JcNXJ+QW2jczGvrsMSjh7kpdS+WRHNWTahRZc1ADmw1kwQvlM4GOE9vLmDvrYWk/ TIzU7yorPHYKDas3ENQ== X-Received: from wmnf7.prod.google.com ([2002:a05:600c:43c7:b0:480:1bc3:e23c]) (user=sidnayyar job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:1e88:b0:483:703e:4ad5 with SMTP id 5b1f17b1804b1-485198800afmr106818555e9.22.1772729668779; Thu, 05 Mar 2026 08:54:28 -0800 (PST) Date: Thu, 05 Mar 2026 16:54:21 +0000 In-Reply-To: <20260305-kflagstab-v4-0-4fe6eea27e30@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-4fe6eea27e30@google.com> X-Mailer: b4 0.14.3 Message-ID: <20260305-kflagstab-v4-1-4fe6eea27e30@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