From patchwork Mon Mar 25 17:01:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 161137 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4254342jan; Mon, 25 Mar 2019 10:57:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqymH3Buookr+CyXNOtKyzPjWwDh0m16CNacyYRldDqU3PrhyLbviM3+cVTqmKPX94QIRkx4 X-Received: by 2002:a17:902:6b8a:: with SMTP id p10mr26789797plk.109.1553536637526; Mon, 25 Mar 2019 10:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553536637; cv=none; d=google.com; s=arc-20160816; b=i1XXssrW88Bhz5slR4Z56KKsADhzhSj8QhEOOnObvFptGhvJnn+MnUffYceRYUup2c l2BKmYYjs0QtEqPurEJd72A6F5G27Tg0FCeSwN5KSy94fMBrDqmLasQqQd2WLuPkLi6S 3/zYR60D8Zsn4a6Qjr+FNIZW3jPRMe3wKfuU/pX4o7haLjRqqM5R8VB6ar5a+te6nSOz tGmQNJYR8nTbds0xyDVB3eP+akvQqHayssQiU1K68ZY9cEUHPd7HbEjxuMixcm18fA63 u4dY7SuE9ecg6D3aznFdWiHopTzSCK/tmAiYMC4EChaIcyDhQfQ+sIp4zX1AfJLgWxnf oMrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=ICYpAA7WOyC71cLUHHHCM5WlfvxMmfiFNyNbYJIYtkY=; b=Jxi/IBqev1IQJdvDTjzJk8Qy4WDc8lirnHAt/K/G0aZX21EhcLjju+wC+4lR+ei36M LAYv9SBtJIPs5qWePYxsH696fMKbFySmubf3JfLVyP2F/opiA+bfmD/HpElwtO5+nzeU J27Y8pE3j/dJEFGViI6PuQIXshq8lTeefEiLNoIZDJV1XN5yrRZHVZxTMB39N2M5lgbe RzePVxFw8fhijQBIV1KABlFPVWqfp33em/W8WQoZK7Fqb+U9b1EfGDYOiy+69VjdOc7C MMru1MS1ly75gg3Hh8Ub5bfJiur9cDEaPP+dBU1Me7LciMkCZp9WPjJS7HBgYSITfJC7 Du/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id bj6si14132090plb.365.2019.03.25.10.57.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Mar 2019 10:57:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 51C556E712; Mon, 25 Mar 2019 17:57:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 3356 seconds by postgrey-1.36 at gabe; Mon, 25 Mar 2019 17:57:14 UTC Received: from cam-smtp0.cambridge.arm.com (unknown [217.140.106.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id 52B376E712 for ; Mon, 25 Mar 2019 17:57:14 +0000 (UTC) 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" 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: DRI-devel , Liviu Dudau , LKML Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Reviewed-by: James Qian Wang (Arm Technology China) --- 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) {