From: akepner@sgi.com Date: Tue, 2 Oct 2007 19:49:06 -0700Acked-by: David S. Miller <davem@davemloft.net> However I'm a little unhappy with how IA64 achieves this. The last argument for dma_map_foo() is an enum not an int, every platform other than IA64 properly defines the last argument as "enum dma_data_direction". It can take one of several distinct values, it is not a mask. This hijacking of the DMA direction argument is hokey at best, and at worst is type bypassing which is going to explode subtly for someone in the future and result in a long painful debugging session. Adding another argument could be painful to do this cleanly, but at least with inline functions and macros it could just evaluate to nothing on platforms that don't need it. Either that, or we should turn the thing into an integer "flags" across the board and audit every DMA mapping implementation so that it can handle multiple bits being set. But that's really ugly and invites mistakes as I detailed above. -
| Andrew Morton | Re: 2.6.24-rc6-mm1 |
| Satyam Sharma | Re: 2.6.23-rc4-mm1 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 010/196] Chinese: add translation of Codingstyle |
git: | |
| Chris Ortman | [FEATURE REQUEST] git-svn format-patch |
| David | [StGit PATCH 00/13] Eliminate 'top' and 'bottom' files |
| Scott Chacon | Git Community Book |
| H. Peter Anvin | Re: kernel.org mirroring (Re: [GIT PULL] MMC update) |
| Richard Stallman | Real men don't attack straw men |
| Gregory Edigarov | How to re-build openssl with SHA1 support? |
| Xavier Mertens | newfs: cg 0: bad magic number |
| thacrazze | Multiboot Windows XP + OpenBSD doesnt work |
| Jens Axboe | [PATCH][RFC] fast file mapping for loop |
| David Miller | Re: [ANNOUNCE] Btrfs v0.12 released |
| Tony Jones | [RFC 1/28] Pass struct vfsmount to the inode_create LSM hook. |
| Andreas Dilger | Re: [PATCH 0/4] Fiemap, an extent mapping ioctl - round 2 |
