From patchwork Fri Jan 9 09:27:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 1542 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n099RGF1003704 for ; Fri, 9 Jan 2009 01:27:16 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756650AbZAIJa2 (ORCPT ); Fri, 9 Jan 2009 04:30:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756621AbZAIJa1 (ORCPT ); Fri, 9 Jan 2009 04:30:27 -0500 Received: from vms173003pub.verizon.net ([206.46.173.3]:44602 "EHLO vms173003pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754233AbZAIJ2v (ORCPT ); Fri, 9 Jan 2009 04:28:51 -0500 Received: from localhost.localdomain ([96.237.168.40]) by vms173003.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0KD700BQ96BUP6Y6@vms173003.mailsrvcs.net> for linux-acpi@vger.kernel.org; Fri, 09 Jan 2009 03:28:42 -0600 (CST) Received: from localhost.localdomain (d975xbx2 [127.0.0.1]) by localhost.localdomain (8.14.2/8.14.2) with ESMTP id n099SfwT012167; Fri, 09 Jan 2009 04:28:41 -0500 Received: (from lenb@localhost) by localhost.localdomain (8.14.2/8.14.2/Submit) id n099SflO012166; Fri, 09 Jan 2009 04:28:41 -0500 Date: Fri, 09 Jan 2009 04:27:34 -0500 From: Len Brown Subject: [PATCH 92/94] ACPI: fix build warning In-reply-to: <1231493256-11678-1-git-send-email-lenb@kernel.org> In-reply-to: To: linux-acpi@vger.kernel.org Cc: Len Brown Message-id: <2602a671ad7321a25d253c080837e4569a9bceed.1231492614.git.len.brown@intel.com> Organization: Intel Open Source Technology Center MIME-version: 1.0 X-Mailer: git-send-email 1.6.1.76.gc123b Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <1231493256-11678-1-git-send-email-lenb@kernel.org> References: Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Len Brown when CONFIG_RTC_DRV_CMOS=m and thus !defined(HAVE_ACPI_LEGACY_ALARM) drivers/acpi/proc.c:85: warning: ‘cmos_bcd_read’ declared ‘static’ but never defined Signed-off-by: Len Brown --- drivers/acpi/sleep/proc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/sleep/proc.c b/drivers/acpi/sleep/proc.c index 232d4b6..2d0e6b5 100644 --- a/drivers/acpi/sleep/proc.c +++ b/drivers/acpi/sleep/proc.c @@ -84,10 +84,10 @@ acpi_system_write_sleep(struct file *file, #define HAVE_ACPI_LEGACY_ALARM #endif -static u32 cmos_bcd_read(int offset, int rtc_control); - #ifdef HAVE_ACPI_LEGACY_ALARM +static u32 cmos_bcd_read(int offset, int rtc_control); + static int acpi_system_alarm_seq_show(struct seq_file *seq, void *offset) { u32 sec, min, hr;