1
2
3
4
5
6
7
8
9
10
11
12#ifndef __DWC3_LINUX_COMPAT__
13#define __DWC3_LINUX_COMPAT__
14
15#define pr_debug(format) debug(format)
16#define WARN(val, format, arg...) debug(format, ##arg)
17#define dev_WARN(dev, format, arg...) debug(format, ##arg)
18#define WARN_ON_ONCE(val) debug("Error %d\n", val)
19
20static inline size_t strlcat(char *dest, const char *src, size_t n)
21{
22 strcat(dest, src);
23 return strlen(dest) + strlen(src);
24}
25
26static inline void *devm_kzalloc(struct device *dev, unsigned int size,
27 unsigned int flags)
28{
29 return kzalloc(size, flags);
30}
31#endif
32