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
The error_desc array and the perror pointer are never modified after
initialization. Marking them as const moves the data to the read-only
section, improving safety.
Before:
$ riscv-none-elf-size ./build/kernel/error.o
text data bss dec hex filename
398 172 0 570 23a ./build/kernel/error.o
After:
$ riscv-none-elf-size ./build/kernel/error.o
text data bss dec hex filename
570 0 0 570 23a ./build/kernel/error.o
0 commit comments