From 53acbbf5c98ac00b8eda2072cb685c4e63f5fbb5 Mon Sep 17 00:00:00 2001 From: Jon Medhurst Date: Wed, 23 Apr 2014 11:55:51 +0100 Subject: gator: Stub out-driver on Linux 3.15 Tracepoint API changes in Linux 3.15 completely break gator, so create a dummy stub driver to keep build and packaging jobs happy. Signed-off-by: Jon Medhurst --- drivers/gator/Makefile | 8 ++++++++ drivers/gator/gator_stub.c | 26 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 drivers/gator/gator_stub.c diff --git a/drivers/gator/Makefile b/drivers/gator/Makefile index 3dc9d059a4b4..d666b3145a9c 100644 --- a/drivers/gator/Makefile +++ b/drivers/gator/Makefile @@ -6,6 +6,12 @@ ifneq ($(KERNELRELEASE),) CONFIG_GATOR ?= m obj-$(CONFIG_GATOR) := gator.o +ifeq ($(shell echo "$(VERSION)>=3 && $(PATCHLEVEL)>=15" | bc), 1) +# Gator doesn't work on this Linux version so just create a stub version +# to keep builds and packaging jobs happy +gator-y := gator_stub.o +else + gator-y := gator_main.o \ gator_events_irq.o \ gator_events_sched.o \ @@ -60,6 +66,8 @@ gator-$(CONFIG_ARM) += gator_events_armv6.o \ gator-$(CONFIG_ARM64) += gator_events_ccn-504.o +endif + else all: diff --git a/drivers/gator/gator_stub.c b/drivers/gator/gator_stub.c new file mode 100644 index 000000000000..aec16e4652c4 --- /dev/null +++ b/drivers/gator/gator_stub.c @@ -0,0 +1,26 @@ +/** + * Copyright (C) Linaro Limited 2014. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#include + +static int __init gator_module_init(void) +{ + return 0; +} + +static void __exit gator_module_exit(void) +{ +} + +module_init(gator_module_init); +module_exit(gator_module_exit); + +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("Dummy stub for Gator system profiler"); +MODULE_VERSION("0"); -- cgit v1.2.3