From patchwork Wed Jun 24 10:01:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 6666611 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 182ECC05AC for ; Wed, 24 Jun 2015 10:02:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 11B24206CB for ; Wed, 24 Jun 2015 10:02:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F09A20619 for ; Wed, 24 Jun 2015 10:02:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752121AbbFXKCD (ORCPT ); Wed, 24 Jun 2015 06:02:03 -0400 Received: from mail.skyhub.de ([78.46.96.112]:40915 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751018AbbFXKCB (ORCPT ); Wed, 24 Jun 2015 06:02:01 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1435140120; bh=PyzlywNgr0DlFUblr6zMpzByZY3WojYKJ5+k7lwQ1Cs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding; b=DqxHz9qHEa3i5lBsGdijHnVvLXjy9rOaENzwS MgZogwBeNuBghkmtIO+o9TocsidVCQ8IkyzChfPMgT4djvrxOKbf1c8NoFBB4HSCOB0 Q9zCs2+qpNGHR0Bs9/FHi4SjePsUvD41GgA5wnXrl1b/TqOT1nrR6WKDFbizlHmInHY = Received: from mail.skyhub.de ([127.0.0.1]) by localhost (door.skyhub.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9brZm4c5CDeD; Wed, 24 Jun 2015 12:02:00 +0200 (CEST) Received: from pd.tnic (p54AF4485.dip0.t-ipconnect.de [84.175.68.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 2AD051DA264; Wed, 24 Jun 2015 12:02:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1435140120; bh=PyzlywNgr0DlFUblr6zMpzByZY3WojYKJ5+k7lwQ1Cs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding; b=DqxHz9qHEa3i5lBsGdijHnVvLXjy9rOaENzwS MgZogwBeNuBghkmtIO+o9TocsidVCQ8IkyzChfPMgT4djvrxOKbf1c8NoFBB4HSCOB0 Q9zCs2+qpNGHR0Bs9/FHi4SjePsUvD41GgA5wnXrl1b/TqOT1nrR6WKDFbizlHmInHY = Received: by pd.tnic (Postfix, from userid 1000) id 85B8916050B; Wed, 24 Jun 2015 12:01:49 +0200 (CEST) From: Borislav Petkov To: LKML Cc: "Rafael J. Wysocki" , Len Brown , Robert Moore , Lv Zheng , linux-acpi@vger.kernel.org, devel@acpica.org Subject: [PATCH] acpi/video: Inline acpi_video_set_dmi_backlight_type Date: Wed, 24 Jun 2015 12:01:49 +0200 Message-Id: <1435140109-2241-1-git-send-email-bp@alien8.de> X-Mailer: git-send-email 2.3.5 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Borislav Petkov ... and kill this: In file included from drivers/gpu/drm/radeon/radeon_acpi.c:29:0: include/acpi/video.h:46:13: warning: ‘acpi_video_set_dmi_backlight_type’ defined but not used [-Wunused-function] static void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type) ^ Signed-off-by: Borislav Petkov Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Robert Moore Cc: Lv Zheng Cc: linux-acpi@vger.kernel.org Cc: devel@acpica.org Cc: linux-kernel@vger.kernel.org --- include/acpi/video.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/acpi/video.h b/include/acpi/video.h index a7d7f1043e9c..e840b294c6f5 100644 --- a/include/acpi/video.h +++ b/include/acpi/video.h @@ -43,7 +43,7 @@ static inline enum acpi_backlight_type acpi_video_get_backlight_type(void) { return acpi_backlight_vendor; } -static void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type) +static inline void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type) { } #endif