login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
29
Re: [PATCH] fix the broken annotations in fsldma
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Josh Boyer <jwboyer@...>
To: Al Viro <viro@...>
Cc: <torvalds@...>, <wei.zhang@...>, <linux-kernel@...>
Subject:
Re: [PATCH] fix the broken annotations in fsldma
Date: Saturday, March 29, 2008 - 10:02 am
On Sat, 2008-03-29 at 03:10 +0000, Al Viro wrote:
quoted text
> a) every bitwise declaration will give a unique type; use typedefs. > b) no need to bother with the stuff pointed to by iomem pointers, unless > it's accessed directly. noderef will force us to use helpers anyway. > > Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> > --- > drivers/dma/fsldma.h | 47 +++++++++++++++++++++++++++-------------------- > 1 files changed, 27 insertions(+), 20 deletions(-) > > diff --git a/drivers/dma/fsldma.h b/drivers/dma/fsldma.h > index fddd6ae..6faf07b 100644 > --- a/drivers/dma/fsldma.h > +++ b/drivers/dma/fsldma.h > @@ -75,12 +75,15 @@ > #define FSL_DMA_DGSR_EOSI 0x02 > #define FSL_DMA_DGSR_EOLSI 0x01 > > +typedef u64 __bitwise v64; > +typedef u32 __bitwise v32; > + > struct fsl_dma_ld_hw { > - u64 __bitwise src_addr; > - u64 __bitwise dst_addr; > - u64 __bitwise next_ln_addr; > - u32 __bitwise count; > - u32 __bitwise reserve; > + v64 src_addr; > + v64 dst_addr; > + v64 next_ln_addr; > + v32 count; > + v32 reserve; > } __attribute__((aligned(32))); > > struct fsl_desc_sw { > @@ -92,13 +95,13 @@ struct fsl_desc_sw { > } __attribute__((aligned(32))); > > struct fsl_dma_chan_regs { > - u32 __bitwise mr; /* 0x00 - Mode Register */ > - u32 __bitwise sr; /* 0x04 - Status Register */ > - u64 __bitwise cdar; /* 0x08 - Current descriptor address register */ > - u64 __bitwise sar; /* 0x10 - Source Address Register */ > - u64 __bitwise dar; /* 0x18 - Destination Address Register */ > - u32 __bitwise bcr; /* 0x20 - Byte Count Register */ > - u64 __bitwise ndar; /* 0x24 - Next Descriptor Address Register */ > + u32 mr; /* 0x00 - Mode Register */ > + u32 sr; /* 0x04 - Status Register */ > + u64 cdar; /* 0x08 - Current descriptor address register */ > + u64 sar; /* 0x10 - Source Address Register */ > + u64 dar; /* 0x18 - Destination Address Register */ > + u32 bcr; /* 0x20 - Byte Count Register */ > + u64 ndar; /* 0x24 - Next Descriptor Address Register */ > };
Did you forget to do the s/u{32,64}/v{32,64}/ conversion for this struct, or am I just a moron? josh --
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:
[PATCH] fix the broken annotations in fsldma
, Al Viro
, (Fri Mar 28, 11:10 pm)
Re: [PATCH] fix the broken annotations in fsldma
, Josh Boyer
, (Sat Mar 29, 10:02 am)
Re: [PATCH] fix the broken annotations in fsldma
, Al Viro
, (Sat Mar 29, 2:38 pm)
RE: [PATCH] fix the broken annotations in fsldma
, Zhang Wei
, (Sun Mar 30, 10:12 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
Re: Linux 2.6.21-rc4
Andrew Morton
-mm merge plans for 2.6.23
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Balbir Singh
Re: [RFC][PATCH 2/7] RSS controller core
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Andreas Henriksson
[PATCH 06/12] Remove bogus reference to tc-filters(8) from tc(8) manpage.
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
810 guests
online.
Online users
kevdimech
Syndicate