public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ivtv: Fix build warning
@ 2012-03-04 18:25 Larry Finger
  2012-03-06 13:29 ` Danny Kukawka
  0 siblings, 1 reply; 3+ messages in thread
From: Larry Finger @ 2012-03-04 18:25 UTC (permalink / raw)
  To: awalls; +Cc: linux-media, ivtv-devel, linux-kernel

In driver ivtv, there is a mismatch between the type of the radio module parameter
and the storage variable, which leads to the following warning:

  CC [M]  drivers/media/video/ivtv/ivtv-driver.o
drivers/media/video/ivtv/ivtv-driver.c: In function ‘__check_radio’:
drivers/media/video/ivtv/ivtv-driver.c:142: warning: return from incompatible pointer type
drivers/media/video/ivtv/ivtv-driver.c: At top level:
drivers/media/video/ivtv/ivtv-driver.c:142: warning: initialization from incompatible pointer type

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---

Index: linux-2.6/drivers/media/video/ivtv/ivtv-driver.c
===================================================================
--- linux-2.6.orig/drivers/media/video/ivtv/ivtv-driver.c
+++ linux-2.6/drivers/media/video/ivtv/ivtv-driver.c
@@ -99,7 +99,7 @@ static int i2c_clock_period[IVTV_MAX_CAR
 
 static unsigned int cardtype_c = 1;
 static unsigned int tuner_c = 1;
-static bool radio_c = 1;
+static int radio_c = 1;
 static unsigned int i2c_clock_period_c = 1;
 static char pal[] = "---";
 static char secam[] = "--";
@@ -139,7 +139,7 @@ static int tunertype = -1;
 static int newi2c = -1;
 
 module_param_array(tuner, int, &tuner_c, 0644);
-module_param_array(radio, bool, &radio_c, 0644);
+module_param_array(radio, int, &radio_c, 0644);
 module_param_array(cardtype, int, &cardtype_c, 0644);
 module_param_string(pal, pal, sizeof(pal), 0644);
 module_param_string(secam, secam, sizeof(secam), 0644);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ivtv: Fix build warning
  2012-03-04 18:25 [PATCH] ivtv: Fix build warning Larry Finger
@ 2012-03-06 13:29 ` Danny Kukawka
  2012-03-06 16:10   ` Larry Finger
  0 siblings, 1 reply; 3+ messages in thread
From: Danny Kukawka @ 2012-03-06 13:29 UTC (permalink / raw)
  To: Larry Finger; +Cc: awalls, linux-media, ivtv-devel, linux-kernel

Am 04.03.2012 19:25, schrieb Larry Finger:
> In driver ivtv, there is a mismatch between the type of the radio module parameter
> and the storage variable, which leads to the following warning:
> 
>   CC [M]  drivers/media/video/ivtv/ivtv-driver.o
> drivers/media/video/ivtv/ivtv-driver.c: In function ‘__check_radio’:
> drivers/media/video/ivtv/ivtv-driver.c:142: warning: return from incompatible pointer type
> drivers/media/video/ivtv/ivtv-driver.c: At top level:
> drivers/media/video/ivtv/ivtv-driver.c:142: warning: initialization from incompatible pointer type
> 
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>

See my already twice send patches:
http://thread.gmane.org/gmane.linux.kernel/1246476

Danny

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ivtv: Fix build warning
  2012-03-06 13:29 ` Danny Kukawka
@ 2012-03-06 16:10   ` Larry Finger
  0 siblings, 0 replies; 3+ messages in thread
From: Larry Finger @ 2012-03-06 16:10 UTC (permalink / raw)
  To: Danny Kukawka; +Cc: awalls, linux-media, ivtv-devel, linux-kernel

On 03/06/2012 07:29 AM, Danny Kukawka wrote:
> Am 04.03.2012 19:25, schrieb Larry Finger:
>> In driver ivtv, there is a mismatch between the type of the radio module parameter
>> and the storage variable, which leads to the following warning:
>>
>>    CC [M]  drivers/media/video/ivtv/ivtv-driver.o
>> drivers/media/video/ivtv/ivtv-driver.c: In function ‘__check_radio’:
>> drivers/media/video/ivtv/ivtv-driver.c:142: warning: return from incompatible pointer type
>> drivers/media/video/ivtv/ivtv-driver.c: At top level:
>> drivers/media/video/ivtv/ivtv-driver.c:142: warning: initialization from incompatible pointer type
>>
>> Signed-off-by: Larry Finger<Larry.Finger@lwfinger.net>
>
> See my already twice send patches:
> http://thread.gmane.org/gmane.linux.kernel/1246476

Thanks for the link, and the information that the warning is being fixed.

Larry


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-06 16:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-04 18:25 [PATCH] ivtv: Fix build warning Larry Finger
2012-03-06 13:29 ` Danny Kukawka
2012-03-06 16:10   ` Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox