Changeset 615 for GPL/branches/uniaud32-next/include/linux/kernel.h
- Timestamp:
- Jan 1, 2021, 5:31:48 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/kernel.h
r614 r615 11 11 #include <stdarg.h> 12 12 //#include <linux/linkage.h> 13 #include <linux/gfp.h> 14 #include <linux/types.h> 13 15 14 16 /* Optimization barrier */ … … 58 60 59 61 60 #if DEBUG61 #define pr_debug(fmt,arg)62 #else63 #define pr_debug(fmt,arg)64 #endif65 66 #define pr_info(fmt,arg) \67 printk(KERN_INFO fmt,##arg)68 69 #define pr_warn(fmt, arg, ...) \70 printk(KERN_WARNING fmt, ##arg)71 72 62 /* 73 63 * Display an IP address in readable format. … … 107 97 int strict_strtoul(const char *, unsigned int, unsigned long *); 108 98 99 #define BUG_ON(condition) 100 #define WARN_ON(condition) 0 101 #define WARN_ON_ONCE(condition) 0 102 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) 103 #define SIZE_MAX (~(size_t)0) 104 _WCRTLINK extern int vsnprintf( char *__s, size_t __bufsize, 105 const char *__format, __va_list __arg ); 106 char *kasprintf(gfp_t gfp, const char *fmt, ...); 107 108 char *kvasprintf(gfp_t gfp, const char *fmt, va_list args); 109 extern int hex_to_bin(char ch); 110 #define __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask)) 111 #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) 112 113 /** 114 * container_of - cast a member of a structure out to the containing structure 115 * @ptr: the pointer to the member. 116 * @type: the type of the container struct this is embedded in. 117 * @member: the name of the member within the struct. 118 * 119 */ 120 #define container_of(ptr, type, member) \ 121 ( (type *)( (char *)ptr - offsetof(type,member) ) ) 109 122 #endif
Note:
See TracChangeset
for help on using the changeset viewer.