When I was checking some things with sparce (it has been awhile since I think anyone did this)...
We get lots of false errors during compile due to sparce not setting the proper __SILICON_REVISION__ [EMAIL PROTECTED]:~/linux-2.6.x> make C=1 [snip] CHECK init/main.c include/asm/mach/anomaly.h:19:5: warning: undefined preprocessor identifier '__SILICON_REVISION__' include/asm/mach/anomaly.h:20:3: error: Kernel will not work on BF537 silicon version 0.0 or 0.1 I can do: [EMAIL PROTECTED]:~/linux-2.6.x> make C=1 CHECKFLAGS="-D__SILICON_REVISION__=2" Is that the preferred solution? I assume that something like: /* Make sparce happy */ #ifndef __SILICON_REVISION__ #ifdef BF_REV_0_0 #define __SILICON_REVISION__ 0 #endif #ifdef BF_REV_0_1 #define __SILICON_REVISION__ 1 #endif ... #endif somewhere would make things happy as well? but then I get: CHECK init/do_mounts.c include/asm/uaccess.h:63:77: error: attribute 'l1_text': unknown attribute I assume that I need to teach sparce about this? -robin _______________________________________________ Toolchain-devel mailing list Toolchain-devel@blackfin.uclinux.org http://blackfin.uclinux.org/mailman/listinfo/toolchain-devel