Changeset 11b285d in mainline for kernel/generic/include/mm/slab.h


Ignore:
Timestamp:
2018-05-13T15:19:32Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad896eb
Parents:
13db2044
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 14:59:01)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 15:19:32)
Message:

Use standard signature for malloc() in kernel.

The remaining instances of blocking allocation are replaced with
a new separate function named nfmalloc (short for non-failing malloc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/slab.h

    r13db2044 r11b285d  
    140140
    141141/* malloc support */
    142 extern void *malloc(size_t, unsigned int)
     142extern void *malloc(size_t)
    143143    __attribute__((malloc));
    144 extern void *realloc(void *, size_t, unsigned int)
     144extern void *realloc(void *, size_t)
    145145    __attribute__((warn_unused_result));
    146146extern void free(void *);
     147
     148extern void *nfmalloc(size_t)
     149    __attribute__((malloc, returns_nonnull));
    147150
    148151#endif
Note: See TracChangeset for help on using the changeset viewer.