Now that LTTng is in the kernel tree, we don't need to support deprecated APIs from older kernels. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> --- .../staging/lttng/lib/ringbuffer/frontend_types.h | 1 - drivers/staging/lttng/wrapper/spinlock.h | 26 -------------------- 2 files changed, 0 insertions(+), 27 deletions(-) delete mode 100644 drivers/staging/lttng/wrapper/spinlock.h diff --git a/drivers/staging/lttng/lib/ringbuffer/frontend_types.h b/drivers/staging/lttng/lib/ringbuffer/frontend_types.h index 5c7437f..00b4552 100644 --- a/drivers/staging/lttng/lib/ringbuffer/frontend_types.h +++ b/drivers/staging/lttng/lib/ringbuffer/frontend_types.h @@ -19,7 +19,6 @@ #include <linux/kref.h> #include "../../wrapper/ringbuffer/config.h" #include "../../wrapper/ringbuffer/backend_types.h" -#include "../../wrapper/spinlock.h" #include "../../lib/prio_heap/lttng_prio_heap.h" /* For per-CPU read-side iterator */ /* diff --git a/drivers/staging/lttng/wrapper/spinlock.h b/drivers/staging/lttng/wrapper/spinlock.h deleted file mode 100644 index 8b1ad99..0000000 --- a/drivers/staging/lttng/wrapper/spinlock.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef _LTT_WRAPPER_SPINLOCK_H -#define _LTT_WRAPPER_SPINLOCK_H - -/* - * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@xxxxxxxxxxxx) - * - * Dual LGPL v2.1/GPL v2 license. - */ - -#include <linux/version.h> - -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) - -#include <linux/string.h> - -#define raw_spin_lock_init(lock) \ - do { \ - raw_spinlock_t __lock = __RAW_SPIN_LOCK_UNLOCKED; \ - memcpy(lock, &__lock, sizeof(lock)); \ - } while (0) - -#define raw_spin_is_locked(lock) __raw_spin_is_locked(lock) - - -#endif -#endif /* _LTT_WRAPPER_SPINLOCK_H */ -- 1.7.5.4 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel