login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
April
»
19
RE: [PATCH] cciss: Fix warnings during compilation under 32bitenvironment
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Miller, Mike (OS Dev) <Mike.Miller@...>
To: James Bottomley <James.Bottomley@...>
Cc: Hisashi Hifumi <hifumi.hisashi@...>, <akpm@...>, <jens.axboe@...>, <linux-kernel@...>, <linux-scsi@...>, Cameron, Steve <steve.cameron@...>
Subject:
RE: [PATCH] cciss: Fix warnings during compilation under 32bitenvironment
Date: Thursday, April 19, 2007 - 12:26 pm
> -----Original Message-----
quoted text
> From: James Bottomley [mailto:James.Bottomley@SteelEye.com] > Sent: Thursday, April 19, 2007 11:22 AM > To: Miller, Mike (OS Dev) > Cc: Hisashi Hifumi; akpm@linux-foundation.org; > jens.axboe@oracle.com; linux-kernel@vger.kernel.org; > linux-scsi@vger.kernel.org; Cameron, Steve > Subject: RE: [PATCH] cciss: Fix warnings during compilation > under 32bitenvironment > > On Thu, 2007-04-19 at 16:12 +0000, Miller, Mike (OS Dev) wrote: > > > > Nak. You still haven't told where you saw these warnings. What > > > > compiler are you using? I do not see these in my 32-bit > environment. > > > > > > I think it's seen with CONFIG_LBD=n on 32 bits > > > > > > In that configuration, sector_t is a u32 (it's u64 even > on 32 bits > > > with CONFIG_LBD=y). The proposed code change is a simple cut and > > > paste from the sd driver. > > > > Isn't there a better way than testing each one? > > 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. >
OKIE-DOKIE then, add the change. Acked-by: Mike Miller <mike.miller@hp.com> -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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...
, James Bottomley
, (Thu Apr 19, 11:18 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)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
clameter
[31/36] Large Blocksize: Core piece
David Woodhouse
Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in mor...
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
8 users
and
959 guests
online.
Online users
glowinthedarkyh
zeekec
autoinsurancrfb
NeilK
dillmankaratei
BestWeddingAnn
mattressdaytona
herpessymptoms
Syndicate