Ignore:
Timestamp:
Jan 1, 2021, 5:31:48 AM (5 years ago)
Author:
Paul Smedley
Message:

Add source for uniaud32 based on code from linux kernel 5.4.86

Location:
GPL/branches/uniaud32-next
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/kernel.h

    r614 r615  
    1111#include <stdarg.h>
    1212//#include <linux/linkage.h>
     13#include <linux/gfp.h>
     14#include <linux/types.h>
    1315
    1416/* Optimization barrier */
     
    5860
    5961
    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 
    69 #define pr_warn(fmt, arg, ...) \
    70         printk(KERN_WARNING fmt, ##arg)
    71 
    7262/*
    7363 *      Display an IP address in readable format.
     
    10797int strict_strtoul(const char *, unsigned int, unsigned long *);
    10898
     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 );
     106char *kasprintf(gfp_t gfp, const char *fmt, ...);
     107
     108char *kvasprintf(gfp_t gfp, const char *fmt, va_list args);
     109extern 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) ) )
    109122#endif
Note: See TracChangeset for help on using the changeset viewer.