mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
Fix fatal error: errno.h: No such file or directory in ./build-modules --arch aarch64
```
make -C '/home/ciro/bak/git/linux-kernel-module-cheat/out/linux/default/aarch64' M='/home/ciro/bak/git/linux-kernel-module-cheat/out/kernel_modules/aarch64/kernel_modules'
make[1]: Entering directory '/mnt/sda3/linux-kernel-module-cheat-out/linux/default/aarch64'
CC [M] /home/ciro/bak/git/linux-kernel-module-cheat/out/kernel_modules/aarch64/kernel_modules/dump_regs.o
In file included from /home/ciro/bak/git/linux-kernel-module-cheat/lkmc/aarch64_dump_regs.h:4,
from /home/ciro/bak/git/linux-kernel-module-cheat/out/kernel_modules/aarch64/kernel_modules/dump_regs.c:8:
/home/ciro/bak/git/linux-kernel-module-cheat/lkmc.h:10:10: fatal error: errno.h: No such file or directory
#include <errno.h>
^~~~~~~~~
```
Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/127
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#ifndef LKMC_AARCH64_DUMP_REGS_H
|
||||
#define LKMC_AARCH64_DUMP_REGS_H
|
||||
|
||||
#include <lkmc.h>
|
||||
|
||||
/* https://cirosantilli.com/linux-kernel-module-cheat#dump-regs */
|
||||
|
||||
/* So that a sigle source will work with baremetal and printk from kernel module. */
|
||||
@@ -19,7 +17,7 @@
|
||||
#endif
|
||||
|
||||
/* Dump registers that are only visible from privileged levels of the system. */
|
||||
void lkmc_dump_system_regs() {
|
||||
void lkmc_dump_system_regs(void) {
|
||||
uint32_t sctlr_el1;
|
||||
__asm__ ("mrs %0, sctlr_el1" : "=r" (sctlr_el1) : :);
|
||||
LKMC_DUMP_SYSTEM_REGS_PRINTF("SCTLR_EL1 0x%" PRIX32 "\n", sctlr_el1);
|
||||
|
||||
@@ -689,6 +689,8 @@ path_properties_tuples = (
|
||||
'return2.c': {'exit_status': 2},
|
||||
# This has complex failure modes, too hard to assert.
|
||||
'smash_stack.c': {'skip_run_unclassified': True},
|
||||
'std_atomic.c': {'baremetal': False},
|
||||
'atomic': {'baremetal': False},
|
||||
# Wrapper not defined by newlib.
|
||||
'timespec_get.c': {'baremetal': False},
|
||||
}
|
||||
|
||||
Submodule submodules/gem5-resources updated: d1965aa16a...caf7ef4e10
Reference in New Issue
Block a user