linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 2.6.29-rc3-git5 build failure : drivers/staging/panel
@ 2009-02-03 15:15 Sachin P. Sant
  2009-02-03 15:25 ` Willy Tarreau
  0 siblings, 1 reply; 5+ messages in thread
From: Sachin P. Sant @ 2009-02-03 15:15 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Mel Gorman, greg, Willy Tarreau

2.6.29-rc3-git5 randconfig build on powerpc fails with following error

 CALL    arch/powerpc/kernel/systbl_chk.sh
 CALL    arch/powerpc/kernel/prom_init_check.sh
 CC [M]  drivers/staging/panel/panel.o
drivers/staging/panel/panel.c:625: error: conflicting types for set_bits
/home/sachin/linux-2.6.29-rc3-git5/arch/powerpc/include/asm/bitops.h:216: error: previous definition of set_bits was here
make[3]: *** [drivers/staging/panel/panel.o] Error 1
make[2]: *** [drivers/staging/panel] Error 2
make[1]: *** [drivers/staging] Error 2
make: *** [drivers] Error 2

Will provide .config if required.

Thanks
-Sachin

-- 

---------------------------------
Sachin Sant
IBM Linux Technology Center
India Systems and Technology Labs
Bangalore, India
---------------------------------

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

* Re: 2.6.29-rc3-git5 build failure : drivers/staging/panel
  2009-02-03 15:15 2.6.29-rc3-git5 build failure : drivers/staging/panel Sachin P. Sant
@ 2009-02-03 15:25 ` Willy Tarreau
  2009-02-03 15:40   ` [Patch] fix lcd panel driver build failure Sachin P. Sant
  0 siblings, 1 reply; 5+ messages in thread
From: Willy Tarreau @ 2009-02-03 15:25 UTC (permalink / raw)
  To: Sachin P. Sant; +Cc: Mel Gorman, linuxppc-dev, greg

Hi,

On Tue, Feb 03, 2009 at 08:45:38PM +0530, Sachin P. Sant wrote:
> 2.6.29-rc3-git5 randconfig build on powerpc fails with following error
> 
> CALL    arch/powerpc/kernel/systbl_chk.sh
> CALL    arch/powerpc/kernel/prom_init_check.sh
> CC [M]  drivers/staging/panel/panel.o
> drivers/staging/panel/panel.c:625: error: conflicting types for set_bits
> /home/sachin/linux-2.6.29-rc3-git5/arch/powerpc/include/asm/bitops.h:216: 
> error: previous definition of set_bits was here
> make[3]: *** [drivers/staging/panel/panel.o] Error 1
> make[2]: *** [drivers/staging/panel] Error 2
> make[1]: *** [drivers/staging] Error 2
> make: *** [drivers] Error 2
> 
> Will provide .config if required.

I don't think any config will be needed. The problem is that we have
conflicting names between global and local functions. Could you please
try to rename "set_bits" as weel as the few references to this function
in panel.c ? I'd suggest you name it "panel_set_bits".

I can work on a patch if needed, but since the fix is really easy I'd
prefer to get a confirmation that it's enough.

Thanks for the report,
Willy

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

* [Patch] fix lcd panel driver build failure
  2009-02-03 15:25 ` Willy Tarreau
@ 2009-02-03 15:40   ` Sachin P. Sant
  2009-02-03 15:47     ` Willy Tarreau
  0 siblings, 1 reply; 5+ messages in thread
From: Sachin P. Sant @ 2009-02-03 15:40 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: Mel Gorman, linuxppc-dev, greg

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

* Fix build break for lcd panel driver.

Signed-off-by : Sachin Sant <sachinp@in.ibm.com>
---



[-- Attachment #2: staging-panel-build-break-fix.patch --]
[-- Type: text/x-patch, Size: 1215 bytes --]

* Fix build break for lcd panel driver.

Signed-off-by : Sachin Sant <sachinp@in.ibm.com>
---

diff -Naurp a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
--- a/drivers/staging/panel/panel.c	2009-02-03 23:34:18.000000000 +0530
+++ b/drivers/staging/panel/panel.c	2009-02-03 23:33:16.000000000 +0530
@@ -622,7 +622,7 @@ static int set_ctrl_bits(void)
 }
 
 /* sets ctrl & data port bits according to current signals values */
