login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
29
Re: [PATCH] fix the broken annotations in fsldma
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
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
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
David Miller
[GIT]: Networking
Fred .
Please add ZFS support (from GPL sources)
Linus Torvalds
Linux 2.6.26-rc4
Jan Engelhardt
Re: why does x86 "make defconfig" build a single, lonely module?
git
:
Jörg Sommer
[PATCH 2/4] Rework redo_merge
Matthieu Moy
git push to a non-bare repository
Michael Dressel
git merge --no-commit <branch>; does commit
Joakim Tjernlund
[FEATURE REQUEST] git clone, just clone selected branches?
openbsd-misc
:
Daniel Ouellet
identifying sparse files and get ride of them trick available?
GVG GVG
ssh_exchange_identification: Connection closed by remote host
Unix Fan
Re: Vulnerability Note VU#800113 - Multiple DNS implementations vulnerable to cach...
Ihar Hrachyshka
Re: That whole "Linux stealing our code" thing
netbsd-tech-kern
:
Daniel Brewer
Re: fsync performance hit on 1.6.1
YAMAMOTO Takashi
yamt-km branch
der Mouse
Re: mjf-devfs2 branch
Ian Zagorskih
POSIX timer_settime() dosn't set timer in some cases (lost accuracy)
Latest forum posts
Linux Bootup hangs after adding RealTime Premption and HR-Timer
9 hours ago
Linux kernel
SATA 2 size problems
10 hours ago
Windows
problem with 2.6 kernel driver for a USB MAG Stripe Reader as HID device.
23 hours ago
Linux kernel
get_user_pages failure
1 day ago
Linux kernel
Reading linux kernel
1 day ago
Linux kernel
High level of Seagate 2.5" SATA drives failing
1 day ago
Hardware
Resetting the bios password for Toshiba Laptop
1 day ago
Hardware
Linux 2.6.22 slowly RUNS OUT OF LOWMEM
1 day ago
Linux kernel
Questions about modules
2 days ago
Linux kernel
KDB
2 days ago
Linux kernel
Show all forums...
Recent Tags
filesystem
Linus Torvalds
release
2.0
quote
HAMMER
H. Peter Anvin
2.6.25
security
Theodore T'so
DragonFlyBSD
Evgeniy Polyakov
Alan Cox
2.6.26
Matthew Dillon
Greg KH
bugs
Linux
Christoph Hellwig
ZFS
more tags
Colocation donated by:
Who's online
There are currently
5 users
and
1340 guests
online.
Online users
Simon Rowe
Jeremy
zeekec
strcmp
Mr_Z
Syndicate
speck-geostationary