* Re: Patches to compile on redhat 6.2 with downloaded kernel src
2000-08-15 19:20 Patches to compile on redhat 6.2 with downloaded kernel src Mark Jackson
@ 2000-08-15 19:19 ` David Woodhouse
2000-08-22 20:01 ` pmc551.c doesn't compile w/ egcs-2.91.66 Bjorn Eriksson
0 siblings, 1 reply; 5+ messages in thread
From: David Woodhouse @ 2000-08-15 19:19 UTC (permalink / raw)
To: Mark Jackson; +Cc: mtd
mdj@phoenix.bmedesign.com said:
> I was able to get the mtd version in cvs to compile on my RedHat 6.2
> box against the linux-2.2.13.tar.gz linux kernel tarball source with
> the following patches applied (cvs diff 8/15/2000)
Don't do that. Use a newer kernel. Or at least just nick compatmac.h from
it.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Patches to compile on redhat 6.2 with downloaded kernel src
@ 2000-08-15 19:20 Mark Jackson
2000-08-15 19:19 ` David Woodhouse
0 siblings, 1 reply; 5+ messages in thread
From: Mark Jackson @ 2000-08-15 19:20 UTC (permalink / raw)
To: mtd
I was able to get the mtd version in cvs to compile on my RedHat 6.2 box
against the linux-2.2.13.tar.gz linux kernel tarball source with the
following patches applied (cvs diff 8/15/2000)
Regards,
Mark
? file
Index: include/linux/mtd/compatmac.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/compatmac.h,v
retrieving revision 1.5
diff -r1.5 compatmac.h
20c20
< #include <linux/compatmac.h>
---
> //#include <linux/compatmac.h>
Index: include/linux/mtd/flashchip.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/flashchip.h,v
retrieving revision 1.6
diff -r1.6 flashchip.h
21a22,23
> #define wait_queue_head_t struct wait_queue *
>
Index: kernel/cfi_cmdset_0001.c
===================================================================
RCS file: /home/cvs/mtd/kernel/cfi_cmdset_0001.c,v
retrieving revision 1.31
diff -r1.31 cfi_cmdset_0001.c
26a27,28
> #define DECLARE_WAITQUEUE(name,task) struct wait_queue (name) = {(task),NULL}
>
Index: kernel/cfi_cmdset_0002.c
===================================================================
RCS file: /home/cvs/mtd/kernel/cfi_cmdset_0002.c,v
retrieving revision 1.5
diff -r1.5 cfi_cmdset_0002.c
31a32,33
> #define DECLARE_WAITQUEUE(name,task) struct wait_queue (name) = {(task),NULL}
>
Index: kernel/doc1000.c
===================================================================
RCS file: /home/cvs/mtd/kernel/doc1000.c,v
retrieving revision 1.8
diff -r1.8 doc1000.c
38a39,40
> #define wait_queue_head_t struct wait_queue *
>
Index: kernel/mtdchar.c
===================================================================
RCS file: /home/cvs/mtd/kernel/mtdchar.c,v
retrieving revision 1.8
diff -r1.8 mtdchar.c
15a16,18
> #define wait_queue_head_t struct wait_queue *
> #define DECLARE_WAITQUEUE(name,task) struct wait_queue (name) = {(task),NULL}
>
Index: kernel/mtdcore.c
===================================================================
RCS file: /home/cvs/mtd/kernel/mtdcore.c,v
retrieving revision 1.14
diff -r1.14 mtdcore.c
89a90
> #define DECLARE_MUTEX(name) struct semaphore (name) = MUTEX
--
Mark Jackson
Senior Engineer
BME Design, LLC.
724 Whalers Way Bldg H Suite 200
Ft. Collins, CO 80525
Phone: (970) 377-4134
email mdj@phoenix.bmedesign.com
-- The ideas expressed in this email do not necessarily reflect those
of my employer. Come to think of it, they don't really reflect mine
either!
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* pmc551.c doesn't compile w/ egcs-2.91.66
2000-08-15 19:19 ` David Woodhouse
@ 2000-08-22 20:01 ` Bjorn Eriksson
2000-08-23 2:19 ` major
2000-09-23 13:09 ` Update: " Bjorn Eriksson
0 siblings, 2 replies; 5+ messages in thread
From: Bjorn Eriksson @ 2000-08-22 20:01 UTC (permalink / raw)
To: mtd
FYI: I can't get my egcs-2.91.66 to compile pmc551.c w/o adding either -O1
(or -O0) or -g. I have no idea why, it just stops right before the last
'defined but unreferenced static'-warning.
//Björnen.
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pmc551.c doesn't compile w/ egcs-2.91.66
2000-08-22 20:01 ` pmc551.c doesn't compile w/ egcs-2.91.66 Bjorn Eriksson
@ 2000-08-23 2:19 ` major
2000-09-23 13:09 ` Update: " Bjorn Eriksson
1 sibling, 0 replies; 5+ messages in thread
From: major @ 2000-08-23 2:19 UTC (permalink / raw)
To: Bjorn Eriksson; +Cc: mtd
If you send me a copy of the output from egcs for when it fails I might be
able to do something with it tonight. Else will need to wait till tomarrow
when I get back into work with all the toys.
On Tue, Aug 22, 2000 at 10:01:19PM +0200, Bjorn Eriksson wrote:
>
> FYI: I can't get my egcs-2.91.66 to compile pmc551.c w/o adding either -O1
> (or -O0) or -g. I have no idea why, it just stops right before the last
> 'defined but unreferenced static'-warning.
>
>
> //Björnen.
>
>
>
> To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
>
--
"That is precisely what common sense is for, to be jarred into
uncommon sense."
++ Eric Temple Bell, Mathmatics: Queen of the Sciences
Mark Ferrell : Major'Trips'
Programmer : Chaotic Dreams Development Team
URL : http://www.chaoticdreams.org
E-Mail : major@chaoticdreams.org
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Update: pmc551.c doesn't compile w/ egcs-2.91.66
2000-08-22 20:01 ` pmc551.c doesn't compile w/ egcs-2.91.66 Bjorn Eriksson
2000-08-23 2:19 ` major
@ 2000-09-23 13:09 ` Bjorn Eriksson
1 sibling, 0 replies; 5+ messages in thread
From: Bjorn Eriksson @ 2000-09-23 13:09 UTC (permalink / raw)
To: mtd
> FYI: I can't get my egcs-2.91.66 to compile pmc551.c w/o adding
> either -O1 (or -O0) or -g. I have no idea why, it just stops right
> before the last 'defined but unreferenced static'-warning.
The egcs-2.91.66 optimiser gets confused in pmc551.c:init_pmc551() if PCI
support is disabled in the kernel config. Patch:
--- mtd/kernel/pmc551.c 2000/07/14 07:53:31 1.8
+++ mtd/kernel/pmc551.c 2000/09/23 13:08:24
@@ -73,6 +73,10 @@
#include <stdarg.h>
#include <linux/pci.h>
+#ifndef CONFIG_PCI
+#error Enable PCI in your kernel config
+#endif
+
#include <linux/mtd/mtd.h>
#include <linux/mtd/pmc551.h>
#include <linux/mtd/compatmac.h>
//Björnen.
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-09-23 13:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-15 19:20 Patches to compile on redhat 6.2 with downloaded kernel src Mark Jackson
2000-08-15 19:19 ` David Woodhouse
2000-08-22 20:01 ` pmc551.c doesn't compile w/ egcs-2.91.66 Bjorn Eriksson
2000-08-23 2:19 ` major
2000-09-23 13:09 ` Update: " Bjorn Eriksson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox