You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在4.19.90-2403.3.0.0270.87.uel20.aarch64内核下报以下错误,如何解决:
toa.c:126:18: error: implicit declaration of function ‘lookup_address’; did you mean ‘lookup_bdev’? [-Werror=implicit-function-declaration]
pte_t *pte = lookup_address(addr, &level);
^~~~~~~~~~~~~~
lookup_bdev
toa.c:126:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
toa.c:127:20: error: ‘_PAGE_RW’ undeclared (first use in this function); did you mean ‘PAGE_S2’?
if (pte->pte & _PAGE_RW)
^~~~~~~~
PAGE_S2
toa.c:127:20: note: each undeclared identifier is reported only once for each function it appears in
toa.c: In function ‘set_addr_rw’:
toa.c:138:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
pte_t *pte = lookup_address(addr, &level);
^~~~~~~~~~~~~~
toa.c:140:17: error: ‘_PAGE_RW’ undeclared (first use in this function); did you mean ‘PAGE_S2’?
pte->pte |= _PAGE_RW;
^~~~~~~~
PAGE_S2
toa.c: In function ‘set_addr_ro’:
toa.c:147:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
pte_t *pte = lookup_address(addr, &level);
^~~~~~~~~~~~~~
toa.c:149:18: error: ‘_PAGE_RW’ undeclared (first use in this function); did you mean ‘PAGE_S2’?
pte->pte &= ~_PAGE_RW;
^~~~~~~~
PAGE_S2
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:310: toa.o] Error 1
make[1]: *** [Makefile:1530: module/root/nginx/dpvs_toa] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.19.90-2403.3.0.0270.87.uel20.aarch64'
The text was updated successfully, but these errors were encountered:
在4.19.90-2403.3.0.0270.87.uel20.aarch64内核下报以下错误,如何解决:
toa.c:126:18: error: implicit declaration of function ‘lookup_address’; did you mean ‘lookup_bdev’? [-Werror=implicit-function-declaration]
pte_t *pte = lookup_address(addr, &level);
^~~~~~~~~~~~~~
lookup_bdev
toa.c:126:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
toa.c:127:20: error: ‘_PAGE_RW’ undeclared (first use in this function); did you mean ‘PAGE_S2’?
if (pte->pte & _PAGE_RW)
^~~~~~~~
PAGE_S2
toa.c:127:20: note: each undeclared identifier is reported only once for each function it appears in
toa.c: In function ‘set_addr_rw’:
toa.c:138:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
pte_t *pte = lookup_address(addr, &level);
^~~~~~~~~~~~~~
toa.c:140:17: error: ‘_PAGE_RW’ undeclared (first use in this function); did you mean ‘PAGE_S2’?
pte->pte |= _PAGE_RW;
^~~~~~~~
PAGE_S2
toa.c: In function ‘set_addr_ro’:
toa.c:147:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
pte_t *pte = lookup_address(addr, &level);
^~~~~~~~~~~~~~
toa.c:149:18: error: ‘_PAGE_RW’ undeclared (first use in this function); did you mean ‘PAGE_S2’?
pte->pte &= ~_PAGE_RW;
^~~~~~~~
PAGE_S2
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:310: toa.o] Error 1
make[1]: *** [Makefile:1530: module/root/nginx/dpvs_toa] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.19.90-2403.3.0.0270.87.uel20.aarch64'
The text was updated successfully, but these errors were encountered: