From patchwork Wed Jun 1 10:13:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 98163 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ww0-f56.google.com (mail-ww0-f56.google.com [74.125.82.56]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id E9AC9B6F6F for ; Wed, 1 Jun 2011 20:13:24 +1000 (EST) Received: by wwb22 with SMTP id 22sf14142495wwb.11 for ; Wed, 01 Jun 2011 03:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:mime-version:x-beenthere:received-spf:from:to :cc:subject:date:message-id:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=LN9SMyg5tmyB3pciKOxJGM/iI7vEGgccN2qm/opx6Gw=; b=jvyKN6lJiGRy0NH9scXWd4RG8yyi/b0ZW8K8y3/f9zhlODgqAj4b0/s6Tk3r1dB5f2 K0/5ElkQyWpuH01uVHfYLWcs6M1L+P8KZzEB6wXBdfK5qdLcSuPsE1tRQQdqhhaL00hP K/T6sAV9DV4OLRVxb28KELwDvxcQAjMwZHVfk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; b=TZkFEDDenkiCXWJGXaS0uJBNucGjwN2gKR05y+yD4MnRZz09+hUSN2A+p0yrCZlFal P4dDiqKVSra3ME437VV072G4ua1sXF/53GDz4TDGUvN+bswbPfGwU/raW3Sd3Q36oOge EQDdLKOOfED7R9qIv4pwwUH9USZvUV45R0hU8= Received: by 10.216.78.133 with SMTP id g5mr1946243wee.19.1306923200093; Wed, 01 Jun 2011 03:13:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.227.5.200 with SMTP id 8ls178011wbw.1.gmail; Wed, 01 Jun 2011 03:13:19 -0700 (PDT) Received: by 10.227.156.74 with SMTP id v10mr537248wbw.14.1306923199362; Wed, 01 Jun 2011 03:13:19 -0700 (PDT) Received: by 10.227.156.74 with SMTP id v10mr537247wbw.14.1306923199333; Wed, 01 Jun 2011 03:13:19 -0700 (PDT) Received: from opensource2.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by gmr-mx.google.com with ESMTPS id ge17si1059610wbb.1.2011.06.01.03.13.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2011 03:13:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of broonie@opensource.wolfsonmicro.com designates 80.75.67.52 as permitted sender) client-ip=80.75.67.52; Received: from finisterre.wolfsonmicro.main (unknown [87.246.78.26]) by opensource2.wolfsonmicro.com (Postfix) with ESMTPSA id 311B1110081; Wed, 1 Jun 2011 11:13:17 +0100 (BST) Received: from broonie by finisterre.wolfsonmicro.main with local (Exim 4.76) (envelope-from ) id 1QRiQO-0001Zy-Nr; Wed, 01 Jun 2011 11:13:16 +0100 From: Mark Brown To: Alessandro Zummo , Andrew Morton , John Stultz Cc: rtc-linux@googlegroups.com, Mark Brown Subject: [rtc-linux] [PATCH] rtc: Staticize non-exported __rtc_set_alarm() Date: Wed, 1 Jun 2011 11:13:16 +0100 Message-Id: <1306923196-6040-1-git-send-email-broonie@opensource.wolfsonmicro.com> X-Mailer: git-send-email 1.7.5.3 X-Original-Sender: broonie@opensource.wolfsonmicro.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of broonie@opensource.wolfsonmicro.com designates 80.75.67.52 as permitted sender) smtp.mail=broonie@opensource.wolfsonmicro.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , It's not referenced outside this file so there's no need for it to be in the global namespace and sparse warns about that. Signed-off-by: Mark Brown --- drivers/rtc/interface.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c index ef6316a..df68618 100644 --- a/drivers/rtc/interface.c +++ b/drivers/rtc/interface.c @@ -318,7 +318,7 @@ int rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) } EXPORT_SYMBOL_GPL(rtc_read_alarm); -int __rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) +static int __rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) { struct rtc_time tm; long now, scheduled;