* [PATCH] m68k: pull mach_beep in setup.c
@ 2017-09-28 9:44 Alexandre Belloni
2017-10-12 0:15 ` Greg Ungerer
0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Belloni @ 2017-09-28 9:44 UTC (permalink / raw)
To: Geert Uytterhoeven, Greg Ungerer
Cc: linux-m68k, linux-kernel, Alexandre Belloni
It is possible to select INPUT_M68K_BEEP in a nommu configuration. This
results in the following link error:
drivers/input/misc/m68kspkr.o: In function `m68kspkr_event':
m68kspkr.c:(.text+0x3a): undefined reference to `mach_beep'
m68kspkr.c:(.text+0x5e): undefined reference to `mach_beep'
m68kspkr.c:(.text+0x78): undefined reference to `mach_beep'
drivers/input/misc/m68kspkr.o: In function `m68kspkr_init':
m68kspkr.c:(.init.text+0x4): undefined reference to `mach_beep'
Pull the mach_beep definition in setup.c to avoid it.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
I didn't merge both files because I don't have any way to test the result.
arch/m68k/kernel/setup.c | 5 +++++
arch/m68k/kernel/setup_mm.c | 4 ----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/arch/m68k/kernel/setup.c b/arch/m68k/kernel/setup.c
index 4bf129f1d2e2..81cadb55b2a2 100644
--- a/arch/m68k/kernel/setup.c
+++ b/arch/m68k/kernel/setup.c
@@ -3,3 +3,8 @@
#else
#include "setup_no.c"
#endif
+
+#if IS_ENABLED(CONFIG_INPUT_M68K_BEEP)
+void (*mach_beep)(unsigned int, unsigned int);
+EXPORT_SYMBOL(mach_beep);
+#endif
diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c
index 7a2c21212820..ac5c9ee9bbf9 100644
--- a/arch/m68k/kernel/setup_mm.c
+++ b/arch/m68k/kernel/setup_mm.c
@@ -105,10 +105,6 @@ EXPORT_SYMBOL(mach_heartbeat);
#ifdef CONFIG_M68K_L2_CACHE
void (*mach_l2_flush) (int);
#endif
-#if IS_ENABLED(CONFIG_INPUT_M68K_BEEP)
-void (*mach_beep)(unsigned int, unsigned int);
-EXPORT_SYMBOL(mach_beep);
-#endif
#if defined(CONFIG_ISA) && defined(MULTI_ISA)
int isa_type;
int isa_sex;
--
2.14.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] m68k: pull mach_beep in setup.c
2017-09-28 9:44 [PATCH] m68k: pull mach_beep in setup.c Alexandre Belloni
@ 2017-10-12 0:15 ` Greg Ungerer
2017-10-12 6:35 ` Geert Uytterhoeven
0 siblings, 1 reply; 3+ messages in thread
From: Greg Ungerer @ 2017-10-12 0:15 UTC (permalink / raw)
To: Alexandre Belloni, Geert Uytterhoeven; +Cc: linux-m68k, linux-kernel
Hi Alexandre,
On 28/09/17 19:44, Alexandre Belloni wrote:
> It is possible to select INPUT_M68K_BEEP in a nommu configuration. This
> results in the following link error:
>
> drivers/input/misc/m68kspkr.o: In function `m68kspkr_event':
> m68kspkr.c:(.text+0x3a): undefined reference to `mach_beep'
> m68kspkr.c:(.text+0x5e): undefined reference to `mach_beep'
> m68kspkr.c:(.text+0x78): undefined reference to `mach_beep'
> drivers/input/misc/m68kspkr.o: In function `m68kspkr_init':
> m68kspkr.c:(.init.text+0x4): undefined reference to `mach_beep'
>
> Pull the mach_beep definition in setup.c to avoid it.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
I plan on applying this to the m68knommu git tree (for-next) branch
in the very near future.
Geert: no objections?
Regards
Greg
> ---
>
> I didn't merge both files because I don't have any way to test the result.
>
> arch/m68k/kernel/setup.c | 5 +++++
> arch/m68k/kernel/setup_mm.c | 4 ----
> 2 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/arch/m68k/kernel/setup.c b/arch/m68k/kernel/setup.c
> index 4bf129f1d2e2..81cadb55b2a2 100644
> --- a/arch/m68k/kernel/setup.c
> +++ b/arch/m68k/kernel/setup.c
> @@ -3,3 +3,8 @@
> #else
> #include "setup_no.c"
> #endif
> +
> +#if IS_ENABLED(CONFIG_INPUT_M68K_BEEP)
> +void (*mach_beep)(unsigned int, unsigned int);
> +EXPORT_SYMBOL(mach_beep);
> +#endif
> diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c
> index 7a2c21212820..ac5c9ee9bbf9 100644
> --- a/arch/m68k/kernel/setup_mm.c
> +++ b/arch/m68k/kernel/setup_mm.c
> @@ -105,10 +105,6 @@ EXPORT_SYMBOL(mach_heartbeat);
> #ifdef CONFIG_M68K_L2_CACHE
> void (*mach_l2_flush) (int);
> #endif
> -#if IS_ENABLED(CONFIG_INPUT_M68K_BEEP)
> -void (*mach_beep)(unsigned int, unsigned int);
> -EXPORT_SYMBOL(mach_beep);
> -#endif
> #if defined(CONFIG_ISA) && defined(MULTI_ISA)
> int isa_type;
> int isa_sex;
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] m68k: pull mach_beep in setup.c
2017-10-12 0:15 ` Greg Ungerer
@ 2017-10-12 6:35 ` Geert Uytterhoeven
0 siblings, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2017-10-12 6:35 UTC (permalink / raw)
To: Greg Ungerer; +Cc: Alexandre Belloni, linux-m68k, linux-kernel
Hi Greg,
On Thu, Oct 12, 2017 at 2:15 AM, Greg Ungerer <gerg@linux-m68k.org> wrote:
> On 28/09/17 19:44, Alexandre Belloni wrote:
>> It is possible to select INPUT_M68K_BEEP in a nommu configuration. This
>> results in the following link error:
>>
>> drivers/input/misc/m68kspkr.o: In function `m68kspkr_event':
>> m68kspkr.c:(.text+0x3a): undefined reference to `mach_beep'
>> m68kspkr.c:(.text+0x5e): undefined reference to `mach_beep'
>> m68kspkr.c:(.text+0x78): undefined reference to `mach_beep'
>> drivers/input/misc/m68kspkr.o: In function `m68kspkr_init':
>> m68kspkr.c:(.init.text+0x4): undefined reference to `mach_beep'
>>
>> Pull the mach_beep definition in setup.c to avoid it.
>>
>> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
>
> I plan on applying this to the m68knommu git tree (for-next) branch
> in the very near future.
>
> Geert: no objections?
No objections:
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-12 6:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-28 9:44 [PATCH] m68k: pull mach_beep in setup.c Alexandre Belloni
2017-10-12 0:15 ` Greg Ungerer
2017-10-12 6:35 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®