Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e5071b5493b1dcfa98a6e8a75f56997f6d4a0c25
Commit:     e5071b5493b1dcfa98a6e8a75f56997f6d4a0c25
Parent:     76fcdb30ae1cb28e438e5ffd4db5f49ea3d96cd7
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 31 01:28:33 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Jul 31 01:28:33 2007 -0700

    [SPARC64]: Add missing dma_get_cache_alignment().
    
    drivers/infiniband/hw/mthca/mthca_main.c: In function `mthca_init_icm':
    drivers/infiniband/hw/mthca/mthca_main.c:468: error: implicit declaration 
of function `dma_get_cache_alignment'
    
    Pinch the one from asm-generic/dma-mapping.h
    
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 include/asm-sparc64/dma-mapping.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/include/asm-sparc64/dma-mapping.h 
b/include/asm-sparc64/dma-mapping.h
index 0a10066..a72a5f2 100644
--- a/include/asm-sparc64/dma-mapping.h
+++ b/include/asm-sparc64/dma-mapping.h
@@ -127,6 +127,13 @@ static inline int dma_mapping_error(dma_addr_t dma_addr)
        return (dma_addr == DMA_ERROR_CODE);
 }
 
+static inline int dma_get_cache_alignment(void)
+{
+       /* no easy way to get cache size on all processors, so return
+        * the maximum possible, to be safe */
+       return (1 << INTERNODE_CACHE_SHIFT);
+}
+
 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
 #define dma_is_consistent(d, h)        (1)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to