From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793956798; b=dbz+2rSeK46O0YY2+KnhPCXIxRq8ffNUOfQqd24SkJybUgbJYaKmqC4TunhhcONw4wT/ QXMv8FB5N3HiM39s5oYnFuf1Kdy0KWo54Y9oZCHeUXZG+nKCcG5YKSRzeyCM7leHl20pW wzBQxFKZAGI07uN8SGvOjw8ABFlGHwKjOarNR+X6CmclyLP348JVRgzpjbjp+2tQpVbaN UzwjiP1Y4E+Ms5qNuzz6eXOG4V66cep/CqkAtJ7cg3BEZacAo1T9UhiEirQiyuy4QY2hp wxQYnXWuRRLUv/hE9JNgzY4EqNI8UBLbeKN95JN+XN9MLqrnumC9BvFeD4luw4fTTcQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793956798; h=DMARC-Filter:From:DKIM-Signature:DKIM-Signature:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=VVQM4vpmIqtUkXlQycTZmxQFVlzTE7nC1mJ7AMYBMDo=; b=tEnLSmZXTWcQ0KBE2esogcMLUevBE6N7jOhxqk3Gse2X7kCa3iKuCTpZSdcVQPXUgTV3 3kkbbbTj574mQJiB0KlTGfeOckMMpreeHpCxGdVRkh01ERBgLH2J2Wjre3DBmPq7/APOt 03H4Tj+VRPKekfg1RqA1xCtouI+VZt/i2c4C5rODolX4tfHepi+0dPJBcCppbr8ji8FF4 luUS9I7/gQhzAI3xWnBa/Q4ezozlLa6XXd2uwQ3d1y44YRFw4XByv/wt5UYIqfcCe/a6i NTsa0MicmoQ5BlJVAGfkfrrF35l9VJEl1W79lQqBm9B9xfkNHs50C47KgrLBEWKgYhw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=jA7uuWou; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=rHEfF4HE; arc=none smtp.remote-ip=193.142.43.55 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 605D7606A329; Fri, 6 Nov 2026 09:19:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 605D7606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=jA7uuWou; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=rHEfF4HE From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1793956796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VVQM4vpmIqtUkXlQycTZmxQFVlzTE7nC1mJ7AMYBMDo=; b=jA7uuWouOwWkZQ+uSsTvE7Y3WvtOhduBDYoFkQlzPW0Zsc25QoSb9hZvbiH6aUxPF6f+x1 UE6ded12dAx3O5CmFBfjgODvb+tKFAlR0QuqTSmUbP32/tTdIjmK471dUzESfsDi7b//bZ HsBBEz9MpC9KupDb4rimU0dLC27cKoNDdiSnaUXxLMWAcbv+bXY4tp5Y317AIXv+HztLwu A7odMBP/D5pAzO6mgsFsDw3Gicq/GFFf8p0pOg84tDwXBMVt/1fBVhK5yvJhseJzc8TZFj SxL+bkH5OocsSw+/sYo+f+4jNUQ4kvuysOe69Z9m2A9W/VdmXkXHl8JZO+IO/A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1793956796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VVQM4vpmIqtUkXlQycTZmxQFVlzTE7nC1mJ7AMYBMDo=; b=rHEfF4HE/F/0vu2k1eqKQLg/3NzVGNRH0axzRz2vfFflb5RmrC8lYlc9V6B0L/scQlWpjD ECUgvlJJ9O4lP0Aw== To: Clark Williams , Steven Rostedt , Ingo Molnar , Nathan Chancellor , Nicolas Schier Cc: Sebastian Andrzej Siewior , Frederic Weisbecker , Greg Kroah-Hartman , Jonathan Corbet , John Ogness , Derek Barbosa , =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= , Daan De Meyer , Luca Boccassi , linux-rt-devel@lists.linux.dev, debian-kernel@lists.debian.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "Ahmed S. Darwish" Subject: [PATCH v1 07/10] kconfig-checker: Introduce overlays schema Date: Fri, 6 Nov 2026 10:19:19 +0100 Message-ID: <20261106091922.7560-8-darwi@linutronix.de> In-Reply-To: <20261106091922.7560-1-darwi@linutronix.de> References: <20261106091922.7560-1-darwi@linutronix.de> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Keep `expected` and `severity` as optional for every rule. This allows overlay files to be partial by design: they may override only selected fields of an existing rule. Signed-off-by: Ahmed S. Darwish --- tools/kconfig-checker/schemas/base.yml | 4 ++-- tools/kconfig-checker/schemas/overlay.yml | 28 +++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 tools/kconfig-checker/schemas/overlay.yml diff --git a/tools/kconfig-checker/schemas/base.yml b/tools/kconfig-checker/schemas/base.yml index 1cc19752ebd6..6217eaba3e41 100644 --- a/tools/kconfig-checker/schemas/base.yml +++ b/tools/kconfig-checker/schemas/base.yml @@ -53,8 +53,8 @@ properties: # y option is expected to be enabled (built-in or module). # n option is expected to be disabled or unset. # allowed option is permitted and must not be reported as a violation. - # This is used to exempt a specific symbol from a broader - # `name_pattern` rule with `expected: n`. + # This is to be used either by overlays, or to exempt a specific + # symbol from a broader `name_pattern` rule with `expected: n`. # expected: type: string diff --git a/tools/kconfig-checker/schemas/overlay.yml b/tools/kconfig-checker/schemas/overlay.yml new file mode 100644 index 000000000000..4ac9a364a344 --- /dev/null +++ b/tools/kconfig-checker/schemas/overlay.yml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: GPL-2.0-only + +"$schema": "https://json-schema.org/draft-07/schema#" + +title: Schema for kconfig-checker overlay files + +# +# Full rule files require 'expected' and 'severity' for every rule. +# Overlay files are partial by design: they may override only selected +# fields of an existing rule, so such fields are not required here. +# +# For example, preempt_rt.yml: +# +# rules: +# - name: CONFIG_DRM +# expected: n +# severity: info +# docs_hint: config +# +# and a custom-overlay.yml: +# +# rules: +# - name: CONFIG_DRM +# expected: allow +# + +allOf: + - $ref: "base.yml" -- 2.56.0