Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3792802rdb; Wed, 27 Dec 2023 23:10:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQPjPkDYSa4zdwE6w9B9FWm8GuOdqps4uL7WyRn3Lmvqwir10oNZdrKxoY9DvJJzqrJUl9 X-Received: by 2002:a17:906:caa:b0:a23:2aa8:99fe with SMTP id k10-20020a1709060caa00b00a232aa899femr4582796ejh.9.1703747403580; Wed, 27 Dec 2023 23:10:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703747403; cv=none; d=google.com; s=arc-20160816; b=kQR65RXGR+wiG2SlS4ZZY0FwCgqXaGZQzXiz6M7uFJS4ywkr4yI3cPPih733/FhNMT lO3STm9aNctpLfqyfW0MBvl2Sn3YSuPuBjWa3IalTgXdYde+gPq0N4t6S+KF2/4q31M5 Tfy91+Tcsyy2/hpeNz3TneJFdR2dtwq/kR/Ph01GVQqmxRLlV9I8WZ52sQMdNYEdvTkp MJl+RBNrjCIiYV3kjMjUEowHSqXBo3eMDZbUV7muCXNX5+Xx/k1JpxTm3O+HfIgW6Uco nDD+lpe4jsDl1lk0AxZA8NrwlVUnzjbEUhx0KkWohEarX/4Lhh+l39a5PgVyOPsWNwRs uitg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=EoqhO26zK6349/cY+3ITh8QstYG5iPWC2+7Y4ulVjaM=; fh=nDNkEcXibsdCPsVE8pFPVe48yJgl70QyP0VIzzepAhE=; b=h5ss+K1UEvEuIfm+vx7O8RxKx/amPIV8cqQd5+HFP7Sk2KcLlluDRC2Kp8r83Y5fY5 cKQKmitVr1KFYwTzxaCm64UYecrEPt10VohWiRvwdzBxlCkRURZMW06b7pFknAv7OknH FpIVD8+LE6Q/CwLatuQMy2LHM+ylnJUITMPtmynaMAGxIxmwLtn8QddmnjZtK9YNn1zR fYJIJsATP+D+rKngiBCLO+rMQdOsSa7KMjuBdGS/gsRgfGdaNI9F6lx5PeUYRejyKIo4 GrsZLzZ0Ov5tyQJ29y5nRD2WRps/s21WFwIs8KrLYFhzJXHDjhu2VVkag0TF5BvsSVe3 /tlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=INrGEv+i; spf=pass (google.com: domain of linux-kernel+bounces-12475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id wg1-20020a1709078f0100b00a23539f10e9si6633338ejc.356.2023.12.27.23.10.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 23:10:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=INrGEv+i; spf=pass (google.com: domain of linux-kernel+bounces-12475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 579681F226EB for ; Thu, 28 Dec 2023 07:10:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7B3763B1; Thu, 28 Dec 2023 07:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="INrGEv+i" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 BC5F06109 for ; Thu, 28 Dec 2023 07:09:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-28c075ad8e7so3840959a91.2 for ; Wed, 27 Dec 2023 23:09:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1703747388; x=1704352188; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EoqhO26zK6349/cY+3ITh8QstYG5iPWC2+7Y4ulVjaM=; b=INrGEv+i3X4P5sBtW7GZWQPkcyoc4ZKPbJm8+LhgPsuiZLCCrzl4uo1IPJlfNd07T6 q/cQk6gQkoc6nt/ckh+Ghh+0XNKrlcLEAYprBmusEK3rJ96KdGY+b1Skc4LayZPvd1sZ uyXabYoDfucPwstRTxmg5gIR7sEazwhBFXLq8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703747388; x=1704352188; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EoqhO26zK6349/cY+3ITh8QstYG5iPWC2+7Y4ulVjaM=; b=l48XXdW7d3Pup8apph/2KLdJV8cwaAgCofcxy99zPxWxDE5f7Br/p+Iju0f09upexy EyHd4sQEmi548BHevChZy5oooJ3LMvhzjisN5dqDcotMcgyG6hPzOoQ4g+WIBn6mn5Nm UU5Xle+2EZHK0qonGPxwOGA1JH11XKHr9Ed06P04iHZm1AJMtEjQagkSRslW0zgruzYl +KWVOIaASE5OoO9cRNDn2Vfv42mhPFK2yCQz+GDmMhk5adHpvMRbeApx97pfMIIfq1RG 6eWoKRZUaGRUdC/7q2PuxcEoQk58Lue9Yq+VwP5n0h8XGG17LVgwVPzYAexS+jsrWvAC AYqg== X-Gm-Message-State: AOJu0Yy0WBY0HTDSUJvRhPn1hSY1yj7LBaMq4Gmlq4X2GJWZck2z/xA4 xIXsboQfw+1PTaCj+jXZAQFnQ28L7s6F X-Received: by 2002:a17:90b:b83:b0:28b:e124:1afb with SMTP id bd3-20020a17090b0b8300b0028be1241afbmr5169012pjb.37.1703747388048; Wed, 27 Dec 2023 23:09:48 -0800 (PST) Received: from basement.c.googlers.com.com (112.157.221.35.bc.googleusercontent.com. [35.221.157.112]) by smtp.gmail.com with ESMTPSA id 28-20020a17090a019c00b0028b2262e0cdsm19068454pjc.56.2023.12.27.23.09.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 23:09:47 -0800 (PST) From: Tomasz Figa To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky , Tomasz Figa Subject: [PATCH] kconfig: Add a build target for checking current config for issues Date: Thu, 28 Dec 2023 16:09:41 +0900 Message-ID: <20231228070941.3611649-1-tfiga@chromium.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The new target is called 'checkconfig' and currently is basically an alias for `listnewconfig` with KCONFIG_WARN_UNKNOWN_SYMBOLS set to true. It can be used to validate if the current config is directly compatible with the current kernel version or needs some manual adjustment. Signed-off-by: Tomasz Figa --- scripts/kconfig/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 4eee155121a8..501cb9b76414 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -81,6 +81,9 @@ PHONY += savedefconfig defconfig savedefconfig: $(obj)/conf $(Q)$< $(silent) --$@=defconfig $(Kconfig) +checkconfig: $(obj)/conf + $(Q)KCONFIG_WARN_UNKNOWN_SYMBOLS=true $< --listnewconfig $(Kconfig) + defconfig: $(obj)/conf ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),) @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" @@ -144,6 +147,7 @@ help: @echo ' default value without prompting' @echo ' tinyconfig - Configure the tiniest possible kernel' @echo ' testconfig - Run Kconfig unit tests (requires python3 and pytest)' + @echo ' checkconfig - Check current config for unrecognized and new symbols' @echo '' @echo 'Configuration topic targets:' @$(foreach f, $(all-config-fragments), \ -- 2.43.0.472.g3155946c3a-goog