Commit ecae59bf authored by Pavel Pisa's avatar Pavel Pisa
Browse files

driver: ctu_can_fd_linux_defs.h attempts to redefine __uXX incompatible types x86 Linux system.



_ASM_GENERIC_INT_LL64_H is defined if types are already
defined by included system headers.
Signed-off-by: Pavel Pisa's avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent 00acebcb
...@@ -41,13 +41,15 @@ ...@@ -41,13 +41,15 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stddef.h> #include <stddef.h>
//#include <linux/types.h> #include <linux/types.h>
#include <linux/socket.h> #include <linux/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#define likely(x) __builtin_expect(!!(x), 1) #define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0) #define unlikely(x) __builtin_expect(!!(x), 0)
#define __iomem volatile #define __iomem volatile
#ifndef _ASM_GENERIC_INT_LL64_H
typedef uint8_t __u8; typedef uint8_t __u8;
typedef uint16_t __u16; typedef uint16_t __u16;
typedef uint32_t __u32; typedef uint32_t __u32;
...@@ -58,6 +60,8 @@ typedef int16_t __s16; ...@@ -58,6 +60,8 @@ typedef int16_t __s16;
typedef int32_t __s32; typedef int32_t __s32;
typedef int64_t __s64; typedef int64_t __s64;
#endif
typedef __u8 u8; typedef __u8 u8;
typedef __u16 u16; typedef __u16 u16;
typedef __u32 u32; typedef __u32 u32;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment