Skip to contentSkip to conversation

compat: rename compat-3.5.c to compat-3.4.c

PATCH Superseded Felix Fietkau 2 participants 4 messages May 24, 2012 – May 25, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat: rename compat-3.5.c to compat-3.4.c

It only contains simple_open, which is already available on Linux 3.4. Fixes duplicate symbol issues on 3.4

---
 compat/Makefile     |    2 +-
 compat/compat-3.4.c |   20 ++++++++++++++++++++
 compat/compat-3.5.c |   20 --------------------
 3 files changed, 21 insertions(+), 21 deletions(-)
 create mode 100644 compat/compat-3.4.c
 delete mode 100644 compat/compat-3.5.c
compat/Makefile +1 -1
index bda677b..667e727 100644
@@ -37,7 +37,7 @@ compat-$(CONFIG_COMPAT_KERNEL_2_6_39) += \
 compat-$(CONFIG_COMPAT_KERNEL_3_0) += compat-3.0.o
 compat-$(CONFIG_COMPAT_KERNEL_3_2) += compat-3.2.o
 compat-$(CONFIG_COMPAT_KERNEL_3_3) += compat-3.3.o
-compat-$(CONFIG_COMPAT_KERNEL_3_5) += compat-3.5.o
+compat-$(CONFIG_COMPAT_KERNEL_3_4) += compat-3.4.o
 
 compat-$(CONFIG_COMPAT_CORDIC) += cordic.o
 compat-$(CONFIG_COMPAT_CRC8) += crc8.o
compat/compat-3.4.c new file +20 -0
new file mode 100644
index 0000000..5d516f0
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2012  Luis R. Rodriguez <[email protected]>
+ *
+ * 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.
+ *
+ * Compatibility file for Linux wireless for kernels 3.5.
+ */
+
+#include <linux/fs.h>
+#include <linux/module.h>
+
+int simple_open(struct inode *inode, struct file *file)
+{
+	if (inode->i_private)
+		file->private_data = inode->i_private;
+	return 0;
+}
+EXPORT_SYMBOL_GPL(simple_open);
compat/compat-3.5.c deleted +0 -20
deleted file mode 100644
index 5d516f0..0000000
@@ -1,20 +0,0 @@
-/*
- * Copyright 2012  Luis R. Rodriguez <[email protected]>
- *
- * 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.
- *
- * Compatibility file for Linux wireless for kernels 3.5.
- */
-
-#include <linux/fs.h>
-#include <linux/module.h>
-
-int simple_open(struct inode *inode, struct file *file)
-{
-	if (inode->i_private)
-		file->private_data = inode->i_private;
-	return 0;
-}
-EXPORT_SYMBOL_GPL(simple_open);
Signature · 1 line
1.7.3.2
#1 lore raw
Quoted 4 lines · Felix Fietkau

It only contains simple_open, which is already available on Linux 3.4. Fixes duplicate symbol issues on 3.4

Thanks! The equivalent change was required from include/linux/compat-3.5.h to include/linux/compat-3.4.h, I took care of that though, merged and I'll push this shortly!

Luis

#2 lore raw
Quoted 9 lines · Luis R. Rodriguez
Quoted 4 lines · Felix Fietkau

It only contains simple_open, which is already available on Linux 3.4. Fixes duplicate symbol issues on 3.4

Thanks! The equivalent change was required from include/linux/compat-3.5.h to include/linux/compat-3.4.h, I took care of that though, merged and I'll push this shortly!

Yeah, v2 had that as well.

- Felix

#3 lore raw
Quoted 11 lines · Felix Fietkau
Quoted 9 lines · Luis R. Rodriguez
Quoted 4 lines · Felix Fietkau

It only contains simple_open, which is already available on Linux 3.4. Fixes duplicate symbol issues on 3.4

Thanks! The equivalent change was required from include/linux/compat-3.5.h to include/linux/compat-3.4.h, I took care of that though, merged and I'll push this shortly!

Yeah, v2 had that as well.

Oops I didn't see that, thanks!

Luis