Skip to contentSkip to conversation

hexagon: vdso: Fix build failure

PATCH In review Guenter Roeck 2 participants 2 messages Sep 23, 2024 Qualcomm hexagon architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hexagon: vdso: Fix build failure

Hexagon images fail to build with the following error.

arch/hexagon/kernel/vdso.c:57:3: error: use of undeclared identifier 'name'

                name = "[vdso]",
                ^

Add the missing '.' to fix the problem.

Fixes 497258dfafcc ("mm: remove legacy install_special_mapping() code")
Cc Linus Torvalds <[email protected]>
---
 arch/hexagon/kernel/vdso.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/hexagon/kernel/vdso.c +1 -1
index 6fd27ff1df73..8119084dc519 100644
@@ -54,7 +54,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
 	struct vm_area_struct *vma;
 	struct mm_struct *mm = current->mm;
 	static struct vm_special_mapping vdso_mapping = {
-		name = "[vdso]",
+		.name = "[vdso]",
 	};
 
 	if (mmap_write_lock_killable(mm))
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines

-----Original Message-----
From: Guenter Roeck <[email protected]> On Behalf Of Guenter Roeck
Sent: Monday, September 23, 2024 8:53 AM
To: Brian Cain <[email protected]>
Cc: [email protected]; [email protected]; Guenter Roeck <[email protected]>; Linus Torvalds <[email protected]>
Subject: [PATCH] hexagon: vdso: Fix build failure

WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.

Hexagon images fail to build with the following error.

arch/hexagon/kernel/vdso.c:57:3: error: use of undeclared identifier 'name'

                name = "[vdso]",
                ^
Quoted 6 lines

Add the missing '.' to fix the problem.

Fixes 497258dfafcc ("mm: remove legacy install_special_mapping() code")
Cc Linus Torvalds <[email protected]>

---

Quoted 20 lines
 arch/hexagon/kernel/vdso.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/hexagon/kernel/vdso.c +1 -1
index 6fd27ff1df73..8119084dc519 100644
@@ -54,7 +54,7 @@ int arch_setup_additional_pages(struct linux_binprm
 *bprm, int uses_interp)
        struct vm_area_struct *vma;
        struct mm_struct *mm = current->mm;
        static struct vm_special_mapping vdso_mapping = {
-               name = "[vdso]",
+               .name = "[vdso]",
        };
 

if (mmap_write_lock_killable(mm))
--
2.45.2