LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH -mm] cpuidle: unsigned bitfield
@ 2007-03-22 2:23 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2007-03-22 2:23 UTC (permalink / raw)
To: lkml; +Cc: venkatesh.pallipadi, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
A 1-bit bitfield has no room for a sign bit.
drivers/cpuidle/governors/ladder.c:54:16: error: dubious bitfield without explicit `signed' or `unsigned'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
drivers/cpuidle/governors/ladder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.21-rc4-mm1.orig/drivers/cpuidle/governors/ladder.c
+++ linux-2.6.21-rc4-mm1/drivers/cpuidle/governors/ladder.c
@@ -51,7 +51,7 @@ struct ladder_device_state {
struct ladder_device {
struct ladder_device_state states[CPUIDLE_STATE_MAX];
- int bm_check:1;
+ unsigned int bm_check:1;
unsigned long bm_check_timestamp;
unsigned long bm_activity; /* FIXME: bm activity should be global */
int last_state_idx;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-22 2:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-22 2:23 [PATCH -mm] cpuidle: unsigned bitfield Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).