RE: [PATCH] cciss: Fix warnings during compilation under 32bit environment

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miller, Mike (OS Dev) <Mike.Miller@...>
Cc: Hisashi Hifumi <hifumi.hisashi@...>, <akpm@...>, <jens.axboe@...>, <linux-kernel@...>, <linux-scsi@...>, Cameron, Steve <steve.cameron@...>
Date: Thursday, April 19, 2007 - 12:22 pm

On Thu, 2007-04-19 at 16:12 +0000, Miller, Mike (OS Dev) wrote:

It's not such a bad option.  The sizeof() test is compile time
determinable, so the compiler simply zeros the fields in the
CONFIG_LBD=n case and does the shift for CONFIG_LBD=y.  It certainly
never compiles to four inline condition checks.

James


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [PATCH] cciss: Fix warnings during compilation under 32b..., Miller, Mike (OS Dev), (Thu Apr 19, 11:09 am)
RE: [PATCH] cciss: Fix warnings during compilation under 32b..., Miller, Mike (OS Dev), (Thu Apr 19, 12:12 pm)
RE: [PATCH] cciss: Fix warnings during compilation under 32b..., James Bottomley, (Thu Apr 19, 12:22 pm)
RE: [PATCH] cciss: Fix warnings during compilation under 32b..., Miller, Mike (OS Dev), (Thu Apr 19, 12:26 pm)