Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/include/linux/kernel.h

    r598 r679  
    1111#include <stdarg.h>
    1212//#include <linux/linkage.h>
     13#include <linux/bitops.h>
     14#include <linux/gfp.h>
     15#include <linux/types.h>
     16#include <linux/log2.h>
    1317
    1418/* Optimization barrier */
     
    5862
    5963
    60 #if DEBUG
    61 #define pr_debug(fmt,arg)
    62 #else
    63 #define pr_debug(fmt,arg)
    64 #endif
    65 
    66 #define pr_info(fmt,arg) \
    67         printk(KERN_INFO fmt,##arg)
    68 
    6964/*
    7065 *      Display an IP address in readable format.
     
    10499int strict_strtoul(const char *, unsigned int, unsigned long *);
    105100
     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 );
     108char *kasprintf(gfp_t gfp, const char *fmt, ...);
     109
     110char *kvasprintf(gfp_t gfp, const char *fmt, va_list args);
     111extern 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
    106127#endif
Note: See TracChangeset for help on using the changeset viewer.