Can anyone help me out.

On Thu, May 28, 2015 at 12:47 PM, Dhiraj Bhor <dhirajbho...@gmail.com>
wrote:

> Hi Sven,
>
> I applied the patch suggested but it did not worked for me.
> I wanted to let you know that i am compiling kernel version 2.6.20 and
> given link has patch applicable for 2.6.27 which is not working for me.
>
> When i applied the patch, i got following error:
>
> *  CC      kernel/capability.o*
> *  CC      kernel/ptrace.o*
> *In file included from kernel/ptrace.c:16:0:*
> *include/linux/pagemap.h: In function ‘fault_in_pages_readable’:*
> *include/linux/pagemap.h:222:16: warning: variable ‘c’ set but not used
> [-Wunused-but-set-variable]*
> *  volatile char c;*
> *                ^*
> *  CC      kernel/timer.o*
> *In file included from include/asm/current.h:4:0,*
> *                 from include/linux/capability.h:46,*
> *                 from include/linux/sched.h:46,*
> *                 from include/asm/irq.h:13,*
> *                 from include/linux/kernel_stat.h:4,*
> *                 from kernel/timer.c:22:*
> *include/asm/irq_regs.h: In function ‘set_irq_regs’:*
> *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used
> [-Wunused-but-set-variable]*
> *   if (0) { T__ tmp__; tmp__ = (val); }   \*
> *                ^*
> *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’*
> * #define write_pda(field,val) pda_to_op("mov",field,val)*
> *                              ^*
> *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’*
> *  write_pda(irq_regs, new_regs);*
> *  ^*
> *  CC      kernel/user.o*
> *In file included from include/asm/current.h:4:0,*
> *                 from include/linux/capability.h:46,*
> *                 from include/linux/sched.h:46,*
> *                 from kernel/user.c:12:*
> *include/asm/irq_regs.h: In function ‘set_irq_regs’:*
> *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used
> [-Wunused-but-set-variable]*
> *   if (0) { T__ tmp__; tmp__ = (val); }   \*
> *                ^*
> *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’*
> * #define write_pda(field,val) pda_to_op("mov",field,val)*
> *                              ^*
> *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’*
> *  write_pda(irq_regs, new_regs);*
> *  ^*
> *  CC      kernel/signal.o*
> *  CC      kernel/sys.o*
> *  CC      kernel/kmod.o*
> *kernel/kmod.c: In function ‘____call_usermodehelper’:*
> *kernel/kmod.c:134:28: warning: variable ‘old_session’ set but not used
> [-Wunused-but-set-variable]*
> *  struct key *new_session, *old_session;*
> *                            ^*
> *kernel/kmod.c:134:14: warning: variable ‘new_session’ set but not used
> [-Wunused-but-set-variable]*
> *  struct key *new_session, *old_session;*
> *              ^*
> *  CC      kernel/workqueue.o*
> *In file included from include/asm/current.h:4:0,*
> *                 from include/linux/capability.h:46,*
> *                 from include/linux/sched.h:46,*
> *                 from include/linux/utsname.h:35,*
> *                 from include/asm/elf.h:12,*
> *                 from include/linux/elf.h:7,*
> *                 from include/linux/module.h:15,*
> *                 from kernel/workqueue.c:19:*
> *include/asm/irq_regs.h: In function ‘set_irq_regs’:*
> *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used
> [-Wunused-but-set-variable]*
> *   if (0) { T__ tmp__; tmp__ = (val); }   \*
> *                ^*
> *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’*
> * #define write_pda(field,val) pda_to_op("mov",field,val)*
> *                              ^*
> *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’*
> *  write_pda(irq_regs, new_regs);*
> *  ^*
> *  CC      kernel/pid.o*
> *  CC      kernel/rcupdate.o*
> *In file included from include/asm/current.h:4:0,*
> *                 from include/linux/wait.h:26,*
> *                 from include/linux/mmzone.h:9,*
> *                 from include/linux/gfp.h:4,*
> *                 from include/linux/slab.h:14,*
> *                 from include/linux/percpu.h:5,*
> *                 from include/linux/rcupdate.h:41,*
> *                 from kernel/rcupdate.c:38:*
> *include/asm/irq_regs.h: In function ‘set_irq_regs’:*
> *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used
> [-Wunused-but-set-variable]*
> *   if (0) { T__ tmp__; tmp__ = (val); }   \*
> *                ^*
> *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’*
> * #define write_pda(field,val) pda_to_op("mov",field,val)*
> *                              ^*
> *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’*
> *  write_pda(irq_regs, new_regs);*
> *  ^*
> *  CC      kernel/extable.o*
> *  CC      kernel/params.o*
> *  CC      kernel/posix-timers.o*
> *In file included from include/asm/current.h:4:0,*
> *                 from include/linux/capability.h:46,*
> *                 from include/linux/sched.h:46,*
> *                 from include/linux/mm.h:4,*
> *                 from kernel/posix-timers.c:33:*
> *include/asm/irq_regs.h: In function ‘set_irq_regs’:*
> *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used
> [-Wunused-but-set-variable]*
> *   if (0) { T__ tmp__; tmp__ = (val); }   \*
> *                ^*
> *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’*
> * #define write_pda(field,val) pda_to_op("mov",field,val)*
> *                              ^*
> *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’*
> *  write_pda(irq_regs, new_regs);*
> *  ^*
> *  CC      kernel/kthread.o*
> *  CC      kernel/wait.o*
> *  CC      kernel/kfifo.o*
> *  CC      kernel/sys_ni.o*
> *  CC      kernel/posix-cpu-timers.o*
> *  CC      kernel/mutex.o*
> *In file included from include/asm/current.h:4:0,*
> *                 from include/linux/capability.h:46,*
> *                 from include/linux/sched.h:46,*
> *                 from kernel/mutex.c:16:*
> *include/asm/irq_regs.h: In function ‘set_irq_regs’:*
> *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used
> [-Wunused-but-set-variable]*
> *   if (0) { T__ tmp__; tmp__ = (val); }   \*
> *                ^*
> *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’*
> * #define write_pda(field,val) pda_to_op("mov",field,val)*
> *                              ^*
> *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’*
> *  write_pda(irq_regs, new_regs);*
> *  ^*
> *kernel/mutex.c: At top level:*
> *kernel/mutex.c:60:8: warning: type defaults to ‘int’ in declaration of
> ‘__used’ [-Wimplicit-int]*
> * static __used noinline void fastcall __sched*
> *        ^*
> *kernel/mutex.c:60:1: warning: ‘noinline’ attribute ignored [-Wattributes]*
> * static __used noinline void fastcall __sched*
> * ^*
> *kernel/mutex.c:60:24: error: expected ‘,’ or ‘;’ before ‘void’*
> * static __used noinline void fastcall __sched*
> *                        ^*
> *In file included from include/asm/system.h:4:0,*
> *                 from include/asm/processor.h:18,*
> *                 from include/linux/prefetch.h:14,*
> *                 from include/linux/list.h:8,*
> *                 from include/linux/mutex.h:13,*
> *                 from kernel/mutex.c:15:*
> *kernel/mutex.c: In function ‘mutex_lock’:*
> *kernel/mutex.c:91:38: error: ‘__mutex_lock_slowpath’ undeclared (first
> use in this function)*
> *  __mutex_fastpath_lock(&lock->count, __mutex_lock_slowpath);*
> *                                      ^*
> *include/linux/kernel.h:311:25: note: in definition of macro
> ‘typecheck_fn’*
> * ({ typeof(type) __tmp = function; \*
> *                         ^*
> *kernel/mutex.c:91:2: note: in expansion of macro ‘__mutex_fastpath_lock’*
> *  __mutex_fastpath_lock(&lock->count, __mutex_lock_slowpath);*
> *  ^*
> *kernel/mutex.c:91:38: note: each undeclared identifier is reported only
> once for each function it appears in*
> *  __mutex_fastpath_lock(&lock->count, __mutex_lock_slowpath);*
> *                                      ^*
> *include/linux/kernel.h:311:25: note: in definition of macro
> ‘typecheck_fn’*
> * ({ typeof(type) __tmp = function; \*
> *                         ^*
> *kernel/mutex.c:91:2: note: in expansion of macro ‘__mutex_fastpath_lock’*
> *  __mutex_fastpath_lock(&lock->count, __mutex_lock_slowpath);*
> *  ^*
> *kernel/mutex.c: At top level:*
> *kernel/mutex.c:96:8: warning: type defaults to ‘int’ in declaration of
> ‘__used’ [-Wimplicit-int]*
> * static __used noinline void fastcall  __sched*
> *        ^*
> *kernel/mutex.c:96:1: warning: ‘noinline’ attribute ignored [-Wattributes]*
> * static __used noinline void fastcall  __sched*
> * ^*
> *kernel/mutex.c:96:24: error: expected ‘,’ or ‘;’ before ‘void’*
> * static __used noinline void fastcall  __sched*
> *                        ^*
> *In file included from include/asm/system.h:4:0,*
> *                 from include/asm/processor.h:18,*
> *                 from include/linux/prefetch.h:14,*
> *                 from include/linux/list.h:8,*
> *                 from include/linux/mutex.h:13,*
> *                 from kernel/mutex.c:15:*
> *kernel/mutex.c: In function ‘mutex_unlock’:*
> *kernel/mutex.c:116:40: error: ‘__mutex_unlock_slowpath’ undeclared (first
> use in this function)*
> *  __mutex_fastpath_unlock(&lock->count, __mutex_unlock_slowpath);*
> *                                        ^*
> *include/linux/kernel.h:311:25: note: in definition of macro
> ‘typecheck_fn’*
> * ({ typeof(type) __tmp = function; \*
> *                         ^*
> *kernel/mutex.c:116:2: note: in expansion of macro
> ‘__mutex_fastpath_unlock’*
> *  __mutex_fastpath_unlock(&lock->count, __mutex_unlock_slowpath);*
> *  ^*
> *kernel/mutex.c: At top level:*
> *kernel/mutex.c:192:8: warning: type defaults to ‘int’ in declaration of
> ‘__used’ [-Wimplicit-int]*
> * static __used noinline void fastcall __sched*
> *        ^*
> *kernel/mutex.c:192:1: warning: ‘noinline’ attribute ignored
> [-Wattributes]*
> * static __used noinline void fastcall __sched*
> * ^*
> *kernel/mutex.c:192:24: error: expected ‘,’ or ‘;’ before ‘void’*
> * static __used noinline void fastcall __sched*
> *                        ^*
> *kernel/mutex.c:260:8: warning: type defaults to ‘int’ in declaration of
> ‘__used’ [-Wimplicit-int]*
> * static __used fastcall noinline void*
> *        ^*
> *kernel/mutex.c:260:1: warning: ‘regparm’ attribute only applies to
> function types [-Wattributes]*
> * static __used fastcall noinline void*
> * ^*
> *kernel/mutex.c:260:1: warning: ‘noinline’ attribute ignored
> [-Wattributes]*
> *kernel/mutex.c:260:33: error: expected ‘,’ or ‘;’ before ‘void’*
> * static __used fastcall noinline void*
> *                                 ^*
> *kernel/mutex.c:260:8: warning: ‘__used’ defined but not used
> [-Wunused-variable]*
> * static __used fastcall noinline void*
> *        ^*
> *scripts/Makefile.build:203: recipe for target 'kernel/mutex.o' failed*
>
> Please help me  resolve this.
> Thanks,
> Dhiraj
>
> On Tue, May 26, 2015 at 10:40 PM, Sven Arvidsson <s...@whiz.se> wrote:
>
>> On Tue, 2015-05-26 at 16:37 +0530, Dhiraj Bhor wrote:
>> > After this i got some error while make bzImage as follows:
>> [...]
>> > *kernel/built-in.o: In function `mutex_lock':*
>> > *(.sched.text+0xea5): undefined reference to `__mutex_lock_slowpath'*
>> > *kernel/built-in.o: In function `mutex_unlock':*
>> > *(.sched.text+0xeb5): undefined reference to `__mutex_unlock_slowpath'*
>> > *Makefile:744: recipe for target 'vmlinux' failed*
>> > *make: *** [vmlinux] Error 1*
>> >
>>
>> I'm guessing you need to do something like:
>> http://www.brunni.de/linux_kernel_2.6.27.62_with_gcc_4.6.3.html
>>
>> --
>> Cheers,
>> Sven Arvidsson
>> http://www.whiz.se
>> PGP Key ID 6FAB5CD5
>>
>>
>>
>

Reply via email to