Skip to contentSkip to conversation

PATCH: fail to compile with CONFIG_IPIPE=n

Adeos-main Wen-chien Jesse Sung 2 participants 2 messages Sep 30, 2005 – Oct 1, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

When ipipe is disabled, ipipe_reset_stats() is not defined, but it is still referenced in init/main.c:rest_init().

  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1

init/built-in.o: In function `rest_init':
: undefined reference to `ipipe_reset_stats'
make: *** [.tmp_vmlinux1] Error 1

Signature · 2 lines
Best Regards,
Wen-chien Jesse Sung
include/linux/ipipe.h +2 -0
Index: linux-2.6.13-js1/include/linux/ipipe.h
===================================================================
@@ -702,6 +702,8 @@
 #define ipipe_irq_lock(irq)	do { } while(0)
 #define ipipe_irq_unlock(irq)	do { } while(0)
 
+#define ipipe_reset_stats()	do { } while(0)
+
 #endif	/* CONFIG_IPIPE */
 
 #endif	/* !__LINUX_IPIPE_H */
#1 lore raw
Quoted 5 lines · Wen-chien Jesse Sung

Hi,

When ipipe is disabled, ipipe_reset_stats() is not defined, but it is still referenced in init/main.c:rest_init().

Quoted 7 lines
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1

init/built-in.o: In function `rest_init':
: undefined reference to `ipipe_reset_stats'
make: *** [.tmp_vmlinux1] Error 1

This one was already in my log; thanks anyway.

Quoted 25 lines

------------------------------------------------------------------------

Index: linux-2.6.13-js1/include/linux/ipipe.h
===================================================================

include/linux/ipipe.h +2 -1
@@ -702,6 +702,8 @@
 #define ipipe_irq_lock(irq)	do { } while(0)
 #define ipipe_irq_unlock(irq)	do { } while(0)
 
+#define ipipe_reset_stats()	do { } while(0)
+
 #endif	/* CONFIG_IPIPE */
 
 #endif	/* !__LINUX_IPIPE_H */
 
 
------------------------------------------------------------------------

_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

Signature · 1 line
Philippe.