398 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

error: ‘enable_acpi’ redeclared as different kind of symbol

已完成
缺陷 拥有者
创建于  
2020-12-07 20:47

Zhengyuan Liu report this error:

Building the latest 2003 LTS can trigger following compilation error:
    
            In file included from ./include/acpi/acpi_io.h:7:0,
                             from ./include/linux/acpi.h:47,
                             from ./arch/arm64/include/asm/machine_t.h:26,
                             from arch/arm64/kernel/process.c:64:
            ./arch/arm64/include/asm/acpi.h:82:20: error: ‘enable_acpi’ redeclared as different kind of symbol
             static inline void enable_acpi(void)
                                ^~~~~~~~~~~
            In file included from arch/arm64/kernel/process.c:61:0:
            ./arch/arm64/include/asm/mpam_sched.h:46:2: note: previous definition of ‘enable_acpi’ was here
              enable_acpi,
    
The redefinition was introduced by commit 7e66740ad725 
("MPAM / ACPI: Refactoring MPAM init process and set MPAM ACPI as entrance")

评论 (3)

Xie XiuQi 创建了缺陷
Xie XiuQi 关联仓库设置为openEuler/kernel
展开全部操作日志

Hey xiexiuqi, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

Thanks for your report.

The enum variable and function has the same name, we will fix soon.
The simplest way is to change a name.

No compilation error is reported in my environment. (gcc 7.3)
Maybe the two variables appear in the same scope due to "asm/machine_t.h".

I re-check the latest openEuler-1.0-LTS branch, it's ok.

Anyway, we'll send a fix patch soon.

Fix Patch arm64/mpam: Migrate old MSCs' discovery process to new branch :

branch commit
openEuler-1.0-LTS 3a6c2e475890258e27d2abdb31716b9397a21b90
kernel-4.19 2e0bba630bfc4ee46ea62beb030a21b4331b63f9
commit 3a6c2e475890258e27d2abdb31716b9397a21b90
Author: Wang ShaoBo <bobo.shaobowang@huawei.com>
Date:   Mon Jan 4 15:13:04 2021 +0800

    arm64/mpam: Migrate old MSCs' discovery process to new branch


diff --git a/arch/arm64/include/asm/mpam_sched.h b/arch/arm64/include/asm/mpam_sched.h
index 350296157087..08ed349b6efa 100644
--- a/arch/arm64/include/asm/mpam_sched.h
+++ b/arch/arm64/include/asm/mpam_sched.h
@@ -40,14 +40,6 @@ static inline void mpam_sched_in(void)
                __mpam_sched_in();
 }

-enum mpam_enable_type {
-       enable_denied = 0,
-       enable_default,
-       enable_acpi,
-};
-
-extern enum mpam_enable_type __read_mostly mpam_enabled;
-
 #else

this patch has been merged into branch openEuler-1.0-LTS and kernel-4.19

Thanks
---- CHENG Jian

成坚 (CHENG Jian) 任务状态待办的 修改为已完成
成坚 (CHENG Jian) 修改了描述
成坚 (CHENG Jian) 任务状态已完成 修改为待办的
成坚 (CHENG Jian) 任务状态待办的 修改为已完成
成坚 (CHENG Jian) 添加了
 
20.03-LTS-SP1
标签
成坚 (CHENG Jian) 添加了
 
CVE/FIXED
标签
成坚 (CHENG Jian) 移除了
 
CVE/FIXED
标签
成坚 (CHENG Jian) 添加了
 
issue_resolved
标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助