From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754901AbbLVPZx (ORCPT ); Tue, 22 Dec 2015 10:25:53 -0500 Received: from mga02.intel.com ([134.134.136.20]:25816 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752144AbbLVPZk (ORCPT ); Tue, 22 Dec 2015 10:25:40 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,464,1444719600"; d="scan'208";a="846470286" From: Alexander Shishkin To: Greg KH Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven , Alexander Shishkin Subject: [PATCH v3 1/9] stm class: Hide STM-specific options if STM is disabled Date: Tue, 22 Dec 2015 17:25:15 +0200 Message-Id: <1450797923-23072-2-git-send-email-alexander.shishkin@linux.intel.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1450797923-23072-1-git-send-email-alexander.shishkin@linux.intel.com> References: <1450797923-23072-1-git-send-email-alexander.shishkin@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven If STM=n, it doesn't make sense to ask about STM_DUMMY and STM_SOURCE_CONSOLE support, which are not even built when enabled anyway. Hence hide these options if STM=n. Reported-by: Linus Torvalds Signed-off-by: Geert Uytterhoeven Signed-off-by: Alexander Shishkin --- drivers/hwtracing/stm/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/hwtracing/stm/Kconfig b/drivers/hwtracing/stm/Kconfig index 83e9f591a5..4c13762f2b 100644 --- a/drivers/hwtracing/stm/Kconfig +++ b/drivers/hwtracing/stm/Kconfig @@ -8,6 +8,8 @@ config STM Say Y here to enable System Trace Module device support. +if STM + config STM_DUMMY tristate "Dummy STM driver" help @@ -24,3 +26,5 @@ config STM_SOURCE_CONSOLE If you want to send kernel console messages over STM devices, say Y. + +endif -- 2.6.4