* [PATCH] sbp2: make 1bit bitfield unsigned
@ 2006-11-15 18:14 Luca Tettamanti
2006-11-15 19:18 ` Stefan Richter
0 siblings, 1 reply; 4+ messages in thread
From: Luca Tettamanti @ 2006-11-15 18:14 UTC (permalink / raw)
To: Ben Collins, Stefan Richter; +Cc: linux1394-devel, linux-kernel
A signed single-bit bitfield doesn't make much sense. Make it unsigned.
Signed-Off-By: Luca Tettamanti <kronos.it@gmail.com>
---
drivers/ieee1394/sbp2.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ieee1394/sbp2.h b/drivers/ieee1394/sbp2.h
index abbe48e..cf416c5 100644
--- a/drivers/ieee1394/sbp2.h
+++ b/drivers/ieee1394/sbp2.h
@@ -322,7 +322,7 @@ struct scsi_id_instance_data {
/*
* Waitqueue flag for logins, reconnects, logouts, query logins
*/
- int access_complete:1;
+ unsigned int access_complete:1;
/*
* Pool of command orbs, so we can have more than overlapped command per id
Luca
--
Quando un uomo porta dei fiori a sua moglie senza motivo,
un motivo c'e`.
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] sbp2: make 1bit bitfield unsigned
2006-11-15 18:14 [PATCH] sbp2: make 1bit bitfield unsigned Luca Tettamanti
@ 2006-11-15 19:18 ` Stefan Richter
2006-11-15 23:04 ` Mariusz Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Richter @ 2006-11-15 19:18 UTC (permalink / raw)
To: Luca Tettamanti; +Cc: Ben Collins, linux1394-devel, linux-kernel
Luca Tettamanti wrote:
> A signed single-bit bitfield doesn't make much sense. Make it unsigned.
...
Committed to linux1394-2.6.git.
--
Stefan Richter
-=====-=-==- =-== -====
http://arcgraph.de/sr/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] sbp2: make 1bit bitfield unsigned
2006-11-15 19:18 ` Stefan Richter
@ 2006-11-15 23:04 ` Mariusz Kozlowski
2006-11-15 23:09 ` Randy Dunlap
0 siblings, 1 reply; 4+ messages in thread
From: Mariusz Kozlowski @ 2006-11-15 23:04 UTC (permalink / raw)
To: Stefan Richter
Cc: Luca Tettamanti, Ben Collins, Andrew Morton, linux1394-devel,
linux-kernel
Hello,
> Luca Tettamanti wrote:
> > A signed single-bit bitfield doesn't make much sense. Make it unsigned.
> ...
> Committed to linux1394-2.6.git.
There is a few more. Hopefuly 'grep + my eyes' caught them all.
The patch is against 2.6.19-rc5-mm2.
Signed-of-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
diff -upr linux-2.6.19-rc5-mm2-a/drivers/isdn/hisax/isdnhdlc.h linux-2.6.19-rc5-mm2-b/drivers/isdn/hisax/isdnhdlc.h
--- linux-2.6.19-rc5-mm2-a/drivers/isdn/hisax/isdnhdlc.h 2006-11-15 11:24:19.000000000 +0100
+++ linux-2.6.19-rc5-mm2-b/drivers/isdn/hisax/isdnhdlc.h 2006-11-15 23:54:15.000000000 +0100
@@ -41,10 +41,10 @@ struct isdnhdlc_vars {
unsigned char shift_reg;
unsigned char ffvalue;
- int data_received:1; // set if transferring data
- int dchannel:1; // set if D channel (send idle instead of flags)
- int do_adapt56:1; // set if 56K adaptation
- int do_closing:1; // set if in closing phase (need to send CRC + flag
+ unsigned int data_received:1; // set if transferring data
+ unsigned int dchannel:1; // set if D channel (send idle instead of flags)
+ unsigned int do_adapt56:1; // set if 56K adaptation
+ unsigned int do_closing:1; // set if in closing phase (need to send CRC + flag
};
diff -upr linux-2.6.19-rc5-mm2-a/drivers/media/dvb/frontends/l64781.c linux-2.6.19-rc5-mm2-b/drivers/media/dvb/frontends/l64781.c
--- linux-2.6.19-rc5-mm2-a/drivers/media/dvb/frontends/l64781.c 2006-11-08 03:24:20.000000000 +0100
+++ linux-2.6.19-rc5-mm2-b/drivers/media/dvb/frontends/l64781.c 2006-11-15 21:35:33.000000000 +0100
@@ -36,7 +36,7 @@ struct l64781_state {
struct dvb_frontend frontend;
/* private demodulator data */
- int first:1;
+ unsigned int first:1;
};
#define dprintk(args...) \
diff -upr linux-2.6.19-rc5-mm2-a/sound/arm/sa11xx-uda1341.c linux-2.6.19-rc5-mm2-b/sound/arm/sa11xx-uda1341.c
--- linux-2.6.19-rc5-mm2-a/sound/arm/sa11xx-uda1341.c 2006-11-08 03:24:20.000000000 +0100
+++ linux-2.6.19-rc5-mm2-b/sound/arm/sa11xx-uda1341.c 2006-11-15 21:40:16.000000000 +0100
@@ -125,7 +125,7 @@ struct audio_stream {
#else
dma_regs_t *dma_regs; /* points to our DMA registers */
#endif
- int active:1; /* we are using this stream for transfer now */
+ unsigned int active:1; /* we are using this stream for transfer now */
int period; /* current transfer period */
int periods; /* current count of periods registerd in the DMA engine */
int tx_spin; /* are we recoding - flag used to do DMA trans. for sync */
--
Regards,
Mariusz Kozlowski
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] sbp2: make 1bit bitfield unsigned
2006-11-15 23:04 ` Mariusz Kozlowski
@ 2006-11-15 23:09 ` Randy Dunlap
0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2006-11-15 23:09 UTC (permalink / raw)
To: Mariusz Kozlowski
Cc: Stefan Richter, Luca Tettamanti, Ben Collins, Andrew Morton,
linux1394-devel, linux-kernel
On Thu, 16 Nov 2006 00:04:24 +0100 Mariusz Kozlowski wrote:
> Hello,
>
> > Luca Tettamanti wrote:
> > > A signed single-bit bitfield doesn't make much sense. Make it unsigned.
> > ...
> > Committed to linux1394-2.6.git.
>
> There is a few more. Hopefuly 'grep + my eyes' caught them all.
> The patch is against 2.6.19-rc5-mm2.
'sparse' will catch them for sure.
ISDN, dvb, alsa patches need to be sent to different maintainers...
'diffstat -p1 -w70' output would be nice.
> Signed-of-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
>
> diff -upr linux-2.6.19-rc5-mm2-a/drivers/isdn/hisax/isdnhdlc.h linux-2.6.19-rc5-mm2-b/drivers/isdn/hisax/isdnhdlc.h
> --- linux-2.6.19-rc5-mm2-a/drivers/isdn/hisax/isdnhdlc.h 2006-11-15 11:24:19.000000000 +0100
> +++ linux-2.6.19-rc5-mm2-b/drivers/isdn/hisax/isdnhdlc.h 2006-11-15 23:54:15.000000000 +0100
> @@ -41,10 +41,10 @@ struct isdnhdlc_vars {
> unsigned char shift_reg;
> unsigned char ffvalue;
>
> - int data_received:1; // set if transferring data
> - int dchannel:1; // set if D channel (send idle instead of flags)
> - int do_adapt56:1; // set if 56K adaptation
> - int do_closing:1; // set if in closing phase (need to send CRC + flag
> + unsigned int data_received:1; // set if transferring data
> + unsigned int dchannel:1; // set if D channel (send idle instead of flags)
> + unsigned int do_adapt56:1; // set if 56K adaptation
> + unsigned int do_closing:1; // set if in closing phase (need to send CRC + flag
> };
>
>
> diff -upr linux-2.6.19-rc5-mm2-a/drivers/media/dvb/frontends/l64781.c linux-2.6.19-rc5-mm2-b/drivers/media/dvb/frontends/l64781.c
> --- linux-2.6.19-rc5-mm2-a/drivers/media/dvb/frontends/l64781.c 2006-11-08 03:24:20.000000000 +0100
> +++ linux-2.6.19-rc5-mm2-b/drivers/media/dvb/frontends/l64781.c 2006-11-15 21:35:33.000000000 +0100
> @@ -36,7 +36,7 @@ struct l64781_state {
> struct dvb_frontend frontend;
>
> /* private demodulator data */
> - int first:1;
> + unsigned int first:1;
> };
>
> #define dprintk(args...) \
> diff -upr linux-2.6.19-rc5-mm2-a/sound/arm/sa11xx-uda1341.c linux-2.6.19-rc5-mm2-b/sound/arm/sa11xx-uda1341.c
> --- linux-2.6.19-rc5-mm2-a/sound/arm/sa11xx-uda1341.c 2006-11-08 03:24:20.000000000 +0100
> +++ linux-2.6.19-rc5-mm2-b/sound/arm/sa11xx-uda1341.c 2006-11-15 21:40:16.000000000 +0100
> @@ -125,7 +125,7 @@ struct audio_stream {
> #else
> dma_regs_t *dma_regs; /* points to our DMA registers */
> #endif
> - int active:1; /* we are using this stream for transfer now */
> + unsigned int active:1; /* we are using this stream for transfer now */
> int period; /* current transfer period */
> int periods; /* current count of periods registerd in the DMA engine */
> int tx_spin; /* are we recoding - flag used to do DMA trans. for sync */
>
>
> --
---
~Randy
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-15 23:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-15 18:14 [PATCH] sbp2: make 1bit bitfield unsigned Luca Tettamanti
2006-11-15 19:18 ` Stefan Richter
2006-11-15 23:04 ` Mariusz Kozlowski
2006-11-15 23:09 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox