asm/page.h 的文件内容

本文介绍了解决Linux高版本内核中找不到asm/page.h的方法。可以通过移除该头文件的引用或者自定义page.h来解决编译错误。文中详细列举了自定义page.h的内容示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

linux下高版本的内核已经没有 asm/page.h了   

如果导入了这个头文件会报错。

 

解决方法,去掉 #include <asm/page.h>即可

 

或者是自己写个  page.h,然后 #include "page.h"

 

编译就好.

 

page.h的内容为:

 

 

 

 

 

Using: /home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/staging_dir/toolchain-riscv64_c908_gcc-10.4.0-thead2.10.2_musl/include/asm/auxvec.h Alternative: "/home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/sf_kernel/linux-5.10/arch/riscv/include/uapi" Using: /home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/build_dir/target-riscv64_c908_musl/linux-siflower_sf21a6826/backports-5.15.162-1/backport-include/asm/barrier.h Alternative: "/home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/sf_kernel/linux-5.10/arch/riscv/include" Using: /home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/staging_dir/toolchain-riscv64_c908_gcc-10.4.0-thead2.10.2_musl/include/asm/errno.h Alternative: "/home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/sf_kernel/linux-5.10/arch/riscv/include/generated/uapi" Using: /home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/build_dir/target-riscv64_c908_musl/linux-siflower_sf21a6826/backports-5.15.162-1/backport-include/asm/unaligned.h Alternative: "/home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/sf_kernel/linux-5.10/arch/riscv/include/generated" Using: /home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/build_dir/target-riscv64_c908_musl/linux-siflower_sf21a6826/sf_wifi-1.0/umac/hal_desc.h Alternative: "/home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/package/kernel/siflower/openwrt-x2880-driver/src/umac" Alternative: "/home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/build_dir/target-riscv64_c908_musl/linux-siflower_sf21a6826/sf_wifi-1.0/fmac/umac" Using: /home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/build_dir/target-riscv64_c908_musl/linux-siflower_sf21a6826/sf_wifi-1.0/umac/fullmac/siwifi_defs.h Alternative: "/home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/build_dir/target-riscv64_c908_musl/linux-siflower_sf21a6826/sf_wifi-1.0/fmac/umac/fullmac" Alternative: "/home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/package/kernel/siflower/openwrt-x2880-driver/src/umac/fullmac" Using: /home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/staging_dir/toolchain-riscv64_c908_gcc-10.4.0-thead2.10.2_musl/include/string.h Alternative: "/home/jianan.zhao/backups/code/px_pagepool/Openwrt-master/sf_kernel/linux-5.10/arch/riscv/include/asm"
最新发布
03-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值