From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [PATCH 5/25] msi: Make the msi boolean tests return either 0 or 1. Date: Tue, 20 Jun 2006 18:45:02 -0400 Message-ID: <44987A6E.6010608@garzik.org> References: <11508425183073-git-send-email-ebiederm@xmission.com> <11508425191381-git-send-email-ebiederm@xmission.com> <11508425192220-git-send-email-ebiederm@xmission.com> <11508425191063-git-send-email-ebiederm@xmission.com> <1150842520235-git-send-email-ebiederm@xmission.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from srv5.dvmed.net ([207.36.208.214]:49125 "EHLO mail.dvmed.net") by vger.kernel.org with ESMTP id S1751358AbWFTWpS (ORCPT ); Tue, 20 Jun 2006 18:45:18 -0400 In-Reply-To: <1150842520235-git-send-email-ebiederm@xmission.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Eric W. Biederman" Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz, discuss@x86-64.org, Ingo Molnar , Thomas Gleixner , Andi Kleen , Natalie Protasevich , Len Brown , Kimball Murray , Brice Goglin , Greg Lindahl , Dave Olson , Greg KH , Grant Grundler , "bibo,mao" , Rajesh Shah , Mark Maule , Jesper Juhl , Shaohua Li , Matthew Wilcox , "Michael S. Tsirkin" , Ashok Raj , Randy Dunlap , Roland Dreier Eric W. Biederman wrote: > This allows the output of the msi tests to be stored directly > in a bit field. If you don't do this a value greater than > one will be truncated and become 0. Changing true to false > with bizare consequences. Another example of why bit fields are a pain in the butt... Jeff