From patchwork Wed Oct 26 08:57:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9396371 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 96A0D60236 for ; Wed, 26 Oct 2016 08:58:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53B032990E for ; Wed, 26 Oct 2016 08:58:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47F3E29919; Wed, 26 Oct 2016 08:58:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 34A542990E for ; Wed, 26 Oct 2016 08:58:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8BAF26E7F4; Wed, 26 Oct 2016 08:58:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0D1716E7F4 for ; Wed, 26 Oct 2016 08:58:33 +0000 (UTC) Received: from wuerfel.lan. ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0MJTPH-1c2MIk0dA3-0035q7; Wed, 26 Oct 2016 10:58:01 +0200 From: Arnd Bergmann To: David Airlie Subject: [PATCH] drm: mark drm_of_component_match_add dummy inline Date: Wed, 26 Oct 2016 10:57:47 +0200 Message-Id: <20161026085759.3875472-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:bOYzAzpzdRkBFXTWv3BJRrUAo8bWnADxrEa0B9B4jRqOIzwn1Y+ stKjnmey/KsCkmLiPJYuYQ/3ZBzCRRpQmFHomxTuIojNGO+VN+FJ3chMrRM+Qz0udH9DfFd 0pSAlCftlARqM0DYIFtXK0ja3elqyIZWe9f6GKF+f0yB7F9A+aHCQaTXMJ2AISp2UM1hfbA N73bQrlsIyFGLBPfzmFIQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:/m8zabhdPt8=:qX8PaM+Q/wplVI39gj8C2x CIEOQ5+MFTN7f8QN/9iUwO0ZV4sS3AbvDOvgVNCj5rG52w07khcmdTCbA3KfF3iopaaPt/F36 9qwlPHNlYBJkc+pxlvcnOzsWZec4XVtm3D7SG4ChOAN2+wYOLLhl1CM6tYssGoR/+KJ6yiHHh JWtEY02Ya02G5DF6z4t1o7GTSsEpBlAXiofz+PqBYfAvGCdbCgLWeA9aMDR6tv9gaJXRkVEmp aP+H1TwFK1y/aDXts0uRcKYtbS6aX82dvOm3c92icIdlV0uTy98YGgxCjI9nJqh16CL7czwcD amr950U6js7XlujK20k8XnVsvlYd+cl0SnOsPzgK9oDR7MH5nyEyOhZx8irQRZo763bj9dQZE Gl1KegTx7Y7U7m3alhQ7YRZU6JqplulzYB0f+R9u4Rgimvb31kBttN3vv6zel9qaoi/CN+rRp Z6P/I8ppX1MKcQw2jYtDaEpgNgkiq1H0yXt6V0ze4ndVt89xwT047riXZLfaKa8mze9zC3oqF gS3FVCjJy6YnC3yg0M7F1+lzK5B8qWgDnBwNC6qWjEgHk6GKUXUTEWDTkp6+5qUe5C7bFE7Cj 2KVOqE0W2VMfl07I3P5MhEFJ64UdwAH1RxC0qe5ZkDHWjbT15JM3okiwIs6SpME0XkNvOaEoq z1MmrpkEm3WqxqqZPNjVfnxXO3JDYh3AQ1yJOuSXEl8frflRAp+xlsvOtg7XkrMNcCEU= Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Russell King , Jyri Sarha X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The newly added drm_of_component_match_add helper is defined as 'static' in a header when CONFIG_OF is disabled, causing a warning each time the header is included: In file included from /git/arm-soc/drivers/gpu/drm/bridge/dw-hdmi.c:23:0: include/drm/drm_of.h:33:13: error: 'drm_of_component_match_add' defined but not used [-Werror=unused-function] This marks it 'inline' like the other such helpers in this file. Fixes: 97ac0e47aed5 ("drm: convert DT component matching to component_match_add_release()") Signed-off-by: Arnd Bergmann --- include/drm/drm_of.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/drm/drm_of.h b/include/drm/drm_of.h index d6b4c5587bbe..26a64805cc15 100644 --- a/include/drm/drm_of.h +++ b/include/drm/drm_of.h @@ -30,10 +30,11 @@ static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev, return 0; } -static void drm_of_component_match_add(struct device *master, - struct component_match **matchptr, - int (*compare)(struct device *, void *), - struct device_node *node) +static inline void +drm_of_component_match_add(struct device *master, + struct component_match **matchptr, + int (*compare)(struct device *, void *), + struct device_node *node) { }