Re: Compile fails on SPARC64 - include/linux/sched.h:1171: request for member `break_lock' in something not a structure or union

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It should work if you disable PREEMPT.

Willy

On Mon, Mar 28, 2005 at 02:41:34PM +0200, Turbo Fredriksson wrote:
> Tried 2.6.11.6, 2.6.11.6-bk1 and 2.6.12-rc1.
> 
> ----- s n i p -----
> CHROOT Aurora/Woody-devel# make
>   CHK     include/linux/version.h
>   CC      init/main.o
> In file included from include/linux/module.h:10,
>                  from init/main.c:16:
> include/linux/sched.h: In function `lock_need_resched':
> include/linux/sched.h:1171: request for member `break_lock' in something not a structure or union
> make[1]: *** [init/main.o] Error 1
> make: *** [init] Error 2
> ----- s n i p -----
> 
> rgrep'ing in include/ shows that it's defined in all
> but 'include/asm-sparc64/spinlock.h':
> 
> ----- s n i p -----
> CHROOT Aurora/Woody-devel# rgrep break_lock include | sort | uniq
> include/asm-alpha/spinlock.h:   unsigned int break_lock;
> include/asm-arm/spinlock.h:     unsigned int break_lock;
> include/asm-i386/spinlock.h:    unsigned int break_lock;
> include/asm-ia64/spinlock.h:    unsigned int break_lock;
> include/asm-m32r/spinlock.h:    unsigned int break_lock;
> include/asm-mips/spinlock.h:    unsigned int break_lock;
> include/asm-parisc/spinlock.h:  unsigned int break_lock;
> include/asm-parisc/system.h:    unsigned int break_lock;
> include/asm-ppc/spinlock.h:     unsigned int break_lock;
> include/asm-ppc64/spinlock.h:   unsigned int break_lock;
> include/asm-s390/spinlock.h:    unsigned int break_lock;
> include/asm-sh/spinlock.h:      unsigned int break_lock;
> include/asm-sparc/spinlock.h:   unsigned int break_lock;
> include/asm-x86_64/spinlock.h:  unsigned int break_lock;
> include/linux/sched.h:# define need_lockbreak(lock) ((lock)->break_lock)
> ----- s n i p -----
> 
> Kernel config can be found at http://www.bayour.com/config-2.6.12-rc1.txt.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux