From patchwork Thu May 12 21:00:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102348 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp955635qge; Thu, 12 May 2016 14:01:11 -0700 (PDT) X-Received: by 10.98.52.68 with SMTP id b65mr17081130pfa.24.1463086871117; Thu, 12 May 2016 14:01:11 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h26si19546199pfj.225.2016.05.12.14.01.10; Thu, 12 May 2016 14:01:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-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-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752003AbcELVBJ (ORCPT + 5 others); Thu, 12 May 2016 17:01:09 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:61468 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751216AbcELVBI (ORCPT ); Thu, 12 May 2016 17:01:08 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0LkRpr-1bd2MX2Tfv-00cOAU; Thu, 12 May 2016 23:00:46 +0200 From: Arnd Bergmann To: "Rafael J. Wysocki" Cc: Arnd Bergmann , Robert Moore , Lv Zheng , Len Brown , Hans de Goede , Darren Hart , Borislav Petkov , Aaron Lu , Sudeep Holla , linux-acpi@vger.kernel.org, devel@acpica.org, linux-kernel@vger.kernel.org Subject: [PATCH] ACPI/video: mark acpi_video_get_levels inline Date: Thu, 12 May 2016 23:00:12 +0200 Message-Id: <1463086839-2466302-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:nA3KZ6XweKQ6Ynf7JmeSu7xwM5loLjC9Di4FMNVSiS5BwCvC6hz OeSM7UBlWEogQfx0PMnG7iTpr8+HpUB52xNi9PXdfaZaDBipE3Sc9HLBsKwR9LudBiMCW52 4lkgGbDQj5GtC722AYUtwGo7fnb95JwvPb58mPCx4ucobLo2Yr6PqdOo2u3buQ9ZGl4fm1L qDtUVQhlRm0vGT7EvW3pg== X-UI-Out-Filterresults: notjunk:1; V01:K0:KIPQb0Cs46Y=:w36SJv4FPzevZau87xhPlU 0FWumBvlFctBqqOIIoxL+fz3HWpZzlP1xpYFEPjZbit5KYGn9k7Wf59qTEF99QHxpIi3j9dT9 5tpDipsmBQYlg0nbEz+uAw5banSL2TAGK4kQ2FsVc+rU+JeZkVKmqRt3JMsaRxO+kQB4BNjcR a87u/I68bJiVslVaGQYWUdNzgopkd20f1KbYoz3o5vz4bS6IVCOHkeRiXnfD5RL3Z+SVJatHu s4PeSwtRJN5hVNXRZeYpTCU3losjEN8vF4W5QzYOK3ms4oUG2Jm5KYbobLNUrC7SB5iz6IjU6 XHmXcneetLy8/Wg6xhAz/TVATYX3pqHEpPng1p1VZ/oEGy98o/qX7re6G/VJT+kojY6h0u6ZW ++FLG9Ppa0yevLKmj0zBbHUSb6r8BTGnCS/kQmaHTn52x1vwOdMmulX+YMh4ODbNd8Phpa9H6 jwezPcagFUXgOLMb8hHuU086TE6TYK2TtrCc+E/UMDFNnmzo5apK9iPyxHbygCRkluAaKk8mZ Fe+Z8Wka+04w8bZm+TB6dEGk3N1P7wfZicnl1F+fSJ3IPS+rKdHz6hVPCE3+bHgkzK0rM6mR9 aq8qn027X7MI4j1Gl1Vs7Aovdba56yDDZu7QXyTQkWyOgTJjxhBuro8iLuFe2ezYagFTcqsHh Se8qTGzsi5g8jk/YS7ItJ56nagSX0ptnlPjWxJA9XluNRlhBxm31GGxhGzQEOwyYRifw= Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org A recent patch added a stub function for acpi_video_get_levels when CONFIG_ACPI_VIDEO is disabled. However, this is marked as 'static' and causes a warning about an unused function whereever the header gets included: In file included from ../drivers/gpu/drm/radeon/radeon_acpi.c:28:0: include/acpi/video.h:74:12: error: 'acpi_video_get_levels' defined but not used [-Werror=unused-function] This makes the declaration 'static inline', which gets rid of the warning. Signed-off-by: Arnd Bergmann Fixes: 059500940def ("ACPI/video: export acpi_video_get_levels") --- include/acpi/video.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/acpi/video.h b/include/acpi/video.h index a4b96c971564..70a41f742037 100644 --- a/include/acpi/video.h +++ b/include/acpi/video.h @@ -71,7 +71,7 @@ static inline bool acpi_video_handles_brightness_key_presses(void) { return false; } -static int acpi_video_get_levels(struct acpi_device *device, +static inline int acpi_video_get_levels(struct acpi_device *device, struct acpi_video_device_brightness **dev_br) { return -ENODEV;