From mboxrd@z Thu Jan 1 00:00:00 1970 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 741BD3DA5BB 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=1772729672; cv=none; b=b7tMX70Hd6ekSwN2FzYMQ/MhRXVRhAA5brGgIMy3FdJu14m7EHd6/aBO5vRsSrF+GsYEBkd1zFtqWuO40WGFm8+V8+jcdaTXadZiuHR5GUhoFvKmVkZ2jK6H/aQZl2WEYnkWHAbNRVZqaVUeqXpirEMgdieug5HT2Eicf4AdA/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772729672; c=relaxed/simple; bh=Bb1KMrLqycT1mJTEbsbAR/yPkfis88j4rK2phU3dd5U=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=DxfLik/DNbMV/cDtm65UYSi97aH+Y/tjPRcqKGbRw3TsNGgq5cRzbZuZcEKXvjRGAsGkL/4J+HAF6unH6sZAwZAu8LVDvG30TIKB4rsxQ7OjAzVdPGyZ9kGRXR3CDu0Z5E3wyrZCynKr2ZGWVdBtiAmgJ1UCtUmDkaszut0lUoA= 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-4836fbfa35cso45694295e9.1 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=liW/bccRzdzXTllg2Sr8kPEFOtbVaLTmuaow2Soj34s6XQwQj2D74i799WZIZno7Ve FKlh3rqyLsBEs3yCfaUAu6jsQzwXQZPx6Ubu77lO1hfGkJD62FQSc+LD/56gsvtbhhOV qPIopc0N7QK/7pNBPZX5ulpPXOjiCtS1f7VA/6lEBZWgqwbZEaRx/JthIpDoUfG+swF/ oRgbWqcYCECx7kLX4rHqldGxwa3xOKmCQH7F6b/otVQhAkwO/k5GOFLr90lfjcerN4XC MtyITKg2Tr0OomrPEcWAH5CLV38TMLQDeokl2OyCtDF78J/WdOjZoQAR63YiGlsCQPmj Vj9Q== X-Forwarded-Encrypted: i=1; AJvYcCWIa5xYeLcDl7gMDiDyBRgNkggzndFZIGqfE+1VVPfZzvdUKPlHLqpiF4bEw8a6OpWBPj/CWwIPdg18@vger.kernel.org X-Gm-Message-State: AOJu0YymkMFKtV30NZ604Cfp1uzackzTxYeUM8qH/6u20LDdsnFwmx01 jTrm4B+tNfXVLwGDQtuaWVTJ7nmCIIDg0pz10Tz4PZ/PAGAABHzrNVjmUoc4ia5f5xFf9UZtJ3Q RsvF3u1rPi+9s3OeoLA== 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-arch@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" 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 +/* Kernel symbol flags bitset. */ +enum ksym_flags { + KSYM_FLAG_GPL_ONLY = 1 << 0, +}; + /* This ignores the intensely annoying "mapping symbols" found in ELF files. */ static inline bool is_mapping_symbol(const char *str) { -- 2.53.0.473.g4a7958ca14-goog