본문 바로가기

카테고리 없음

e210s에서 커널 컴파일 오류 해결법

<오류 1>

- kernel/timeconst.h 

defined(@array) is deprecated at kernel/timeconst.pl line 373. 

  (Maybe you should just omit the defined()?)


* 해결방법

if (!defined(@val)) {

→ if (!@val) {


* 관련 참조

http://linux-kernel.2935.n7.nabble.com/PATCH-1-5-kbuild-remove-deprecated-use-of-defined-in-timeconst-pl-td556009.html



<오류 2>

arch/arm/mm/alignment.c:720:21: warning: 'offset.un' may be used


* 해결방법

- kernel/mm/alignment.c (Line.823 - Line.825)

else {

   handler = do_alignment_ldmstm;

   offset.un = 0;

  }


* 관련 참조

http://linux-arm-kernel.infradead.narkive.com/QktjBi1g/patch-arm-fix-warning-with-gcc-4-5-1-in-alignment-fixup