Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/slab.c

    ra000878c r98000fb  
    130130/** Caches for malloc */
    131131static slab_cache_t *malloc_caches[SLAB_MAX_MALLOC_W - SLAB_MIN_MALLOC_W + 1];
    132 static const char *malloc_names[] =  {
     132static char *malloc_names[] =  {
    133133        "malloc-16",
    134134        "malloc-32",
     
    571571
    572572/** Initialize allocated memory as a slab cache */
    573 static void _slab_cache_create(slab_cache_t *cache, const char *name,
    574     size_t size, size_t align, int (*constructor)(void *obj, int kmflag),
    575     int (*destructor)(void *obj), int flags)
     573static void
     574_slab_cache_create(slab_cache_t *cache, char *name, size_t size, size_t align,
     575    int (*constructor)(void *obj, int kmflag), int (*destructor)(void *obj),
     576    int flags)
    576577{
    577578        int pages;
     
    630631
    631632/** Create slab cache  */
    632 slab_cache_t *slab_cache_create(const char *name, size_t size, size_t align,
     633slab_cache_t *
     634slab_cache_create(char *name, size_t size, size_t align,
    633635    int (*constructor)(void *obj, int kmflag), int (*destructor)(void *obj),
    634636    int flags)
     
    851853                cache = list_get_instance(cur, slab_cache_t, link);
    852854
    853                 const char *name = cache->name;
     855                char *name = cache->name;
    854856                uint8_t order = cache->order;
    855857                size_t size = cache->size;
     
    894896                    NULL, NULL, SLAB_CACHE_MAGDEFERRED);
    895897        }
    896 #ifdef CONFIG_DEBUG
     898#ifdef CONFIG_DEBUG       
    897899        _slab_initialized = 1;
    898900#endif
Note: See TracChangeset for help on using the changeset viewer.