From patchwork Mon Feb 15 02:39:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 79345 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1F2fCrs032022 for ; Mon, 15 Feb 2010 02:41:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753569Ab0BOClL (ORCPT ); Sun, 14 Feb 2010 21:41:11 -0500 Received: from acsinet12.oracle.com ([141.146.126.234]:25579 "EHLO acsinet12.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753477Ab0BOClJ (ORCPT ); Sun, 14 Feb 2010 21:41:09 -0500 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o1F2evCN015458 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 15 Feb 2010 02:40:58 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o1EMsbep029751; Mon, 15 Feb 2010 02:40:56 GMT Received: from abhmt007.oracle.com by acsmt355.oracle.com with ESMTP id 29065121266201573; Sun, 14 Feb 2010 18:39:33 -0800 Received: from chimera.site (/71.245.98.113) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 14 Feb 2010 18:39:33 -0800 Date: Sun, 14 Feb 2010 18:39:32 -0800 From: Randy Dunlap To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab Subject: [PATCH] dvb: fix sparse warnings Message-Id: <20100214183932.46d678c9.randy.dunlap@oracle.com> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.6.0 (GTK+ 2.16.6; x86_64-redhat-linux-gnu) Mime-Version: 1.0 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4B78B439.0018:SCFMA4539814,ss=1,fgs=0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 15 Feb 2010 02:41:12 +0000 (UTC) --- linux-2.6.33-rc8.orig/drivers/media/dvb/frontends/dib0090.c +++ linux-2.6.33-rc8/drivers/media/dvb/frontends/dib0090.c @@ -283,7 +283,7 @@ static int dib0090_sleep(struct dvb_fron return 0; } -extern void dib0090_dcc_freq(struct dvb_frontend *fe, u8 fast) +void dib0090_dcc_freq(struct dvb_frontend *fe, u8 fast) { struct dib0090_state *state = fe->tuner_priv; if (fast) --- linux-2.6.33-rc8.orig/drivers/media/dvb/frontends/dibx000_common.c +++ linux-2.6.33-rc8/drivers/media/dvb/frontends/dibx000_common.c @@ -174,7 +174,7 @@ void dibx000_exit_i2c_master(struct dibx EXPORT_SYMBOL(dibx000_exit_i2c_master); -u32 systime() +u32 systime(void) { struct timespec t; --- linux-2.6.33-rc8.orig/drivers/media/dvb/frontends/tda665x.c +++ linux-2.6.33-rc8/drivers/media/dvb/frontends/tda665x.c @@ -133,7 +133,7 @@ static int tda665x_set_state(struct dvb_ frequency += config->ref_divider >> 1; frequency /= config->ref_divider; - buf[0] = (u8) (frequency & 0x7f00) >> 8; + buf[0] = (u8) ((frequency & 0x7f00) >> 8); buf[1] = (u8) (frequency & 0x00ff) >> 0; buf[2] = 0x80 | 0x40 | 0x02; buf[3] = 0x00;