mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [TRIVIAL PATCH][2.5.66] fix for link-error in i810fb_imageblit
@ 2003-03-25 20:13 Andy Pfiffer
  2003-03-25 20:18 ` Russell King
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Pfiffer @ 2003-03-25 20:13 UTC (permalink / raw)
  To: linux-kernel; +Cc: jsimmons

This patch is one way to fix a link-error found in the i810 FB driver as
found in pure 2.5.66.

The error is reported as an undefined reference to __memcpy() inside
i810fb_imageblit().

The error:
        ld -m elf_i386  -T arch/i386/vmlinux.lds.s
arch/i386/kernel/head.o arch/i386/kernel/init_task.o   init/built-in.o
--start-group  usr/built-in.o  arch/i386/kernel/built-in.o 
arch/i386/mm/built-in.o  arch/i386/mach-default/built-in.o 
kernel/built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o 
security/built-in.o  crypto/built-in.o  lib/lib.a  arch/i386/lib/lib.a 
drivers/built-in.o  sound/built-in.o  arch/i386/pci/built-in.o 
net/built-in.o --end-group  -o .tmp_vmlinux1
drivers/built-in.o: In function `i810fb_imageblit':
drivers/built-in.o(.text+0xb59c1): undefined reference to `__memcpy'
make: *** [.tmp_vmlinux1] Error 1


The diff:

diff -Nru a/include/linux/fb.h b/include/linux/fb.h
--- a/include/linux/fb.h	Tue Mar 25 12:02:29 2003
+++ b/include/linux/fb.h	Tue Mar 25 12:02:29 2003
@@ -4,6 +4,7 @@
 #include <linux/tty.h>
 #include <asm/types.h>
 #include <asm/io.h>
+#include <asm/string.h>
 
 /* Definitions of frame buffers						*/
 




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

* Re: [TRIVIAL PATCH][2.5.66] fix for link-error in i810fb_imageblit
  2003-03-25 20:13 [TRIVIAL PATCH][2.5.66] fix for link-error in i810fb_imageblit Andy Pfiffer
@ 2003-03-25 20:18 ` Russell King
  2003-03-25 20:49   ` James Simmons
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King @ 2003-03-25 20:18 UTC (permalink / raw)
  To: Andy Pfiffer; +Cc: linux-kernel, jsimmons

On Tue, Mar 25, 2003 at 12:13:19PM -0800, Andy Pfiffer wrote:
> The error:
>         ld -m elf_i386  -T arch/i386/vmlinux.lds.s
> arch/i386/kernel/head.o arch/i386/kernel/init_task.o   init/built-in.o
> --start-group  usr/built-in.o  arch/i386/kernel/built-in.o 
> arch/i386/mm/built-in.o  arch/i386/mach-default/built-in.o 
> kernel/built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o 
> security/built-in.o  crypto/built-in.o  lib/lib.a  arch/i386/lib/lib.a 
> drivers/built-in.o  sound/built-in.o  arch/i386/pci/built-in.o 
> net/built-in.o --end-group  -o .tmp_vmlinux1
> drivers/built-in.o: In function `i810fb_imageblit':
> drivers/built-in.o(.text+0xb59c1): undefined reference to `__memcpy'
> make: *** [.tmp_vmlinux1] Error 1
> 
> 
> The diff:
> 
> diff -Nru a/include/linux/fb.h b/include/linux/fb.h
> --- a/include/linux/fb.h	Tue Mar 25 12:02:29 2003
> +++ b/include/linux/fb.h	Tue Mar 25 12:02:29 2003
> @@ -4,6 +4,7 @@
>  #include <linux/tty.h>
>  #include <asm/types.h>
>  #include <asm/io.h>
> +#include <asm/string.h>
>  
>  /* Definitions of frame buffers						*/

Why linux/fb.h and why asm/string.h when we have linux/string.h?
Shouldn't <linux/string.h> be included by the i810fb driver?

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


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

* Re: [TRIVIAL PATCH][2.5.66] fix for link-error in i810fb_imageblit
  2003-03-25 20:18 ` Russell King
@ 2003-03-25 20:49   ` James Simmons
  2003-03-25 21:40     ` Andy Pfiffer
  0 siblings, 1 reply; 4+ messages in thread
From: James Simmons @ 2003-03-25 20:49 UTC (permalink / raw)
  To: Russell King; +Cc: Andy Pfiffer, linux-kernel


> Why linux/fb.h and why asm/string.h when we have linux/string.h?
> Shouldn't <linux/string.h> be included by the i810fb driver?

Done. I added linux/string.h to i810_accel.c.



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

* Re: [TRIVIAL PATCH][2.5.66] fix for link-error in i810fb_imageblit
  2003-03-25 20:49   ` James Simmons
@ 2003-03-25 21:40     ` Andy Pfiffer
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Pfiffer @ 2003-03-25 21:40 UTC (permalink / raw)
  To: James Simmons; +Cc: Russell King, linux-kernel

On Tue, 2003-03-25 at 12:49, James Simmons wrote:
> > Why linux/fb.h and why asm/string.h when we have linux/string.h?
> > Shouldn't <linux/string.h> be included by the i810fb driver?
> 
> Done. I added linux/string.h to i810_accel.c.

Thanks.  Works for me. ;^)


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

end of thread, other threads:[~2003-03-25 21:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-25 20:13 [TRIVIAL PATCH][2.5.66] fix for link-error in i810fb_imageblit Andy Pfiffer
2003-03-25 20:18 ` Russell King
2003-03-25 20:49   ` James Simmons
2003-03-25 21:40     ` Andy Pfiffer

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®