From patchwork Fri Jan 29 20:42:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOpbWV0aCBNw6FydG9u?= X-Patchwork-Id: 2529 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Fri, 29 Jan 2010 20:42:29 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for (single-drop); Fri, 29 Jan 2010 18:42:33 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1Naxfh-00033r-9X; Fri, 29 Jan 2010 20:42:29 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752888Ab0A2Um1 (ORCPT + 1 other); Fri, 29 Jan 2010 15:42:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752484Ab0A2Um1 (ORCPT ); Fri, 29 Jan 2010 15:42:27 -0500 Received: from mail01d.mail.t-online.hu ([84.2.42.6]:57378 "EHLO mail01d.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751828Ab0A2Um0 (ORCPT ); Fri, 29 Jan 2010 15:42:26 -0500 Received: from [192.168.1.67] (dsl5402C4B8.pool.t-online.hu [84.2.196.184]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail01d.mail.t-online.hu (Postfix) with ESMTPSA id 8FC0275916D for ; Fri, 29 Jan 2010 21:39:38 +0100 (CET) Message-ID: <4B634829.5090706@freemail.hu> Date: Fri, 29 Jan 2010 21:42:17 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: V4L Mailing List Subject: [PATCH] smsir: make local variables static X-DCC-mail.t-online.hu-Metrics: mail01d.mail.t-online.hu 32711; Body=1 Fuz1=1 Fuz2=1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Márton Németh Make the file local parameters static. This will remove the following sparse warnings (see "make C=1"): * warning: symbol 'ir_pos' was not declared. Should it be static? * warning: symbol 'ir_word' was not declared. Should it be static? * warning: symbol 'ir_toggle' was not declared. Should it be static? Signed-off-by: Márton Németh --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r 8b9a62386b64 linux/drivers/media/dvb/siano/smsir.c --- a/linux/drivers/media/dvb/siano/smsir.c Fri Jan 29 01:23:57 2010 -0200 +++ b/linux/drivers/media/dvb/siano/smsir.c Fri Jan 29 21:39:06 2010 +0100 @@ -85,9 +85,9 @@ { } /* Terminating entry */ }; -u32 ir_pos; -u32 ir_word; -u32 ir_toggle; +static u32 ir_pos; +static u32 ir_word; +static u32 ir_toggle; #define RC5_PUSH_BIT(dst, bit, pos) \ { dst <<= 1; dst |= bit; pos++; }