Changeset 679 for GPL/trunk/include/linux/kernel.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/kernel.h
r598 r679 11 11 #include <stdarg.h> 12 12 //#include <linux/linkage.h> 13 #include <linux/bitops.h> 14 #include <linux/gfp.h> 15 #include <linux/types.h> 16 #include <linux/log2.h> 13 17 14 18 /* Optimization barrier */ … … 58 62 59 63 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 64 /* 70 65 * Display an IP address in readable format. … … 104 99 int strict_strtoul(const char *, unsigned int, unsigned long *); 105 100 101 #define BUG_ON(condition) 102 #define WARN_ON(condition) (void)0 103 #define WARN_ON_ONCE(condition) (void)0 104 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) 105 #define SIZE_MAX (~(size_t)0) 106 _WCRTLINK extern int vsnprintf( char *__s, size_t __bufsize, 107 const char *__format, __va_list __arg ); 108 char *kasprintf(gfp_t gfp, const char *fmt, ...); 109 110 char *kvasprintf(gfp_t gfp, const char *fmt, va_list args); 111 extern int hex_to_bin(char ch); 112 #define __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask)) 113 #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) 114 115 /** 116 * container_of - cast a member of a structure out to the containing structure 117 * @ptr: the pointer to the member. 118 * @type: the type of the container struct this is embedded in. 119 * @member: the name of the member within the struct. 120 * 121 */ 122 #define container_of(ptr, type, member) \ 123 ( (type *)( (char *)ptr - offsetof(type,member) ) ) 124 125 _WCRTLINK extern int sscanf( const char *__s, const char *__format, ... ); 126 106 127 #endif
Note:
See TracChangeset
for help on using the changeset viewer.