Changeset 726 for GPL


Ignore:
Timestamp:
Sep 6, 2022, 11:14:39 AM (3 years ago)
Author:
Paul Smedley
Message:

Revert changes from r723

Location:
GPL/branches/uniaud32-next
Files:
2 edited

Legend:

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

    r725 r726  
    9292 * @flags: the type of memory to allocate (see kmalloc).
    9393 */
    94 static inline void *kzalloc(size_t size, gfp_t flags)
    95 {
    96         return __kmalloc(size, flags | __GFP_ZERO);
    97 }
    98 
     94void *kzalloc(size_t n, gfp_t gfp_flags);
    9995void *kcalloc(size_t n, size_t size, unsigned int __nocast gfp_flags);
    10096void *krealloc(const void *, size_t, gfp_t);
  • GPL/branches/uniaud32-next/lib32/memory.c

    r725 r726  
    610610
    611611//******************************************************************************
     612//******************************************************************************
    612613#ifdef DEBUGHEAP
    613614void *__kmalloc(int size, int flags, const char *filename, int lineno)
     
    644645
    645646//******************************************************************************
     647//******************************************************************************
    646648#ifdef DEBUGHEAP
    647649void __kfree(const void *ptr, const char *filename, int lineno)
     
    669671}
    670672
     673//******************************************************************************
     674//******************************************************************************
     675void *kzalloc(size_t size, unsigned int flags)
     676{
     677        void *ret;
     678        ret = _kmalloc(size, flags);
     679        if (ret)
     680                memset(ret, 0, size);
     681        return ret;
     682}
    671683//******************************************************************************
    672684//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.