linux-alpha.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] alpha: VGA_HOSE depends on VGA_CONSOLE
@ 2012-05-02  2:27 Matt Turner
  2012-05-02  2:27 ` [PATCH 2/4] alpha: properly define get/set_rtc_time on Marvel/SMP Matt Turner
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Matt Turner @ 2012-05-02  2:27 UTC (permalink / raw)
  To: linux-alpha; +Cc: Richard Henderson, Ivan Kokshaysky, linux-kernel, Matt Turner

arch/alpha/kernel/console.c:locate_and_init_vga uses vga_con, causing
build failures if VGA_CONSOLE was not set and MARVEL, TITAN, DP264, or
GENERIC alpha system types were set.

Reported-by: Ra√∫l Porcel <armin76@gentoo.org>
Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 arch/alpha/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index 56a4df9..22e58a9 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -477,7 +477,7 @@ config ALPHA_BROKEN_IRQ_MASK
 
 config VGA_HOSE
 	bool
-	depends on ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL || ALPHA_TSUNAMI
+	depends on VGA_CONSOLE && (ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL || ALPHA_TSUNAMI)
 	default y
 	help
 	  Support VGA on an arbitrary hose; needed for several platforms
-- 
1.7.3.4

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

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

* [PATCH 2/4] alpha: properly define get/set_rtc_time on Marvel/SMP
  2012-05-02  2:27 [PATCH 1/4] alpha: VGA_HOSE depends on VGA_CONSOLE Matt Turner
@ 2012-05-02  2:27 ` Matt Turner
  2012-05-02  2:27 ` [PATCH 3/4] alpha: include module.h to fix modpost on Tsunami Matt Turner
  2012-05-02  2:27 ` [PATCH 4/4] alpha: silence 'const' warning in sys_marvel.c Matt Turner
  2 siblings, 0 replies; 4+ messages in thread
From: Matt Turner @ 2012-05-02  2:27 UTC (permalink / raw)
  To: linux-alpha; +Cc: Richard Henderson, Ivan Kokshaysky, linux-kernel, Matt Turner

The marvel_get_rtc_time and marvel_set_rtc_time are static, but they're
available through Marvel's machine vector.

Reported-by: Ra√∫l Porcel <armin76@gentoo.org>
Signed-off-by: Matt Turner <mattst88@gmail.com>
---
Ivan: I'd appreciate it if you could confirm that this is okay. It's not
clear to me how the marvel_get/set_rtc_time functions could have ever been
called externally.

 arch/alpha/include/asm/rtc.h |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/arch/alpha/include/asm/rtc.h b/arch/alpha/include/asm/rtc.h
index 1f7fba6..d70408d 100644
--- a/arch/alpha/include/asm/rtc.h
+++ b/arch/alpha/include/asm/rtc.h
@@ -1,14 +1,10 @@
 #ifndef _ALPHA_RTC_H
 #define _ALPHA_RTC_H
 
-#if defined(CONFIG_ALPHA_GENERIC)
+#if defined(CONFIG_ALPHA_MARVEL) && defined(CONFIG_SMP) \
+ || defined(CONFIG_ALPHA_GENERIC)
 # define get_rtc_time		alpha_mv.rtc_get_time
 # define set_rtc_time		alpha_mv.rtc_set_time
-#else
-# if defined(CONFIG_ALPHA_MARVEL) && defined(CONFIG_SMP)
-#  define get_rtc_time		marvel_get_rtc_time
-#  define set_rtc_time		marvel_set_rtc_time
-# endif
 #endif
 
 #include <asm-generic/rtc.h>
-- 
1.7.3.4

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

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

* [PATCH 3/4] alpha: include module.h to fix modpost on Tsunami
  2012-05-02  2:27 [PATCH 1/4] alpha: VGA_HOSE depends on VGA_CONSOLE Matt Turner
  2012-05-02  2:27 ` [PATCH 2/4] alpha: properly define get/set_rtc_time on Marvel/SMP Matt Turner
@ 2012-05-02  2:27 ` Matt Turner
  2012-05-02  2:27 ` [PATCH 4/4] alpha: silence 'const' warning in sys_marvel.c Matt Turner
  2 siblings, 0 replies; 4+ messages in thread
From: Matt Turner @ 2012-05-02  2:27 UTC (permalink / raw)
  To: linux-alpha
  Cc: Richard Henderson, Ivan Kokshaysky, linux-kernel, Jim Faulkner,
	Matt Turner

From: Jim Faulkner <jfaulkne@ccs.neu.edu>

Signed-off-by: Jim Faulkner <jfaulkne@ccs.neu.edu>
Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 arch/alpha/kernel/core_tsunami.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/alpha/kernel/core_tsunami.c b/arch/alpha/kernel/core_tsunami.c
index 5e7c28f..61893d7 100644
--- a/arch/alpha/kernel/core_tsunami.c
+++ b/arch/alpha/kernel/core_tsunami.c
@@ -11,6 +11,7 @@
 #include <asm/core_tsunami.h>
 #undef __EXTERN_INLINE
 
+#include <linux/module.h>
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/sched.h>
-- 
1.7.3.4

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

* [PATCH 4/4] alpha: silence 'const' warning in sys_marvel.c
  2012-05-02  2:27 [PATCH 1/4] alpha: VGA_HOSE depends on VGA_CONSOLE Matt Turner
  2012-05-02  2:27 ` [PATCH 2/4] alpha: properly define get/set_rtc_time on Marvel/SMP Matt Turner
  2012-05-02  2:27 ` [PATCH 3/4] alpha: include module.h to fix modpost on Tsunami Matt Turner
@ 2012-05-02  2:27 ` Matt Turner
  2 siblings, 0 replies; 4+ messages in thread
From: Matt Turner @ 2012-05-02  2:27 UTC (permalink / raw)
  To: linux-alpha; +Cc: Richard Henderson, Ivan Kokshaysky, linux-kernel, Matt Turner

warning: passing argument 1 of 'pci_find_capability' discards 'const' qualifier from pointer target type

Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 arch/alpha/kernel/sys_marvel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/alpha/kernel/sys_marvel.c b/arch/alpha/kernel/sys_marvel.c
index 14a4b6a..407accc 100644
--- a/arch/alpha/kernel/sys_marvel.c
+++ b/arch/alpha/kernel/sys_marvel.c
@@ -317,7 +317,7 @@ marvel_init_irq(void)
 }
 
 static int 
-marvel_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
+marvel_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
 {
 	struct pci_controller *hose = dev->sysdata;
 	struct io7_port *io7_port = hose->sysdata;
-- 
1.7.3.4

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

end of thread, other threads:[~2012-05-02  2:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-02  2:27 [PATCH 1/4] alpha: VGA_HOSE depends on VGA_CONSOLE Matt Turner
2012-05-02  2:27 ` [PATCH 2/4] alpha: properly define get/set_rtc_time on Marvel/SMP Matt Turner
2012-05-02  2:27 ` [PATCH 3/4] alpha: include module.h to fix modpost on Tsunami Matt Turner
2012-05-02  2:27 ` [PATCH 4/4] alpha: silence 'const' warning in sys_marvel.c Matt Turner

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).