From: akpm@linux-foundation.org Subject: [patch 3/4] cpuidle: unsigned bitfield Date: Mon, 26 Mar 2007 21:38:48 -0800 Message-ID: <200703270538.l2R5cmFX007936@shell0.pdx.osdl.net> Return-path: Received: from smtp.osdl.org ([65.172.181.24]:39763 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933993AbXC0FkF (ORCPT ); Tue, 27 Mar 2007 01:40:05 -0400 Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, akpm@linux-foundation.org, randy.dunlap@oracle.com, venkatesh.pallipadi@intel.com From: Randy Dunlap 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 Cc: Venkatesh Pallipadi Cc: Len Brown Signed-off-by: Andrew Morton --- drivers/cpuidle/governors/ladder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/cpuidle/governors/ladder.c~cpuidle-unsigned-bitfield drivers/cpuidle/governors/ladder.c --- a/drivers/cpuidle/governors/ladder.c~cpuidle-unsigned-bitfield +++ a/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; _