diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-09 14:43:46 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-09 14:43:46 +1000 |
commit | b0aa51e9d1ffe0f720b6a8c480c2c29294ba863d (patch) | |
tree | fee978403ab31ec6e779c3d5db081b3c5423a857 | |
parent | 85d8dc69a57f371f22844948dd5ffd15d2519814 (diff) | |
download | meta-xilinx-b0aa51e9d1ffe0f720b6a8c480c2c29294ba863d.tar.gz |
linux-yocto_3.14: Backport patch for MicroBlaze early_printk
* Backport patch from 3.15 kernel to fix the double definition of
early_printk for MicroBlaze
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r-- | recipes-kernel/linux/linux-xlnx/3.14/microblaze-Drop-architecture-specific-declaration-of.patch | 48 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto_3.14.bbappend | 3 |
2 files changed, 51 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-xlnx/3.14/microblaze-Drop-architecture-specific-declaration-of.patch b/recipes-kernel/linux/linux-xlnx/3.14/microblaze-Drop-architecture-specific-declaration-of.patch new file mode 100644 index 00000000..43594ebd --- /dev/null +++ b/recipes-kernel/linux/linux-xlnx/3.14/microblaze-Drop-architecture-specific-declaration-of.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | From 1b3fe856bd53bc1290ef77a0cce75424b81bdc19 Mon Sep 17 00:00:00 2001 | ||
2 | From: Guenter Roeck <linux@roeck-us.net> | ||
3 | Date: Mon, 17 Feb 2014 09:44:19 -0800 | ||
4 | Subject: [PATCH] microblaze: Drop architecture-specific declaration of | ||
5 | early_printk | ||
6 | |||
7 | miceroblaze:allmodconfig fails to build, complaining that | ||
8 | early_printk is redeclared. | ||
9 | |||
10 | include/linux/printk.h:114:6: error: static declaration of 'early_printk' | ||
11 | follows non-static declaration | ||
12 | void early_printk(const char *s, ...) { } | ||
13 | ^ | ||
14 | In file included from arch/microblaze/include/asm/page.h:19:0, | ||
15 | from arch/microblaze/include/asm/io.h:15, | ||
16 | from include/linux/io.h:22, | ||
17 | from kernel/irq/generic-chip.c:6: | ||
18 | arch/microblaze/include/asm/setup.h:22:6: | ||
19 | note: previous declaration of 'early_printk' was here | ||
20 | void early_printk(const char *fmt, ...); | ||
21 | |||
22 | This happens because CONFIG_EARLY_PRINTK is not enabled in this | ||
23 | configuration. | ||
24 | |||
25 | The architecture-specific declaration is not needed; drop it. | ||
26 | |||
27 | Signed-off-by: Guenter Roeck <linux@roeck-us.net> | ||
28 | Signed-off-by: Michal Simek <michal.simek@xilinx.com> | ||
29 | --- | ||
30 | arch/microblaze/include/asm/setup.h | 2 -- | ||
31 | 1 file changed, 2 deletions(-) | ||
32 | |||
33 | diff --git a/arch/microblaze/include/asm/setup.h b/arch/microblaze/include/asm/setup.h | ||
34 | index 0990b43..be84a4d 100644 | ||
35 | --- a/arch/microblaze/include/asm/setup.h | ||
36 | +++ b/arch/microblaze/include/asm/setup.h | ||
37 | @@ -19,8 +19,6 @@ extern char cmd_line[COMMAND_LINE_SIZE]; | ||
38 | |||
39 | extern char *klimit; | ||
40 | |||
41 | -void early_printk(const char *fmt, ...); | ||
42 | - | ||
43 | int setup_early_printk(char *opt); | ||
44 | void remap_early_printk(void); | ||
45 | void disable_early_printk(void); | ||
46 | -- | ||
47 | 1.7.10.4 | ||
48 | |||
diff --git a/recipes-kernel/linux/linux-yocto_3.14.bbappend b/recipes-kernel/linux/linux-yocto_3.14.bbappend index 944ff63b..f3010916 100644 --- a/recipes-kernel/linux/linux-yocto_3.14.bbappend +++ b/recipes-kernel/linux/linux-yocto_3.14.bbappend | |||
@@ -6,4 +6,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx/3.14:" | |||
6 | SRC_URI_append_zynq += " \ | 6 | SRC_URI_append_zynq += " \ |
7 | file://tty-xuartps-Fix-RX-hang-and-TX-corruption-in-set_termios.patch \ | 7 | file://tty-xuartps-Fix-RX-hang-and-TX-corruption-in-set_termios.patch \ |
8 | " | 8 | " |
9 | SRC_URI_append_microblaze += " \ | ||
10 | file://microblaze-Drop-architecture-specific-declaration-of.patch \ | ||
11 | " | ||
9 | 12 | ||