From patchwork Wed Sep 26 12:54:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 147578 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp687044lji; Wed, 26 Sep 2018 05:55:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV628K0N9kTxP3HFGvae7+8HxJAxTX1eUj9HpEZulRuJxeYY0fWr+ZT9mHxB0yFq7mxLREqSx X-Received: by 2002:a17:902:bcc2:: with SMTP id o2-v6mr6192540pls.22.1537966541687; Wed, 26 Sep 2018 05:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537966541; cv=none; d=google.com; s=arc-20160816; b=ceZ/Jle3KgRGNpIevmM176tUqwtTQ9ZZVICfEO4nxygJDkJSDzQDoYrl+9vMNfAoAZ qUD1GoCWh+yf/GssZsDb4v4UWbV+Nicqt4uJ+D/qnyDvLZsfibu03jS5wFZ7SJ7ZLIOg WSob58aqoO4MI1hGpIp5tQvhZ35Q3I+XLdAyUZ2WbvqJ6iiBGpNQTXQDJLxQJcA2+S0k AoPwBhr1Q21R/Gplq4tsfw6yh054K9jNrcUD48DsXIba/7Npli3Xb1ZU/9LtmWSisILe NbtgD7esdS2QY0wUxZzGDrB0QOfGTY0z7LIamROFU1D9OV4znhwT5fMLCDnmqrbpr5Nt IssQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=1FlSLFcPRNV4aQiI4/5iFTLXqXf1nk6f6sb7t6nByVA=; b=bL2WfN0mcFT4uzfHb+4n2W5C+ArQMe1H3eCMOrlf61tMHOGbiXNnVQAliw5U8xgmE0 P9+DFTatNgjfvbx78QUDb1Seg0D4ugcv1ZiEaKIV9vk8lUanKY3puwKyQBJfOzXUPjua jbnXjpUTxHI35ASgX0SLvO8+jCQi1l1WgtPCQC54+/hFrStz1pd14gWYrtb0naocIl1E kjln5lYBBfnpyYZnFdxcguR/GxBJ7oXSWB2BQyWouCgmEYzX5ZqaCib4s5mEuqGjRZml 6XwkogeyHRs6/YfHBlsOUNeoDeyBA9XHbEWAw3LlOB6a15agnSoDAKoi9EESTkkIGLYH Zvvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o11-v6si5155464pgl.16.2018.09.26.05.55.41; Wed, 26 Sep 2018 05:55:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728264AbeIZTIa (ORCPT + 32 others); Wed, 26 Sep 2018 15:08:30 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:37669 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbeIZTIa (ORCPT ); Wed, 26 Sep 2018 15:08:30 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1N7RHv-1fhlp61MVh-017q2Q; Wed, 26 Sep 2018 14:55:37 +0200 From: Arnd Bergmann To: Georgi Djakov Cc: Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH] interconnect: fix build warning without DEBUGFS Date: Wed, 26 Sep 2018 14:54:49 +0200 Message-Id: <20180926125536.2125929-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:CTDgeXKpqxsHvolkz9QqH9ftySROsyuGHCVHObrgLlz+xzs8bir E9L9fQ+mMlTvOTsz2OKGl5J8i+ODoviAeo3OtU29WYcxDmYVlnhazC0irNBPpNzDT/e8BF/ c+ew6/5nGbyA/Q15p5jtP67tkMqUL8KsP2rXxQINWcf0jOADcMtdqMQyrKWIL7wjhovQ84N QELEQGCj19+0wlyG//jVw== X-UI-Out-Filterresults: notjunk:1; V01:K0:3iufRyDZMK4=:H7qM8xBFAxJVvEONF0FCDb DCvQOnWYCFgwHuiG+1YTKiW/e+Ssape8H/pnvZj+aOzbDfSxZxdWLT47NYN+vQCtoTU0Xkx3Z nDqmb2qo1zpiTIq63RuY/e86L5xnZyInMZDbaNMl7uism26xyT3+AVxEYvZFnrCz+BclI/3r2 RdUV2l/Su46ME9DAbzlmSMWh5FdxerrqP0J2FvfzT6VqzxhRyxcRT84/qsnxuG/3F+1iC3awH ZPvl2PBn1Ypc5dD/NUN+sWm8Fz27Fx1EXHE6bsrDbkjm4wIIoYCRV95/NCbyouaGjf4ODIZ5C vw5fwDobk1G3u98i0SsqLKYYPb8JDyhjcwxiyNMHDeG0LnVY/FmcYK9qhHZ3VckZ6HDlYHvzW /5FQ/CS40ZmwkfQyIni8Os9ihRZfGqZLrtBc4AAxK5cyHbz4omuPuA2+yPAd2ZPMY8EQF9KX4 qRlEwTpKs/n5oatsaGPVsOaSVN6NX2AX7jZuCjFz3IS4H0bLBy9tWRYjMHfjsomZml699iVRc IVlEYLjJFOjBKKzgBnqfU4SvTSYr4Cg3T6oI74p6Gt+LOm00St6o5A7sfoya/vhQx01vhtp0+ lO85cPY0WvtEC955HLeE6T+scmd6xuhEqc66wGzajgLzppqVKmZi5o/z5tCpvnFNxQk3VdFBM xGV5w88N11oXFGX04QAm06ya06SHgwVP9kqRY4+zudkPlGMZiM8xubY9FvbWcoEAkT3w= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The icc_debugfs_dir variable is only used inside of an #ifdef and should be moved into the same to avoid a harmless warning: drivers/interconnect/core.c:26:23: error: 'icc_debugfs_dir' defined but not used [-Werror=unused-variable] Fixes: d54599e06b06 ("interconnect: Allow endpoints translation via DT") Signed-off-by: Arnd Bergmann --- drivers/interconnect/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.18.0 diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c index 2740f1a441d8..2d8709cf59a4 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -23,7 +23,6 @@ static DEFINE_IDR(icc_idr); static LIST_HEAD(icc_provider_list); static DEFINE_MUTEX(icc_lock); -static struct dentry *icc_debugfs_dir; /** * struct icc_req - constraints that are attached to each node @@ -54,6 +53,8 @@ struct icc_path { #ifdef CONFIG_DEBUG_FS +static struct dentry *icc_debugfs_dir; + static void icc_summary_show_one(struct seq_file *s, struct icc_node *n) { if (!n)