提交 940cc2df 编写于 作者: M Mariusz Kozlowski 提交者: Linus Torvalds

[PATCH] make 1-bit bitfields unsigned

Keeps sparse happy.
Signed-of-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Acked-by: NKarsten Keil <kkeil@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 c6722048
...@@ -41,10 +41,10 @@ struct isdnhdlc_vars { ...@@ -41,10 +41,10 @@ struct isdnhdlc_vars {
unsigned char shift_reg; unsigned char shift_reg;
unsigned char ffvalue; unsigned char ffvalue;
int data_received:1; // set if transferring data unsigned int data_received:1; // set if transferring data
int dchannel:1; // set if D channel (send idle instead of flags) unsigned int dchannel:1; // set if D channel (send idle instead of flags)
int do_adapt56:1; // set if 56K adaptation unsigned int do_adapt56:1; // set if 56K adaptation
int do_closing:1; // set if in closing phase (need to send CRC + flag unsigned int do_closing:1; // set if in closing phase (need to send CRC + flag
}; };
......
...@@ -36,7 +36,7 @@ struct l64781_state { ...@@ -36,7 +36,7 @@ struct l64781_state {
struct dvb_frontend frontend; struct dvb_frontend frontend;
/* private demodulator data */ /* private demodulator data */
int first:1; unsigned int first:1;
}; };
#define dprintk(args...) \ #define dprintk(args...) \
......
...@@ -125,7 +125,7 @@ struct audio_stream { ...@@ -125,7 +125,7 @@ struct audio_stream {
#else #else
dma_regs_t *dma_regs; /* points to our DMA registers */ dma_regs_t *dma_regs; /* points to our DMA registers */
#endif #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 period; /* current transfer period */
int periods; /* current count of periods registerd in the DMA engine */ 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 */ int tx_spin; /* are we recoding - flag used to do DMA trans. for sync */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册