Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754213AbbFJL3L (ORCPT ); Wed, 10 Jun 2015 07:29:11 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:55148 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751963AbbFJL3C (ORCPT ); Wed, 10 Jun 2015 07:29:02 -0400 From: Maxime Coquelin To: Mike Turquette , Stephen Boyd , CC: , , , Subject: [PATCH] clk: Move debug_node field under DEBUG_FS flag in struct clk_core Date: Wed, 10 Jun 2015 13:28:27 +0200 Message-ID: <1433935707-3621-1-git-send-email-maxime.coquelin@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.80] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-06-10_09:2015-06-10,2015-06-10,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 951 Lines: 33 The debug_node field is only used when DEBUG_FS config is selected, so declare it only if DEBUG_FS is selected. Signed-off-by: Maxime Coquelin --- drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 459ce9d..afbaa73 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -68,11 +68,11 @@ struct clk_core { int phase; struct hlist_head children; struct hlist_node child_node; - struct hlist_node debug_node; struct hlist_head clks; unsigned int notifier_count; #ifdef CONFIG_DEBUG_FS struct dentry *dentry; + struct hlist_node debug_node; #endif struct kref ref; }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/