linux-alpha.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kernel fails to build without CONFIG_ALPHA_LEGACY_START_ADDRESS
@ 2009-12-05 18:27 Raúl Porcel
  2009-12-05 19:13 ` Matt Turner
  0 siblings, 1 reply; 3+ messages in thread
From: Raúl Porcel @ 2009-12-05 18:27 UTC (permalink / raw)
  To: linux-alpha

If CONFIG_ALPHA_LEGACY_START_ADDRESS is not set, which is needed to be
unset if the machine is Marvel/Titan/Wildfire, it fails to build:

  CC      arch/alpha/kernel/err_marvel.o
cc1: warnings being treated as errors
arch/alpha/kernel/err_marvel.c: In function 'marvel_print_err_cyc':
arch/alpha/kernel/err_marvel.c:119: error: format '%ld' expects type
'long int', but argument 6 has type 'u64'
arch/alpha/kernel/err_marvel.c: In function 'marvel_print_po7_ugbge_sym':
arch/alpha/kernel/err_marvel.c:321: error: format '%ld' expects type
'long int', but argument 4 has type 'u64'
arch/alpha/kernel/err_marvel.c:321: error: format '%ld' expects type
'long int', but argument 5 has type 'u64'
arch/alpha/kernel/err_marvel.c: In function 'marvel_print_pox_spl_cmplt':
arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type
'long int', but argument 4 has type 'long long unsigned int'
arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type
'long int', but argument 5 has type 'long long unsigned int'
arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type
'long int', but argument 6 has type 'long long unsigned int'
make[1]: *** [arch/alpha/kernel/err_marvel.o] Error 1
make: *** [arch/alpha/kernel] Error 2

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

* Re: kernel fails to build without CONFIG_ALPHA_LEGACY_START_ADDRESS
  2009-12-05 18:27 kernel fails to build without CONFIG_ALPHA_LEGACY_START_ADDRESS Raúl Porcel
@ 2009-12-05 19:13 ` Matt Turner
  2009-12-07 19:53   ` Raúl Porcel
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Turner @ 2009-12-05 19:13 UTC (permalink / raw)
  To: Raúl Porcel; +Cc: linux-alpha

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

On Sat, Dec 5, 2009 at 1:27 PM, Raúl Porcel <armin76@gentoo.org> wrote:
> If CONFIG_ALPHA_LEGACY_START_ADDRESS is not set, which is needed to be
> unset if the machine is Marvel/Titan/Wildfire, it fails to build:
>
>  CC      arch/alpha/kernel/err_marvel.o
> cc1: warnings being treated as errors
> arch/alpha/kernel/err_marvel.c: In function 'marvel_print_err_cyc':
> arch/alpha/kernel/err_marvel.c:119: error: format '%ld' expects type
> 'long int', but argument 6 has type 'u64'
> arch/alpha/kernel/err_marvel.c: In function 'marvel_print_po7_ugbge_sym':
> arch/alpha/kernel/err_marvel.c:321: error: format '%ld' expects type
> 'long int', but argument 4 has type 'u64'
> arch/alpha/kernel/err_marvel.c:321: error: format '%ld' expects type
> 'long int', but argument 5 has type 'u64'
> arch/alpha/kernel/err_marvel.c: In function 'marvel_print_pox_spl_cmplt':
> arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type
> 'long int', but argument 4 has type 'long long unsigned int'
> arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type
> 'long int', but argument 5 has type 'long long unsigned int'
> arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type
> 'long int', but argument 6 has type 'long long unsigned int'
> make[1]: *** [arch/alpha/kernel/err_marvel.o] Error 1
> make: *** [arch/alpha/kernel] Error 2

Attached is a completely untested patch. It just tries to get rid of
u64 by replacing them with unsigned long.

Matt

[-- Attachment #2: fix-up-err_marvel.c.patch --]
[-- Type: application/octet-stream, Size: 4976 bytes --]

diff --git a/arch/alpha/kernel/err_marvel.c b/arch/alpha/kernel/err_marvel.c
index 52a79df..edf6f1a 100644
--- a/arch/alpha/kernel/err_marvel.c
+++ b/arch/alpha/kernel/err_marvel.c
@@ -86,7 +86,7 @@ marvel_process_680_frame(struct ev7_lf_subpackets *lf_subpackets, int print)
 #ifdef CONFIG_VERBOSE_MCHECK
 
 static void
-marvel_print_err_cyc(u64 err_cyc)
+marvel_print_err_cyc(unsigned long err_cyc)
 {
 	static char *packet_desc[] = {
 		"No Error",
@@ -120,7 +120,7 @@ marvel_print_err_cyc(u64 err_cyc)
 }
 
 static void
-marvel_print_po7_crrct_sym(u64 crrct_sym)
+marvel_print_po7_crrct_sym(unsigned long crrct_sym)
 {
 #define IO7__PO7_CRRCT_SYM__SYN__S	(0)
 #define IO7__PO7_CRRCT_SYM__SYN__M	(0x7f)
@@ -129,14 +129,14 @@ marvel_print_po7_crrct_sym(u64 crrct_sym)
 
 
 	printk("%s      Correctable Error Symptoms:\n"
-	       "%s        Syndrome: 0x%llx\n",
+	       "%s        Syndrome: 0x%lx\n",
 	       err_print_prefix,
 	       err_print_prefix, EXTRACT(crrct_sym, IO7__PO7_CRRCT_SYM__SYN));
 	marvel_print_err_cyc(EXTRACT(crrct_sym, IO7__PO7_CRRCT_SYM__ERR_CYC));
 }
 
 static void
-marvel_print_po7_uncrr_sym(u64 uncrr_sym, u64 valid_mask)
+marvel_print_po7_uncrr_sym(unsigned long uncrr_sym, unsigned long valid_mask)
 {
 	static char *clk_names[] = { "_h[0]", "_h[1]", "_n[0]", "_n[1]" };
 	static char *clk_decode[] = {
@@ -186,7 +186,7 @@ marvel_print_po7_uncrr_sym(u64 uncrr_sym, u64 valid_mask)
 	uncrr_sym &= valid_mask;
 
 	if (EXTRACT(valid_mask, IO7__PO7_UNCRR_SYM__SYN))
-		printk("%s        Syndrome: 0x%llx\n",
+		printk("%s        Syndrome: 0x%lx\n",
 		       err_print_prefix, 
 		       EXTRACT(uncrr_sym, IO7__PO7_UNCRR_SYM__SYN));
 
@@ -273,7 +273,7 @@ marvel_print_po7_uncrr_sym(u64 uncrr_sym, u64 valid_mask)
 }
 
 static void
-marvel_print_po7_ugbge_sym(u64 ugbge_sym)
+marvel_print_po7_ugbge_sym(unsigned long ugbge_sym)
 {
 	char opcode_str[10];
 
@@ -307,7 +307,7 @@ marvel_print_po7_ugbge_sym(u64 ugbge_sym)
 		sprintf(opcode_str, "BlkIO");
 		break;
 	default:
-		sprintf(opcode_str, "0x%llx\n",
+		sprintf(opcode_str, "0x%lx\n",
 			EXTRACT(ugbge_sym, IO7__PO7_UGBGE_SYM__UPH_OPCODE));
 		break;
 	}
@@ -321,7 +321,7 @@ marvel_print_po7_ugbge_sym(u64 ugbge_sym)
 	       opcode_str);
 
 	if (0xC5 != EXTRACT(ugbge_sym, IO7__PO7_UGBGE_SYM__UPH_OPCODE))
-		printk("%s        Packet Offset 0x%08llx\n",
+		printk("%s        Packet Offset 0x%08lx\n",
 		       err_print_prefix,
 		       EXTRACT(ugbge_sym, IO7__PO7_UGBGE_SYM__UPH_PKT_OFF));
 }
@@ -329,7 +329,7 @@ marvel_print_po7_ugbge_sym(u64 ugbge_sym)
 static void
 marvel_print_po7_err_sum(struct ev7_pal_io_subpacket *io)
 {
-	u64	uncrr_sym_valid = 0;
+	unsigned long uncrr_sym_valid = 0;
 
 #define IO7__PO7_ERRSUM__CR_SBE		(1UL << 32)
 #define IO7__PO7_ERRSUM__CR_SBE2	(1UL << 33)
@@ -495,7 +495,7 @@ check_uncrr_sym:
 }
 
 static void
-marvel_print_pox_tlb_err(u64 tlb_err)
+marvel_print_pox_tlb_err(unsigned long tlb_err)
 {
 	static char *tlb_errors[] = {
 		"No Error",
@@ -515,9 +515,9 @@ marvel_print_pox_tlb_err(u64 tlb_err)
 	if (!(tlb_err & IO7__POX_TLBERR__ERR_VALID))
 		return;
 
-	printk("%s      TLB Error on index 0x%llx:\n"
+	printk("%s      TLB Error on index 0x%lx:\n"
 	       "%s        - %s\n"
-	       "%s        - Addr: 0x%016llx\n",
+	       "%s        - Addr: 0x%016lx\n",
 	       err_print_prefix,
 	       EXTRACT(tlb_err, IO7__POX_TLBERR__ERR_TLB_PTR),
 	       err_print_prefix,
@@ -527,7 +527,7 @@ marvel_print_pox_tlb_err(u64 tlb_err)
 }
 
 static  void
-marvel_print_pox_spl_cmplt(u64 spl_cmplt)
+marvel_print_pox_spl_cmplt(unsigned long spl_cmplt)
 {
 	char message[80];
 
@@ -579,7 +579,7 @@ marvel_print_pox_spl_cmplt(u64 spl_cmplt)
 		sprintf(message, "Uncorrectable Split Write Data Error");
 		break;
 	default:
-		sprintf(message, "%08llx\n",
+		sprintf(message, "%08lx\n",
 			EXTRACT(spl_cmplt, IO7__POX_SPLCMPLT__MESSAGE));
 		break;
 	}
@@ -587,7 +587,7 @@ marvel_print_pox_spl_cmplt(u64 spl_cmplt)
 }
 
 static void
-marvel_print_pox_trans_sum(u64 trans_sum)
+marvel_print_pox_trans_sum(unsigned long trans_sum)
 {
 	char *pcix_cmd[] = { "Interrupt Acknowledge",
 			     "Special Cycle",
@@ -620,9 +620,9 @@ marvel_print_pox_trans_sum(u64 trans_sum)
 		return;
 
 	printk("%s      Transaction Summary:\n"
-	       "%s        Command: 0x%llx - %s\n"
-	       "%s        Address: 0x%016llx%s\n"
-	       "%s        PCI-X Master Slot: 0x%llx\n",
+	       "%s        Command: 0x%lx - %s\n"
+	       "%s        Address: 0x%016lx%s\n"
+	       "%s        PCI-X Master Slot: 0x%lx\n",
 	       err_print_prefix, 
 	       err_print_prefix, 
 	       EXTRACT(trans_sum, IO7__POX_TRANSUM__PCIX_CMD),
@@ -635,7 +635,7 @@ marvel_print_pox_trans_sum(u64 trans_sum)
 }
 
 static void
-marvel_print_pox_err(u64 err_sum, struct ev7_pal_io_one_port *port)
+marvel_print_pox_err(unsigned long err_sum, struct ev7_pal_io_one_port *port)
 {
 #define IO7__POX_ERRSUM__AGP_REQQ_OVFL    (1UL <<  4)
 #define IO7__POX_ERRSUM__AGP_SYNC_ERR     (1UL <<  5)

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

* Re: kernel fails to build without CONFIG_ALPHA_LEGACY_START_ADDRESS
  2009-12-05 19:13 ` Matt Turner
@ 2009-12-07 19:53   ` Raúl Porcel
  0 siblings, 0 replies; 3+ messages in thread
From: Raúl Porcel @ 2009-12-07 19:53 UTC (permalink / raw)
  To: Matt Turner; +Cc: linux-alpha

Matt Turner wrote:
> On Sat, Dec 5, 2009 at 1:27 PM, Raúl Porcel <armin76@gentoo.org> wrote:
>> If CONFIG_ALPHA_LEGACY_START_ADDRESS is not set, which is needed to be
>> unset if the machine is Marvel/Titan/Wildfire, it fails to build:
>>
>>  CC      arch/alpha/kernel/err_marvel.o
>> cc1: warnings being treated as errors
>> arch/alpha/kernel/err_marvel.c: In function 'marvel_print_err_cyc':
>> arch/alpha/kernel/err_marvel.c:119: error: format '%ld' expects type
>> 'long int', but argument 6 has type 'u64'
>> arch/alpha/kernel/err_marvel.c: In function 'marvel_print_po7_ugbge_sym':
>> arch/alpha/kernel/err_marvel.c:321: error: format '%ld' expects type
>> 'long int', but argument 4 has type 'u64'
>> arch/alpha/kernel/err_marvel.c:321: error: format '%ld' expects type
>> 'long int', but argument 5 has type 'u64'
>> arch/alpha/kernel/err_marvel.c: In function 'marvel_print_pox_spl_cmplt':
>> arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type
>> 'long int', but argument 4 has type 'long long unsigned int'
>> arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type
>> 'long int', but argument 5 has type 'long long unsigned int'
>> arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type
>> 'long int', but argument 6 has type 'long long unsigned int'
>> make[1]: *** [arch/alpha/kernel/err_marvel.o] Error 1
>> make: *** [arch/alpha/kernel] Error 2
> 
> Attached is a completely untested patch. It just tries to get rid of
> u64 by replacing them with unsigned long.
> 
> Matt


Patch made it compile. Unfortunately its not tested as the DS15 machine
where it was needed its not a Marvel but a Titan.
--
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	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-07 19:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-05 18:27 kernel fails to build without CONFIG_ALPHA_LEGACY_START_ADDRESS Raúl Porcel
2009-12-05 19:13 ` Matt Turner
2009-12-07 19:53   ` Raúl Porcel

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