From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 EB5603176E4 for ; Mon, 3 Nov 2025 16:20:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762186808; cv=none; b=nCXQoP2QgvaXc0X8fXH/yvSzznmdnGZ5URwhr6I67NO6hgwbW+X2vnIcS+/Ju0YYk/gSlE66ma7EpgJ/TfKxdWNMTdsD6/2WDQJSOo2yBxKyOuy1Qv/u5Iih+qI6SwQyQNpxt7cSyy/dLtKDipepGBVagAVCGYaaw2/xVdwI0xo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762186808; c=relaxed/simple; bh=/5wAYAreFX43kAUmx0C0owVCwGfgfUmGJQjEtp5PpmU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JCYiHDnn5cYoOrpoEVuTWKbz+ETp+VqMUanBV1mC0C79SjDsRW1xAeXVoMTMA1gtxjWexOAwtjie9O+Sey0omBbFEd+8I6i79NiX+7he3WNtsDrAEkj2CUi123+Okyg5eskoqruf4S8Xu8hVpDibIUpQctJYuDKjIykMuWuyFB8= 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=UJu4fRlT; arc=none smtp.client-ip=209.85.128.74 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="UJu4fRlT" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-477212937eeso33052255e9.2 for ; Mon, 03 Nov 2025 08:20:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1762186803; x=1762791603; 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=ftIFzkEm1zjsUR3x20qQ2ikS9QsKBzHYJMroz5LF+Dc=; b=UJu4fRlTIAtrZ7NFRQwUJeBxNsfxMBET1Qvx9Ec2jMjSfb3X2AUQHuN0/H2xcOTlem 0J3ixvJSyFWjTrdhHfrL97EyhLoSmR7lHpB5h8ThvVM7Dr0CDYUe5DJot1+I1/bWdb6i /dIgQmXayRmHP5g8xmOiXMS81VJXH2MRS8NU3MPRalTPGIMbdqK1VYkyLzK+ZXAu2aMz D8voxAOBBqZAVdgMJzuU8wNxXNgQ4sEAsW49Tf3EtAheFRYutjyBZuyJkOQfoxY2/9Ur /4w5lVkHEpuM7mzFy7cP6v2J6EM2ss+FjdlwAJb/31yvD7l1q32P2LX8q6y1LOd/z6F6 vPBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762186803; x=1762791603; 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=ftIFzkEm1zjsUR3x20qQ2ikS9QsKBzHYJMroz5LF+Dc=; b=qcS7HCm88YsCP4/9bYHPCeYB6+c/j4JDQJtZQfL0V/VJMALIABQoAVcEY+/s2oUzoQ f1AsL/wJ66tFIPoy7GiWPxP/krh8Gj694o7jrEhieuJXMGv3J5uq7eGrcxqqbcBpLlFP suHNHAMUPPkOhYnYHPeiKo8eMsRDMLdPHGEmve+u+xQEka3g5TaIZFuBTtJAQnzbrnP9 jsHmkVXiEVYmlEmoblfNZEGBNgQNpBH6gXZs2KVHxunsgnvkUi+A1b5R0OXhosF1IrxO 3bkPdSvrXZzyKxluCGl4E5smLFc2QjcdFe7FOWyd9CD2u4bv3NPBlai41yo+AoiE6X6t V/Gw== X-Forwarded-Encrypted: i=1; AJvYcCU2ZTlZVWWeLjmQbn0RD3eK1a10xb4Ge+/oEPnMlhU2SbWjs8Y/dyeJbKZAjMXFGBBT5m8ntfmRb4cTvmAe@vger.kernel.org X-Gm-Message-State: AOJu0Yxe7RIuMxG5WumLJ7+S8d+9KRYDZsX3dmDvH+Ha8dhCs44cegUL ++xfd2W2enVsoNncsNGDH/j7nT7CVRiHRT88ov4Bl3bBvhfBHEjdnwVokJ6l9b8exKxbnkCzZES 3i7ppUvyA9H78oTdvIA== X-Google-Smtp-Source: AGHT+IGECLnp+Wa6r4Tdn5YaQ0l1JnV9PG0t+Gh1GDl+yBw8QkV/OxuaBN7aNEBYUrBG8kD7+TwvFiS8NMYrRcQ= X-Received: from wmkn22.prod.google.com ([2002:a7b:c5d6:0:b0:476:9bb8:201b]) (user=sidnayyar job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:524e:b0:475:dd8d:2f52 with SMTP id 5b1f17b1804b1-4773089c6a2mr132957575e9.32.1762186803282; Mon, 03 Nov 2025 08:20:03 -0800 (PST) Date: Mon, 3 Nov 2025 16:19:47 +0000 In-Reply-To: <20251103161954.1351784-1-sidnayyar@google.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251103161954.1351784-1-sidnayyar@google.com> X-Mailer: git-send-email 2.51.1.930.gacf6e81ea2-goog Message-ID: <20251103161954.1351784-2-sidnayyar@google.com> Subject: [PATCH v3 1/8] define kernel symbol flags From: Siddharth Nayyar To: petr.pavlu@suse.com, corbet@lwn.net Cc: arnd@arndb.de, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, mcgrof@kernel.org, nathan@kernel.org, nicolas.schier@linux.dev, samitolvanen@google.com, sidnayyar@google.com, 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 symbols GPL only. Signed-off-by: Siddharth Nayyar Reviewed-by: Petr Pavlu --- 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.51.1.930.gacf6e81ea2-goog