-static void set_bits(void)
+static void panel_set_bits(void)
 {
 	set_data_bits();
 	set_ctrl_bits();
@@ -707,12 +707,12 @@ static void lcd_send_serial(int byte)
 	 */
 	for (bit = 0; bit < 8; bit++) {
 		bits.cl = BIT_CLR;	/* CLK low */
-		set_bits();
+		panel_set_bits();
 		bits.da = byte & 1;
-		set_bits();
+		panel_set_bits();
 		udelay(2);	/* maintain the data during 2 us before CLK up */
 		bits.cl = BIT_SET;	/* CLK high */
-		set_bits();
+		panel_set_bits();
 		udelay(1);	/* maintain the strobe during 1 us */
 		byte >>= 1;
 	}
@@ -727,7 +727,7 @@ static void lcd_backlight(int on)
 	/* The backlight is activated by seting the AUTOFEED line to +5V  */
 	spin_lock(&pprt_lock);
 	bits.bl = on;
-	set_bits();
+	panel_set_bits();
 	spin_unlock(&pprt_lock);
 }
 

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

* Re: [Patch] fix lcd panel driver build failure
  2009-02-03 15:40   ` [Patch] fix lcd panel driver build failure Sachin P. Sant
@ 2009-02-03 15:47     ` Willy Tarreau
  2009-02-03 15:51       ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Willy Tarreau @ 2009-02-03 15:47 UTC (permalink / raw)
  To: Sachin P. Sant; +Cc: Mel Gorman, linuxppc-dev, greg

Thanks Sachin !

Greg, could you please merge this one into your staging tree ?

Thanks,
Willy

On Tue, Feb 03, 2009 at 09:10:58PM +0530, Sachin P. Sant wrote:
> * Fix build break for lcd panel driver.
> 
> Signed-off-by : Sachin Sant <sachinp@in.ibm.com>

Signed-off-by: Willy Tarreau <w@1wt.eu>

> ---
> 
> 

> * Fix build break for lcd panel driver.
> 
> Signed-off-by : Sachin Sant <sachinp@in.ibm.com>
> ---
> 
> diff -Naurp a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
> --- a/drivers/staging/panel/panel.c	2009-02-03 23:34:18.000000000 +0530
> +++ b/drivers/staging/panel/panel.c	2009-02-03 23:33:16.000000000 +0530
> @@ -622,7 +622,7 @@ static int set_ctrl_bits(void)
>  }
>  
>  /* sets ctrl & data port bits according to current signals values */
> -static void set_bits(void)
> +static void panel_set_bits(void)
>  {
>  	set_data_bits();
>  	set_ctrl_bits();
> @@ -707,12 +707,12 @@ static void lcd_send_serial(int byte)
>  	 */
>  	for (bit = 0; bit < 8; bit++) {
>  		bits.cl = BIT_CLR;	/* CLK low */
> -		set_bits();
> +		panel_set_bits();
>  		bits.da = byte & 1;
> -		set_bits();
> +		panel_set_bits();
>  		udelay(2);	/* maintain the data during 2 us before CLK up */
>  		bits.cl = BIT_SET;	/* CLK high */
> -		set_bits();
> +		panel_set_bits();
>  		udelay(1);	/* maintain the strobe during 1 us */
>  		byte >>= 1;
>  	}
> @@ -727,7 +727,7 @@ static void lcd_backlight(int on)
>  	/* The backlight is activated by seting the AUTOFEED line to +5V  */
>  	spin_lock(&pprt_lock);
>  	bits.bl = on;
> -	set_bits();
> +	panel_set_bits();
>  	spin_unlock(&pprt_lock);
>  }
>  

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

* Re: [Patch] fix lcd panel driver build failure
  2009-02-03 15:47     ` Willy Tarreau
@ 2009-02-03 15:51       ` Greg KH
  0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2009-02-03 15:51 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: Mel Gorman, linuxppc-dev

On Tue, Feb 03, 2009 at 04:47:56PM +0100, Willy Tarreau wrote:
> Thanks Sachin !
> 
> Greg, could you please merge this one into your staging tree ?

I will do that, thanks.

greg k-h

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

end of thread, other threads:[~2009-02-03 15:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03 15:15 2.6.29-rc3-git5 build failure : drivers/staging/panel Sachin P. Sant
2009-02-03 15:25 ` Willy Tarreau
2009-02-03 15:40   ` [Patch] fix lcd panel driver build failure Sachin P. Sant
2009-02-03 15:47     ` Willy Tarreau
2009-02-03 15:51       ` Greg KH

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