summaryrefslogtreecommitdiff
path: root/upb/bindings/linux
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2018-08-21 14:47:50 -0700
committerJosh Haberman <jhaberman@gmail.com>2018-08-21 14:47:50 -0700
commitc0a50de92300080a1cf11bf4ff0ec3b2d6240c10 (patch)
tree84736c4563940dd81aa5d2269e3ba638b5355edb /upb/bindings/linux
parente3eae33fb5840dbec3c2bc9109fa164f6066baa8 (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')
-rw-r--r--upb/bindings/linux/Makefile20
-rw-r--r--upb/bindings/linux/assert.h14
-rw-r--r--upb/bindings/linux/errno.h2
-rw-r--r--upb/bindings/linux/stdint.h2
-rw-r--r--upb/bindings/linux/stdio.h2
-rw-r--r--upb/bindings/linux/stdlib.h17
-rw-r--r--upb/bindings/linux/string.h7
7 files changed, 0 insertions, 64 deletions
diff --git a/upb/bindings/linux/Makefile b/upb/bindings/linux/Makefile
deleted file mode 100644
index 1736b61..0000000
--- a/upb/bindings/linux/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-obj-m = upb.o
-
-upb-objs = \
- ../../upb/upb.o \
- ../../upb/bytestream.o \
- ../../upb/def.o \
- ../../upb/handlers.o \
- ../../upb/table.o \
- ../../upb/refcount.o \
- ../../upb/msg.o \
-
-KVERSION = $(shell uname -r)
-
-ccflags-y := -I$(PWD) -I$(PWD)/../.. -Wno-declaration-after-statement -std=gnu99
-
-all:
- make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
-
-clean:
- make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
diff --git a/upb/bindings/linux/assert.h b/upb/bindings/linux/assert.h
deleted file mode 100644
index 543f7fb..0000000
--- a/upb/bindings/linux/assert.h
+++ /dev/null
@@ -1,14 +0,0 @@
-
-#include <linux/kernel.h>
-
-#ifndef UPB_LINUX_ASSERT_H
-#define UPB_LINUX_ASSERT_H
-
-#ifdef NDEBUG
-#define assert(x)
-#else
-#define assert(x) \
- if (!(x)) panic("Assertion failed: %s at %s:%d", #x, __FILE__, __LINE__);
-#endif
-
-#endif
diff --git a/upb/bindings/linux/errno.h b/upb/bindings/linux/errno.h
deleted file mode 100644
index d6c56bc..0000000
--- a/upb/bindings/linux/errno.h
+++ /dev/null
@@ -1,2 +0,0 @@
-
-#include <linux/errno.h>
diff --git a/upb/bindings/linux/stdint.h b/upb/bindings/linux/stdint.h
deleted file mode 100644
index 2aa5144..0000000
--- a/upb/bindings/linux/stdint.h
+++ /dev/null
@@ -1,2 +0,0 @@
-
-#include <linux/types.h>
diff --git a/upb/bindings/linux/stdio.h b/upb/bindings/linux/stdio.h
deleted file mode 100644
index dd22e5b..0000000
--- a/upb/bindings/linux/stdio.h
+++ /dev/null
@@ -1,2 +0,0 @@
-
-#include <linux/kernel.h> // For sprintf and friends.
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
diff --git a/upb/bindings/linux/string.h b/upb/bindings/linux/string.h
deleted file mode 100644
index 9cfd9b3..0000000
--- a/upb/bindings/linux/string.h
+++ /dev/null
@@ -1,7 +0,0 @@
-
-#ifndef UPB_LINUX_STRING_H_
-#define UPB_LINUX_STRING_H_
-
-#include <linux/string.h>
-
-#endif /* UPB_DEF_H_ */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback