• Guenter Roeck's avatar
    NFC: nxp-nci: Include unaligned.h instead of access_ok.h · afb85b1b
    Guenter Roeck authored
    commit 2eee74b7 upstream.
    
    Directly including access_ok.h can result in the following compile errors
    if an architecture such as ia64 does not support direct unaligned accesses.
    
    include/linux/unaligned/access_ok.h:7:19: error:
    	redefinition of 'get_unaligned_le16'
    include/linux/unaligned/le_struct.h:6:19: note:
    	previous definition of 'get_unaligned_le16' was here
    include/linux/unaligned/access_ok.h:12:19: error:
    	redefinition of 'get_unaligned_le32'
    include/linux/unaligned/le_struct.h:11:19: note:
    	previous definition of 'get_unaligned_le32' was here
    
    Include asm/unaligned.h instead and let the architecture decide which
    access functions to use.
    
    Cc: Clément Perrochaud <clement.perrochaud@effinnov.com>
    Cc: Samuel Ortiz <sameo@linux.intel.com>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
    Cc: Matthias Kaehlcke <mka@chromium.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    afb85b1b
i2c.c 10 KB