From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753614AbbKYMhW (ORCPT ); Wed, 25 Nov 2015 07:37:22 -0500 Received: from mga14.intel.com ([192.55.52.115]:7175 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753559AbbKYMhS (ORCPT ); Wed, 25 Nov 2015 07:37:18 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,342,1444719600"; d="scan'208";a="859467836" From: Alexander Shishkin To: Greg KH Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven , Alexander Shishkin Subject: [PATCH v2 1/5] stm class: Hide STM-specific options if STM is disabled Date: Wed, 25 Nov 2015 14:34:31 +0200 Message-Id: <1448454875-21189-2-git-send-email-alexander.shishkin@linux.intel.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1448454875-21189-1-git-send-email-alexander.shishkin@linux.intel.com> References: <1448454875-21189-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.2