[PATCH] backports: add prefix infront of led_blink_set()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



led_blink_set() is also exported by the RedHat 6.5 kernel and collides
with backports when loading the compat.ko module. This fixes the
problem by prefixing the symbol.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---

This should also go into backports-3.12

 backport/backport-include/linux/leds.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/backport/backport-include/linux/leds.h b/backport/backport-include/linux/leds.h
index b8a9e2a..6148040 100644
--- a/backport/backport-include/linux/leds.h
+++ b/backport/backport-include/linux/leds.h
@@ -28,6 +28,7 @@
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) && \
     !defined(CPTCFG_BACKPORT_BUILD_LEDS)
+#define led_blink_set LINUX_BACKPORT(led_blink_set)
 extern void led_blink_set(struct led_classdev *led_cdev,
 			  unsigned long *delay_on,
 			  unsigned long *delay_off);
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux