All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ][Patch] remove implicit sign bit in msp3400.h
@ 2006-02-08  6:26 Darren Jenkins\
  2006-02-08  7:02 ` [KJ][Patch] remove implicit sign bit in l64781.c Darren Jenkins\
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Darren Jenkins\ @ 2006-02-08  6:26 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

G'day

the two fields here

	int restart:1;
	int watch_stereo:1;

they both seem to be used as single bit flags. So this patch just makes
them unsigned.

Note : Not sure if something should be done in msp3400-driver.c as 
"int msp_sleep(struct msp_state *state, int timeout)"
is declared to return an int then returns
"return state->restart;" which is now "unsigned:1;"
This seems ok but I don't know if gcc will issue a warning without a
cast.
Note: if anyone can tell me if it's possible/how to compile
msp3400-driver.c by its self that would be handy.



--- linux-2.6.16-rc2/drivers/media/video/msp3400.h.orig	2006-02-08 15:57:02.000000000 +1100
+++ linux-2.6.16-rc2/drivers/media/video/msp3400.h	2006-02-08 17:09:45.000000000 +1100
@@ -86,8 +86,8 @@ struct msp_state {
 	/* thread */
 	struct task_struct   *kthread;
 	wait_queue_head_t    wq;
-	int                  restart:1;
-	int                  watch_stereo:1;
+	unsigned restart:1;
+	unsigned watch_stereo:1;
 };
 
 /* msp3400-driver.c */



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2006-02-19  6:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-08  6:26 [KJ][Patch] remove implicit sign bit in msp3400.h Darren Jenkins\
2006-02-08  7:02 ` [KJ][Patch] remove implicit sign bit in l64781.c Darren Jenkins\
2006-02-08  7:17 ` [KJ][Patch] remove implicit sign bit in isdnhdlc.h Darren Jenkins\
2006-02-08 15:32 ` [KJ][Patch] remove implicit sign bit in msp3400.h Randy.Dunlap
2006-02-09 12:15 ` Darren Jenkins\
2006-02-18 12:33 ` Alexey Dobriyan
2006-02-19  6:32 ` Darren Jenkins\
2006-02-19  6:58 ` Matthew Wilcox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.