diff options
author | Josh Haberman <jhaberman@gmail.com> | 2018-08-21 14:47:50 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2018-08-21 14:47:50 -0700 |
commit | c0a50de92300080a1cf11bf4ff0ec3b2d6240c10 (patch) | |
tree | 84736c4563940dd81aa5d2269e3ba638b5355edb /upb/bindings/linux/stdlib.h | |
parent | e3eae33fb5840dbec3c2bc9109fa164f6066baa8 (diff) |
Removed a bunch of obsolete code.
A lot of this code was experimental or temporarily
useful, but is no longer needed.
Diffstat (limited to 'upb/bindings/linux/stdlib.h')
-rw-r--r-- | upb/bindings/linux/stdlib.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/upb/bindings/linux/stdlib.h b/upb/bindings/linux/stdlib.h deleted file mode 100644 index 5ae6742..0000000 --- a/upb/bindings/linux/stdlib.h +++ /dev/null @@ -1,17 +0,0 @@ -/* -** Linux-kernel implementations of some stdlib.h functions. -*/ - -#include <linux/slab.h> - -#ifndef UPB_LINUX_STDLIB_H -#define UPB_LINUX_STDLIB_H - -static inline void *malloc(size_t size) { return kmalloc(size, GFP_ATOMIC); } -static inline void free(void *p) { kfree(p); } - -static inline void *realloc(void *p, size_t size) { - return krealloc(p, size, GFP_ATOMIC); -} - -#endif |