From: Johannes Stezenbach <js@linuxtv.org>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Patrick Boettcher <pb@linuxtv.org>
Subject: Re: [DVB patch 5/5] flexcop: add BCM3510 ATSC frontend support for Air2PC card
Date: Tue, 24 May 2005 12:42:07 +0200 [thread overview]
Message-ID: <20050524104207.GB32020@linuxtv.org> (raw)
In-Reply-To: <20050522235336.731021000@abc>
Hi Andrew,
here's an incremental patch which fixes the following warning
when compiling with gcc-3.4.4:
drivers/media/dvb/frontends/bcm3510.c: In function `bcm3510_read_signal_strength':
drivers/media/dvb/frontends/bcm3510.c:322: warning: ISO C90 forbids mixed declarations and code
Johannes
---
Fix compilation with gcc-2.95 (warning with gcc-3.4.4) by
not mixing code and declarations.
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
drivers/media/dvb/frontends/bcm3510.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: linux-2.6.12-rc4-git3/drivers/media/dvb/frontends/bcm3510.c
===================================================================
--- linux-2.6.12-rc4-git3.orig/drivers/media/dvb/frontends/bcm3510.c 2005-05-23 01:27:27.000000000 +0200
+++ linux-2.6.12-rc4-git3/drivers/media/dvb/frontends/bcm3510.c 2005-05-24 12:33:50.000000000 +0200
@@ -318,8 +318,10 @@ static int bcm3510_read_unc(struct dvb_f
static int bcm3510_read_signal_strength(struct dvb_frontend* fe, u16* strength)
{
struct bcm3510_state* st = fe->demodulator_priv;
+ s32 t;
+
bcm3510_refresh_state(st);
- s32 t = st->status2.SIGNAL;
+ t = st->status2.SIGNAL;
if (t > 190)
t = 190;
prev parent reply other threads:[~2005-05-24 10:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-22 23:52 [DVB patch 0/5] DVB update, mostly dvb-usb Johannes Stezenbach
2005-05-22 23:52 ` [DVB patch 1/5] drop obsolete dibusb driver Johannes Stezenbach
2005-05-22 23:52 ` [DVB patch 3/5] dvb-usb: fix init error checking Johannes Stezenbach
2005-05-22 23:52 ` [DVB patch 4/5] dvb_frontend: use time_after() Johannes Stezenbach
2005-05-22 23:52 ` [DVB patch 5/5] flexcop: add BCM3510 ATSC frontend support for Air2PC card Johannes Stezenbach
2005-05-24 10:42 ` Johannes Stezenbach [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050524104207.GB32020@linuxtv.org \
--to=js@linuxtv.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pb@linuxtv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®