Bug 11296 - Fix compilation error on the devel-6.6 branch in loongarch
Summary: Fix compilation error on the devel-6.6 branch in loongarch
Status: RESOLVED FIXED
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: ARCH(unspecified) (show other bugs) ARCH(unspecified)
Version: unspecified
Hardware: loongarch Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: zhangjing
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-12 17:59 UTC by wangkanglong
Modified: 2024-10-14 16:04 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wangkanglong loongson_group 2024-10-12 17:59:39 UTC
Description of problem:
There are some compilation errores compiling the devel-6.6 branch kernel using the 'arch/loongarch/configs/anolis_defconfig'. 

Version-Release number of selected component (if applicable):


How reproducible:
Use the default configuration file to compile the kernel for reproduce.

Steps to Reproduce:
1.$ cp arch/loongarch/configs/anolis_defconfig .config
2.$ make menuconfig
3.$ make -j8

Actual results:

In file included from kernel/dma/direct.h:10,
                 from kernel/dma/mapping.c:18:
./include/linux/dma-direct.h:53:10: fatal error: asm/dma-direct.h: No such file or directory
   53 | #include <asm/dma-direct.h>

Expected results:

There are no compilation errors

Additional info:
Comment 1 wangkanglong loongson_group 2024-10-14 16:04:41 UTC
fixed by: 84717862cd74 ("anolis: There need drm-direct.h for loongarch under current kernel version")