linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARC: add negative dependency for VGA_CONSOLE
@ 2015-08-17 15:52 Yuriy Kolerov
  2015-08-17 16:21 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Yuriy Kolerov @ 2015-08-17 15:52 UTC (permalink / raw)
  To: linux-kernel, linux-arch, linux-fbdev
  Cc: arnd, akpm, plagnioj, tomi.valkeinen, Vineet.Gupta1,
	Alexey.Brodkin, Anton.Kolesov, Francois.Bedard, Yuriy Kolerov

Architectures which support VGA console must define screen_info
structurture from "uapi/linux/screen_info.h". Otherwise undefined
symbol error occurs. Usually it's defined in "setup.c" for each
architecture.

If an architecture does not support VGA console (ARC's case)
there are 2 ways: define a dummy instance of screen_info or add
a negative dependency for VGA_CONSOLE in to prevent selecting
this option.

I've implemented the second way. However the best solution is to
add HAVE_VGA_CONSOLE option for targets which support VGA
console. Then turn off VGA_CONSOLE by default and add dependency
to HAVE_VGA_CONSOLE. But right now it's better to just add a
negative dependency for ARC and then consider how to collaborate
about this issue with maintainers of other architectures.

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
---
 drivers/video/console/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig
index fe1cd01..5d27ba0 100644
--- a/drivers/video/console/Kconfig
+++ b/drivers/video/console/Kconfig
@@ -9,7 +9,7 @@ config VGA_CONSOLE
 	depends on !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && \
 		!SUPERH && !BLACKFIN && !AVR32 && !MN10300 && !CRIS && \
 		(!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER) && \
-		!ARM64
+		!ARM64 && !ARC
 	default y
 	help
 	  Saying Y here will allow you to use Linux in text mode through a
-- 
2.2.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARC: add negative dependency for VGA_CONSOLE
  2015-08-17 15:52 [PATCH] ARC: add negative dependency for VGA_CONSOLE Yuriy Kolerov
@ 2015-08-17 16:21 ` Geert Uytterhoeven
  2015-08-25  7:47   ` Vineet Gupta
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2015-08-17 16:21 UTC (permalink / raw)
  To: Yuriy Kolerov
  Cc: linux-kernel, Linux-Arch, Linux Fbdev development list,
	Arnd Bergmann, Andrew Morton, Jean-Christophe PLAGNIOL-VILLARD,
	Tomi Valkeinen, Vineet Gupta, Alexey Brodkin, Anton.Kolesov,
	Francois Bedard

On Mon, Aug 17, 2015 at 5:52 PM, Yuriy Kolerov
<yuriy.kolerov@synopsys.com> wrote:
> Architectures which support VGA console must define screen_info
> structurture from "uapi/linux/screen_info.h". Otherwise undefined
> symbol error occurs. Usually it's defined in "setup.c" for each
> architecture.
>
> If an architecture does not support VGA console (ARC's case)
> there are 2 ways: define a dummy instance of screen_info or add
> a negative dependency for VGA_CONSOLE in to prevent selecting
> this option.
>
> I've implemented the second way. However the best solution is to
> add HAVE_VGA_CONSOLE option for targets which support VGA
> console. Then turn off VGA_CONSOLE by default and add dependency
> to HAVE_VGA_CONSOLE. But right now it's better to just add a
> negative dependency for ARC and then consider how to collaborate
> about this issue with maintainers of other architectures.

+1

> Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>

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] 4+ messages in thread

* Re: [PATCH] ARC: add negative dependency for VGA_CONSOLE
  2015-08-17 16:21 ` Geert Uytterhoeven
@ 2015-08-25  7:47   ` Vineet Gupta
  2015-08-26 11:34     ` Tomi Valkeinen
  0 siblings, 1 reply; 4+ messages in thread
From: Vineet Gupta @ 2015-08-25  7:47 UTC (permalink / raw)
  To: Geert Uytterhoeven, Yuriy Kolerov, Tomi Valkeinen
  Cc: linux-kernel, Linux-Arch, Linux Fbdev development list,
	Arnd Bergmann, Andrew Morton, Jean-Christophe PLAGNIOL-VILLARD,
	Alexey Brodkin, Anton.Kolesov, Francois Bedard

On Monday 17 August 2015 09:51 PM, Geert Uytterhoeven wrote:
> On Mon, Aug 17, 2015 at 5:52 PM, Yuriy Kolerov
> <yuriy.kolerov@synopsys.com> wrote:
>> Architectures which support VGA console must define screen_info
>> structurture from "uapi/linux/screen_info.h". Otherwise undefined
>> symbol error occurs. Usually it's defined in "setup.c" for each
>> architecture.
>>
>> If an architecture does not support VGA console (ARC's case)
>> there are 2 ways: define a dummy instance of screen_info or add
>> a negative dependency for VGA_CONSOLE in to prevent selecting
>> this option.
>>
>> I've implemented the second way. However the best solution is to
>> add HAVE_VGA_CONSOLE option for targets which support VGA
>> console. Then turn off VGA_CONSOLE by default and add dependency
>> to HAVE_VGA_CONSOLE. But right now it's better to just add a
>> negative dependency for ARC and then consider how to collaborate
>> about this issue with maintainers of other architectures.
> +1
>
>> Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>

Hi Tomi,

Is anything else needed for this to be merged.

Thx,
-Vineet

>
> 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] 4+ messages in thread

* Re: [PATCH] ARC: add negative dependency for VGA_CONSOLE
  2015-08-25  7:47   ` Vineet Gupta
@ 2015-08-26 11:34     ` Tomi Valkeinen
  0 siblings, 0 replies; 4+ messages in thread
From: Tomi Valkeinen @ 2015-08-26 11:34 UTC (permalink / raw)
  To: Vineet Gupta, Geert Uytterhoeven, Yuriy Kolerov
  Cc: linux-kernel, Linux-Arch, Linux Fbdev development list,
	Arnd Bergmann, Andrew Morton, Jean-Christophe PLAGNIOL-VILLARD,
	Alexey Brodkin, Anton.Kolesov, Francois Bedard

[-- Attachment #1: Type: text/plain, Size: 1329 bytes --]



On 25/08/15 10:47, Vineet Gupta wrote:
> On Monday 17 August 2015 09:51 PM, Geert Uytterhoeven wrote:
>> On Mon, Aug 17, 2015 at 5:52 PM, Yuriy Kolerov
>> <yuriy.kolerov@synopsys.com> wrote:
>>> Architectures which support VGA console must define screen_info
>>> structurture from "uapi/linux/screen_info.h". Otherwise undefined
>>> symbol error occurs. Usually it's defined in "setup.c" for each
>>> architecture.
>>>
>>> If an architecture does not support VGA console (ARC's case)
>>> there are 2 ways: define a dummy instance of screen_info or add
>>> a negative dependency for VGA_CONSOLE in to prevent selecting
>>> this option.
>>>
>>> I've implemented the second way. However the best solution is to
>>> add HAVE_VGA_CONSOLE option for targets which support VGA
>>> console. Then turn off VGA_CONSOLE by default and add dependency
>>> to HAVE_VGA_CONSOLE. But right now it's better to just add a
>>> negative dependency for ARC and then consider how to collaborate
>>> about this issue with maintainers of other architectures.
>> +1
>>
>>> Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
>> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
> 
> Hi Tomi,
> 
> Is anything else needed for this to be merged.

This is already in linux-next, merged by Andrew Morton.

 Tomi


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-26 11:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-17 15:52 [PATCH] ARC: add negative dependency for VGA_CONSOLE Yuriy Kolerov
2015-08-17 16:21 ` Geert Uytterhoeven
2015-08-25  7:47   ` Vineet Gupta
2015-08-26 11:34     ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).