source: trunk/package/mac80211/patches/0170-dma_set_coherent_mask.patch @ 21790

Last change on this file since 21790 was 21790, checked in by hauke, 6 years ago

mac80211: fix build of b43

File size: 815 bytes
  • include/linux/compat-2.6.34.h

    From 3c02b107ec11e14ef21e7a444ad83f0ef1e68f79 Mon Sep 17 00:00:00 2001
    From: Hauke Mehrtens <hauke@hauke-m.de>
    Date: Sun, 13 Jun 2010 20:41:55 +0200
    Subject: [PATCH 1/2] compat: backport dma_set_coherent_mask
    
    
    Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
    ---
     include/linux/compat-2.6.34.h |    8 ++++++++
     1 files changed, 8 insertions(+), 0 deletions(-)
    
    a b do { \ 
    216216#define dma_unmap_len_set(PTR, LEN_NAME, VAL)    do { } while (0) 
    217217#endif 
    218218 
     219static inline int dma_set_coherent_mask(struct device *dev, u64 mask) 
     220{ 
     221        if (!dma_supported(dev, mask)) 
     222                return -EIO; 
     223        dev->coherent_dma_mask = mask; 
     224        return 0; 
     225} 
     226 
    219227#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)) */ 
    220228 
    221229#endif /* LINUX_26_34_COMPAT_H */ 
Note: See TracBrowser for help on using the repository browser.