Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3472037img; Mon, 25 Mar 2019 10:59:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTjfSa3pRvHprKwEF4cA2JRR3SFjO9sTV3go53zoF2mGuiuJhyTYZRq5Dz7VHnMZH6N1o7 X-Received: by 2002:a62:4115:: with SMTP id o21mr24199022pfa.153.1553536781081; Mon, 25 Mar 2019 10:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553536781; cv=none; d=google.com; s=arc-20160816; b=clQklakVV4WgCn7oVx9/KNwnMTqQlGPBPGqfDq1rqzEc1I17eol6vrtzD8Q9T1zmqC zEDmFHgdE3DxWaNsyD/xlXVrlE5Vz1qppLp/fGtRXkKQGS4dmZTKGvchxUCsHMjd00Jh eRwZR70vccY6JKNMeFTSpZKjXE44sXbbpxECqmEUWMwAFNb3GLkPThV3MbDk+ifeRgzj qxVXP5EnYhfu/QI96UCSgIzLRpuhN+M2d7L2ZN5dpLxbwBTjz4SJI+o+Z171BjsMVfmQ afc3MxM51ze7paXJoMFdaftioY2AGZTebYCKjs7Ddtkf6odjWaRyclowFvEmwgdoVWJm 9RKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ZzJY9s4MUYKKYZRb6J7Fj9MFH4cnMFJh5ECJ2X7rbns=; b=aDi5vIXaFIr4xVJtRNH/95hQg9n6NQkRS/FCC7869+2EAnB/tmJFMfheokseC4bFea mOgoQerZIRsO8pZv1PVKs+NSNKDoreA3vFQAtPOZ+5Ro9/M4IBUJXUqw37e8AH7qyMA6 2mKRtrZbIXECJWxZpiNvGo3VECtM6um5+WeQ5UlLPTDl99CpN4NOR0n/UVivtPgJCnOM 2MSLA41duR6nTxPlRok7QYJnAToiGl6osA9K+ik2yKX/0yLJ+97qqxMUH2ZAwpgXXFNF Wo3jrCyaSJXG0/ya3IchFbxJp0RJ8yOVb6jKgyrtdzIESZQlSbwZ9OdP4MZWGJwzcFC7 S4ZA== 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 l11si15052370plb.159.2019.03.25.10.59.24; Mon, 25 Mar 2019 10:59: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 S1729957AbfCYR5R (ORCPT + 99 others); Mon, 25 Mar 2019 13:57:17 -0400 Received: from [217.140.106.55] ([217.140.106.55]:44607 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729728AbfCYR5R (ORCPT ); Mon, 25 Mar 2019 13:57:17 -0400 X-Greylist: delayed 3356 seconds by postgrey-1.27 at vger.kernel.org; Mon, 25 Mar 2019 13:57:16 EDT Received: from e110455-lin.cambridge.arm.com (e110455-lin.cambridge.arm.com [10.2.131.87]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id x2PH1EEQ009920; Mon, 25 Mar 2019 17:01:14 GMT From: Liviu Dudau To: "James (Qian) Wang" Cc: Brian Starkey , Daniel Vetter , DRI-devel , LKML , Liviu Dudau Subject: [PATCH] arm/komeda: Compile komeda_debugfs_init() only if CONFIG_DEBUG_FS is enabled Date: Mon, 25 Mar 2019 17:01:14 +0000 Message-Id: <20190325170114.20407-1-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We don't call this function if CONFIG_DEBUG_FS is not defined, but we should not be compiling it either, as the declaration of the debugfs core functions is not included. Reported by the kbuild test robot. Signed-off-by: Liviu Dudau --- drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c index b420c6205d6bf..24548b87e1827 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c +++ b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c @@ -44,6 +44,7 @@ static const struct file_operations komeda_register_fops = { .release = single_release, }; +#ifdef CONFIG_DEBUG_FS static void komeda_debugfs_init(struct komeda_dev *mdev) { if (!debugfs_initialized()) @@ -56,6 +57,7 @@ static void komeda_debugfs_init(struct komeda_dev *mdev) debugfs_create_file("register", 0444, mdev->debugfs_root, mdev, &komeda_register_fops); } +#endif static int komeda_parse_pipe_dt(struct komeda_dev *mdev, struct device_node *np) { -- 2.21.0