treewide: Replace __ASSEMBLY__ with __ASSEMBLER__ in header files
Subsystems (90)
PATCH 23/41 openrisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
In reply to Thomas HuthWhile the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize on the __ASSEMBLER__ macro that is provided by the compilers now.
This is a completely mechanical patch (done with a simple "sed -i" statement).
--- arch/openrisc/include/asm/mmu.h | 2 +- arch/openrisc/include/asm/page.h | 8 ++++---- arch/openrisc/include/asm/pgtable.h | 4 ++-- arch/openrisc/include/asm/processor.h | 4 ++-- arch/openrisc/include/asm/ptrace.h | 4 ++-- arch/openrisc/include/asm/setup.h | 2 +- arch/openrisc/include/asm/thread_info.h | 8 ++++---- 7 files changed, 16 insertions(+), 16 deletions(-)
arch/openrisc/include/asm/mmu.h +1 -1
@@ -15,7 +15,7 @@#ifndef __ASM_OPENRISC_MMU_H#define __ASM_OPENRISC_MMU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef unsigned long mm_context_t ;#endif
arch/openrisc/include/asm/page.h +4 -4
@@ -25,7 +25,7 @@*/ #include <asm/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define clear_page (page) memset((page), 0, PAGE_SIZE)#define copy_page (to, from) memcpy((to), (from), PAGE_SIZE)
@@ -55,10 +55,10 @@ typedef struct page *pgtable_t;#define __pgd (x) ((pgd_t) { (x) })#define __pgprot (x) ((pgprot_t) { (x) }) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __va (x) ((void *)((unsigned long)(x) + PAGE_OFFSET))#define __pa (x) ((unsigned long) (x) - PAGE_OFFSET)
@@ -73,7 +73,7 @@ static inline unsigned long virt_to_pfn(const void *kaddr)#define virt_addr_valid (kaddr) (pfn_valid(virt_to_pfn(kaddr))) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm-generic/memory_model.h> #include <asm-generic/getorder.h>
arch/openrisc/include/asm/pgtable.h +2 -2
@@ -23,7 +23,7 @@#include <asm-generic/pgtable-nopmd.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/mmu.h> #include <asm/fixmap.h>
@@ -432,5 +432,5 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)typedef pte_t *pte_addr_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PGTABLE_H */
arch/openrisc/include/asm/processor.h +2 -2
@@ -39,7 +39,7 @@*/ #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct task_struct ;
@@ -78,5 +78,5 @@ void show_registers(struct pt_regs *regs);#define cpu_relax () barrier() -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PROCESSOR_H */
arch/openrisc/include/asm/ptrace.h +2 -2
@@ -27,7 +27,7 @@* they share a cacheline (not done yet, though... future optimization). */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * This struct describes how the registers are laid out on the kernel stack * during a syscall or other kernel entry.
@@ -147,7 +147,7 @@ static inline unsigned long regs_get_register(struct pt_regs *regs, return *(unsigned long *)((unsigned long)regs + offset); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Offsets used by 'ptrace' system call interface.
arch/openrisc/include/asm/setup.h +1 -1
@@ -8,7 +8,7 @@#include <linux/init.h> #include <asm-generic/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void __init or1k_early_setup (void *fdt);#endif
arch/openrisc/include/asm/thread_info.h +4 -4
@@ -17,7 +17,7 @@#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/types.h> #include <asm/processor.h> #endif
@@ -38,7 +38,7 @@* - if the contents of this structure are changed, the assembly constants * must also be changed */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct thread_info { struct task_struct *task; /* main task structure */
@@ -58,7 +58,7 @@ struct thread_info {* * preempt_count needs to be 1 initially, until the scheduler is functional. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \
@@ -75,7 +75,7 @@ register struct thread_info *current_thread_info_reg asm("r10");#define get_thread_info (ti) get_task_struct((ti)->task)#define put_thread_info (ti) put_task_struct((ti)->task) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * thread information flags
Signature · 1 line
2.48.1
Re: [PATCH 23/41] openrisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
Quoted 182 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc Jonas Bonn<[email protected]>Cc Stefan Kristiansson<[email protected]>Cc Stafford Horne<[email protected]>Signed-off-by Thomas Huth<[email protected]>--- arch/openrisc/include/asm/mmu.h | 2 +- arch/openrisc/include/asm/page.h | 8 ++++---- arch/openrisc/include/asm/pgtable.h | 4 ++-- arch/openrisc/include/asm/processor.h | 4 ++-- arch/openrisc/include/asm/ptrace.h | 4 ++-- arch/openrisc/include/asm/setup.h | 2 +- arch/openrisc/include/asm/thread_info.h | 8 ++++---- 7 files changed, 16 insertions(+), 16 deletions(-)arch/openrisc/include/asm/mmu.h +1
-1@@ -15,7 +15,7 @@#ifndef __ASM_OPENRISC_MMU_H#define __ASM_OPENRISC_MMU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef unsigned long mm_context_t ;#endif arch/openrisc/include/asm/page.h +4
-4@@ -25,7 +25,7 @@*/ #include <asm/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define clear_page (page) memset((page), 0, PAGE_SIZE)#define copy_page (to, from) memcpy((to), (from), PAGE_SIZE)@@ -55,10 +55,10 @@ typedef struct page *pgtable_t;#define __pgd (x) ((pgd_t) { (x) })#define __pgprot (x) ((pgprot_t) { (x) }) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __va (x) ((void *)((unsigned long)(x) + PAGE_OFFSET))#define __pa (x) ((unsigned long) (x) - PAGE_OFFSET)@@ -73,7 +73,7 @@ static inline unsigned long virt_to_pfn(const void *kaddr)#define virt_addr_valid (kaddr) (pfn_valid(virt_to_pfn(kaddr))) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm-generic/memory_model.h> #include <asm-generic/getorder.h> arch/openrisc/include/asm/pgtable.h +2
-2@@ -23,7 +23,7 @@#include <asm-generic/pgtable-nopmd.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/mmu.h> #include <asm/fixmap.h> @@ -432,5 +432,5 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)typedef pte_t *pte_addr_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PGTABLE_H */ arch/openrisc/include/asm/processor.h +2
-2@@ -39,7 +39,7 @@*/ #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct task_struct ;@@ -78,5 +78,5 @@ void show_registers(struct pt_regs *regs);#define cpu_relax () barrier() -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PROCESSOR_H */ arch/openrisc/include/asm/ptrace.h +2
-2@@ -27,7 +27,7 @@* they share a cacheline (not done yet, though... future optimization). */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * This struct describes how the registers are laid out on the kernel stack * during a syscall or other kernel entry. @@ -147,7 +147,7 @@ static inline unsigned long regs_get_register(struct pt_regs *regs, return *(unsigned long *)((unsigned long)regs + offset); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Offsets used by 'ptrace' system call interface. arch/openrisc/include/asm/setup.h +1
-1@@ -8,7 +8,7 @@#include <linux/init.h> #include <asm-generic/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void __init or1k_early_setup (void *fdt);#endif arch/openrisc/include/asm/thread_info.h +3
-3@@ -17,7 +17,7 @@#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/types.h> #include <asm/processor.h> #endif @@ -38,7 +38,7 @@* - if the contents of this structure are changed, the assembly constants * must also be changed */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct thread_info { struct task_struct *task; /* main task structure */@@ -58,7 +58,7 @@ struct thread_info {* * preempt_count needs to be 1 initially, until the scheduler is functional. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \
arch/openrisc/include/asm/thread_info.h register struct thread_info *current_thread_info_reg asm("r10");
Quoted 9 lines
arch/openrisc/include/asm/thread_info.h +1
-2@@ -75,7 +75,7 @@ register struct thread_info *current_thread_info_reg asm("r10");#define get_thread_info (ti) get_task_struct((ti)->task)#define put_thread_info (ti) put_task_struct((ti)->task) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * thread information flags -- 2.48.1
Friendly ping!
Jonas, Stefan, Stafford, could you maybe pick this (and the previous patch) up via your openrisc tree? (x86 and parisc already got merge via their respective architecture trees, so I guess the same should happen for this patch here, too).
Thanks,
Thomas
Stafford Horne
maintainerRe: [PATCH 23/41] openrisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
Quoted 164 lines · Thomas Huth
Quoted 152 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc Jonas Bonn<[email protected]>Cc Stefan Kristiansson<[email protected]>Cc Stafford Horne<[email protected]>Signed-off-by Thomas Huth<[email protected]>--- arch/openrisc/include/asm/mmu.h | 2 +- arch/openrisc/include/asm/page.h | 8 ++++---- arch/openrisc/include/asm/pgtable.h | 4 ++-- arch/openrisc/include/asm/processor.h | 4 ++-- arch/openrisc/include/asm/ptrace.h | 4 ++-- arch/openrisc/include/asm/setup.h | 2 +- arch/openrisc/include/asm/thread_info.h | 8 ++++---- 7 files changed, 16 insertions(+), 16 deletions(-)arch/openrisc/include/asm/mmu.h +1
-1@@ -15,7 +15,7 @@#ifndef __ASM_OPENRISC_MMU_H#define __ASM_OPENRISC_MMU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef unsigned long mm_context_t ;#endif arch/openrisc/include/asm/page.h +4
-4@@ -25,7 +25,7 @@*/ #include <asm/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define clear_page (page) memset((page), 0, PAGE_SIZE)#define copy_page (to, from) memcpy((to), (from), PAGE_SIZE)@@ -55,10 +55,10 @@ typedef struct page *pgtable_t;#define __pgd (x) ((pgd_t) { (x) })#define __pgprot (x) ((pgprot_t) { (x) }) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __va (x) ((void *)((unsigned long)(x) + PAGE_OFFSET))#define __pa (x) ((unsigned long) (x) - PAGE_OFFSET)@@ -73,7 +73,7 @@ static inline unsigned long virt_to_pfn(const void *kaddr)#define virt_addr_valid (kaddr) (pfn_valid(virt_to_pfn(kaddr))) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm-generic/memory_model.h> #include <asm-generic/getorder.h> arch/openrisc/include/asm/pgtable.h +2
-2@@ -23,7 +23,7 @@#include <asm-generic/pgtable-nopmd.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/mmu.h> #include <asm/fixmap.h> @@ -432,5 +432,5 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)typedef pte_t *pte_addr_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PGTABLE_H */ arch/openrisc/include/asm/processor.h +2
-2@@ -39,7 +39,7 @@*/ #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct task_struct ;@@ -78,5 +78,5 @@ void show_registers(struct pt_regs *regs);#define cpu_relax () barrier() -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PROCESSOR_H */ arch/openrisc/include/asm/ptrace.h +2
-2@@ -27,7 +27,7 @@* they share a cacheline (not done yet, though... future optimization). */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * This struct describes how the registers are laid out on the kernel stack * during a syscall or other kernel entry. @@ -147,7 +147,7 @@ static inline unsigned long regs_get_register(struct pt_regs *regs, return *(unsigned long *)((unsigned long)regs + offset); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Offsets used by 'ptrace' system call interface. arch/openrisc/include/asm/setup.h +1
-1@@ -8,7 +8,7 @@#include <linux/init.h> #include <asm-generic/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void __init or1k_early_setup (void *fdt);#endif arch/openrisc/include/asm/thread_info.h +3
-3@@ -17,7 +17,7 @@#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/types.h> #include <asm/processor.h> #endif @@ -38,7 +38,7 @@* - if the contents of this structure are changed, the assembly constants * must also be changed */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct thread_info { struct task_struct *task; /* main task structure */@@ -58,7 +58,7 @@ struct thread_info {* * preempt_count needs to be 1 initially, until the scheduler is functional. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \arch/openrisc/include/asm/thread_info.h register struct thread_info *current_thread_info_reg asm("r10"); · line 80
Quoted 8 lines
arch/openrisc/include/asm/thread_info.h +1
-2@@ -75,7 +75,7 @@ register struct thread_info *current_thread_info_reg asm("r10");#define get_thread_info (ti) get_task_struct((ti)->task)#define put_thread_info (ti) put_task_struct((ti)->task) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * thread information flags -- 2.48.1 Friendly ping!
Quoted 4 lines
Jonas, Stefan, Stafford, could you maybe pick this (and the previous patch) up via your openrisc tree? (x86 and parisc already got merge via their respective architecture trees, so I guess the same should happen for this patch here, too).
Hi Thomas,
Sure, this might not make it for the 6.16 merge window as we may not have time for it to have a cycle in linux-next. Is that ok?
-Stafford
Stafford Horne
maintainerRe: [PATCH 23/41] openrisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
Quoted 170 lines · Stafford Horne
Quoted 164 lines · Thomas Huth
Quoted 152 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc Jonas Bonn<[email protected]>Cc Stefan Kristiansson<[email protected]>Cc Stafford Horne<[email protected]>Signed-off-by Thomas Huth<[email protected]>--- arch/openrisc/include/asm/mmu.h | 2 +- arch/openrisc/include/asm/page.h | 8 ++++---- arch/openrisc/include/asm/pgtable.h | 4 ++-- arch/openrisc/include/asm/processor.h | 4 ++-- arch/openrisc/include/asm/ptrace.h | 4 ++-- arch/openrisc/include/asm/setup.h | 2 +- arch/openrisc/include/asm/thread_info.h | 8 ++++---- 7 files changed, 16 insertions(+), 16 deletions(-)arch/openrisc/include/asm/mmu.h +1
-1@@ -15,7 +15,7 @@#ifndef __ASM_OPENRISC_MMU_H#define __ASM_OPENRISC_MMU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef unsigned long mm_context_t ;#endif arch/openrisc/include/asm/page.h +4
-4@@ -25,7 +25,7 @@*/ #include <asm/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define clear_page (page) memset((page), 0, PAGE_SIZE)#define copy_page (to, from) memcpy((to), (from), PAGE_SIZE)@@ -55,10 +55,10 @@ typedef struct page *pgtable_t;#define __pgd (x) ((pgd_t) { (x) })#define __pgprot (x) ((pgprot_t) { (x) }) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __va (x) ((void *)((unsigned long)(x) + PAGE_OFFSET))#define __pa (x) ((unsigned long) (x) - PAGE_OFFSET)@@ -73,7 +73,7 @@ static inline unsigned long virt_to_pfn(const void *kaddr)#define virt_addr_valid (kaddr) (pfn_valid(virt_to_pfn(kaddr))) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm-generic/memory_model.h> #include <asm-generic/getorder.h> arch/openrisc/include/asm/pgtable.h +2
-2@@ -23,7 +23,7 @@#include <asm-generic/pgtable-nopmd.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/mmu.h> #include <asm/fixmap.h> @@ -432,5 +432,5 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)typedef pte_t *pte_addr_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PGTABLE_H */ arch/openrisc/include/asm/processor.h +2
-2@@ -39,7 +39,7 @@*/ #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct task_struct ;@@ -78,5 +78,5 @@ void show_registers(struct pt_regs *regs);#define cpu_relax () barrier() -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PROCESSOR_H */ arch/openrisc/include/asm/ptrace.h +2
-2@@ -27,7 +27,7 @@* they share a cacheline (not done yet, though... future optimization). */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * This struct describes how the registers are laid out on the kernel stack * during a syscall or other kernel entry. @@ -147,7 +147,7 @@ static inline unsigned long regs_get_register(struct pt_regs *regs, return *(unsigned long *)((unsigned long)regs + offset); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Offsets used by 'ptrace' system call interface. arch/openrisc/include/asm/setup.h +1
-1@@ -8,7 +8,7 @@#include <linux/init.h> #include <asm-generic/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void __init or1k_early_setup (void *fdt);#endif arch/openrisc/include/asm/thread_info.h +3
-3@@ -17,7 +17,7 @@#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/types.h> #include <asm/processor.h> #endif @@ -38,7 +38,7 @@* - if the contents of this structure are changed, the assembly constants * must also be changed */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct thread_info { struct task_struct *task; /* main task structure */@@ -58,7 +58,7 @@ struct thread_info {* * preempt_count needs to be 1 initially, until the scheduler is functional. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \arch/openrisc/include/asm/thread_info.h register struct thread_info *current_thread_info_reg asm("r10"); · line 80
Quoted 8 lines
arch/openrisc/include/asm/thread_info.h +1
-2@@ -75,7 +75,7 @@ register struct thread_info *current_thread_info_reg asm("r10");#define get_thread_info (ti) get_task_struct((ti)->task)#define put_thread_info (ti) put_task_struct((ti)->task) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * thread information flags -- 2.48.1 Friendly ping!
Quoted 4 lines
Jonas, Stefan, Stafford, could you maybe pick this (and the previous patch) up via your openrisc tree? (x86 and parisc already got merge via their respective architecture trees, so I guess the same should happen for this patch here, too).
Quoted 4 lines
Hi Thomas,
Sure, this might not make it for the 6.16 merge window as we may not have time for it to have a cycle in linux-next. Is that ok?
I have now put this in the OpenRISC queue. Note, I didn't pay much attention to this series as it seemed generally OK to me and usually I figured these trivial treewide patches should be merged via other means.
I expect it will take time to get all maintainers pick these up individually.
Do you have a plan for those? In the past I think Arnd has helped.
-Stafford
Re: [PATCH 23/41] openrisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
Quoted 176 lines · Stafford Horne
Quoted 170 lines · Stafford Horne
Quoted 164 lines · Thomas Huth
Quoted 152 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc Jonas Bonn<[email protected]>Cc Stefan Kristiansson<[email protected]>Cc Stafford Horne<[email protected]>Signed-off-by Thomas Huth<[email protected]>--- arch/openrisc/include/asm/mmu.h | 2 +- arch/openrisc/include/asm/page.h | 8 ++++---- arch/openrisc/include/asm/pgtable.h | 4 ++-- arch/openrisc/include/asm/processor.h | 4 ++-- arch/openrisc/include/asm/ptrace.h | 4 ++-- arch/openrisc/include/asm/setup.h | 2 +- arch/openrisc/include/asm/thread_info.h | 8 ++++---- 7 files changed, 16 insertions(+), 16 deletions(-)arch/openrisc/include/asm/mmu.h +1
-1@@ -15,7 +15,7 @@#ifndef __ASM_OPENRISC_MMU_H#define __ASM_OPENRISC_MMU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef unsigned long mm_context_t ;#endif arch/openrisc/include/asm/page.h +4
-4@@ -25,7 +25,7 @@*/ #include <asm/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define clear_page (page) memset((page), 0, PAGE_SIZE)#define copy_page (to, from) memcpy((to), (from), PAGE_SIZE)@@ -55,10 +55,10 @@ typedef struct page *pgtable_t;#define __pgd (x) ((pgd_t) { (x) })#define __pgprot (x) ((pgprot_t) { (x) }) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __va (x) ((void *)((unsigned long)(x) + PAGE_OFFSET))#define __pa (x) ((unsigned long) (x) - PAGE_OFFSET)@@ -73,7 +73,7 @@ static inline unsigned long virt_to_pfn(const void *kaddr)#define virt_addr_valid (kaddr) (pfn_valid(virt_to_pfn(kaddr))) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm-generic/memory_model.h> #include <asm-generic/getorder.h> arch/openrisc/include/asm/pgtable.h +2
-2@@ -23,7 +23,7 @@#include <asm-generic/pgtable-nopmd.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/mmu.h> #include <asm/fixmap.h> @@ -432,5 +432,5 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)typedef pte_t *pte_addr_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PGTABLE_H */ arch/openrisc/include/asm/processor.h +2
-2@@ -39,7 +39,7 @@*/ #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct task_struct ;@@ -78,5 +78,5 @@ void show_registers(struct pt_regs *regs);#define cpu_relax () barrier() -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PROCESSOR_H */ arch/openrisc/include/asm/ptrace.h +2
-2@@ -27,7 +27,7 @@* they share a cacheline (not done yet, though... future optimization). */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * This struct describes how the registers are laid out on the kernel stack * during a syscall or other kernel entry. @@ -147,7 +147,7 @@ static inline unsigned long regs_get_register(struct pt_regs *regs, return *(unsigned long *)((unsigned long)regs + offset); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Offsets used by 'ptrace' system call interface. arch/openrisc/include/asm/setup.h +1
-1@@ -8,7 +8,7 @@#include <linux/init.h> #include <asm-generic/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void __init or1k_early_setup (void *fdt);#endif arch/openrisc/include/asm/thread_info.h +3
-3@@ -17,7 +17,7 @@#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/types.h> #include <asm/processor.h> #endif @@ -38,7 +38,7 @@* - if the contents of this structure are changed, the assembly constants * must also be changed */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct thread_info { struct task_struct *task; /* main task structure */@@ -58,7 +58,7 @@ struct thread_info {* * preempt_count needs to be 1 initially, until the scheduler is functional. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \arch/openrisc/include/asm/thread_info.h register struct thread_info *current_thread_info_reg asm("r10"); · line 80
Quoted 8 lines
arch/openrisc/include/asm/thread_info.h +1
-2@@ -75,7 +75,7 @@ register struct thread_info *current_thread_info_reg asm("r10");#define get_thread_info (ti) get_task_struct((ti)->task)#define put_thread_info (ti) put_task_struct((ti)->task) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * thread information flags -- 2.48.1 Friendly ping!
Quoted 4 lines
Jonas, Stefan, Stafford, could you maybe pick this (and the previous patch) up via your openrisc tree? (x86 and parisc already got merge via their respective architecture trees, so I guess the same should happen for this patch here, too).
Quoted 4 lines
Hi Thomas,
Sure, this might not make it for the 6.16 merge window as we may not have time for it to have a cycle in linux-next. Is that ok?
Quoted 7 lines
I have now put this in the OpenRISC queue. Note, I didn't pay much attention to this series as it seemed generally OK to me and usually I figured these trivial treewide patches should be merged via other means.
I expect it will take time to get all maintainers pick these up individually.
Do you have a plan for those? In the past I think Arnd has helped.
I need to respin a couple of patches (s390x, powerpc, ...) since the headers have already changed in the related spots, so I'm going to send those to the respective maintainers when I'm done. Once those got merged, I guess I'm going to respin the remaining patches and ask Arnd for help...
Thomas
Re: [PATCH 23/41] openrisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
In reply to Stafford HorneQuoted 170 lines · Stafford Horne
Quoted 164 lines · Thomas Huth
Quoted 152 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc Jonas Bonn<[email protected]>Cc Stefan Kristiansson<[email protected]>Cc Stafford Horne<[email protected]>Signed-off-by Thomas Huth<[email protected]>--- arch/openrisc/include/asm/mmu.h | 2 +- arch/openrisc/include/asm/page.h | 8 ++++---- arch/openrisc/include/asm/pgtable.h | 4 ++-- arch/openrisc/include/asm/processor.h | 4 ++-- arch/openrisc/include/asm/ptrace.h | 4 ++-- arch/openrisc/include/asm/setup.h | 2 +- arch/openrisc/include/asm/thread_info.h | 8 ++++---- 7 files changed, 16 insertions(+), 16 deletions(-)arch/openrisc/include/asm/mmu.h +1
-1@@ -15,7 +15,7 @@#ifndef __ASM_OPENRISC_MMU_H#define __ASM_OPENRISC_MMU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef unsigned long mm_context_t ;#endif arch/openrisc/include/asm/page.h +4
-4@@ -25,7 +25,7 @@*/ #include <asm/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define clear_page (page) memset((page), 0, PAGE_SIZE)#define copy_page (to, from) memcpy((to), (from), PAGE_SIZE)@@ -55,10 +55,10 @@ typedef struct page *pgtable_t;#define __pgd (x) ((pgd_t) { (x) })#define __pgprot (x) ((pgprot_t) { (x) }) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __va (x) ((void *)((unsigned long)(x) + PAGE_OFFSET))#define __pa (x) ((unsigned long) (x) - PAGE_OFFSET)@@ -73,7 +73,7 @@ static inline unsigned long virt_to_pfn(const void *kaddr)#define virt_addr_valid (kaddr) (pfn_valid(virt_to_pfn(kaddr))) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm-generic/memory_model.h> #include <asm-generic/getorder.h> arch/openrisc/include/asm/pgtable.h +2
-2@@ -23,7 +23,7 @@#include <asm-generic/pgtable-nopmd.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/mmu.h> #include <asm/fixmap.h> @@ -432,5 +432,5 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)typedef pte_t *pte_addr_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PGTABLE_H */ arch/openrisc/include/asm/processor.h +2
-2@@ -39,7 +39,7 @@*/ #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct task_struct ;@@ -78,5 +78,5 @@ void show_registers(struct pt_regs *regs);#define cpu_relax () barrier() -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PROCESSOR_H */ arch/openrisc/include/asm/ptrace.h +2
-2@@ -27,7 +27,7 @@* they share a cacheline (not done yet, though... future optimization). */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * This struct describes how the registers are laid out on the kernel stack * during a syscall or other kernel entry. @@ -147,7 +147,7 @@ static inline unsigned long regs_get_register(struct pt_regs *regs, return *(unsigned long *)((unsigned long)regs + offset); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Offsets used by 'ptrace' system call interface. arch/openrisc/include/asm/setup.h +1
-1@@ -8,7 +8,7 @@#include <linux/init.h> #include <asm-generic/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void __init or1k_early_setup (void *fdt);#endif arch/openrisc/include/asm/thread_info.h +3
-3@@ -17,7 +17,7 @@#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/types.h> #include <asm/processor.h> #endif @@ -38,7 +38,7 @@* - if the contents of this structure are changed, the assembly constants * must also be changed */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct thread_info { struct task_struct *task; /* main task structure */@@ -58,7 +58,7 @@ struct thread_info {* * preempt_count needs to be 1 initially, until the scheduler is functional. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \arch/openrisc/include/asm/thread_info.h register struct thread_info *current_thread_info_reg asm("r10"); · line 80
Quoted 8 lines
arch/openrisc/include/asm/thread_info.h +1
-2@@ -75,7 +75,7 @@ register struct thread_info *current_thread_info_reg asm("r10");#define get_thread_info (ti) get_task_struct((ti)->task)#define put_thread_info (ti) put_task_struct((ti)->task) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * thread information flags -- 2.48.1 Friendly ping!
Quoted 4 lines
Jonas, Stefan, Stafford, could you maybe pick this (and the previous patch) up via your openrisc tree? (x86 and parisc already got merge via their respective architecture trees, so I guess the same should happen for this patch here, too).
Quoted 4 lines
Hi Thomas,
Sure, this might not make it for the 6.16 merge window as we may not have time for it to have a cycle in linux-next. Is that ok?
Hi Stafford,
yes, that's fine, there is no hurry for these patches.
Thanks,
Thomas
Stafford Horne
maintainerRe: [PATCH 23/41] openrisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
In reply to Thomas HuthQuoted 10 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Hi Thomas,
I have applied this to the OpenRISC queue, as discussed on 22.
Thanks,
-Stafford
Quoted 181 lines
Cc Jonas Bonn <[email protected]>Cc Stefan Kristiansson <[email protected]>Cc Stafford Horne <[email protected]>Signed-off-by Thomas Huth <[email protected]>--- arch/openrisc/include/asm/mmu.h | 2 +- arch/openrisc/include/asm/page.h | 8 ++++---- arch/openrisc/include/asm/pgtable.h | 4 ++-- arch/openrisc/include/asm/processor.h | 4 ++-- arch/openrisc/include/asm/ptrace.h | 4 ++-- arch/openrisc/include/asm/setup.h | 2 +- arch/openrisc/include/asm/thread_info.h | 8 ++++---- 7 files changed, 16 insertions(+), 16 deletions(-)arch/openrisc/include/asm/mmu.h +1
-1@@ -15,7 +15,7 @@#ifndef __ASM_OPENRISC_MMU_H#define __ASM_OPENRISC_MMU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef unsigned long mm_context_t ;#endif arch/openrisc/include/asm/page.h +4
-4@@ -25,7 +25,7 @@*/ #include <asm/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define clear_page (page) memset((page), 0, PAGE_SIZE)#define copy_page (to, from) memcpy((to), (from), PAGE_SIZE)@@ -55,10 +55,10 @@ typedef struct page *pgtable_t;#define __pgd (x) ((pgd_t) { (x) })#define __pgprot (x) ((pgprot_t) { (x) }) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __va (x) ((void *)((unsigned long)(x) + PAGE_OFFSET))#define __pa (x) ((unsigned long) (x) - PAGE_OFFSET)@@ -73,7 +73,7 @@ static inline unsigned long virt_to_pfn(const void *kaddr)#define virt_addr_valid (kaddr) (pfn_valid(virt_to_pfn(kaddr))) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm-generic/memory_model.h> #include <asm-generic/getorder.h> arch/openrisc/include/asm/pgtable.h +2
-2@@ -23,7 +23,7 @@#include <asm-generic/pgtable-nopmd.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/mmu.h> #include <asm/fixmap.h> @@ -432,5 +432,5 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)typedef pte_t *pte_addr_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PGTABLE_H */ arch/openrisc/include/asm/processor.h +2
-2@@ -39,7 +39,7 @@*/ #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct task_struct ;@@ -78,5 +78,5 @@ void show_registers(struct pt_regs *regs);#define cpu_relax () barrier() -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_OPENRISC_PROCESSOR_H */ arch/openrisc/include/asm/ptrace.h +2
-2@@ -27,7 +27,7 @@* they share a cacheline (not done yet, though... future optimization). */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * This struct describes how the registers are laid out on the kernel stack * during a syscall or other kernel entry. @@ -147,7 +147,7 @@ static inline unsigned long regs_get_register(struct pt_regs *regs, return *(unsigned long *)((unsigned long)regs + offset); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Offsets used by 'ptrace' system call interface. arch/openrisc/include/asm/setup.h +1
-1@@ -8,7 +8,7 @@#include <linux/init.h> #include <asm-generic/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void __init or1k_early_setup (void *fdt);#endif arch/openrisc/include/asm/thread_info.h +4
-4@@ -17,7 +17,7 @@#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/types.h> #include <asm/processor.h> #endif @@ -38,7 +38,7 @@* - if the contents of this structure are changed, the assembly constants * must also be changed */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct thread_info { struct task_struct *task; /* main task structure */@@ -58,7 +58,7 @@ struct thread_info {* * preempt_count needs to be 1 initially, until the scheduler is functional. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \@@ -75,7 +75,7 @@ register struct thread_info *current_thread_info_reg asm("r10");#define get_thread_info (ti) get_task_struct((ti)->task)#define put_thread_info (ti) put_task_struct((ti)->task) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * thread information flags Signature · 1 line
2.48.1
PATCH 24/41 parisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
In reply to Thomas Huth__ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembly code.
This is almost a completely mechanical patch (done with a simple "sed -i" statement), except for a manual change in the file arch/parisc/include/uapi/asm/signal.h (where a comment was missing some underscores).
--- arch/parisc/include/uapi/asm/pdc.h | 4 ++-- arch/parisc/include/uapi/asm/signal.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
arch/parisc/include/uapi/asm/pdc.h +2 -2
@@ -361,7 +361,7 @@/* size of the pdc_result buffer for firmware.c */ #define NUM_PDC_RESULT 32 -#if !defined(__ASSEMBLY__) +#if !defined(__ASSEMBLER__)/* flags for hardware_path */ #define PF_AUTOBOOT 0x80
@@ -741,6 +741,6 @@ struct pdc_firm_test_get_rtn_block { /* PDC_MODEL/PDC_FIRM_TEST_GET */#define PIRANHA_CPU_ID 0x13#define MAKO_CPU_ID 0x14 -#endif /* !defined(__ASSEMBLY__) */ +#endif /* !defined(__ASSEMBLER__) */ #endif /* _UAPI_PARISC_PDC_H */
arch/parisc/include/uapi/asm/signal.h +2 -2
@@ -61,7 +61,7 @@#define _NSIG_BPW (sizeof(unsigned long) * 8)#define _NSIG_WORDS (_NSIG / _NSIG_BPW) -# ifndef __ASSEMBLY__ +# ifndef __ASSEMBLER__# include <linux/types.h>
@@ -80,5 +80,5 @@ typedef struct sigaltstack {__kernel_size_t ss_size; } stack_t; -#endif /* !__ASSEMBLY */ +#endif /* !__ASSEMBLER__ */ #endif /* _UAPI_ASM_PARISC_SIGNAL_H */
Signature · 1 line
2.48.1
Re: [PATCH 24/41] parisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
Quoted 11 lines · Thomas Huth
__ASSEMBLY__is only defined by theMakefileof the kernel, so this is not really useful for uapi headers (unless the userspaceMakefiledefines it, too). Let's switch to__ASSEMBLER__which gets set automatically by the compiler when compiling assembly code.This is almost a completely mechanical patch (done with a simple "sed -i" statement), except for a manual change in the file
arch/parisc/include/uapi/asm/signal.h(where a comment was missing some underscores).
Quoted 8 lines
Cc "James E.J. Bottomley" <[email protected]>Cc Helge Deller <[email protected]>Signed-off-by Thomas Huth <[email protected]>--- arch/parisc/include/uapi/asm/pdc.h | 4 ++-- arch/parisc/include/uapi/asm/signal.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
applied to the parisc git tree.
Thanks!
Helge
PATCH 25/41 parisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
In reply to Thomas HuthWhile the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize on the __ASSEMBLER__ macro that is provided by the compilers now.
This is mostly a completely mechanical patch (done with a simple "sed -i" statement), except for some manual tweaks in the files arch/parisc/include/asm/smp.h, arch/parisc/include/asm/signal.h, arch/parisc/include/asm/thread_info.h and arch/parisc/include/asm/vdso.h that had the macro spelled in a wrong way.
--- arch/parisc/include/asm/alternative.h | 4 ++-- arch/parisc/include/asm/assembly.h | 4 ++-- arch/parisc/include/asm/barrier.h | 4 ++-- arch/parisc/include/asm/cache.h | 4 ++-- arch/parisc/include/asm/current.h | 4 ++-- arch/parisc/include/asm/dwarf.h | 4 ++-- arch/parisc/include/asm/fixmap.h | 4 ++-- arch/parisc/include/asm/ftrace.h | 4 ++-- arch/parisc/include/asm/jump_label.h | 4 ++-- arch/parisc/include/asm/kexec.h | 4 ++-- arch/parisc/include/asm/kgdb.h | 2 +- arch/parisc/include/asm/linkage.h | 4 ++-- arch/parisc/include/asm/page.h | 6 +++--- arch/parisc/include/asm/pdc.h | 4 ++-- arch/parisc/include/asm/pdcpat.h | 4 ++-- arch/parisc/include/asm/pgtable.h | 8 ++++---- arch/parisc/include/asm/prefetch.h | 4 ++-- arch/parisc/include/asm/processor.h | 8 ++++---- arch/parisc/include/asm/psw.h | 4 ++-- arch/parisc/include/asm/signal.h | 4 ++-- arch/parisc/include/asm/smp.h | 4 ++-- arch/parisc/include/asm/spinlock_types.h | 4 ++-- arch/parisc/include/asm/thread_info.h | 4 ++-- arch/parisc/include/asm/traps.h | 2 +- arch/parisc/include/asm/unistd.h | 4 ++-- arch/parisc/include/asm/vdso.h | 4 ++-- 26 files changed, 55 insertions(+), 55 deletions(-)
arch/parisc/include/asm/alternative.h +2 -2
@@ -13,7 +13,7 @@#define INSN_PxTLB 0x02/* modify pdtlb, pitlb */ #define INSN_NOP 0x08000240/* nop */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/init.h> #include <linux/types.h>
@@ -61,6 +61,6 @@ void apply_alternatives(struct alt_instr *start, struct alt_instr *end, .word (new_instr_ptr - .) ! \ .previous -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_PARISC_ALTERNATIVE_H */
arch/parisc/include/asm/assembly.h +2 -2
@@ -53,7 +53,7 @@#define SR_TEMP2 2#define SR_USER 3 -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#ifdef CONFIG_64BIT #define LDREG ldd
@@ -582,5 +582,5 @@ .previous -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif
arch/parisc/include/asm/barrier.h +2 -2
@@ -4,7 +4,7 @@#include <asm/alternative.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* The synchronize caches instruction executes as a nop on systems in which all memory references are performed in order. */
@@ -93,5 +93,5 @@ do { \ })#include <asm-generic/barrier.h> -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_BARRIER_H */
arch/parisc/include/asm/cache.h +2 -2
@@ -16,7 +16,7 @@#define L1_CACHE_BYTES 16#define L1_CACHE_SHIFT 4 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define SMP_CACHE_BYTES L1_CACHE_BYTES
@@ -66,7 +66,7 @@ void parisc_setup_cache_timing(void); ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) :::"memory")#define asm_syncdma () asm volatile("syncdma" :::"memory") -#endif /* ! __ASSEMBLY__ */ +#endif /* ! __ASSEMBLER__ */ /* Classes of processor wrt: disabling space register hashing */
arch/parisc/include/asm/current.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_PARISC_CURRENT_H#define _ASM_PARISC_CURRENT_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct task_struct ; static __always_inline struct task_struct *get_current(void)
@@ -16,6 +16,6 @@ static __always_inline struct task_struct *get_current(void)#define current get_current() -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_PARISC_CURRENT_H */
arch/parisc/include/asm/dwarf.h +2 -2
@@ -6,7 +6,7 @@#ifndef _ASM_PARISC_DWARF_H#define _ASM_PARISC_DWARF_H -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define CFI_STARTPROC .cfi_startproc#define CFI_ENDPROC .cfi_endproc
@@ -15,6 +15,6 @@#define CFI_REL_OFFSET .cfi_rel_offset#define CFI_UNDEFINED .cfi_undefined -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_PARISC_DWARF_H */
arch/parisc/include/asm/fixmap.h +2 -2
@@ -39,7 +39,7 @@#define KERNEL_MAP_START (GATEWAY_PAGE_SIZE)#define KERNEL_MAP_END (FIXMAP_START) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ enum fixed_addresses {
@@ -59,6 +59,6 @@ extern void *parisc_vmalloc_start;void set_fixmap (enum fixed_addresses idx,phys_addr_t phys);void clear_fixmap (enum fixed_addresses idx); -#endif /*__ASSEMBLY__*/ +#endif /*__ASSEMBLER__*/ #endif /*_ASM_FIXMAP_H*/
arch/parisc/include/asm/ftrace.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_PARISC_FTRACE_H#define _ASM_PARISC_FTRACE_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void mcount (void );#define MCOUNT_ADDR ((unsigned long)mcount)
@@ -29,6 +29,6 @@ unsigned long ftrace_call_adjust(unsigned long addr);#define ftrace_return_address (n) return_address(n) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_PARISC_FTRACE_H */
arch/parisc/include/asm/jump_label.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_PARISC_JUMP_LABEL_H#define _ASM_PARISC_JUMP_LABEL_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <linux/stringify.h>
@@ -44,5 +44,5 @@ static __always_inline bool arch_static_branch_jump(struct static_key *key, boolreturn true; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif
arch/parisc/include/asm/kexec.h +2 -2
@@ -14,7 +14,7 @@#define KEXEC_ARCH KEXEC_ARCH_PARISC#define ARCH_HAS_KIMAGE_ARCH -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct kimage_arch { unsigned long initrd_start;
@@ -28,6 +28,6 @@ static inline void crash_setup_regs(struct pt_regs *newregs,/* Dummy implementation for now */ } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_PARISC_KEXEC_H */
arch/parisc/include/asm/kgdb.h +1 -1
@@ -21,7 +21,7 @@#define CACHE_FLUSH_IS_SAFE 1 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void arch_kgdb_breakpoint (void ) {
arch/parisc/include/asm/linkage.h +2 -2
@@ -15,7 +15,7 @@*/ #define ASM_NL ! -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define ENTRY (name) \ ALIGN !\
@@ -35,6 +35,6 @@ name: ASM_NL\ .procend ASM_NL\ ENDPROC(name) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_PARISC_LINKAGE_H */
arch/parisc/include/asm/page.h +3 -3
@@ -8,7 +8,7 @@#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/types.h> #include <asm/cache.h>
@@ -93,7 +93,7 @@ typedef struct __physmem_range {extern physmem_range_t pmem_ranges[];extern int npmem_ranges; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* WARNING: The definitions below must match exactly to sizeof(pte_t) * etc
@@ -139,7 +139,7 @@ extern int npmem_ranges;#define KERNEL_BINARY_TEXT_START (__PAGE_OFFSET + 0x100000)/* These macros don't work for 64-bit C code -- don't allow in C at all */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__# define PA (x) ((x)-__PAGE_OFFSET)# define VA (x) ((x)+__PAGE_OFFSET)#endif
arch/parisc/include/asm/pdc.h +2 -2
@@ -4,7 +4,7 @@#include <uapi/asm/pdc.h> -#if !defined(__ASSEMBLY__) +#if !defined(__ASSEMBLER__)extern int parisc_narrow_firmware;
@@ -109,5 +109,5 @@ static inline char * os_id_to_string(u16 os_id) { } } -#endif /* !defined(__ASSEMBLY__) */ +#endif /* !defined(__ASSEMBLER__) */ #endif /* _PARISC_PDC_H */
arch/parisc/include/asm/pdcpat.h +2 -2
@@ -210,7 +210,7 @@#define PDC_PAT_SYSTEM_INFO 76L/* PDC_PAT_SYSTEM_INFO uses the same options as PDC_SYSTEM_INFO function. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #ifdef CONFIG_64BIT
@@ -389,6 +389,6 @@ extern int pdc_pat_mem_get_dimm_phys_location(struct pdc_pat_mem_phys_mem_location *pret, unsigned long phys_addr); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* ! __PARISC_PATPDC_H */
arch/parisc/include/asm/pgtable.h +4 -4
@@ -12,7 +12,7 @@#include <asm/fixmap.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * we simulate an x86-style page table for the linux mm code */
@@ -73,7 +73,7 @@ extern void __update_cache(pte_t pte);mb (); \ } while(0) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #define pte_ERROR (e) \ printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
@@ -226,7 +226,7 @@ extern void __update_cache(pte_t pte);#define PxD_FLAG_SHIFT (4)#define PxD_VALUE_SHIFT (PFN_PTE_SHIFT-PxD_FLAG_SHIFT) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER)#define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE)
@@ -477,7 +477,7 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr,#define pte_same (A ,B ) (pte_val(A) == pte_val(B)) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* TLB page size encoding - see table 3-1 in parisc20.pdf */
arch/parisc/include/asm/prefetch.h +2 -2
@@ -16,7 +16,7 @@#ifndef __ASM_PARISC_PREFETCH_H#define __ASM_PARISC_PREFETCH_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_PREFETCH #define ARCH_HAS_PREFETCH
@@ -40,6 +40,6 @@ static inline void prefetchw(const void *addr)#endif /* CONFIG_PA20 */ #endif /* CONFIG_PREFETCH */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_PARISC_PROCESSOR_H */
arch/parisc/include/asm/processor.h +4 -4
@@ -9,7 +9,7 @@#ifndef __ASM_PARISC_PROCESSOR_H#define __ASM_PARISC_PROCESSOR_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/threads.h> #include <linux/irqreturn.h>
@@ -20,7 +20,7 @@#include <asm/ptrace.h> #include <asm/types.h> #include <asm/percpu.h> -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define HAVE_ARCH_PICK_MMAP_LAYOUT
@@ -45,7 +45,7 @@#define STACK_TOP TASK_SIZE#define STACK_TOP_MAX DEFAULT_TASK_SIZE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct rlimit ;unsigned long mmap_upper_limit (struct rlimit *rlim_stack);
@@ -325,6 +325,6 @@ extern void sba_directed_lmmio(struct parisc_device *, struct resource *);extern void lba_set_iregs (struct parisc_device *lba,u32 ibase,u32 imask);extern void ccio_cujo20_fixup (struct parisc_device *dev,u32 iovp); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_PARISC_PROCESSOR_H */
arch/parisc/include/asm/psw.h +2 -2
@@ -60,7 +60,7 @@#define USER_PSW_MASK (WIDE_PSW | PSW_T | PSW_N | PSW_X | PSW_B | PSW_V | PSW_CB)#define USER_PSW (PSW_C | PSW_Q | PSW_P | PSW_D | PSW_I) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* The program status word as bitfields. */ struct pa_psw {
@@ -99,6 +99,6 @@ struct pa_psw {#define pa_psw (task) ((struct pa_psw *) ((char *) (task) + TASK_PT_PSW))#endif -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif
arch/parisc/include/asm/signal.h +2 -2
@@ -4,12 +4,12 @@#include <uapi/asm/signal.h> -# ifndef __ASSEMBLY__ +# ifndef __ASSEMBLER__/* Most things should be clean enough to redefine this at will, if care is taken to make libc match. */ #include <asm/sigcontext.h> -#endif /* !__ASSEMBLY */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_PARISC_SIGNAL_H */
arch/parisc/include/asm/smp.h +2 -2
@@ -12,7 +12,7 @@ extern int init_per_cpu(int cpuid);#define PDC_OS_BOOT_RENDEZVOUS 0x10#define PDC_OS_BOOT_RENDEZVOUS_HI 0x28 -#ifndef ASSEMBLY +#ifndef __ASSEMBLER__#include <linux/bitops.h> #include <linux/threads.h> /* for NR_CPUS */ #include <linux/cpumask.h>
@@ -34,7 +34,7 @@ extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);#define raw_smp_processor_id () (current_thread_info()->cpu) -#endif /* !ASSEMBLY */ +#endif /* !__ASSEMBLER__ */ #else /* CONFIG_SMP */
arch/parisc/include/asm/spinlock_types.h +2 -2
@@ -6,7 +6,7 @@#define SPINLOCK_BREAK_INSN 0x0000c006/* break 6,6 */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ typedef struct { volatile unsigned int lock[4];
@@ -26,7 +26,7 @@ typedef struct {volatile unsigned int counter; } arch_rwlock_t; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define __ARCH_RW_LOCK_UNLOCKED__ 0x01000000#define __ARCH_RW_LOCK_UNLOCKED { .lock_mutex = __ARCH_SPIN_LOCK_UNLOCKED, \
arch/parisc/include/asm/thread_info.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_PARISC_THREAD_INFO_H#define _ASM_PARISC_THREAD_INFO_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/processor.h> #include <asm/special_insns.h>
@@ -20,7 +20,7 @@ struct thread_info { .preempt_count = INIT_PREEMPT_COUNT, \ } -#endif /* !__ASSEMBLY */ +#endif /* !__ASSEMBLER__ */ /* thread information allocation */
arch/parisc/include/asm/traps.h +1 -1
@@ -4,7 +4,7 @@#define PARISC_ITLB_TRAP 6/* defined by architecture. Do not change. */ -#if !defined(__ASSEMBLY__) +#if !defined(__ASSEMBLER__)struct pt_regs ;/* traps.c */
arch/parisc/include/asm/unistd.h +2 -2
@@ -6,7 +6,7 @@#define __NR_Linux_syscalls __NR_syscalls -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define SYS_ify (syscall_name) __NR_##syscall_name
@@ -144,7 +144,7 @@#define __ARCH_WANT_SYS_UTIME#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #undef STR
arch/parisc/include/asm/vdso.h +2 -2
@@ -2,7 +2,7 @@#ifndef __PARISC_VDSO_H__#define __PARISC_VDSO_H__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_64BIT #include <generated/vdso64-offsets.h>
@@ -14,7 +14,7 @@extern struct vdso_data *vdso_data; -#endif /* __ASSEMBLY __ */ +#endif /* __ASSEMBLER__ */ /* Default link addresses for the vDSOs */ #define VDSO_LBASE 0
Signature · 1 line
2.48.1
Re: [PATCH 25/41] parisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
Quoted 38 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is mostly a completely mechanical patch (done with a simple "sed -i" statement), except for some manual tweaks in the files
arch/parisc/include/asm/smp.h,arch/parisc/include/asm/signal.h,arch/parisc/include/asm/thread_info.handarch/parisc/include/asm/vdso.hthat had the macro spelled in a wrong way.Cc "James E.J. Bottomley" <[email protected]>Cc Helge Deller <[email protected]>Signed-off-by Thomas Huth <[email protected]>--- arch/parisc/include/asm/alternative.h | 4 ++-- arch/parisc/include/asm/assembly.h | 4 ++-- arch/parisc/include/asm/barrier.h | 4 ++-- arch/parisc/include/asm/cache.h | 4 ++-- arch/parisc/include/asm/current.h | 4 ++-- arch/parisc/include/asm/dwarf.h | 4 ++-- arch/parisc/include/asm/fixmap.h | 4 ++-- arch/parisc/include/asm/ftrace.h | 4 ++-- arch/parisc/include/asm/jump_label.h | 4 ++-- arch/parisc/include/asm/kexec.h | 4 ++-- arch/parisc/include/asm/kgdb.h | 2 +- arch/parisc/include/asm/linkage.h | 4 ++-- arch/parisc/include/asm/page.h | 6 +++--- arch/parisc/include/asm/pdc.h | 4 ++-- arch/parisc/include/asm/pdcpat.h | 4 ++-- arch/parisc/include/asm/pgtable.h | 8 ++++---- arch/parisc/include/asm/prefetch.h | 4 ++-- arch/parisc/include/asm/processor.h | 8 ++++---- arch/parisc/include/asm/psw.h | 4 ++--
Quoted 8 lines
arch/parisc/include/asm/signal.h | 4 ++-- arch/parisc/include/asm/smp.h | 4 ++-- arch/parisc/include/asm/spinlock_types.h | 4 ++-- arch/parisc/include/asm/thread_info.h | 4 ++-- arch/parisc/include/asm/traps.h | 2 +- arch/parisc/include/asm/unistd.h | 4 ++-- arch/parisc/include/asm/vdso.h | 4 ++-- 26 files changed, 55 insertions(+), 55 deletions(-)
applied to the parisc git tree.
Thanks!
Helge
PATCH 26/41 powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
In reply to Thomas Huth__ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembly code.
This is a completely mechanical patch (done with a simple "sed -i" statement).
--- arch/powerpc/include/uapi/asm/opal-prd.h | 4 ++-- arch/powerpc/include/uapi/asm/ptrace.h | 12 ++++++------ arch/powerpc/include/uapi/asm/types.h | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-)
arch/powerpc/include/uapi/asm/opal-prd.h +2 -2
@@ -40,7 +40,7 @@#define OPAL_PRD_SCOM_READ _IOR('o', 0x02, struct opal_prd_scom)#define OPAL_PRD_SCOM_WRITE _IOW('o', 0x03, struct opal_prd_scom) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct opal_prd_info { __u64 version;
@@ -54,6 +54,6 @@ struct opal_prd_scom {__s64 rc; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _UAPI_ASM_POWERPC_OPAL_PRD_H */
arch/powerpc/include/uapi/asm/ptrace.h +6 -6
@@ -27,7 +27,7 @@#include <linux/types.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef __KERNEL__struct user_pt_regs
@@ -57,7 +57,7 @@ struct pt_regs unsigned long result; /* Result of a system call */ }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /*
@@ -200,7 +200,7 @@ struct pt_regs#define PPC_PTRACE_SETHWDEBUG 0x88#define PPC_PTRACE_DELHWDEBUG 0x87 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct ppc_debug_info { __u32 version; /* Only version 1 exists to date */
@@ -212,7 +212,7 @@ struct ppc_debug_info { __u64 features; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * features will have bits indication whether there is support for:
@@ -224,7 +224,7 @@ struct ppc_debug_info {#define PPC_DEBUG_FEATURE_DATA_BP_DAWR 0x0000000000000010#define PPC_DEBUG_FEATURE_DATA_BP_ARCH_31 0x0000000000000020 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct ppc_hw_breakpoint { __u32 version; /* currently, version must be 1 */
@@ -236,7 +236,7 @@ struct ppc_hw_breakpoint { __u64 condition_value; /* contents of the DVC register */ }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Trigger Type
arch/powerpc/include/uapi/asm/types.h +2 -2
@@ -28,14 +28,14 @@# include <asm-generic/int-ll64.h> #endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef struct {__u32 u[4 ]; } __attribute__((aligned (16 )))__vector128 ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _UAPI_ASM_POWERPC_TYPES_H */
Signature · 1 line
2.48.1
PATCH 27/41 powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
In reply to Thomas HuthWhile the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize on the __ASSEMBLER__ macro that is provided by the compilers now.
This is almost a completely mechanical patch (done with a simple "sed -i" statement), apart from tweaking two comments manually in arch/powerpc/include/asm/bug.h and arch/powerpc/include/asm/kasan.h (which did not have proper underscores at the end) and fixing a checkpatch error about spaces in arch/powerpc/include/asm/spu_csa.h.
--- arch/powerpc/boot/page.h | 2 +- arch/powerpc/include/asm/asm-const.h | 2 +- arch/powerpc/include/asm/barrier.h | 2 +- arch/powerpc/include/asm/book3s/32/kup.h | 4 ++-- arch/powerpc/include/asm/book3s/32/mmu-hash.h | 8 ++++---- arch/powerpc/include/asm/book3s/32/pgtable.h | 12 ++++++------ arch/powerpc/include/asm/book3s/64/hash-4k.h | 4 ++-- arch/powerpc/include/asm/book3s/64/hash-64k.h | 4 ++-- arch/powerpc/include/asm/book3s/64/hash.h | 4 ++-- arch/powerpc/include/asm/book3s/64/kup.h | 6 +++--- arch/powerpc/include/asm/book3s/64/mmu-hash.h | 12 ++++++------ arch/powerpc/include/asm/book3s/64/mmu.h | 8 ++++---- arch/powerpc/include/asm/book3s/64/pgtable-64k.h | 4 ++-- arch/powerpc/include/asm/book3s/64/pgtable.h | 10 +++++----- arch/powerpc/include/asm/book3s/64/radix.h | 8 ++++---- arch/powerpc/include/asm/book3s/64/slice.h | 4 ++-- arch/powerpc/include/asm/bug.h | 14 +++++++------- arch/powerpc/include/asm/cache.h | 4 ++-- arch/powerpc/include/asm/cpu_has_feature.h | 4 ++-- arch/powerpc/include/asm/cpuidle.h | 2 +- arch/powerpc/include/asm/cputable.h | 8 ++++---- arch/powerpc/include/asm/cputhreads.h | 4 ++-- arch/powerpc/include/asm/dcr-generic.h | 4 ++-- arch/powerpc/include/asm/dcr-native.h | 4 ++-- arch/powerpc/include/asm/dcr.h | 4 ++-- arch/powerpc/include/asm/epapr_hcalls.h | 4 ++-- arch/powerpc/include/asm/exception-64e.h | 2 +- arch/powerpc/include/asm/exception-64s.h | 6 +++--- arch/powerpc/include/asm/extable.h | 2 +- arch/powerpc/include/asm/feature-fixups.h | 6 +++--- arch/powerpc/include/asm/firmware.h | 4 ++-- arch/powerpc/include/asm/fixmap.h | 4 ++-- arch/powerpc/include/asm/ftrace.h | 8 ++++---- arch/powerpc/include/asm/head-64.h | 4 ++-- arch/powerpc/include/asm/hvcall.h | 4 ++-- arch/powerpc/include/asm/hw_irq.h | 4 ++-- arch/powerpc/include/asm/interrupt.h | 4 ++-- arch/powerpc/include/asm/irqflags.h | 2 +- arch/powerpc/include/asm/jump_label.h | 2 +- arch/powerpc/include/asm/kasan.h | 4 ++-- arch/powerpc/include/asm/kdump.h | 4 ++-- arch/powerpc/include/asm/kexec.h | 4 ++-- arch/powerpc/include/asm/kgdb.h | 4 ++-- arch/powerpc/include/asm/kup.h | 8 ++++---- arch/powerpc/include/asm/kvm_asm.h | 2 +- arch/powerpc/include/asm/kvm_book3s_asm.h | 6 +++--- arch/powerpc/include/asm/kvm_booke_hv_asm.h | 4 ++-- arch/powerpc/include/asm/lv1call.h | 4 ++-- arch/powerpc/include/asm/mmu.h | 8 ++++---- arch/powerpc/include/asm/mpc52xx.h | 12 ++++++------ arch/powerpc/include/asm/nohash/32/kup-8xx.h | 4 ++-- arch/powerpc/include/asm/nohash/32/mmu-44x.h | 4 ++-- arch/powerpc/include/asm/nohash/32/mmu-8xx.h | 4 ++-- arch/powerpc/include/asm/nohash/32/pgtable.h | 12 ++++++------ arch/powerpc/include/asm/nohash/32/pte-8xx.h | 2 +- arch/powerpc/include/asm/nohash/64/pgtable-4k.h | 8 ++++---- arch/powerpc/include/asm/nohash/64/pgtable.h | 4 ++-- arch/powerpc/include/asm/nohash/kup-booke.h | 4 ++-- arch/powerpc/include/asm/nohash/mmu-e500.h | 4 ++-- arch/powerpc/include/asm/nohash/pgtable.h | 6 +++--- arch/powerpc/include/asm/nohash/pte-e500.h | 4 ++-- arch/powerpc/include/asm/opal-api.h | 4 ++-- arch/powerpc/include/asm/opal.h | 4 ++-- arch/powerpc/include/asm/page.h | 14 +++++++------- arch/powerpc/include/asm/page_32.h | 4 ++-- arch/powerpc/include/asm/page_64.h | 4 ++-- arch/powerpc/include/asm/pgtable.h | 8 ++++---- arch/powerpc/include/asm/ppc_asm.h | 4 ++-- arch/powerpc/include/asm/processor.h | 8 ++++---- arch/powerpc/include/asm/ptrace.h | 6 +++--- arch/powerpc/include/asm/reg.h | 6 +++--- arch/powerpc/include/asm/reg_booke.h | 4 ++-- arch/powerpc/include/asm/reg_fsl_emb.h | 4 ++-- arch/powerpc/include/asm/setup.h | 4 ++-- arch/powerpc/include/asm/smp.h | 4 ++-- arch/powerpc/include/asm/spu_csa.h | 4 ++-- arch/powerpc/include/asm/synch.h | 4 ++-- arch/powerpc/include/asm/thread_info.h | 8 ++++---- arch/powerpc/include/asm/tm.h | 4 ++-- arch/powerpc/include/asm/types.h | 4 ++-- arch/powerpc/include/asm/unistd.h | 4 ++-- arch/powerpc/include/asm/vdso.h | 6 +++--- arch/powerpc/include/asm/vdso/getrandom.h | 4 ++-- arch/powerpc/include/asm/vdso/gettimeofday.h | 4 ++-- arch/powerpc/include/asm/vdso/processor.h | 4 ++-- arch/powerpc/include/asm/vdso/vsyscall.h | 4 ++-- arch/powerpc/include/asm/vdso_datapage.h | 6 +++--- arch/powerpc/kernel/head_booke.h | 4 ++-- arch/powerpc/net/bpf_jit.h | 2 +- arch/powerpc/platforms/powernv/subcore.h | 4 ++-- arch/powerpc/xmon/xmon_bpts.h | 4 ++-- .../selftests/powerpc/include/instructions.h | 2 +- 92 files changed, 232 insertions(+), 232 deletions(-)
arch/powerpc/boot/page.h +1 -1
@@ -5,7 +5,7 @@* Copyright (C) 2001 PPC64 Team, IBM Corp */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define ASM_CONST (x) x#else #define __ASM_CONST (x) x##UL
arch/powerpc/include/asm/asm-const.h +1 -1
@@ -1,7 +1,7 @@#ifndef _ASM_POWERPC_ASM_CONST_H#define _ASM_POWERPC_ASM_CONST_H -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__# define stringify_in_c (...) __VA_ARGS__# define ASM_CONST (x) x#else
arch/powerpc/include/asm/barrier.h +1 -1
@@ -7,7 +7,7 @@#include <asm/asm-const.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ppc-opcode.h> #endif
arch/powerpc/include/asm/book3s/32/kup.h +2 -2
@@ -7,7 +7,7 @@#include <asm/mmu.h> #include <asm/synch.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_PPC_KUAP
@@ -170,6 +170,6 @@ __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write)#endif /* CONFIG_PPC_KUAP */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_BOOK3S_32_KUP_H */
arch/powerpc/include/asm/book3s/32/mmu-hash.h +4 -4
@@ -29,7 +29,7 @@#define BPP_RX 0x01/* Read only */ #define BPP_RW 0x02/* Read/write */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Contort a phys_addr_t into the right format/bits for a BAT */ #ifdef CONFIG_PHYS_64BIT #define BAT_PHYS_ADDR (x) ((u32)((x & 0x00000000fffe0000ULL) | \
@@ -47,7 +47,7 @@ struct ppc_bat {u32 batu; u32 batl; }; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * Hash table
@@ -64,7 +64,7 @@ struct ppc_bat {#define SR_KP 0x20000000/* User key */ #define SR_KS 0x40000000/* Supervisor key */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#include <asm/asm-offsets.h>
@@ -225,7 +225,7 @@ static __always_inline void update_user_segments(u32 val)int __init find_free_bat (void );unsigned int bat_block_size (unsigned long base,unsigned long top); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* We happily ignore the smaller BATs on 601, we don't actually use * those definitions on hash32 at the moment anyway
arch/powerpc/include/asm/book3s/32/pgtable.h +6 -6
@@ -102,7 +102,7 @@#define PMD_CACHE_INDEX PMD_INDEX_SIZE#define PUD_CACHE_INDEX PUD_INDEX_SIZE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define PTE_TABLE_SIZE (sizeof(pte_t) << PTE_INDEX_SIZE)#define PMD_TABLE_SIZE 0#define PUD_TABLE_SIZE 0
@@ -110,7 +110,7 @@/* Bits to mask out from a PMD to get to the PTE page */ #define PMD_MASKED_BITS (PTE_TABLE_SIZE - 1) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define PTRS_PER_PTE (1 << PTE_INDEX_SIZE)#define PTRS_PER_PGD (1 << PGD_INDEX_SIZE)
@@ -132,12 +132,12 @@#define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__int map_kernel_page (unsigned long va,phys_addr_t pa,pgprot_t prot);void unmap_kernel_page (unsigned long va); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * This is the bottom of the PKMAP area with HIGHMEM or an arbitrary
@@ -199,7 +199,7 @@ void unmap_kernel_page(unsigned long va);#define MODULES_SIZE (CONFIG_MODULES_SIZE * SZ_1M)#define MODULES_VADDR (MODULES_END - MODULES_SIZE) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/sched.h> #include <linux/threads.h>
@@ -602,6 +602,6 @@ static inline pgprot_t pgprot_writecombine(pgprot_t prot)return pgprot_noncached_wc (prot); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_POWERPC_BOOK3S_32_PGTABLE_H */
arch/powerpc/include/asm/book3s/64/hash-4k.h +2 -2
@@ -32,7 +32,7 @@*/ #define H_KERN_VIRT_START ASM_CONST(0xc0003d0000000000) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define H_PTE_TABLE_SIZE (sizeof(pte_t) << H_PTE_INDEX_SIZE)#define H_PMD_TABLE_SIZE (sizeof(pmd_t) << H_PMD_INDEX_SIZE)#define H_PUD_TABLE_SIZE (sizeof(pud_t) << H_PUD_INDEX_SIZE)
@@ -174,6 +174,6 @@ static inline pmd_t hash__pmd_mkdevmap(pmd_t pmd)return pmd; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_POWERPC_BOOK3S_64_HASH_4K_H */
arch/powerpc/include/asm/book3s/64/hash-64k.h +2 -2
@@ -79,7 +79,7 @@#endif #define H_PMD_FRAG_NR (PAGE_SIZE >> H_PMD_FRAG_SIZE_SHIFT) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/errno.h> /*
@@ -286,6 +286,6 @@ static inline pmd_t hash__pmd_mkdevmap(pmd_t pmd)return __pmd (pmd_val (pmd) | (_PAGE_PTE |H_PAGE_THP_HUGE | _PAGE_DEVMAP)); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_BOOK3S_64_HASH_64K_H */
arch/powerpc/include/asm/book3s/64/hash.h +2 -2
@@ -112,7 +112,7 @@#define H_PMD_BAD_BITS (PTE_TABLE_SIZE-1)#define H_PUD_BAD_BITS (PMD_TABLE_SIZE-1) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline int get_region_id (unsigned long ea) {int region_id;
@@ -295,6 +295,6 @@ int hash__create_section_mapping(unsigned long start, unsigned long end, int nid, pgprot_t prot);int hash__remove_section_mapping (unsigned long start,unsigned long end); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_BOOK3S_64_HASH_H */
arch/powerpc/include/asm/book3s/64/kup.h +3 -3
@@ -10,7 +10,7 @@#define AMR_KUEP_BLOCKED UL(0x5455555555555555)#define AMR_KUAP_BLOCKED (AMR_KUAP_BLOCK_READ | AMR_KUAP_BLOCK_WRITE) -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ .macro kuap_user_restore gpr1, gpr2#if defined(CONFIG_PPC_PKEY )
@@ -191,7 +191,7 @@#endif .endm -#else /* !__ASSEMBLY__ */ +#else /* !__ASSEMBLER__ */#include <linux/jump_label.h> #include <linux/sched.h>
@@ -413,6 +413,6 @@ static __always_inline void restore_user_access(unsigned long flags)if (static_branch_unlikely (&uaccess_flush_key) && flags ==AMR_KUAP_BLOCKED )do_uaccess_flush (); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_BOOK3S_64_KUP_H */
arch/powerpc/include/asm/book3s/64/mmu-hash.h +6 -6
@@ -130,7 +130,7 @@#define POWER9_TLB_SETS_HASH 256/* # sets in POWER9 TLB Hash mode */ #define POWER9_TLB_SETS_RADIX 128/* # sets in POWER9 TLB Radix mode */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct mmu_hash_ops { void (*hpte_invalidate)(unsigned long slot,
@@ -220,7 +220,7 @@ static inline unsigned long get_sllp_encoding(int psize) return sllp; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Segment sizes.
@@ -248,7 +248,7 @@ static inline unsigned long get_sllp_encoding(int psize)#define LP_BITS 8#define LP_MASK (i) ((0xFF >> (i)) << LP_SHIFT) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline int slb_vsid_shift (int ssize) {
@@ -532,7 +532,7 @@ void slb_set_size(u16 size);static inline void slb_set_size (u16 size) { }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * VSID allocation (256MB segment)
@@ -668,7 +668,7 @@ static inline void slb_set_size(u16 size) { }#define SLICE_ARRAY_SIZE (H_PGTABLE_RANGE >> 41)#define LOW_SLICE_ARRAY_SZ (BITS_PER_LONG / BITS_PER_BYTE)#define TASK_SLICE_ARRAY_SZ (x) ((x)->hash_context->slb_addr_limit >> 41) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_PPC_SUBPAGE_PROT /*
@@ -881,5 +881,5 @@ static inline unsigned long mk_vsid_data(unsigned long ea, int ssize,return __mk_vsid_data (get_kernel_vsid (ea, ssize), ssize, flags); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_BOOK3S_64_MMU_HASH_H_ */
arch/powerpc/include/asm/book3s/64/mmu.h +4 -4
@@ -4,7 +4,7 @@#include <asm/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * Page size definition *
@@ -26,12 +26,12 @@ struct mmu_psize_def { }; };extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT ]; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* 64-bit classic hash table MMU */ #include <asm/book3s/64/mmu-hash.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * ISA 3.0 partition and process table entry format */
@@ -288,5 +288,5 @@ static inline unsigned long get_user_vsid(mm_context_t *ctx, }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_BOOK3S_64_MMU_H_ */
arch/powerpc/include/asm/book3s/64/pgtable-64k.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_POWERPC_BOOK3S_64_PGTABLE_64K_H#define _ASM_POWERPC_BOOK3S_64_PGTABLE_64K_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_HUGETLB_PAGE #endif /* CONFIG_HUGETLB_PAGE */
@@ -14,5 +14,5 @@ static inline int remap_4k_pfn(struct vm_area_struct *vma, unsigned long addr,BUG ();return hash__remap_4k_pfn (vma, addr, pfn, prot); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /*_ASM_POWERPC_BOOK3S_64_PGTABLE_64K_H */
arch/powerpc/include/asm/book3s/64/pgtable.h +5 -5
@@ -4,7 +4,7 @@#include <asm-generic/pgtable-nop4d.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/mmdebug.h> #include <linux/bug.h> #include <linux/sizes.h>
@@ -144,7 +144,7 @@#define PAGE_KERNEL_RO __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO)#define PAGE_KERNEL_ROX __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * page table defines */
@@ -292,7 +292,7 @@ static inline unsigned long pud_leaf_size(pud_t pud) else return PUD_SIZE; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm/book3s/64/hash.h> #include <asm/book3s/64/radix.h>
@@ -328,7 +328,7 @@ static inline unsigned long pud_leaf_size(pud_t pud)#define FIXADDR_SIZE SZ_32M#define FIXADDR_TOP (IOREMAP_END + FIXADDR_SIZE) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ static inline unsigned long pte_update(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long clr,
@@ -1431,5 +1431,5 @@ static inline bool is_pte_rw_upgrade(unsigned long old_val, unsigned long new_vareturn false; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_BOOK3S_64_PGTABLE_H_ */
arch/powerpc/include/asm/book3s/64/radix.h +4 -4
@@ -4,7 +4,7 @@#include <asm/asm-const.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/cmpxchg.h> #endif
@@ -14,7 +14,7 @@#include <asm/book3s/64/radix-4k.h> #endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/book3s/64/tlbflush-radix.h> #include <asm/cpu_has_feature.h> #endif
@@ -132,7 +132,7 @@#define RADIX_VMEMMAP_SIZE RADIX_KERN_MAP_SIZE#define RADIX_VMEMMAP_END (RADIX_VMEMMAP_START + RADIX_VMEMMAP_SIZE) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define RADIX_PTE_TABLE_SIZE (sizeof(pte_t) << RADIX_PTE_INDEX_SIZE)#define RADIX_PMD_TABLE_SIZE (sizeof(pmd_t) << RADIX_PMD_INDEX_SIZE)#define RADIX_PUD_TABLE_SIZE (sizeof(pud_t) << RADIX_PUD_INDEX_SIZE)
@@ -372,5 +372,5 @@ int __meminit vmemmap_populate_compound_pages(unsigned long start_pfn,unsigned long start, unsigned long end, int node, struct dev_pagemap *pgmap); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif
arch/powerpc/include/asm/book3s/64/slice.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_POWERPC_BOOK3S_64_SLICE_H#define _ASM_POWERPC_BOOK3S_64_SLICE_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_PPC_64S_HASH_MMU #ifdef CONFIG_HUGETLB_PAGE
@@ -37,6 +37,6 @@ void slice_set_range_psize(struct mm_struct *mm, unsigned long start,void slice_init_new_context_exec (struct mm_struct *mm);void slice_setup_new_exec (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_BOOK3S_64_SLICE_H */
arch/powerpc/include/asm/bug.h +7 -7
@@ -7,7 +7,7 @@#ifdef CONFIG_BUG -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#include <asm/asm-offsets.h> #ifdef CONFIG_DEBUG_BUGVERBOSE .macro EMIT_BUG_ENTRY addr,file,line,flags
@@ -31,7 +31,7 @@ .endm#endif /* verbose */ -#else /* !__ASSEMBLY__ */ +#else /* !__ASSEMBLER__ */ /* _EMIT_BUG_ENTRY expects args %0,%1,%2,%3 to be FILE, LINE, flags and sizeof(struct bug_entry), respectively */ #ifdef CONFIG_DEBUG_BUGVERBOSE
@@ -101,12 +101,12 @@#define HAVE_ARCH_WARN_ON #endif -#endif /* __ASSEMBLY __ */ +#endif /* __ASSEMBLER__ */ #else -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ .macro EMIT_BUG_ENTRY addr,file,line,flags .endm -#else /* !__ASSEMBLY__ */ +#else /* !__ASSEMBLER__ */ #define _EMIT_BUG_ENTRY#endif #endif /* CONFIG_BUG */
@@ -115,7 +115,7 @@#include <asm-generic/bug.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct pt_regs ;void hash__do_page_fault (struct pt_regs *);
@@ -128,7 +128,7 @@ void die_mce(const char *str, struct pt_regs *regs, long err);extern bool die_will_crash (void );extern void panic_flush_kmsg_start (void );extern void panic_flush_kmsg_end (void ); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_BUG_H */
arch/powerpc/include/asm/cache.h +2 -2
@@ -37,7 +37,7 @@#define ARCH_DMA_MINALIGN L1_CACHE_BYTES#endif -#if !defined(__ASSEMBLY__) +#if !defined(__ASSEMBLER__)#ifdef CONFIG_PPC64 struct ppc_cache_info {
@@ -145,6 +145,6 @@ static inline void iccci(void *addr) asmvolatile ("iccci 0, %0" : :"r" (addr) :"memory" ); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_CACHE_H */
arch/powerpc/include/asm/cpu_has_feature.h +2 -2
@@ -2,7 +2,7 @@#ifndef __ASM_POWERPC_CPU_HAS_FEATURE_H#define __ASM_POWERPC_CPU_HAS_FEATURE_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/bug.h> #include <asm/cputable.h>
@@ -51,5 +51,5 @@ static __always_inline bool cpu_has_feature(unsigned long feature) }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_POWERPC_CPU_HAS_FEATURE_H */
arch/powerpc/include/asm/cpuidle.h +1 -1
@@ -68,7 +68,7 @@#define ERR_EC_ESL_MISMATCH -1#define ERR_DEEP_STATE_ESL_MISMATCH -2 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define PNV_IDLE_NAME_LEN 16 struct pnv_idle_states_t {
arch/powerpc/include/asm/cputable.h +4 -4
@@ -7,7 +7,7 @@#include <uapi/asm/cputable.h> #include <asm/asm-const.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* This structure can grow, it's real size is used by head.S code * via the mkdefs mechanism.
@@ -103,7 +103,7 @@ extern void cpu_feature_keys_init(void);static inline void cpu_feature_keys_init (void ) { }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* CPU kernel features */
@@ -195,7 +195,7 @@ static inline void cpu_feature_keys_init(void) { }#define CPU_FTR_DEXCR_NPHIE LONG_ASM_CONST(0x0010000000000000)#define CPU_FTR_P11_PVR LONG_ASM_CONST(0x0020000000000000) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define CPU_FTR_PPCAS_ARCH_V2 (CPU_FTR_NOEXECUTE)
@@ -602,6 +602,6 @@ enum {*/ #define HBP_NUM_MAX 2 -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_POWERPC_CPUTABLE_H */
arch/powerpc/include/asm/cputhreads.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_POWERPC_CPUTHREADS_H#define _ASM_POWERPC_CPUTHREADS_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/cpumask.h> #include <asm/cpu_has_feature.h>
@@ -107,7 +107,7 @@ static inline u32 get_tensr(void)void book3e_start_thread (int thread,unsigned long addr);void book3e_stop_thread (int thread); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define INVALID_THREAD_HWID 0x0fff
arch/powerpc/include/asm/dcr-generic.h +2 -2
@@ -7,7 +7,7 @@#ifndef _ASM_POWERPC_DCR_GENERIC_H#define _ASM_POWERPC_DCR_GENERIC_H#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__enum host_type_t {DCR_HOST_MMIO ,DCR_HOST_NATIVE ,DCR_HOST_INVALID };
@@ -29,7 +29,7 @@ extern u32 dcr_read_generic(dcr_host_t host, unsigned int dcr_n);extern void dcr_write_generic (dcr_host_t host,unsigned int dcr_n,u32 value); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_DCR_GENERIC_H */
arch/powerpc/include/asm/dcr-native.h +2 -2
@@ -7,7 +7,7 @@#ifndef _ASM_POWERPC_DCR_NATIVE_H#define _ASM_POWERPC_DCR_NATIVE_H#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/spinlock.h> #include <asm/cputable.h>
@@ -139,6 +139,6 @@ static inline void __dcri_clrset(int base_addr, int base_data, int reg, DCRN_ ## base ## _CONFIG_DATA, \ reg, clr, set) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_DCR_NATIVE_H */
arch/powerpc/include/asm/dcr.h +2 -2
@@ -7,7 +7,7 @@#ifndef _ASM_POWERPC_DCR_H#define _ASM_POWERPC_DCR_H#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_PPC_DCR #ifdef CONFIG_PPC_DCR_NATIVE
@@ -60,6 +60,6 @@ extern unsigned int dcr_resource_start(const struct device_node *np,extern unsigned int dcr_resource_len (const struct device_node *np,unsigned int index);#endif /* CONFIG_PPC_DCR */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_DCR_H */
arch/powerpc/include/asm/epapr_hcalls.h +2 -2
@@ -52,7 +52,7 @@#include <uapi/asm/epapr_hcalls.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <linux/errno.h> #include <asm/byteorder.h>
@@ -571,5 +571,5 @@ static inline long epapr_hypercall4(unsigned int nr, unsigned long p1, in[3 ] = p4;return epapr_hypercall (in, out, nr); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _EPAPR_HCALLS_H */
arch/powerpc/include/asm/exception-64e.h +1 -1
@@ -149,7 +149,7 @@ exc_##label##_book3e:addi r11,r13,PACA_EXTLB ; \ TLB_MISS_RESTORE(r11) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned int interrupt_base_book3e;#endif
arch/powerpc/include/asm/exception-64s.h +3 -3
@@ -53,7 +53,7 @@*/ #define MAX_MCE_DEPTH 4 -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define STF_ENTRY_BARRIER_SLOT \ STF_ENTRY_BARRIER_FIXUP_SECTION; \
@@ -170,9 +170,9 @@RFSCV ; \ b rfscv_flush_fallback -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ /* Prototype for function defined in exceptions-64s.S */ void do_uaccess_flush (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_EXCEPTION_H */
arch/powerpc/include/asm/extable.h +1 -1
@@ -17,7 +17,7 @@#define ARCH_HAS_RELATIVE_EXTABLE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct exception_table_entry { int insn;
arch/powerpc/include/asm/feature-fixups.h +3 -3
@@ -168,7 +168,7 @@ label##5: \#define ALT_FW_FTR_SECTION_END_IFCLR (msk) \ ALT_FW_FTR_SECTION_END_NESTED_IFCLR(msk, 97) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define ASM_FTR_IF (section_if, section_else, msk, val) \ stringify_in_c(BEGIN_FTR_SECTION) \
@@ -196,7 +196,7 @@ label##5: \#define ASM_MMU_FTR_IFCLR (section_if, section_else, msk) \ ASM_MMU_FTR_IF(section_if, section_else, (msk), 0) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* LWSYNC feature sections */ #define START_LWSYNC_SECTION (label) label##1:
@@ -276,7 +276,7 @@ label##3: \ FTR_ENTRY_OFFSET 956b-957b; \ .popsection; -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> extern long stf_barrier_fallback;
arch/powerpc/include/asm/firmware.h +2 -2
@@ -58,7 +58,7 @@#define FW_FEATURE_WATCHDOG ASM_CONST(0x0000080000000000)#define FW_FEATURE_PLPKS ASM_CONST(0x0000100000000000) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ enum { #ifdef CONFIG_PPC64
@@ -146,6 +146,6 @@ void pseries_probe_fw_features(void);static inline void pseries_probe_fw_features (void ) { }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* __ASM_POWERPC_FIRMWARE_H */
arch/powerpc/include/asm/fixmap.h +2 -2
@@ -14,7 +14,7 @@#ifndef _ASM_FIXMAP_H#define _ASM_FIXMAP_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/sizes.h> #include <linux/pgtable.h> #include <asm/page.h>
@@ -111,5 +111,5 @@ static inline void __set_fixmap(enum fixed_addresses idx,#define VIRT_IMMR_BASE (__fix_to_virt(FIX_IMMR_BASE))#endif -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif
arch/powerpc/include/asm/ftrace.h +4 -4
@@ -15,7 +15,7 @@#define FTRACE_MCOUNT_MAX_OFFSET 8#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void _mcount (void ); unsigned long prepare_ftrace_return(unsigned long parent, unsigned long ip,
@@ -69,14 +69,14 @@ struct ftrace_ops;void ftrace_graph_func (unsigned long ip,unsigned long parent_ip,struct ftrace_ops *op,struct ftrace_regs *fregs);#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS #define ARCH_SUPPORTS_FTRACE_OPS 1#endif #endif /* CONFIG_FUNCTION_TRACER */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_FTRACE_SYSCALLS /* * Some syscall entry functions on powerpc start with "ppc_" (fork and clone,
@@ -160,6 +160,6 @@ static inline void arch_ftrace_set_direct_caller(struct ftrace_regs *fregs, unsistatic inline void ftrace_free_init_tramp (void ) { }static inline unsigned long ftrace_call_adjust (unsigned long addr) {return addr; }#endif -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_POWERPC_FTRACE */
arch/powerpc/include/asm/head-64.h +2 -2
@@ -4,7 +4,7 @@#include <asm/cache.h> -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* * We can't do CPP stringification and concatination directly into the section * name for some reason, so these macros can do it for us.
@@ -167,6 +167,6 @@ end_##sname:// find label from _within_ sname #define ABS_ADDR (label, sname) (label - start_ ## sname + sname ## _start) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_HEAD_64_H */
arch/powerpc/include/asm/hvcall.h +2 -2
@@ -498,7 +498,7 @@#define H_GUEST_CAP_POWER11 (1UL<<(63-3))#define H_GUEST_CAP_BITMAP2 (1UL<<(63-63)) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> /**
@@ -699,6 +699,6 @@ struct hv_gpci_request_buffer {uint8_t bytes[HGPCI_MAX_DATA_BYTES ]; } __packed; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_HVCALL_H */
arch/powerpc/include/asm/hw_irq.h +2 -2
@@ -59,7 +59,7 @@#define IRQS_PMI_DISABLED 2#define IRQS_ALL_DISABLED (IRQS_DISABLED | IRQS_PMI_DISABLED) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void __hard_irq_enable (void ) {
@@ -516,6 +516,6 @@ static inline unsigned long mtmsr_isync_irqsafe(unsigned long msr)#define ARCH_IRQ_INIT_FLAGS IRQ_NOREQUEST -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_HW_IRQ_H */
arch/powerpc/include/asm/interrupt.h +2 -2
@@ -64,7 +64,7 @@#define INTERRUPT_DATA_LOAD_TLB_MISS_603 0x1100#define INTERRUPT_DATA_STORE_TLB_MISS_603 0x1200 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/context_tracking.h> #include <linux/hardirq.h>
@@ -675,6 +675,6 @@ unsigned long interrupt_exit_user_restart(struct pt_regs *regs);unsigned long interrupt_exit_kernel_restart (struct pt_regs *regs);#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_INTERRUPT_H */
arch/powerpc/include/asm/irqflags.h +1 -1
@@ -5,7 +5,7 @@#ifndef _ASM_IRQFLAGS_H#define _ASM_IRQFLAGS_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * Get definitions for arch_local_save_flags(x), etc. */
arch/powerpc/include/asm/jump_label.h +1 -1
@@ -6,7 +6,7 @@* Copyright 2010 Michael Ellerman, IBM Corp. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <asm/feature-fixups.h>
arch/powerpc/include/asm/kasan.h +2 -2
@@ -12,7 +12,7 @@#define EXPORT_SYMBOL_KASAN (fn)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/page.h> #include <linux/sizes.h>
@@ -80,5 +80,5 @@ void kasan_update_early_region(unsigned long k_start, unsigned long k_end, pte_tint kasan_init_shadow_page_tables (unsigned long k_start,unsigned long k_end);int kasan_init_region (void *start,size_t size); -#endif /* __ASSEMBLY */ +#endif /* __ASSEMBLER__ */ #endif
arch/powerpc/include/asm/kdump.h +2 -2
@@ -31,7 +31,7 @@#endif /* CONFIG_CRASH_DUMP */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#if defined(CONFIG_CRASH_DUMP ) && !defined(CONFIG_NONSTATIC_KERNEL )extern void reserve_kdump_trampoline (void );
@@ -42,6 +42,6 @@ static inline void reserve_kdump_trampoline(void) { ; }static inline void setup_kdump_trampoline (void ) { ; }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __PPC64_KDUMP_H */
arch/powerpc/include/asm/kexec.h +2 -2
@@ -49,7 +49,7 @@#define KEXEC_STATE_IRQS_OFF 1#define KEXEC_STATE_REAL_MODE 2 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/reg.h> typedef void (*crash_shutdown_t )(void );
@@ -208,6 +208,6 @@ static inline void reset_sprs(void) }#endif -#endif /* ! __ASSEMBLY__ */ +#endif /* ! __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_KEXEC_H */
arch/powerpc/include/asm/kgdb.h +2 -2
@@ -21,7 +21,7 @@#ifndef __POWERPC_KGDB_H__#define __POWERPC_KGDB_H__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define BREAK_INSTR_SIZE 4#define BUFMAX ((NUMREGBYTES * 2) + 512)
@@ -62,6 +62,6 @@ static inline void arch_kgdb_breakpoint(void)/* CR/LR, R1, R2, R13-R31 inclusive. */ #define NUMCRITREGBYTES (23 * sizeof(int))#endif /* 32/64 */ -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !__POWERPC_KGDB_H__ */ #endif /* __KERNEL__ */
arch/powerpc/include/asm/kup.h +4 -4
@@ -6,7 +6,7 @@#define KUAP_WRITE 2#define KUAP_READ_WRITE (KUAP_READ | KUAP_WRITE) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> static __always_inline bool kuap_is_disabled(void);
@@ -28,14 +28,14 @@ static __always_inline bool kuap_is_disabled(void);#include <asm/book3s/32/kup.h> #endif -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#ifndef CONFIG_PPC_KUAP .macro kuap_check_amr gpr1, gpr2 .endm#endif -#else /* !__ASSEMBLY__ */ +#else /* !__ASSEMBLER__ */ extern bool disable_kuep;extern bool disable_kuap;
@@ -181,6 +181,6 @@ static __always_inline void prevent_current_write_to_user(void)prevent_user_access (KUAP_WRITE ); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_POWERPC_KUAP_H_ */
arch/powerpc/include/asm/kvm_asm.h +1 -1
@@ -9,7 +9,7 @@#ifndef __POWERPC_KVM_ASM_H__#define __POWERPC_KVM_ASM_H__ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#ifdef CONFIG_64BIT #define PPC_STD (sreg, offset, areg) std sreg, (offset)(areg)#define PPC_LD (treg, offset, areg) ld treg, (offset)(areg)
arch/powerpc/include/asm/kvm_book3s_asm.h +3 -3
@@ -20,7 +20,7 @@/* Maximum number of subcores per physical core */ #define MAX_SUBCORES 4 -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#ifdef CONFIG_KVM_BOOK3S_HANDLER
@@ -58,7 +58,7 @@ kvmppc_resume_\intno:#endif /* CONFIG_KVM_BOOK3S_HANDLER */ -#else /*__ASSEMBLY__ */ +#else /*__ASSEMBLER__ */ struct kvmppc_vcore ;
@@ -150,7 +150,7 @@ struct kvmppc_book3s_shadow_vcpu { #endif }; -#endif /*__ASSEMBLY__ */ +#endif /*__ASSEMBLER__ */ /* Values for kvm_state */ #define KVM_HWTHREAD_IN_KERNEL 0
arch/powerpc/include/asm/kvm_booke_hv_asm.h +2 -2
@@ -8,7 +8,7 @@#include <asm/feature-fixups.h> -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* * All exceptions from guest state must go through KVM
@@ -64,5 +64,5 @@ END_FTR_SECTION_IFSET(CPU_FTR_EMB_HV)#endif .endm -#endif /*__ASSEMBLY__ */ +#endif /*__ASSEMBLER__ */ #endif /* ASM_KVM_BOOKE_HV_ASM_H */
arch/powerpc/include/asm/lv1call.h +2 -2
@@ -10,7 +10,7 @@#if !defined(_ASM_POWERPC_LV1CALL_H)#define _ASM_POWERPC_LV1CALL_H -#if !defined(__ASSEMBLY__) +#if !defined(__ASSEMBLER__)#include <linux/types.h> #include <linux/export.h>
@@ -211,7 +211,7 @@ {return _lv1_##name(LV1_##in##_IN_##out##_OUT_ARGS);} #endif -#endif /* !defined(__ASSEMBLY__) */ +#endif /* !defined(__ASSEMBLER__) */ /* lv1 call table */
arch/powerpc/include/asm/mmu.h +4 -4
@@ -137,7 +137,7 @@ MMU_FTR_CI_LARGE_PAGE#define MMU_FTRS_PA6T MMU_FTRS_DEFAULT_HPTE_ARCH_V2 | \ MMU_FTR_CI_LARGE_PAGE | MMU_FTR_NO_SLBIE_B -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/bug.h> #include <asm/cputable.h> #include <asm/page.h>
@@ -332,7 +332,7 @@ static inline bool strict_module_rwx_enabled(void) {return IS_ENABLED (CONFIG_STRICT_MODULE_RWX ) &&strict_kernel_rwx_enabled (); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* The kernel use the constants below to index in the page sizes array. * The use of fixed constants for this purpose is better for performances
@@ -377,7 +377,7 @@ static inline bool strict_module_rwx_enabled(void)#include <asm/book3s/64/mmu.h> #else /* CONFIG_PPC_BOOK3S_64 */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* MMU initialization */ extern void early_init_mmu (void );extern void early_init_mmu_secondary (void );
@@ -388,7 +388,7 @@ static inline void mmu_early_init_devtree(void) { }static inline void pkey_early_init_devtree (void ) {}extern void *abatron_pteptrs[2 ]; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif #if defined(CONFIG_PPC_BOOK3S_32 )
arch/powerpc/include/asm/mpc52xx.h +6 -6
@@ -13,10 +13,10 @@#ifndef __ASM_POWERPC_MPC52xx_H__#define __ASM_POWERPC_MPC52xx_H__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/types.h> #include <asm/mpc5xxx.h> -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <linux/suspend.h>
@@ -30,7 +30,7 @@/* Structures mapping of some unit register set */ /* ======================================================================== */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Memory Mapping Control */ struct mpc52xx_mmap_ctl {
@@ -258,14 +258,14 @@ struct mpc52xx_intr { u32 per_error; /* INTR + 0x38 */ }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* ========================================================================= */ /* Prototypes for MPC52xx sysdev */ /* ========================================================================= */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct device_node ;
@@ -297,7 +297,7 @@ extern void __init mpc52xx_setup_pci(void);static inline void mpc52xx_setup_pci (void ) { }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #ifdef CONFIG_PM struct mpc52xx_suspend {
arch/powerpc/include/asm/nohash/32/kup-8xx.h +2 -2
@@ -7,7 +7,7 @@#ifdef CONFIG_PPC_KUAP -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/reg.h>
@@ -82,7 +82,7 @@ __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write)return !((regs->kuap ^MD_APG_KUAP ) &0xff000000 ); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* CONFIG_PPC_KUAP */
arch/powerpc/include/asm/nohash/32/mmu-44x.h +2 -2
@@ -100,7 +100,7 @@#define PPC47x_TLB2_S_RW (PPC47x_TLB2_SW | PPC47x_TLB2_SR)#define PPC47x_TLB2_IMG (PPC47x_TLB2_I | PPC47x_TLB2_M | PPC47x_TLB2_G) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned int tlb_44x_hwater;extern unsigned int tlb_44x_index;
@@ -114,7 +114,7 @@ typedef struct {/* patch sites */ extern s32 patch__tlb_44x_hwater_D, patch__tlb_44x_hwater_I; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #ifndef CONFIG_PPC_EARLY_DEBUG_44x#define PPC44x_EARLY_TLBS 1
arch/powerpc/include/asm/nohash/32/mmu-8xx.h +2 -2
@@ -174,7 +174,7 @@#define MODULES_SIZE (CONFIG_MODULES_SIZE * SZ_1M)#define MODULES_VADDR (MODULES_END - MODULES_SIZE) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/mmdebug.h> #include <linux/sizes.h>
@@ -265,6 +265,6 @@ static inline int arch_vmap_pte_supported_shift(unsigned long size)extern s32 patch__itlbmiss_exit_1, patch__dtlbmiss_exit_1;extern s32 patch__itlbmiss_perf, patch__dtlbmiss_perf; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_POWERPC_MMU_8XX_H_ */
arch/powerpc/include/asm/nohash/32/pgtable.h +6 -6
@@ -4,12 +4,12 @@#include <asm-generic/pgtable-nopmd.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/sched.h> #include <linux/threads.h> #include <asm/mmu.h> /* For sub-arch specific PPC_PIN_SIZE */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define PTE_INDEX_SIZE PTE_SHIFT#define PMD_INDEX_SIZE 0
@@ -19,14 +19,14 @@#define PMD_CACHE_INDEX PMD_INDEX_SIZE#define PUD_CACHE_INDEX PUD_INDEX_SIZE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define PTE_TABLE_SIZE (sizeof(pte_t) << PTE_INDEX_SIZE)#define PMD_TABLE_SIZE 0#define PUD_TABLE_SIZE 0#define PGD_TABLE_SIZE (sizeof(pgd_t) << PGD_INDEX_SIZE)#define PMD_MASKED_BITS (PTE_TABLE_SIZE - 1) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define PTRS_PER_PTE (1 << PTE_INDEX_SIZE)#define PTRS_PER_PGD (1 << PGD_INDEX_SIZE)
@@ -149,7 +149,7 @@#define MAX_POSSIBLE_PHYSMEM_BITS 32#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define pmd_none (pmd) (!pmd_val(pmd))#define pmd_bad (pmd) (pmd_val(pmd) & _PMD_BAD)
@@ -199,6 +199,6 @@ static inline void pmd_clear(pmd_t *pmdp)/* We borrow LSB 2 to store the exclusive marker in swap PTEs. */ #define _PAGE_SWP_EXCLUSIVE 0x000004 -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_POWERPC_NOHASH_32_PGTABLE_H */
arch/powerpc/include/asm/nohash/32/pte-8xx.h +1 -1
@@ -83,7 +83,7 @@#include <asm/pgtable-masks.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline pte_t pte_wrprotect (pte_t pte) {return __pte (pte_val (pte) | _PAGE_RO);
arch/powerpc/include/asm/nohash/64/pgtable-4k.h +4 -4
@@ -14,12 +14,12 @@#define PUD_INDEX_SIZE 9#define PGD_INDEX_SIZE 9 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define PTE_TABLE_SIZE (sizeof(pte_t) << PTE_INDEX_SIZE)#define PMD_TABLE_SIZE (sizeof(pmd_t) << PMD_INDEX_SIZE)#define PUD_TABLE_SIZE (sizeof(pud_t) << PUD_INDEX_SIZE)#define PGD_TABLE_SIZE (sizeof(pgd_t) << PGD_INDEX_SIZE) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define PTRS_PER_PTE (1 << PTE_INDEX_SIZE)#define PTRS_PER_PMD (1 << PMD_INDEX_SIZE)
@@ -57,7 +57,7 @@#define p4d_bad (p4d) (p4d_val(p4d) == 0)#define p4d_present (p4d) (p4d_val(p4d) != 0) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline pud_t *p4d_pgtable (p4d_t p4d) {
@@ -80,7 +80,7 @@ static inline p4d_t pte_p4d(pte_t pte) }extern struct page *p4d_page (p4d_t p4d); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #define pud_ERROR (e) \ pr_err("%s:%d: bad pud %08lx.\n", __FILE__, __LINE__, pud_val(e))
arch/powerpc/include/asm/nohash/64/pgtable.h +2 -2
@@ -77,7 +77,7 @@#define H_PAGE_4K_PFN 0 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* pte_clear moved to later in this file */ #define PMD_BAD_BITS (PTE_TABLE_SIZE-1)
@@ -209,6 +209,6 @@ void __patch_exception(int exc, unsigned long addr);__patch_exception ((exc), (unsigned long )&name); \ } while (0) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_NOHASH_64_PGTABLE_H */
arch/powerpc/include/asm/nohash/kup-booke.h +2 -2
@@ -7,7 +7,7 @@#ifdef CONFIG_PPC_KUAP -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ .macro kuap_check_amr gpr1, gpr2 .endm
@@ -105,7 +105,7 @@ __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write)return !regs->kuap; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* CONFIG_PPC_KUAP */
arch/powerpc/include/asm/nohash/mmu-e500.h +2 -2
@@ -230,7 +230,7 @@#define MAS2_M_IF_NEEDED 0#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/bug.h> extern unsigned int tlbcam_index;
@@ -318,6 +318,6 @@ extern int book3e_htw_mode;#include <asm/percpu.h> DECLARE_PER_CPU (int, next_tlbcam_idx); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_POWERPC_MMU_BOOK3E_H_ */
arch/powerpc/include/asm/nohash/pgtable.h +3 -3
@@ -2,7 +2,7 @@#ifndef _ASM_POWERPC_NOHASH_PGTABLE_H#define _ASM_POWERPC_NOHASH_PGTABLE_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline pte_basic_t pte_update (struct mm_struct *mm,unsigned long addr,pte_t *p,unsigned long clr,unsigned long set,int huge);#endif
@@ -27,7 +27,7 @@ static inline pte_basic_t pte_update(struct mm_struct *mm, unsigned long addr, p#define PAGE_KERNEL_RO __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO)#define PAGE_KERNEL_ROX __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern int icache_44x_need_flush;
@@ -373,5 +373,5 @@ static inline void __set_pte_at(struct mm_struct *mm, unsigned long addr,int map_kernel_page (unsigned long va,phys_addr_t pa,pgprot_t prot);void unmap_kernel_page (unsigned long va); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif
arch/powerpc/include/asm/nohash/pte-e500.h +2 -2
@@ -86,7 +86,7 @@#include <asm/pgtable-masks.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline pte_t pte_mkexec (pte_t pte) {return __pte ((pte_val (pte) & ~_PAGE_BAP_SX) | _PAGE_BAP_UX);
@@ -134,7 +134,7 @@ static inline unsigned long pud_leaf_size(pud_t pud)#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_NOHASH_PTE_E500_H */
arch/powerpc/include/asm/opal-api.h +2 -2
@@ -246,7 +246,7 @@#define OPAL_CONFIG_IDLE_UNDO 0#define OPAL_CONFIG_IDLE_APPLY 1 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Other enums */ enum OpalFreezeState {
@@ -1183,6 +1183,6 @@ struct opal_mpipl_fadump {struct opal_mpipl_region region[]; } __packed; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __OPAL_API_H */
arch/powerpc/include/asm/opal.h +2 -2
@@ -10,7 +10,7 @@#include <asm/opal-api.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/notifier.h>
@@ -390,6 +390,6 @@ void opal_powercap_init(void);void opal_psr_init (void );void opal_sensor_groups_init (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_OPAL_H */
arch/powerpc/include/asm/page.h +7 -7
@@ -6,7 +6,7 @@* Copyright (C) 2001,2005 IBM Corporation. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <linux/kernel.h> #include <linux/bug.h>
@@ -23,7 +23,7 @@*/ #include <vdso/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifndef CONFIG_HUGETLB_PAGE #define HPAGE_SHIFT PAGE_SHIFT#elif defined(CONFIG_PPC_BOOK3S_64 )
@@ -75,7 +75,7 @@ extern unsigned int hpage_shift;#define LOAD_OFFSET ASM_CONST((CONFIG_KERNEL_START-CONFIG_PHYSICAL_START))#if defined(CONFIG_NONSTATIC_KERNEL ) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern phys_addr_t memstart_addr;extern phys_addr_t kernstart_addr;
@@ -84,7 +84,7 @@ extern phys_addr_t kernstart_addr;extern long long virt_phys_offset;#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define PHYSICAL_START kernstart_addr#else /* !CONFIG_NONSTATIC_KERNEL */
@@ -216,7 +216,7 @@ extern long long virt_phys_offset;#endif #endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline unsigned long virt_to_pfn (const void *kaddr) {return __pa (kaddr) >>PAGE_SHIFT ;
@@ -261,7 +261,7 @@ static inline const void *pfn_to_kaddr(unsigned long pfn)#define is_kernel_addr (x) ((x) >= TASK_SIZE)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_PPC_BOOK3S_64 #include <asm/pgtable-be-types.h>
@@ -290,6 +290,6 @@ static inline unsigned long kaslr_offset(void) }#include <asm-generic/memory_model.h> -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_PAGE_H */
arch/powerpc/include/asm/page_32.h +2 -2
@@ -19,7 +19,7 @@#define PTE_SHIFT (PAGE_SHIFT - PTE_T_LOG2)/* full page */ #endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * The basic type of a PTE - 64 bits for those CPUs with > 32 bit * physical addressing.
@@ -53,6 +53,6 @@ extern void copy_page(void *to, void *from);#define PGD_T_LOG2 (__builtin_ffs(sizeof(pgd_t)) - 1)#define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_PAGE_32_H */
arch/powerpc/include/asm/page_64.h +2 -2
@@ -35,7 +35,7 @@#define ESID_MASK_1T 0xffffff0000000000UL#define GET_ESID_1T (x) (((x) >> SID_SHIFT_1T) & SID_MASK_1T) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/cache.h> typedef unsigned long pte_basic_t ;
@@ -82,7 +82,7 @@ extern void copy_page(void *to, void *from);/* Log 2 of page table size */ extern u64 ppc64_pft_size; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define VM_DATA_DEFAULT_FLAGS \ (is_32bit_task() ? \
arch/powerpc/include/asm/pgtable.h +4 -4
@@ -2,7 +2,7 @@#ifndef _ASM_POWERPC_PGTABLE_H#define _ASM_POWERPC_PGTABLE_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/mmdebug.h> #include <linux/mmzone.h> #include <asm/processor.h> /* For TASK_SIZE */
@@ -12,7 +12,7 @@struct mm_struct ; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #ifdef CONFIG_PPC_BOOK3S #include <asm/book3s/pgtable.h>
@@ -39,7 +39,7 @@ struct mm_struct;#define PAGE_AGP (PAGE_KERNEL_NC)#define HAVE_PAGE_AGP -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define PFN_PTE_SHIFT PTE_RPN_SHIFT
@@ -215,6 +215,6 @@ static inline bool arch_supports_memmap_on_memory(unsigned long vmemmap_size)#endif /* CONFIG_PPC64 */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_PGTABLE_H */
arch/powerpc/include/asm/ppc_asm.h +2 -2
@@ -12,7 +12,7 @@#include <asm/feature-fixups.h> #include <asm/extable.h> -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define SZL (BITS_PER_LONG/8)
@@ -868,7 +868,7 @@ END_FTR_SECTION_NESTED(CPU_FTR_CELL_TB_BUG, CPU_FTR_CELL_TB_BUG, 96)#endif /* !CONFIG_PPC_BOOK3E_64 */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define SOFT_MASK_TABLE (_start, _end) \ stringify_in_c(.section __soft_mask_table,"a";)\
arch/powerpc/include/asm/processor.h +4 -4
@@ -29,14 +29,14 @@#ifdef CONFIG_PPC64 /* Default SMT priority is set to 3. Use 11- 13bits to save priority. */ #define PPR_PRIORITY 3 -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define DEFAULT_PPR (PPR_PRIORITY << 50)#else #define DEFAULT_PPR ((u64)PPR_PRIORITY << 50) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* CONFIG_PPC64 */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <linux/thread_info.h> #include <asm/ptrace.h>
@@ -460,5 +460,5 @@ int enter_vmx_ops(void);void *exit_vmx_ops (void *dest);#endif /* __KERNEL__ */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_PROCESSOR_H */
arch/powerpc/include/asm/ptrace.h +3 -3
@@ -24,7 +24,7 @@#include <asm/asm-const.h> #include <asm/reg.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct pt_regs { union {
@@ -165,7 +165,7 @@ struct pt_regs#define STACK_INT_FRAME_SIZE (KERNEL_REDZONE_SIZE + STACK_USER_INT_FRAME_SIZE)#define STACK_INT_FRAME_MARKER_LONGS (STACK_INT_FRAME_MARKER/sizeof(long)) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/paca.h> #ifdef CONFIG_SMP
@@ -414,7 +414,7 @@ static inline unsigned long regs_get_kernel_argument(struct pt_regs *regs, unsig return 0; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #ifndef __powerpc64__/* We need PT_SOFTE defined at all time to avoid #ifdefs */
arch/powerpc/include/asm/reg.h +3 -3
@@ -60,7 +60,7 @@#define MSR_RI_LG 1/* Recoverable Exception */ #define MSR_LE_LG 0/* Little Endian */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define __MASK (X ) (1<<(X))#else #define __MASK (X ) (1UL<<(X))
@@ -1358,7 +1358,7 @@#define PVR_ARCH_31_P11 0x0f000007/* Macros for setting and retrieving special purpose registers */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #if defined(CONFIG_PPC64) || defined(__CHECKER__) typedef struct {
@@ -1450,6 +1450,6 @@ extern void scom970_write(unsigned int address, unsigned long value);struct pt_regs ;extern void ppc_save_regs (struct pt_regs *regs); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_REG_H */
arch/powerpc/include/asm/reg_booke.h +2 -2
@@ -576,7 +576,7 @@#define TEN_THREAD (x) (1 << (x)) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define mftmr (rn) ({unsigned long rval; \ asm volatile(MFTMR(rn, %0) : "=r" (rval)); rval;})#define mttmr (rn, v) asm volatile(MTTMR(rn, %0) : \
@@ -585,7 +585,7 @@extern unsigned long global_dbcr0[]; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_POWERPC_REG_BOOKE_H__ */ #endif /* __KERNEL__ */
arch/powerpc/include/asm/reg_fsl_emb.h +2 -2
@@ -9,7 +9,7 @@#include <linux/stringify.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Performance Monitor Registers */ static __always_inline unsigned int mfpmr(unsigned int rn) {
@@ -32,7 +32,7 @@ static __always_inline void mtpmr(unsigned int rn, unsigned int val)".machine pop;" : [val] "=r" (val) : [rn] "i" (rn)); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* Freescale Book E Performance Monitor APU Registers */ #define PMRN_PMC0 0x010 /* Performance Monitor Counter 0 */
arch/powerpc/include/asm/setup.h +2 -2
@@ -4,7 +4,7 @@#include <uapi/asm/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void ppc_printk_progress (char *s,unsigned short hex);extern unsigned long long memory_limit;
@@ -89,7 +89,7 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,extern struct seq_buf ppc_hw_desc; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_POWERPC_SETUP_H */
arch/powerpc/include/asm/smp.h +2 -2
@@ -18,7 +18,7 @@#include <linux/kernel.h> #include <linux/irqreturn.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_PPC64 #include <asm/paca.h>
@@ -266,7 +266,7 @@ extern char __secondary_hold;extern unsigned int booting_thread_hwid;extern void __early_start (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_SMP_H) */
arch/powerpc/include/asm/spu_csa.h +2 -2
@@ -43,7 +43,7 @@#define SPU_DECR_STATUS_RUNNING 0x1#define SPU_DECR_STATUS_WRAPPED 0x2 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/** * spu_reg128 - generic 128-bit register definition. */
@@ -243,5 +243,5 @@ struct spu_state {#endif /* !__SPU__ */ #endif /* __KERNEL__ */ -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _SPU_CSA_H_ */
arch/powerpc/include/asm/synch.h +2 -2
@@ -7,7 +7,7 @@#include <asm/feature-fixups.h> #include <asm/ppc-opcode.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned int __start___lwsync_fixup, __stop___lwsync_fixup;extern void do_lwsync_fixups (unsigned long value,void *fixup_start,void *fixup_end);
@@ -40,7 +40,7 @@ static inline void ppc_after_tlbiel_barrier(void)*/ asm volatile(ASM_FTR_IFSET(PPC_CP_ABORT, "", %0) : : "i" (CPU_FTR_ARCH_31) : "memory"); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */#if defined(__powerpc64__)# define LWSYNC lwsync
arch/powerpc/include/asm/thread_info.h +4 -4
@@ -41,7 +41,7 @@#define THREAD_ALIGN (1 << THREAD_ALIGN_SHIFT) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/cache.h> #include <asm/processor.h> #include <asm/accounting.h>
@@ -89,7 +89,7 @@ extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *srcvoid arch_setup_new_exec (void );#define arch_setup_new_exec arch_setup_new_exec -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * thread information flag bit numbers
@@ -162,7 +162,7 @@ void arch_setup_new_exec(void);#define _TLF_LAZY_MMU (1 << TLF_LAZY_MMU)#define _TLF_RUNLATCH (1 << TLF_RUNLATCH) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void clear_thread_local_flags (unsigned int flags) {
@@ -233,7 +233,7 @@ static inline int arch_within_stack_frames(const void * const stack,extern void *emergency_ctx[];#endif -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __KERNEL__ */
arch/powerpc/include/asm/tm.h +2 -2
@@ -8,7 +8,7 @@#include <uapi/asm/tm.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void tm_reclaim (struct thread_struct *thread,uint8_t cause);
@@ -19,4 +19,4 @@ extern void tm_restore_sprs(struct thread_struct *thread);extern bool tm_suspend_disabled; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */
arch/powerpc/include/asm/types.h +2 -2
@@ -11,10 +11,10 @@#include <uapi/asm/types.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef __vector128 vector128 ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_TYPES_H */
arch/powerpc/include/asm/unistd.h +2 -2
@@ -9,7 +9,7 @@#define NR_syscalls __NR_syscalls -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <linux/compiler.h>
@@ -52,5 +52,5 @@#define __ARCH_WANT_SYS_VFORK#define __ARCH_WANT_SYS_CLONE -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_UNISTD_H_ */
arch/powerpc/include/asm/vdso.h +3 -3
@@ -4,7 +4,7 @@#define VDSO_VERSION_STRING LINUX_2.6.15 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_PPC64 #include <generated/vdso64-offsets.h>
@@ -20,7 +20,7 @@int vdso_getcpu_init (void ); -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ #ifdef __VDSO64__#define V_FUNCTION_BEGIN (name) \
@@ -48,6 +48,6 @@ int vdso_getcpu_init(void);#endif /* __VDSO32__ */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_VDSO_H */
arch/powerpc/include/asm/vdso/getrandom.h +2 -2
@@ -5,7 +5,7 @@#ifndef _ASM_POWERPC_VDSO_GETRANDOM_H#define _ASM_POWERPC_VDSO_GETRANDOM_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/vdso_datapage.h>
@@ -61,6 +61,6 @@ static __always_inline struct vdso_rng_data *__arch_get_vdso_rng_data(void)ssize_t __c_kernel_getrandom (void *buffer,size_t len,unsigned int flags,void *opaque_state,size_t opaque_len); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_POWERPC_VDSO_GETRANDOM_H */
arch/powerpc/include/asm/vdso/gettimeofday.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_POWERPC_VDSO_GETTIMEOFDAY_H#define _ASM_POWERPC_VDSO_GETTIMEOFDAY_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/vdso/timebase.h> #include <asm/barrier.h>
@@ -150,6 +150,6 @@ int __c_kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz const struct vdso_data *vd);__kernel_old_time_t __c_kernel_time (__kernel_old_time_t *time,const struct vdso_data *vd); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_VDSO_GETTIMEOFDAY_H */
arch/powerpc/include/asm/vdso/processor.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_POWERPC_VDSO_PROCESSOR_H#define _ASM_POWERPC_VDSO_PROCESSOR_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Macros for adjusting thread priority (hardware multi-threading) */ #ifdef CONFIG_PPC64
@@ -33,6 +33,6 @@#define cpu_relax () barrier()#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_POWERPC_VDSO_PROCESSOR_H */
arch/powerpc/include/asm/vdso/vsyscall.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_POWERPC_VDSO_VSYSCALL_H#define _ASM_POWERPC_VDSO_VSYSCALL_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/vdso_datapage.h>
@@ -22,6 +22,6 @@ struct vdso_rng_data *__arch_get_k_vdso_rng_data(void)/* The asm-generic header needs to be included after the definitions above */ #include <asm-generic/vdso/vsyscall.h> -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_POWERPC_VDSO_VSYSCALL_H */
arch/powerpc/include/asm/vdso_datapage.h +3 -3
@@ -9,7 +9,7 @@* IBM Corp. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/unistd.h> #include <linux/time.h>
@@ -48,7 +48,7 @@ struct vdso_arch_data {extern struct vdso_arch_data *vdso_data; -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ .macro get_datapage ptr offset=0 bcl 20, 31, .+4
@@ -61,7 +61,7 @@ extern struct vdso_arch_data *vdso_data;#include <asm/asm-offsets.h> #include <asm/page.h> -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __KERNEL__ */ #endif /* _SYSTEMCFG_H */
arch/powerpc/kernel/head_booke.h +2 -2
@@ -7,7 +7,7 @@#include <asm/kvm_booke_hv_asm.h> #include <asm/thread_info.h> /* for THREAD_SHIFT */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* * Macros used for common Book-e exception handling
@@ -522,5 +522,5 @@ ALT_FTR_SECTION_END_IFSET(CPU_FTR_EMB_HV)bl kernel_fp_unavailable_exception; \ b interrupt_return -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __HEAD_BOOKE_H__ */
arch/powerpc/net/bpf_jit.h +1 -1
@@ -8,7 +8,7 @@#ifndef _BPF_JIT_H#define _BPF_JIT_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/types.h> #include <asm/ppc-opcode.h>
arch/powerpc/platforms/powernv/subcore.h +2 -2
@@ -9,7 +9,7 @@#define SYNC_STEP_REAL_MODE 2/* Set by secondary when in real mode */ #define SYNC_STEP_FINISHED 3/* Set by secondary when split/unsplit is done */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_SMP void split_core_secondary_loop (u8 *state);
@@ -18,4 +18,4 @@ extern void update_subcore_sibling_mask(void);static inline void update_subcore_sibling_mask (void ) { }#endif /* CONFIG_SMP */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */
arch/powerpc/xmon/xmon_bpts.h +2 -2
@@ -3,12 +3,12 @@#define XMON_BPTS_H #define NBPTS 256 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/inst.h> #define BPT_SIZE (sizeof(ppc_inst_t) * 2)#define BPT_WORDS (BPT_SIZE / sizeof(ppc_inst_t))extern unsigned int bpt_table[NBPTS *BPT_WORDS ]; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* XMON_BPTS_H */
tools/testing/selftests/powerpc/include/instructions.h +1 -1
@@ -67,7 +67,7 @@ static inline int paste_last(void *i)#define PPC_INST_PASTE_LAST __PASTE(0, 0, 1, 1)/* This defines the prefixed load/store instructions */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__# define stringify_in_c (...) __VA_ARGS__#else # define __stringify_in_c (...) #__VA_ARGS__
Signature · 1 line
2.48.1
PATCH 28/41 riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
In reply to Thomas Huth__ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembly code.
This is a completely mechanical patch (done with a simple "sed -i" statement).
--- arch/riscv/include/uapi/asm/kvm.h | 2 +- arch/riscv/include/uapi/asm/ptrace.h | 4 ++-- arch/riscv/include/uapi/asm/sigcontext.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)
arch/riscv/include/uapi/asm/kvm.h +1 -1
@@ -9,7 +9,7 @@#ifndef __LINUX_KVM_RISCV_H#define __LINUX_KVM_RISCV_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <asm/bitsperlong.h>
arch/riscv/include/uapi/asm/ptrace.h +2 -2
@@ -6,7 +6,7 @@#ifndef _UAPI_ASM_RISCV_PTRACE_H#define _UAPI_ASM_RISCV_PTRACE_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h>
@@ -127,6 +127,6 @@ struct __riscv_v_regset_state {*/ #define RISCV_MAX_VLENB (8192) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _UAPI_ASM_RISCV_PTRACE_H */
arch/riscv/include/uapi/asm/sigcontext.h +2 -2
@@ -15,7 +15,7 @@/* The size of END signal context header. */ #define END_HDR_SIZE 0x0 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct __sc_riscv_v_state { struct __riscv_v_ext_state v_state;
@@ -35,6 +35,6 @@ struct sigcontext { }; }; -#endif /*!__ASSEMBLY__*/ +#endif /*!__ASSEMBLER__*/ #endif /* _UAPI_ASM_RISCV_SIGCONTEXT_H */
Signature · 1 line
2.48.1
PATCH 29/41 riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
In reply to Thomas HuthWhile the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize on the __ASSEMBLER__ macro that is provided by the compilers now.
This is a completely mechanical patch (done with a simple "sed -i" statement).
--- arch/riscv/include/asm/alternative-macros.h | 12 ++++++------ arch/riscv/include/asm/alternative.h | 2 +- arch/riscv/include/asm/asm-extable.h | 6 +++--- arch/riscv/include/asm/asm.h | 10 +++++----- arch/riscv/include/asm/assembler.h | 2 +- arch/riscv/include/asm/barrier.h | 4 ++-- arch/riscv/include/asm/cache.h | 4 ++-- arch/riscv/include/asm/cpu_ops_sbi.h | 2 +- arch/riscv/include/asm/csr.h | 4 ++-- arch/riscv/include/asm/current.h | 4 ++-- arch/riscv/include/asm/errata_list.h | 6 +++--- arch/riscv/include/asm/ftrace.h | 6 +++--- arch/riscv/include/asm/gpr-num.h | 6 +++--- arch/riscv/include/asm/image.h | 4 ++-- arch/riscv/include/asm/insn-def.h | 6 +++--- arch/riscv/include/asm/jump_label.h | 4 ++-- arch/riscv/include/asm/kasan.h | 2 +- arch/riscv/include/asm/kgdb.h | 4 ++-- arch/riscv/include/asm/mmu.h | 4 ++-- arch/riscv/include/asm/page.h | 4 ++-- arch/riscv/include/asm/pgtable.h | 4 ++-- arch/riscv/include/asm/processor.h | 4 ++-- arch/riscv/include/asm/ptrace.h | 4 ++-- arch/riscv/include/asm/scs.h | 4 ++-- arch/riscv/include/asm/set_memory.h | 4 ++-- arch/riscv/include/asm/thread_info.h | 4 ++-- arch/riscv/include/asm/vdso.h | 4 ++-- arch/riscv/include/asm/vdso/gettimeofday.h | 4 ++-- arch/riscv/include/asm/vdso/processor.h | 4 ++-- arch/riscv/include/asm/vdso/vsyscall.h | 4 ++-- tools/arch/riscv/include/asm/csr.h | 6 +++--- tools/arch/riscv/include/asm/vdso/processor.h | 4 ++-- 32 files changed, 73 insertions(+), 73 deletions(-)
arch/riscv/include/asm/alternative-macros.h +6 -6
@@ -4,7 +4,7 @@#ifdef CONFIG_RISCV_ALTERNATIVE -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ .macro ALT_ENTRY oldptr newptr vendor_id patch_id new_len .4byte \oldptr - .
@@ -53,7 +53,7 @@#define __ALTERNATIVE_CFG (...) ALTERNATIVE_CFG __VA_ARGS__#define __ALTERNATIVE_CFG_2 (...) ALTERNATIVE_CFG_2 __VA_ARGS__ -#else /* !__ASSEMBLY__ */ +#else /* !__ASSEMBLER__ */ #include <asm/asm.h> #include <linux/stringify.h>
@@ -98,7 +98,7 @@ __ALTERNATIVE_CFG(old_c, new_c_1, vendor_id_1, patch_id_1, enable_1) \ ALT_NEW_CONTENT(vendor_id_2, patch_id_2, enable_2, new_c_2) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define _ALTERNATIVE_CFG (old_c, new_c, vendor_id, patch_id, CONFIG_k) \ __ALTERNATIVE_CFG(old_c, new_c, vendor_id, patch_id, IS_ENABLED(CONFIG_k))
@@ -109,7 +109,7 @@ new_c_2, vendor_id_2, patch_id_2, IS_ENABLED(CONFIG_k_2))#else /* CONFIG_RISCV_ALTERNATIVE */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ .macro ALTERNATIVE_CFG old_c \old_c
@@ -121,7 +121,7 @@#define _ALTERNATIVE_CFG_2 (old_c, ...) \ ALTERNATIVE_CFG old_c -#else /* !__ASSEMBLY__ */ +#else /* !__ASSEMBLER__ */ #define __ALTERNATIVE_CFG (old_c) \ old_c "\n"
@@ -132,7 +132,7 @@#define _ALTERNATIVE_CFG_2 (old_c, ...) \ __ALTERNATIVE_CFG(old_c) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* CONFIG_RISCV_ALTERNATIVE */ /*
arch/riscv/include/asm/alternative.h +1 -1
@@ -8,7 +8,7 @@#include <asm/alternative-macros.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_RISCV_ALTERNATIVE
arch/riscv/include/asm/asm-extable.h +3 -3
@@ -10,7 +10,7 @@#ifdef CONFIG_MMU -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define __ASM_EXTABLE_RAW (insn, fixup, type, data) \ .pushsection __ex_table, "a"; \
@@ -25,7 +25,7 @@ __ASM_EXTABLE_RAW(\insn, \fixup, EX_TYPE_FIXUP, 0) .endm -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ #include <linux/bits.h> #include <linux/stringify.h>
@@ -77,7 +77,7 @@ EX_DATA_REG(ADDR, addr) \ ")") -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #else /* CONFIG_MMU */ #define _ASM_EXTABLE_UACCESS_ERR (insn, fixup, err)
arch/riscv/include/asm/asm.h +5 -5
@@ -6,7 +6,7 @@#ifndef _ASM_RISCV_ASM_H#define _ASM_RISCV_ASM_H -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define __ASM_STR (x) x#else #define __ASM_STR (x) #x
@@ -29,7 +29,7 @@#define LGREG __REG_SEL(3, 2)#if __SIZEOF_POINTER__ ==8 -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define RISCV_PTR .dword#define RISCV_SZPTR 8#define RISCV_LGPTR 3
@@ -39,7 +39,7 @@#define RISCV_LGPTR "3"#endif #elif __SIZEOF_POINTER__ == 4 -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define RISCV_PTR .word#define RISCV_SZPTR 4#define RISCV_LGPTR 2
@@ -68,7 +68,7 @@#error "Unexpected __SIZEOF_SHORT__"#endif -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#include <asm/asm-offsets.h> /* Common assembly source macros */
@@ -193,6 +193,6 @@#define ASM_NOKPROBE (name)#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_RISCV_ASM_H */
arch/riscv/include/asm/assembler.h +1 -1
@@ -5,7 +5,7 @@* Author: Jee Heng Sia <[email protected]> */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#error "Only include this from assembly code"#endif
arch/riscv/include/asm/barrier.h +2 -2
@@ -10,7 +10,7 @@#ifndef _ASM_RISCV_BARRIER_H#define _ASM_RISCV_BARRIER_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/cmpxchg.h> #include <asm/fence.h>
@@ -87,6 +87,6 @@ do { \#include <asm-generic/barrier.h> -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_RISCV_BARRIER_H */
arch/riscv/include/asm/cache.h +2 -2
@@ -24,7 +24,7 @@#define ARCH_SLAB_MINALIGN 16#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern int dma_cache_alignment;#ifdef CONFIG_RISCV_DMA_NONCOHERENT
@@ -35,6 +35,6 @@ static inline int dma_get_cache_alignment(void) }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_RISCV_CACHE_H */
arch/riscv/include/asm/cpu_ops_sbi.h +1 -1
@@ -5,7 +5,7 @@#ifndef __ASM_CPU_OPS_SBI_H#define __ASM_CPU_OPS_SBI_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/init.h> #include <linux/sched.h> #include <linux/threads.h>
arch/riscv/include/asm/csr.h +2 -2
@@ -513,7 +513,7 @@#define IE_TIE (_AC(0x1, UL) << RV_IRQ_TIMER)#define IE_EIE (_AC(0x1, UL) << RV_IRQ_EXT) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define csr_swap (csr, val) \ ({ \
@@ -575,6 +575,6 @@ : "memory"); \ }) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_RISCV_CSR_H */
arch/riscv/include/asm/current.h +2 -2
@@ -13,7 +13,7 @@#include <linux/bug.h> #include <linux/compiler.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct task_struct ;
@@ -35,6 +35,6 @@ static __always_inline struct task_struct *get_current(void) registerunsigned long current_stack_pointer __asm__("sp" ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_RISCV_CURRENT_H */
arch/riscv/include/asm/errata_list.h +3 -3
@@ -29,7 +29,7 @@#define ERRATA_THEAD_NUMBER 3#endif -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define ALT_INSN_FAULT (x) \ ALTERNATIVE(__stringify(RISCV_PTR do_trap_insn_fault), \
@@ -42,7 +42,7 @@ ALTERNATIVE(__stringify(RISCV_PTR do_page_fault), \ __stringify(RISCV_PTR sifive_cip_453_page_fault_trp), \SIFIVE_VENDOR_ID ,ERRATA_SIFIVE_CIP_453 , \ CONFIG_ERRATA_SIFIVE_CIP_453) -#else /* !__ASSEMBLY__ */ +#else /* !__ASSEMBLER__ */ #define ALT_SFENCE_VMA_ASID(asid) \ asm(ALTERNATIVE("sfence.vma x0, %0", "sfence.vma", SIFIVE_VENDOR_ID, \
@@ -123,6 +123,6 @@ asm volatile(ALTERNATIVE( \#define THEAD_C9XX_RV_IRQ_PMU 17#define THEAD_C9XX_CSR_SCOUNTEROF 0x5c5 -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif
arch/riscv/include/asm/ftrace.h +3 -3
@@ -13,7 +13,7 @@#endif #define ARCH_SUPPORTS_FTRACE_OPS 1 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void *return_address (unsigned int level);
@@ -118,7 +118,7 @@ do { \*/ #define MCOUNT_INSN_SIZE 8 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct dyn_ftrace ;int ftrace_init_nop (struct module *mod,struct dyn_ftrace *rec);#define ftrace_init_nop ftrace_init_nop
@@ -228,7 +228,7 @@ static inline void arch_ftrace_set_direct_caller(struct ftrace_regs *fregs, unsi }#endif /* CONFIG_DYNAMIC_FTRACE_WITH_ARGS */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* CONFIG_DYNAMIC_FTRACE */
arch/riscv/include/asm/gpr-num.h +3 -3
@@ -2,7 +2,7 @@#ifndef __ASM_GPR_NUM_H#define __ASM_GPR_NUM_H -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ .irp num,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 .equ .L__gpr_num_x\num, \num
@@ -41,7 +41,7 @@ .equ .L__gpr_num_t5, 30 .equ .L__gpr_num_t6, 31 -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ #define __DEFINE_ASM_GPR_NUMS \ " .irp num,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31\n" \
@@ -80,6 +80,6 @@" .equ .L__gpr_num_t5, 30\n" \ " .equ .L__gpr_num_t6, 31\n" -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_GPR_NUM_H */
arch/riscv/include/asm/image.h +2 -2
@@ -29,7 +29,7 @@#define RISCV_HEADER_VERSION (RISCV_HEADER_VERSION_MAJOR << 16 | \ RISCV_HEADER_VERSION_MINOR) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/** * struct riscv_image_header - riscv kernel image header * @code0: Executable code
@@ -61,5 +61,5 @@ struct riscv_image_header {u32 magic2;u32 res3; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_RISCV_IMAGE_H */
arch/riscv/include/asm/insn-def.h +3 -3
@@ -18,7 +18,7 @@#define INSN_I_RD_SHIFT 7#define INSN_I_OPCODE_SHIFT 0 -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#ifdef CONFIG_AS_HAS_INSN
@@ -56,7 +56,7 @@#define __INSN_R (...) insn_r __VA_ARGS__#define __INSN_I (...) insn_i __VA_ARGS__ -#else /* ! __ASSEMBLY__ */ +#else /* ! __ASSEMBLER__ */ #ifdef CONFIG_AS_HAS_INSN
@@ -110,7 +110,7 @@#endif -#endif /* ! __ASSEMBLY__ */ +#endif /* ! __ASSEMBLER__ */ #define INSN_R (opcode, func3, func7, rd, rs1, rs2) \ __INSN_R(RV_##opcode, RV_##func3, RV_##func7, \
arch/riscv/include/asm/jump_label.h +2 -2
@@ -7,7 +7,7 @@#ifndef __ASM_JUMP_LABEL_H#define __ASM_JUMP_LABEL_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <asm/asm.h>
@@ -66,5 +66,5 @@ static __always_inline bool arch_static_branch_jump(struct static_key * const kereturn true; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_JUMP_LABEL_H */
arch/riscv/include/asm/kasan.h +1 -1
@@ -4,7 +4,7 @@#ifndef __ASM_KASAN_H#define __ASM_KASAN_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * The following comment was copied from arm64:
arch/riscv/include/asm/kgdb.h +2 -2
@@ -17,7 +17,7 @@#define BREAK_INSTR_SIZE 4#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned long kgdb_compiled_break;
@@ -29,7 +29,7 @@ static inline void arch_kgdb_breakpoint(void) ".option rvc\n"); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #define DBG_REG_ZERO "zero"#define DBG_REG_RA "ra"
arch/riscv/include/asm/mmu.h +2 -2
@@ -7,7 +7,7 @@ #ifndef _ASM_RISCV_MMU_H #define _ASM_RISCV_MMU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ typedef struct { #ifndef CONFIG_MMU
@@ -40,6 +40,6 @@ typedef struct {void __meminit create_pgd_mapping (pgd_t *pgdp,uintptr_t va,phys_addr_t pa,phys_addr_t sz,pgprot_t prot); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_RISCV_MMU_H */
arch/riscv/include/asm/page.h +2 -2
@@ -40,7 +40,7 @@#define PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)#endif /* CONFIG_64BIT */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#ifdef CONFIG_RISCV_ISA_ZICBOZ void clear_page (void *page);
@@ -202,7 +202,7 @@ static __always_inline void *pfn_to_kaddr(unsigned long pfn)return __va (pfn <<PAGE_SHIFT ); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define virt_addr_valid (vaddr) ({ \ unsigned long _addr = (unsigned long)vaddr; \
arch/riscv/include/asm/pgtable.h +2 -2
@@ -107,7 +107,7 @@#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/page.h> #include <asm/tlbflush.h>
@@ -993,6 +993,6 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];WARN_ON_ONCE (pgd_present (*pgdp) && !pgd_same (*pgdp, pgd)); \set_pgd (pgdp, pgd); \ }) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _ASM_RISCV_PGTABLE_H */
arch/riscv/include/asm/processor.h +2 -2
@@ -51,7 +51,7 @@#define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/cpumask.h> struct task_struct ;
@@ -186,6 +186,6 @@ long get_tagged_addr_ctrl(struct task_struct *task);#define GET_TAGGED_ADDR_CTRL () get_tagged_addr_ctrl(current)#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_RISCV_PROCESSOR_H */
arch/riscv/include/asm/ptrace.h +2 -2
@@ -10,7 +10,7 @@#include <asm/csr.h> #include <linux/compiler.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct pt_regs { unsigned long epc;
@@ -178,6 +178,6 @@ static inline int regs_irqs_disabled(struct pt_regs *regs)return !(regs->status &SR_PIE ); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_RISCV_PTRACE_H */
arch/riscv/include/asm/scs.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_SCS_H#define _ASM_SCS_H -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#include <asm/asm-offsets.h> #ifdef CONFIG_SHADOW_CALL_STACK
@@ -49,6 +49,6 @@ .endm#endif /* CONFIG_SHADOW_CALL_STACK */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_SCS_H */
arch/riscv/include/asm/set_memory.h +2 -2
@@ -6,7 +6,7 @@#ifndef _ASM_RISCV_SET_MEMORY_H#define _ASM_RISCV_SET_MEMORY_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * Functions to change memory attributes. */
@@ -45,7 +45,7 @@ int set_direct_map_default_noflush(struct page *page);int set_direct_map_valid_noflush (struct page *page,unsigned nr,bool valid);bool kernel_page_present (struct page *page); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #if defined(CONFIG_STRICT_KERNEL_RWX ) || defined(CONFIG_XIP_KERNEL )#ifdef CONFIG_64BIT
arch/riscv/include/asm/thread_info.h +2 -2
@@ -37,7 +37,7 @@#define IRQ_STACK_SIZE THREAD_SIZE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/processor.h> #include <asm/csr.h>
@@ -98,7 +98,7 @@ struct thread_info {void arch_release_task_struct (struct task_struct *tsk);int arch_dup_task_struct (struct task_struct *dst,struct task_struct *src); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * thread information flags
arch/riscv/include/asm/vdso.h +2 -2
@@ -16,7 +16,7 @@#define __VVAR_PAGES 2 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <generated/vdso-offsets.h> #define VDSO_SYMBOL (base, name) \
@@ -34,7 +34,7 @@ extern char compat_vdso_start[], compat_vdso_end[];extern char vdso_start[], vdso_end[]; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* CONFIG_MMU */
arch/riscv/include/asm/vdso/gettimeofday.h +2 -2
@@ -2,7 +2,7 @@#ifndef __ASM_VDSO_GETTIMEOFDAY_H#define __ASM_VDSO_GETTIMEOFDAY_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/barrier.h> #include <asm/unistd.h>
@@ -91,6 +91,6 @@ const struct vdso_data *__arch_get_timens_vdso_data(const struct vdso_data *vd)return _timens_data; }#endif -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_VDSO_GETTIMEOFDAY_H */
arch/riscv/include/asm/vdso/processor.h +2 -2
@@ -2,7 +2,7 @@#ifndef __ASM_VDSO_PROCESSOR_H#define __ASM_VDSO_PROCESSOR_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/barrier.h> #include <asm/insn-def.h>
@@ -23,6 +23,6 @@ static inline void cpu_relax(void)barrier (); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_VDSO_PROCESSOR_H */
arch/riscv/include/asm/vdso/vsyscall.h +2 -2
@@ -2,7 +2,7 @@#ifndef __ASM_VDSO_VSYSCALL_H#define __ASM_VDSO_VSYSCALL_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <vdso/datapage.h>
@@ -18,6 +18,6 @@ static __always_inline struct vdso_data *__riscv_get_k_vdso_data(void)/* The asm-generic header needs to be included after the definitions above */ #include <asm-generic/vdso/vsyscall.h> -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_VDSO_VSYSCALL_H */
tools/arch/riscv/include/asm/csr.h +3 -3
@@ -468,13 +468,13 @@#define IE_TIE (_AC(0x1, UL) << RV_IRQ_TIMER)#define IE_EIE (_AC(0x1, UL) << RV_IRQ_EXT) -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define __ASM_STR (x) x#else #define __ASM_STR (x) #x#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define csr_swap (csr, val) \ ({ \
@@ -536,6 +536,6 @@ : "memory"); \ }) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_RISCV_CSR_H */
tools/arch/riscv/include/asm/vdso/processor.h +2 -2
@@ -2,7 +2,7 @@#ifndef __ASM_VDSO_PROCESSOR_H#define __ASM_VDSO_PROCESSOR_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm-generic/barrier.h>
@@ -27,6 +27,6 @@ static inline void cpu_relax(void)barrier (); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_VDSO_PROCESSOR_H */
Signature · 1 line
2.48.1
PATCH 30/41 s390/uapi: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
In reply to Thomas Huth__ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembly code.
--- arch/s390/include/uapi/asm/ptrace.h | 5 +++-- arch/s390/include/uapi/asm/schid.h | 4 ++-- arch/s390/include/uapi/asm/types.h | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-)
arch/s390/include/uapi/asm/ptrace.h +3 -2
@@ -242,7 +242,8 @@#define PTRACE_OLDSETOPTIONS 21#define PTRACE_SYSEMU 31#define PTRACE_SYSEMU_SINGLESTEP 32 -#ifndef __ASSEMBLY__ + +#ifndef __ASSEMBLER__#include <linux/stddef.h> #include <linux/types.h>
@@ -450,6 +451,6 @@ struct user_regs_struct {unsigned long ieee_instruction_pointer;/* obsolete, always 0 */ }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _UAPI_S390_PTRACE_H */
arch/s390/include/uapi/asm/schid.h +2 -2
@@ -4,7 +4,7 @@#include <linux/types.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct subchannel_id { __u32 cssid : 8;
@@ -15,6 +15,6 @@ struct subchannel_id { __u32 sch_no : 16; } __attribute__ ((packed, aligned(4))); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _UAPIASM_SCHID_H */
arch/s390/include/uapi/asm/types.h +2 -2
@@ -10,7 +10,7 @@#include <asm-generic/int-ll64.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef unsigned long addr_t ;typedef __signed__ long saddr_t ;
@@ -25,6 +25,6 @@ typedef struct { }; } __attribute__((packed, aligned(4))) __vector128; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _UAPI_S390_TYPES_H */
Signature · 1 line
2.48.1
PATCH 31/41 s390x: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
In reply to Thomas HuthWhile the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize on the __ASSEMBLER__ macro that is provided by the compilers now.
This is a completely mechanical patch (done with a simple "sed -i" statement).
--- arch/s390/boot/boot.h | 4 ++-- arch/s390/include/asm/alternative.h | 6 +++--- arch/s390/include/asm/asm-const.h | 2 +- arch/s390/include/asm/cpu.h | 4 ++-- arch/s390/include/asm/cpu_mf-insn.h | 4 ++-- arch/s390/include/asm/ctlreg.h | 4 ++-- arch/s390/include/asm/dwarf.h | 4 ++-- arch/s390/include/asm/extmem.h | 2 +- arch/s390/include/asm/fpu-insn-asm.h | 4 ++-- arch/s390/include/asm/fpu-insn.h | 4 ++-- arch/s390/include/asm/ftrace.h | 4 ++-- arch/s390/include/asm/irq.h | 4 ++-- arch/s390/include/asm/jump_label.h | 4 ++-- arch/s390/include/asm/lowcore.h | 6 +++--- arch/s390/include/asm/mem_encrypt.h | 4 ++-- arch/s390/include/asm/nmi.h | 4 ++-- arch/s390/include/asm/nospec-branch.h | 4 ++-- arch/s390/include/asm/nospec-insn.h | 4 ++-- arch/s390/include/asm/page.h | 4 ++-- arch/s390/include/asm/processor.h | 4 ++-- arch/s390/include/asm/ptrace.h | 4 ++-- arch/s390/include/asm/purgatory.h | 4 ++-- arch/s390/include/asm/sclp.h | 4 ++-- arch/s390/include/asm/setup.h | 4 ++-- arch/s390/include/asm/sigp.h | 4 ++-- arch/s390/include/asm/thread_info.h | 2 +- arch/s390/include/asm/tpi.h | 4 ++-- arch/s390/include/asm/types.h | 4 ++-- arch/s390/include/asm/vdso.h | 4 ++-- arch/s390/include/asm/vdso/getrandom.h | 4 ++-- arch/s390/include/asm/vdso/vsyscall.h | 4 ++-- arch/s390/net/bpf_jit.h | 4 ++-- 32 files changed, 63 insertions(+), 63 deletions(-)
arch/s390/boot/boot.h +2 -2
@@ -6,7 +6,7 @@#define IPL_START 0x200 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/printk.h> #include <asm/physmem_info.h>
@@ -125,5 +125,5 @@ static inline bool intersects(unsigned long addr0, unsigned long size0, {return addr0 + size0 > addr1 && addr1 + size1 > addr0; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* BOOT_BOOT_H */
arch/s390/include/asm/alternative.h +3 -3
@@ -50,7 +50,7 @@#define ALT_LOWCORE (ALT_CTX_EARLY << ALT_CTX_SHIFT | \ ALT_TYPE_LOWCORE << ALT_TYPE_SHIFT) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <linux/stddef.h>
@@ -182,7 +182,7 @@ static inline void apply_alternatives(struct alt_instr *start, struct alt_instr/* Use this macro if clobbers are needed without inputs. */ #define ASM_NO_INPUT_CLOBBER(clobber...) : clobber -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ /* * Issue one struct alt_instr descriptor entry (need to put it into
@@ -232,6 +232,6 @@ static inline void apply_alternatives(struct alt_instr *start, struct alt_instr .popsection .endm -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_ALTERNATIVE_H */
arch/s390/include/asm/asm-const.h +1 -1
@@ -2,7 +2,7 @@#ifndef _ASM_S390_ASM_CONST_H#define _ASM_S390_ASM_CONST_H -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__# define stringify_in_c (...) __VA_ARGS__#else /* This version of stringify will deal with commas... */
arch/s390/include/asm/cpu.h +2 -2
@@ -9,7 +9,7 @@#ifndef _ASM_S390_CPU_H#define _ASM_S390_CPU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <linux/jump_label.h>
@@ -24,5 +24,5 @@ struct cpuidDECLARE_STATIC_KEY_FALSE (cpu_has_bear); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_CPU_H */
arch/s390/include/asm/cpu_mf-insn.h +2 -2
@@ -8,7 +8,7 @@#ifndef _ASM_S390_CPU_MF_INSN_H#define _ASM_S390_CPU_MF_INSN_H -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* Macro to generate the STCCTM instruction with a customized * M3 field designating the counter set.
@@ -17,6 +17,6 @@ .insn rsy,0xeb0000000017,\r1,\m3 & 0xf,\db2 .endm -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif
arch/s390/include/asm/ctlreg.h +2 -2
@@ -80,7 +80,7 @@#define CR14_EXTERNAL_DAMAGE_SUBMASK BIT(CR14_EXTERNAL_DAMAGE_SUBMASK_BIT)#define CR14_WARNING_SUBMASK BIT(CR14_WARNING_SUBMASK_BIT) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/bug.h>
@@ -252,5 +252,5 @@ union ctlreg15 { }; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_S390_CTLREG_H */
arch/s390/include/asm/dwarf.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_S390_DWARF_H#define _ASM_S390_DWARF_H -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#define CFI_STARTPROC .cfi_startproc#define CFI_ENDPROC .cfi_endproc
@@ -33,6 +33,6 @@ .cfi_sections .eh_frame, .debug_frame#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_DWARF_H */
arch/s390/include/asm/extmem.h +1 -1
@@ -6,7 +6,7 @@#ifndef _ASM_S390X_DCSS_H#define _ASM_S390X_DCSS_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * DCSS segment is defined as a contiguous range of pages using DEFSEG command.
arch/s390/include/asm/fpu-insn-asm.h +2 -2
@@ -16,7 +16,7 @@#error only <asm/fpu-insn.h> can be included directly#endif -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* Macros to generate vector instruction byte code */
@@ -750,5 +750,5 @@ MRXBOPC 0, 0x77, v1, v2, v3 .endm -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_S390_FPU_INSN_ASM_H */
arch/s390/include/asm/fpu-insn.h +2 -2
@@ -9,7 +9,7 @@#include <asm/fpu-insn-asm.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/instrumented.h> #include <asm/asm-extable.h>
@@ -475,5 +475,5 @@ static __always_inline void fpu_vzero(u8 v) : "memory"); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_S390_FPU_INSN_H */
arch/s390/include/asm/ftrace.h +2 -2
@@ -5,7 +5,7 @@#define ARCH_SUPPORTS_FTRACE_OPS 1#define MCOUNT_INSN_SIZE 6 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/stacktrace.h> static __always_inline unsigned long return_address (unsigned int n)
@@ -134,7 +134,7 @@ void ftrace_graph_func(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *op, struct ftrace_regs *fregs);#define ftrace_graph_func ftrace_graph_func -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #ifdef CONFIG_FUNCTION_TRACER
arch/s390/include/asm/irq.h +2 -2
@@ -25,7 +25,7 @@#define EXT_IRQ_CP_SERVICE 0x2603#define EXT_IRQ_IUCV 0x4000 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/hardirq.h> #include <linux/percpu.h>
@@ -121,6 +121,6 @@ void irq_subclass_unregister(enum irq_subclass subclass);#define irq_canonicalize (irq) (irq) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_IRQ_H */
arch/s390/include/asm/jump_label.h +2 -2
@@ -4,7 +4,7 @@#define HAVE_JUMP_LABEL_BATCH -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <linux/stringify.h>
@@ -51,5 +51,5 @@ static __always_inline bool arch_static_branch_jump(struct static_key *key, boolreturn true; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif
arch/s390/include/asm/lowcore.h +3 -3
@@ -21,7 +21,7 @@#define LOWCORE_ALT_ADDRESS _AC(0x70000, UL) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct pgm_tdb { u64 data[32];
@@ -235,7 +235,7 @@ static inline void set_prefix(__u32 address) asm volatile("spx %0" : : "Q" (address) : "memory"); } -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ .macro GET_LC reg ALTERNATIVE "llilh \reg,0", \
@@ -249,5 +249,5 @@ static inline void set_prefix(__u32 address)ALT_LOWCORE .endm -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_LOWCORE_H */
arch/s390/include/asm/mem_encrypt.h +2 -2
@@ -2,11 +2,11 @@#ifndef S390_MEM_ENCRYPT_H__ #define S390_MEM_ENCRYPT_H__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__int set_memory_encrypted (unsigned long vaddr,int numpages);int set_memory_decrypted (unsigned long vaddr,int numpages); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* S390_MEM_ENCRYPT_H__ */
arch/s390/include/asm/nmi.h +2 -2
@@ -33,7 +33,7 @@#define MCCK_CODE_FC_VALID BIT(63 - 43)#define MCCK_CODE_CPU_TIMER_VALID BIT(63 - 46) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ union mci { unsigned long val;
@@ -104,5 +104,5 @@ void nmi_free_mcesa(u64 *mcesad);void s390_handle_mcck (void );void s390_do_machine_check (struct pt_regs *regs); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_NMI_H */
arch/s390/include/asm/nospec-branch.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_S390_EXPOLINE_H#define _ASM_S390_EXPOLINE_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <asm/facility.h>
@@ -46,6 +46,6 @@ void __s390_indirect_jump_r15(void);#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_EXPOLINE_H */
arch/s390/include/asm/nospec-insn.h +2 -2
@@ -5,7 +5,7 @@#include <linux/linkage.h> #include <asm/dwarf.h> -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#ifdef CC_USING_EXPOLINE
@@ -128,6 +128,6 @@ .endm#endif /* CC_USING_EXPOLINE */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_NOSPEC_ASM_H */
arch/s390/include/asm/page.h +2 -2
@@ -33,7 +33,7 @@#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA #include <asm/setup.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void __storage_key_init_range (unsigned long start,unsigned long end);
@@ -267,7 +267,7 @@ static inline unsigned long virt_to_pfn(const void *kaddr)#define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_NON_EXEC -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #include <asm-generic/memory_model.h> #include <asm-generic/getorder.h>
arch/s390/include/asm/processor.h +2 -2
@@ -26,7 +26,7 @@#define RESTART_FLAG_CTLREGS _AC(1 << 0, U) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/cpumask.h> #include <linux/linkage.h>
@@ -419,6 +419,6 @@ static __always_inline void bpon(void) asm volatile(ALTERNATIVE("nop", ".insn rrf,0xb2e80000,0,0,13,0", ALT_SPEC(82))); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_S390_PROCESSOR_H */
arch/s390/include/asm/ptrace.h +2 -2
@@ -55,7 +55,7 @@ PSW_DEFAULT_KEY | PSW_MASK_BASE | PSW_MASK_MCHECK | \ PSW_MASK_PSTATE | PSW_ASC_PRIMARY) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct psw_bits { unsigned long : 1;
@@ -263,5 +263,5 @@ static inline void regs_set_return_value(struct pt_regs *regs, unsigned long rc) regs->gprs[2 ] = rc; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _S390_PTRACE_H */
arch/s390/include/asm/purgatory.h +2 -2
@@ -7,11 +7,11 @@#ifndef _S390_PURGATORY_H_#define _S390_PURGATORY_H_ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/purgatory.h> int verify_sha256_digest (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _S390_PURGATORY_H_ */
arch/s390/include/asm/sclp.h +2 -2
@@ -21,7 +21,7 @@#define SCLP_ERRNOTIFY_AQ_INFO_LOG 2#define SCLP_ERRNOTIFY_AQ_OPTICS_DATA 3 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/uio.h> #include <asm/chpid.h> #include <asm/cpu.h>
@@ -198,5 +198,5 @@ static inline int sclp_get_core_info(struct sclp_core_info *info, int early)return _sclp_get_core_info (info); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_SCLP_H */
arch/s390/include/asm/setup.h +2 -2
@@ -46,7 +46,7 @@#define LEGACY_COMMAND_LINE_SIZE 896 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/lowcore.h> #include <asm/types.h>
@@ -142,5 +142,5 @@ static __always_inline u32 gen_lpswe(unsigned long addr)BUILD_BUG_ON (addr >0xfff );return 0xb2b20000 | addr; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_SETUP_H */
arch/s390/include/asm/sigp.h +2 -2
@@ -36,7 +36,7 @@#define SIGP_STATUS_INCORRECT_STATE 0x00000200UL#define SIGP_STATUS_NOT_RUNNING 0x00000400UL -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/asm.h>
@@ -68,6 +68,6 @@ static inline int __pcpu_sigp(u16 addr, u8 order, unsigned long parm,return cc; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __S390_ASM_SIGP_H */
arch/s390/include/asm/thread_info.h +1 -1
@@ -26,7 +26,7 @@#define STACK_INIT_OFFSET (THREAD_SIZE - STACK_FRAME_OVERHEAD - __PT_SIZE) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/lowcore.h> #include <asm/page.h>
arch/s390/include/asm/tpi.h +2 -2
@@ -5,7 +5,7 @@#include <linux/types.h> #include <uapi/asm/schid.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* I/O-Interruption Code as stored by TEST PENDING INTERRUPTION (TPI). */ struct tpi_info {
@@ -32,6 +32,6 @@ struct tpi_adapter_info { u32 :27 ; } __packed __aligned(4); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_TPI_H */
arch/s390/include/asm/types.h +2 -2
@@ -5,7 +5,7 @@#include <uapi/asm/types.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ union register_pair { unsigned __int128 pair;
@@ -15,5 +15,5 @@ union register_pair { }; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _ASM_S390_TYPES_H */
arch/s390/include/asm/vdso.h +2 -2
@@ -4,13 +4,13 @@#include <vdso/datapage.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern struct vdso_data *vdso_data;int vdso_getcpu_init (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define __VVAR_PAGES 2
arch/s390/include/asm/vdso/getrandom.h +2 -2
@@ -3,7 +3,7 @@#ifndef __ASM_VDSO_GETRANDOM_H#define __ASM_VDSO_GETRANDOM_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <vdso/datapage.h> #include <asm/vdso/vsyscall.h>
@@ -35,6 +35,6 @@ static __always_inline const struct vdso_rng_data *__arch_get_vdso_rng_data(voidreturn &_vdso_rng_data; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_VDSO_GETRANDOM_H */
arch/s390/include/asm/vdso/vsyscall.h +2 -2
@@ -4,7 +4,7 @@#define __VDSO_RND_DATA_OFFSET 768 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/hrtimer.h> #include <vdso/datapage.h>
@@ -31,6 +31,6 @@ static __always_inline struct vdso_rng_data *__s390_get_k_vdso_rnd_data(void)/* The asm-generic header needs to be included after the definitions above */ #include <asm-generic/vdso/vsyscall.h> -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_VDSO_VSYSCALL_H */
arch/s390/net/bpf_jit.h +2 -2
@@ -11,12 +11,12 @@#ifndef __ARCH_S390_NET_BPF_JIT_H#define __ARCH_S390_NET_BPF_JIT_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/filter.h> #include <linux/types.h> -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Stackframe layout (packed stack):
Signature · 1 line
2.48.1
PATCH 32/41 sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in the SuperH headers
In reply to Thomas HuthWhile the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize on the __ASSEMBLER__ macro that is provided by the compilers now.
This is a completely mechanical patch (done with a simple "sed -i" statement).
--- arch/sh/include/asm/cache.h | 4 ++-- arch/sh/include/asm/dwarf.h | 6 +++--- arch/sh/include/asm/fpu.h | 4 ++-- arch/sh/include/asm/ftrace.h | 8 ++++---- arch/sh/include/asm/mmu.h | 4 ++-- arch/sh/include/asm/page.h | 8 ++++---- arch/sh/include/asm/pgtable.h | 4 ++-- arch/sh/include/asm/pgtable_32.h | 8 ++++---- arch/sh/include/asm/processor.h | 4 ++-- arch/sh/include/asm/smc37c93x.h | 4 ++-- arch/sh/include/asm/suspend.h | 2 +- arch/sh/include/asm/thread_info.h | 10 +++++----- arch/sh/include/asm/tlb.h | 4 ++-- arch/sh/include/asm/types.h | 4 ++-- arch/sh/include/mach-common/mach/romimage.h | 6 +++--- arch/sh/include/mach-ecovec24/mach/romimage.h | 6 +++--- arch/sh/include/mach-kfr2r09/mach/romimage.h | 6 +++--- 17 files changed, 46 insertions(+), 46 deletions(-)
arch/sh/include/asm/cache.h +2 -2
@@ -22,7 +22,7 @@#define __read_mostly __section(".data..read_mostly") -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct cache_info { unsigned int ways; /* Number of cache ways */ unsigned int sets; /* Number of cache sets */
@@ -48,5 +48,5 @@ struct cache_info {unsigned long flags; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_CACHE_H */
arch/sh/include/asm/dwarf.h +3 -3
@@ -189,7 +189,7 @@*/ #define DWARF_ARCH_RA_REG 17 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/compiler.h> #include <linux/bug.h>
@@ -379,7 +379,7 @@ extern int module_dwarf_finalize(const Elf_Ehdr *, const Elf_Shdr *, struct module *);extern void module_dwarf_cleanup (struct module *); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #define CFI_STARTPROC .cfi_startproc#define CFI_ENDPROC .cfi_endproc
@@ -402,7 +402,7 @@ extern void module_dwarf_cleanup(struct module *);#define CFI_REL_OFFSET CFI_IGNORE#define CFI_UNDEFINED CFI_IGNORE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void dwarf_unwinder_init (void ) { }
arch/sh/include/asm/fpu.h +2 -2
@@ -2,7 +2,7 @@#ifndef __ASM_SH_FPU_H#define __ASM_SH_FPU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ptrace.h>
@@ -67,6 +67,6 @@ static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs)void float_raise (unsigned int flags);int float_rounding_mode (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_FPU_H */
arch/sh/include/asm/ftrace.h +4 -4
@@ -7,7 +7,7 @@#define MCOUNT_INSN_SIZE 4/* sizeof mcount call */ #define FTRACE_SYSCALL_MAX NR_syscalls -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void mcount (void );#define MCOUNT_ADDR ((unsigned long)(mcount))
@@ -35,10 +35,10 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr)void prepare_ftrace_return (unsigned long *parent,unsigned long self_addr); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* CONFIG_FUNCTION_TRACER */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* arch/sh/kernel/return_address.c */ extern void *return_address (unsigned int );
@@ -53,6 +53,6 @@ static inline void arch_ftrace_nmi_enter(void) { }static inline void arch_ftrace_nmi_exit (void ) { }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_FTRACE_H */
arch/sh/include/asm/mmu.h +2 -2
@@ -33,7 +33,7 @@#define PMB_NO_ENTRY (-1) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/errno.h> #include <linux/threads.h> #include <asm/page.h>
@@ -102,6 +102,6 @@ pmb_remap(phys_addr_t phys, unsigned long size, pgprot_t prot)return pmb_remap_caller (phys, size, prot,__builtin_return_address (0 )); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __MMU_H */
arch/sh/include/asm/page.h +4 -4
@@ -30,7 +30,7 @@#define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/uncached.h> extern unsigned long shm_align_mask;
@@ -85,7 +85,7 @@ typedef struct page *pgtable_t;#define pte_pgprot (x) __pgprot(pte_val(x) & PTE_FLAGS_MASK) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * __MEMORY_START and SIZE are the physical addresses and size of RAM.
@@ -126,10 +126,10 @@ typedef struct page *pgtable_t;#define ___va (x) ((x)+PAGE_OFFSET)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __pa (x) ___pa((unsigned long)x)#define __va (x) (void *)___va((unsigned long)x) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #ifdef CONFIG_UNCACHED_MAPPING #if defined(CONFIG_29BIT )
arch/sh/include/asm/pgtable.h +2 -2
@@ -17,7 +17,7 @@#include <asm/page.h> #include <asm/mmu.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/addrspace.h> #include <asm/fixmap.h>
@@ -28,7 +28,7 @@extern unsigned long empty_zero_page[PAGE_SIZE /sizeof (unsigned long )];#define ZERO_PAGE (vaddr) (virt_to_page(empty_zero_page)) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * Effective and physical address definitions, to aid with sign
arch/sh/include/asm/pgtable_32.h +4 -4
@@ -170,7 +170,7 @@ static inline unsigned long copy_ptea_attributes(unsigned long x) (PTE_MASK | _PAGE_ACCESSED | _PAGE_CACHABLE | \ _PAGE_DIRTY | _PAGE_SPECIAL) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#if defined(CONFIG_X2TLB )/* SH-X2 TLB */ #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_CACHABLE | \
@@ -287,9 +287,9 @@ static inline unsigned long copy_ptea_attributes(unsigned long x) __pgprot(0)#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * Certain architectures need to do special things when PTEs
@@ -486,5 +486,5 @@ static inline int pte_swp_exclusive(pte_t pte) PTE_BIT_FUNC(low, swp_mkexclusive, |= _PAGE_SWP_EXCLUSIVE); PTE_BIT_FUNC(low, swp_clear_exclusive, &= ~_PAGE_SWP_EXCLUSIVE); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_PGTABLE_32_H */
arch/sh/include/asm/processor.h +2 -2
@@ -5,7 +5,7 @@#include <asm/cpu-features.h> #include <asm/cache.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * CPU type and hardware bug flags. Kept separately for each CPU. *
@@ -168,7 +168,7 @@ extern unsigned int instruction_size(unsigned int insn);void select_idle_routine (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm/processor_32.h>
arch/sh/include/asm/smc37c93x.h +2 -2
@@ -67,7 +67,7 @@#define UART_DLL 0x0/* Divisor Latch (LS) */ #define UART_DLM 0x2/* Divisor Latch (MS) */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ typedef struct uart_reg { volatile __u16 rbr; volatile __u16 ier;
@@ -78,7 +78,7 @@ typedef struct uart_reg {volatile __u16 msr; volatile __u16 scr; } uart_reg; -#endif /* ! __ASSEMBLY__ */ +#endif /* ! __ASSEMBLER__ */ /* Alias for Write Only Register */
arch/sh/include/asm/suspend.h +1 -1
@@ -2,7 +2,7 @@#ifndef _ASM_SH_SUSPEND_H#define _ASM_SH_SUSPEND_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/notifier.h> #include <asm/ptrace.h>
arch/sh/include/asm/thread_info.h +5 -5
@@ -21,7 +21,7 @@#define FAULT_CODE_PROT (1 << 3)/* protection fault */ #define FAULT_CODE_USER (1 << 4)/* user-mode access */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/processor.h> struct thread_info {
@@ -49,7 +49,7 @@ struct thread_info {/* * macros/functions for gaining access to the thread information structure */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \
@@ -86,7 +86,7 @@ static inline struct thread_info *current_thread_info(void)extern void init_thread_xstate (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Thread information flags
@@ -144,7 +144,7 @@ extern void init_thread_xstate(void);*/ #define TS_USEDFPU 0x0002/* FPU used by this task this quantum */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define TI_FLAG_FAULT_CODE_SHIFT 24
@@ -164,5 +164,5 @@ static inline unsigned int get_thread_fault_code(void)return ti->flags >>TI_FLAG_FAULT_CODE_SHIFT ; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_SH_THREAD_INFO_H */
arch/sh/include/asm/tlb.h +2 -2
@@ -2,7 +2,7 @@#ifndef __ASM_SH_TLB_H#define __ASM_SH_TLB_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/pagemap.h> #include <asm-generic/tlb.h>
@@ -29,5 +29,5 @@ asmlinkage int handle_tlbmiss(struct pt_regs *regs, unsigned long error_code, unsigned long address);#endif /* CONFIG_MMU */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_TLB_H */
arch/sh/include/asm/types.h +2 -2
@@ -7,10 +7,10 @@/* * These aren't exported outside the kernel to avoid name space clashes */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef u16 insn_size_t ;typedef u32 reg_size_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_TYPES_H */
arch/sh/include/mach-common/mach/romimage.h +3 -3
@@ -1,12 +1,12 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* do nothing here by default */ -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ static inline void mmcif_update_progress (int nr) { } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */
arch/sh/include/mach-ecovec24/mach/romimage.h +3 -3
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* EcoVec board specific boot code: * converts the "partner-jet-script.txt" script into assembly
@@ -22,7 +22,7 @@ 1 : .long 0xa8000000 2 : -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ /* Ecovec board specific information: *
@@ -45,4 +45,4 @@ static inline void mmcif_update_progress(int nr) __raw_writeb(1 << (nr - 1), PGDR); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */
arch/sh/include/mach-kfr2r09/mach/romimage.h +3 -3
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* kfr2r09 board specific boot code: * converts the "partner-jet-script.txt" script into assembly
@@ -22,10 +22,10 @@ 1: .long 0xa8000000 2: -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ static inline void mmcif_update_progress (int nr) { } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */
Signature · 1 line
2.48.1
Re: [PATCH 32/41] sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in the SuperH headers
Quoted 453 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc Yoshinori Sato <[email protected]>Cc Rich Felker <[email protected]>Cc John Paul Adrian Glaubitz <[email protected]>Signed-off-by Thomas Huth <[email protected]>--- arch/sh/include/asm/cache.h | 4 ++-- arch/sh/include/asm/dwarf.h | 6 +++--- arch/sh/include/asm/fpu.h | 4 ++-- arch/sh/include/asm/ftrace.h | 8 ++++---- arch/sh/include/asm/mmu.h | 4 ++-- arch/sh/include/asm/page.h | 8 ++++---- arch/sh/include/asm/pgtable.h | 4 ++-- arch/sh/include/asm/pgtable_32.h | 8 ++++---- arch/sh/include/asm/processor.h | 4 ++-- arch/sh/include/asm/smc37c93x.h | 4 ++-- arch/sh/include/asm/suspend.h | 2 +- arch/sh/include/asm/thread_info.h | 10 +++++----- arch/sh/include/asm/tlb.h | 4 ++-- arch/sh/include/asm/types.h | 4 ++-- arch/sh/include/mach-common/mach/romimage.h | 6 +++--- arch/sh/include/mach-ecovec24/mach/romimage.h | 6 +++--- arch/sh/include/mach-kfr2r09/mach/romimage.h | 6 +++--- 17 files changed, 46 insertions(+), 46 deletions(-)arch/sh/include/asm/cache.h +2
-2@@ -22,7 +22,7 @@#define __read_mostly __section(".data..read_mostly") -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct cache_info { unsigned int ways; /* Number of cache ways */ unsigned int sets; /* Number of cache sets */@@ -48,5 +48,5 @@ struct cache_info {unsigned long flags; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_CACHE_H */ arch/sh/include/asm/dwarf.h +3
-3@@ -189,7 +189,7 @@*/ #define DWARF_ARCH_RA_REG 17 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/compiler.h> #include <linux/bug.h> @@ -379,7 +379,7 @@ extern int module_dwarf_finalize(const Elf_Ehdr *, const Elf_Shdr *, struct module *);extern void module_dwarf_cleanup (struct module *); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #define CFI_STARTPROC .cfi_startproc#define CFI_ENDPROC .cfi_endproc@@ -402,7 +402,7 @@ extern void module_dwarf_cleanup(struct module *);#define CFI_REL_OFFSET CFI_IGNORE#define CFI_UNDEFINED CFI_IGNORE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void dwarf_unwinder_init (void ) { }arch/sh/include/asm/fpu.h +2
-2@@ -2,7 +2,7 @@#ifndef __ASM_SH_FPU_H#define __ASM_SH_FPU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ptrace.h> @@ -67,6 +67,6 @@ static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs)void float_raise (unsigned int flags);int float_rounding_mode (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_FPU_H */ arch/sh/include/asm/ftrace.h +4
-4@@ -7,7 +7,7 @@#define MCOUNT_INSN_SIZE 4/* sizeof mcount call */ #define FTRACE_SYSCALL_MAX NR_syscalls -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void mcount (void );#define MCOUNT_ADDR ((unsigned long)(mcount))@@ -35,10 +35,10 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr)void prepare_ftrace_return (unsigned long *parent,unsigned long self_addr); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* CONFIG_FUNCTION_TRACER */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* arch/sh/kernel/return_address.c */ extern void *return_address (unsigned int );@@ -53,6 +53,6 @@ static inline void arch_ftrace_nmi_enter(void) { }static inline void arch_ftrace_nmi_exit (void ) { }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_FTRACE_H */ arch/sh/include/asm/mmu.h +2
-2@@ -33,7 +33,7 @@#define PMB_NO_ENTRY (-1) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/errno.h> #include <linux/threads.h> #include <asm/page.h> @@ -102,6 +102,6 @@ pmb_remap(phys_addr_t phys, unsigned long size, pgprot_t prot)return pmb_remap_caller (phys, size, prot,__builtin_return_address (0 )); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __MMU_H */ arch/sh/include/asm/page.h +4
-4@@ -30,7 +30,7 @@#define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/uncached.h> extern unsigned long shm_align_mask;@@ -85,7 +85,7 @@ typedef struct page *pgtable_t;#define pte_pgprot (x) __pgprot(pte_val(x) & PTE_FLAGS_MASK) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * __MEMORY_START and SIZE are the physical addresses and size of RAM. @@ -126,10 +126,10 @@ typedef struct page *pgtable_t;#define ___va (x) ((x)+PAGE_OFFSET)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __pa (x) ___pa((unsigned long)x)#define __va (x) (void *)___va((unsigned long)x) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #ifdef CONFIG_UNCACHED_MAPPING #if defined(CONFIG_29BIT )arch/sh/include/asm/pgtable.h +2
-2@@ -17,7 +17,7 @@#include <asm/page.h> #include <asm/mmu.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/addrspace.h> #include <asm/fixmap.h> @@ -28,7 +28,7 @@extern unsigned long empty_zero_page[PAGE_SIZE /sizeof (unsigned long )];#define ZERO_PAGE (vaddr) (virt_to_page(empty_zero_page)) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * Effective and physical address definitions, to aid with sign arch/sh/include/asm/pgtable_32.h +4
-4@@ -170,7 +170,7 @@ static inline unsigned long copy_ptea_attributes(unsigned long x) (PTE_MASK | _PAGE_ACCESSED | _PAGE_CACHABLE | \ _PAGE_DIRTY | _PAGE_SPECIAL) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#if defined(CONFIG_X2TLB )/* SH-X2 TLB */ #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_CACHABLE | \@@ -287,9 +287,9 @@ static inline unsigned long copy_ptea_attributes(unsigned long x) __pgprot(0)#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * Certain architectures need to do special things when PTEs @@ -486,5 +486,5 @@ static inline int pte_swp_exclusive(pte_t pte) PTE_BIT_FUNC(low, swp_mkexclusive, |= _PAGE_SWP_EXCLUSIVE); PTE_BIT_FUNC(low, swp_clear_exclusive, &= ~_PAGE_SWP_EXCLUSIVE); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_PGTABLE_32_H */ arch/sh/include/asm/processor.h +2
-2@@ -5,7 +5,7 @@#include <asm/cpu-features.h> #include <asm/cache.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * CPU type and hardware bug flags. Kept separately for each CPU. * @@ -168,7 +168,7 @@ extern unsigned int instruction_size(unsigned int insn);void select_idle_routine (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm/processor_32.h> arch/sh/include/asm/smc37c93x.h +2
-2@@ -67,7 +67,7 @@#define UART_DLL 0x0/* Divisor Latch (LS) */ #define UART_DLM 0x2/* Divisor Latch (MS) */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ typedef struct uart_reg { volatile __u16 rbr; volatile __u16 ier;@@ -78,7 +78,7 @@ typedef struct uart_reg {volatile __u16 msr; volatile __u16 scr; } uart_reg; -#endif /* ! __ASSEMBLY__ */ +#endif /* ! __ASSEMBLER__ */ /* Alias for Write Only Register */ arch/sh/include/asm/suspend.h +1
-1@@ -2,7 +2,7 @@#ifndef _ASM_SH_SUSPEND_H#define _ASM_SH_SUSPEND_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/notifier.h> #include <asm/ptrace.h> arch/sh/include/asm/thread_info.h +5
-5@@ -21,7 +21,7 @@#define FAULT_CODE_PROT (1 << 3)/* protection fault */ #define FAULT_CODE_USER (1 << 4)/* user-mode access */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/processor.h> struct thread_info {@@ -49,7 +49,7 @@ struct thread_info {/* * macros/functions for gaining access to the thread information structure */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \@@ -86,7 +86,7 @@ static inline struct thread_info *current_thread_info(void)extern void init_thread_xstate (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Thread information flags @@ -144,7 +144,7 @@ extern void init_thread_xstate(void);*/ #define TS_USEDFPU 0x0002/* FPU used by this task this quantum */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define TI_FLAG_FAULT_CODE_SHIFT 24@@ -164,5 +164,5 @@ static inline unsigned int get_thread_fault_code(void)return ti->flags >>TI_FLAG_FAULT_CODE_SHIFT ; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_SH_THREAD_INFO_H */ arch/sh/include/asm/tlb.h +2
-2@@ -2,7 +2,7 @@#ifndef __ASM_SH_TLB_H#define __ASM_SH_TLB_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/pagemap.h> #include <asm-generic/tlb.h> @@ -29,5 +29,5 @@ asmlinkage int handle_tlbmiss(struct pt_regs *regs, unsigned long error_code, unsigned long address);#endif /* CONFIG_MMU */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_TLB_H */ arch/sh/include/asm/types.h +2
-2@@ -7,10 +7,10 @@/* * These aren't exported outside the kernel to avoid name space clashes */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef u16 insn_size_t ;typedef u32 reg_size_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_TYPES_H */ arch/sh/include/mach-common/mach/romimage.h +3
-3@@ -1,12 +1,12 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* do nothing here by default */ -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ static inline void mmcif_update_progress (int nr) { } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ arch/sh/include/mach-ecovec24/mach/romimage.h +3
-3@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* EcoVec board specific boot code: * converts the "partner-jet-script.txt" script into assembly @@ -22,7 +22,7 @@ 1 : .long 0xa8000000 2 : -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ /* Ecovec board specific information: * @@ -45,4 +45,4 @@ static inline void mmcif_update_progress(int nr) __raw_writeb(1 << (nr - 1), PGDR); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ arch/sh/include/mach-kfr2r09/mach/romimage.h +1
-1@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* kfr2r09 board specific boot code: * converts the "partner-jet-script.txt" script into assembly @@ -22,10 +22,10 @@ 1: .long 0xa8000000 2:
arch/sh/include/mach-kfr2r09/mach/romimage.h line 31
Quoted 10 lines
arch/sh/include/mach-kfr2r09/mach/romimage.h +2
-2-#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ static inline void mmcif_update_progress (int nr) { } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */
Friendly ping!
Yoshinori, Rich, John, could you maybe pick this patch up via your sh tree? (x86 and parisc already got merge via their respective architecture trees, so I guess the same should happen for this patch here, too).
Thanks,
Thomas
John Paul Adrian Glaubitz
maintainerRe: [PATCH 32/41] sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in the SuperH headers
Hi Thomas,
Quoted 462 lines · Thomas Huth
Quoted 461 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc Yoshinori Sato <[email protected]>Cc Rich Felker <[email protected]>Cc John Paul Adrian Glaubitz <[email protected]>Signed-off-by Thomas Huth <[email protected]>--- arch/sh/include/asm/cache.h | 4 ++-- arch/sh/include/asm/dwarf.h | 6 +++--- arch/sh/include/asm/fpu.h | 4 ++-- arch/sh/include/asm/ftrace.h | 8 ++++---- arch/sh/include/asm/mmu.h | 4 ++-- arch/sh/include/asm/page.h | 8 ++++---- arch/sh/include/asm/pgtable.h | 4 ++-- arch/sh/include/asm/pgtable_32.h | 8 ++++---- arch/sh/include/asm/processor.h | 4 ++-- arch/sh/include/asm/smc37c93x.h | 4 ++-- arch/sh/include/asm/suspend.h | 2 +- arch/sh/include/asm/thread_info.h | 10 +++++----- arch/sh/include/asm/tlb.h | 4 ++-- arch/sh/include/asm/types.h | 4 ++-- arch/sh/include/mach-common/mach/romimage.h | 6 +++--- arch/sh/include/mach-ecovec24/mach/romimage.h | 6 +++--- arch/sh/include/mach-kfr2r09/mach/romimage.h | 6 +++--- 17 files changed, 46 insertions(+), 46 deletions(-)arch/sh/include/asm/cache.h +2
-2@@ -22,7 +22,7 @@#define __read_mostly __section(".data..read_mostly") -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct cache_info { unsigned int ways; /* Number of cache ways */ unsigned int sets; /* Number of cache sets */@@ -48,5 +48,5 @@ struct cache_info {unsigned long flags; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_CACHE_H */ arch/sh/include/asm/dwarf.h +3
-3@@ -189,7 +189,7 @@*/ #define DWARF_ARCH_RA_REG 17 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/compiler.h> #include <linux/bug.h> @@ -379,7 +379,7 @@ extern int module_dwarf_finalize(const Elf_Ehdr *, const Elf_Shdr *, struct module *);extern void module_dwarf_cleanup (struct module *); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #define CFI_STARTPROC .cfi_startproc#define CFI_ENDPROC .cfi_endproc@@ -402,7 +402,7 @@ extern void module_dwarf_cleanup(struct module *);#define CFI_REL_OFFSET CFI_IGNORE#define CFI_UNDEFINED CFI_IGNORE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void dwarf_unwinder_init (void ) { }arch/sh/include/asm/fpu.h +2
-2@@ -2,7 +2,7 @@#ifndef __ASM_SH_FPU_H#define __ASM_SH_FPU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ptrace.h> @@ -67,6 +67,6 @@ static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs)void float_raise (unsigned int flags);int float_rounding_mode (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_FPU_H */ arch/sh/include/asm/ftrace.h +4
-4@@ -7,7 +7,7 @@#define MCOUNT_INSN_SIZE 4/* sizeof mcount call */ #define FTRACE_SYSCALL_MAX NR_syscalls -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void mcount (void );#define MCOUNT_ADDR ((unsigned long)(mcount))@@ -35,10 +35,10 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr)void prepare_ftrace_return (unsigned long *parent,unsigned long self_addr); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* CONFIG_FUNCTION_TRACER */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* arch/sh/kernel/return_address.c */ extern void *return_address (unsigned int );@@ -53,6 +53,6 @@ static inline void arch_ftrace_nmi_enter(void) { }static inline void arch_ftrace_nmi_exit (void ) { }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_FTRACE_H */ arch/sh/include/asm/mmu.h +2
-2@@ -33,7 +33,7 @@#define PMB_NO_ENTRY (-1) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/errno.h> #include <linux/threads.h> #include <asm/page.h> @@ -102,6 +102,6 @@ pmb_remap(phys_addr_t phys, unsigned long size, pgprot_t prot)return pmb_remap_caller (phys, size, prot,__builtin_return_address (0 )); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __MMU_H */ arch/sh/include/asm/page.h +4
-4@@ -30,7 +30,7 @@#define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/uncached.h> extern unsigned long shm_align_mask;@@ -85,7 +85,7 @@ typedef struct page *pgtable_t;#define pte_pgprot (x) __pgprot(pte_val(x) & PTE_FLAGS_MASK) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * __MEMORY_START and SIZE are the physical addresses and size of RAM. @@ -126,10 +126,10 @@ typedef struct page *pgtable_t;#define ___va (x) ((x)+PAGE_OFFSET)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __pa (x) ___pa((unsigned long)x)#define __va (x) (void *)___va((unsigned long)x) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #ifdef CONFIG_UNCACHED_MAPPING #if defined(CONFIG_29BIT )arch/sh/include/asm/pgtable.h +2
-2@@ -17,7 +17,7 @@#include <asm/page.h> #include <asm/mmu.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/addrspace.h> #include <asm/fixmap.h> @@ -28,7 +28,7 @@extern unsigned long empty_zero_page[PAGE_SIZE /sizeof (unsigned long )];#define ZERO_PAGE (vaddr) (virt_to_page(empty_zero_page)) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * Effective and physical address definitions, to aid with sign arch/sh/include/asm/pgtable_32.h +4
-4@@ -170,7 +170,7 @@ static inline unsigned long copy_ptea_attributes(unsigned long x) (PTE_MASK | _PAGE_ACCESSED | _PAGE_CACHABLE | \ _PAGE_DIRTY | _PAGE_SPECIAL) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#if defined(CONFIG_X2TLB )/* SH-X2 TLB */ #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_CACHABLE | \@@ -287,9 +287,9 @@ static inline unsigned long copy_ptea_attributes(unsigned long x) __pgprot(0)#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * Certain architectures need to do special things when PTEs @@ -486,5 +486,5 @@ static inline int pte_swp_exclusive(pte_t pte) PTE_BIT_FUNC(low, swp_mkexclusive, |= _PAGE_SWP_EXCLUSIVE); PTE_BIT_FUNC(low, swp_clear_exclusive, &= ~_PAGE_SWP_EXCLUSIVE); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_PGTABLE_32_H */ arch/sh/include/asm/processor.h +2
-2@@ -5,7 +5,7 @@#include <asm/cpu-features.h> #include <asm/cache.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * CPU type and hardware bug flags. Kept separately for each CPU. * @@ -168,7 +168,7 @@ extern unsigned int instruction_size(unsigned int insn);void select_idle_routine (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm/processor_32.h> arch/sh/include/asm/smc37c93x.h +2
-2@@ -67,7 +67,7 @@#define UART_DLL 0x0/* Divisor Latch (LS) */ #define UART_DLM 0x2/* Divisor Latch (MS) */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ typedef struct uart_reg { volatile __u16 rbr; volatile __u16 ier;@@ -78,7 +78,7 @@ typedef struct uart_reg {volatile __u16 msr; volatile __u16 scr; } uart_reg; -#endif /* ! __ASSEMBLY__ */ +#endif /* ! __ASSEMBLER__ */ /* Alias for Write Only Register */ arch/sh/include/asm/suspend.h +1
-1@@ -2,7 +2,7 @@#ifndef _ASM_SH_SUSPEND_H#define _ASM_SH_SUSPEND_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/notifier.h> #include <asm/ptrace.h> arch/sh/include/asm/thread_info.h +5
-5@@ -21,7 +21,7 @@#define FAULT_CODE_PROT (1 << 3)/* protection fault */ #define FAULT_CODE_USER (1 << 4)/* user-mode access */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/processor.h> struct thread_info {@@ -49,7 +49,7 @@ struct thread_info {/* * macros/functions for gaining access to the thread information structure */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \@@ -86,7 +86,7 @@ static inline struct thread_info *current_thread_info(void)extern void init_thread_xstate (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Thread information flags @@ -144,7 +144,7 @@ extern void init_thread_xstate(void);*/ #define TS_USEDFPU 0x0002/* FPU used by this task this quantum */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define TI_FLAG_FAULT_CODE_SHIFT 24@@ -164,5 +164,5 @@ static inline unsigned int get_thread_fault_code(void)return ti->flags >>TI_FLAG_FAULT_CODE_SHIFT ; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_SH_THREAD_INFO_H */ arch/sh/include/asm/tlb.h +2
-2@@ -2,7 +2,7 @@#ifndef __ASM_SH_TLB_H#define __ASM_SH_TLB_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/pagemap.h> #include <asm-generic/tlb.h> @@ -29,5 +29,5 @@ asmlinkage int handle_tlbmiss(struct pt_regs *regs, unsigned long error_code, unsigned long address);#endif /* CONFIG_MMU */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_TLB_H */ arch/sh/include/asm/types.h +2
-2@@ -7,10 +7,10 @@/* * These aren't exported outside the kernel to avoid name space clashes */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef u16 insn_size_t ;typedef u32 reg_size_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_TYPES_H */ arch/sh/include/mach-common/mach/romimage.h +3
-3@@ -1,12 +1,12 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* do nothing here by default */ -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ static inline void mmcif_update_progress (int nr) { } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ arch/sh/include/mach-ecovec24/mach/romimage.h +3
-3@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* EcoVec board specific boot code: * converts the "partner-jet-script.txt" script into assembly @@ -22,7 +22,7 @@ 1 : .long 0xa8000000 2 : -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ /* Ecovec board specific information: * @@ -45,4 +45,4 @@ static inline void mmcif_update_progress(int nr) __raw_writeb(1 << (nr - 1), PGDR); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ arch/sh/include/mach-kfr2r09/mach/romimage.h +2
-2@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* kfr2r09 board specific boot code: * converts the "partner-jet-script.txt" script into assembly @@ -22,10 +22,10 @@ 1: .long 0xa8000000 2: -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ static inline void mmcif_update_progress (int nr) { }
Quoted 8 lines
arch/sh/include/mach-kfr2r09/mach/romimage.h line 31
Quoted 2 lines
arch/sh/include/mach-kfr2r09/mach/romimage.h +1
-1-#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ Friendly ping!
Yoshinori, Rich, John, could you maybe pick this patch up via your sh tree? (x86 and parisc already got merge via their respective architecture trees, so I guess the same should happen for this patch here, too).
Yes, I'll review and pick it up this weekend.
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Re: [PATCH 32/41] sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in the SuperH headers
In reply to Thomas HuthHi Thomas,
Quoted 453 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc Yoshinori Sato <[email protected]>Cc Rich Felker <[email protected]>Cc John Paul Adrian Glaubitz <[email protected]>Signed-off-by Thomas Huth <[email protected]>--- arch/sh/include/asm/cache.h | 4 ++-- arch/sh/include/asm/dwarf.h | 6 +++--- arch/sh/include/asm/fpu.h | 4 ++-- arch/sh/include/asm/ftrace.h | 8 ++++---- arch/sh/include/asm/mmu.h | 4 ++-- arch/sh/include/asm/page.h | 8 ++++---- arch/sh/include/asm/pgtable.h | 4 ++-- arch/sh/include/asm/pgtable_32.h | 8 ++++---- arch/sh/include/asm/processor.h | 4 ++-- arch/sh/include/asm/smc37c93x.h | 4 ++-- arch/sh/include/asm/suspend.h | 2 +- arch/sh/include/asm/thread_info.h | 10 +++++----- arch/sh/include/asm/tlb.h | 4 ++-- arch/sh/include/asm/types.h | 4 ++-- arch/sh/include/mach-common/mach/romimage.h | 6 +++--- arch/sh/include/mach-ecovec24/mach/romimage.h | 6 +++--- arch/sh/include/mach-kfr2r09/mach/romimage.h | 6 +++--- 17 files changed, 46 insertions(+), 46 deletions(-)arch/sh/include/asm/cache.h +2
-2@@ -22,7 +22,7 @@#define __read_mostly __section(".data..read_mostly") -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct cache_info { unsigned int ways; /* Number of cache ways */ unsigned int sets; /* Number of cache sets */@@ -48,5 +48,5 @@ struct cache_info {unsigned long flags; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_CACHE_H */ arch/sh/include/asm/dwarf.h +3
-3@@ -189,7 +189,7 @@*/ #define DWARF_ARCH_RA_REG 17 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/compiler.h> #include <linux/bug.h> @@ -379,7 +379,7 @@ extern int module_dwarf_finalize(const Elf_Ehdr *, const Elf_Shdr *, struct module *);extern void module_dwarf_cleanup (struct module *); -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #define CFI_STARTPROC .cfi_startproc#define CFI_ENDPROC .cfi_endproc@@ -402,7 +402,7 @@ extern void module_dwarf_cleanup(struct module *);#define CFI_REL_OFFSET CFI_IGNORE#define CFI_UNDEFINED CFI_IGNORE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void dwarf_unwinder_init (void ) { }arch/sh/include/asm/fpu.h +2
-2@@ -2,7 +2,7 @@#ifndef __ASM_SH_FPU_H#define __ASM_SH_FPU_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ptrace.h> @@ -67,6 +67,6 @@ static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs)void float_raise (unsigned int flags);int float_rounding_mode (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_FPU_H */ arch/sh/include/asm/ftrace.h +4
-4@@ -7,7 +7,7 @@#define MCOUNT_INSN_SIZE 4/* sizeof mcount call */ #define FTRACE_SYSCALL_MAX NR_syscalls -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void mcount (void );#define MCOUNT_ADDR ((unsigned long)(mcount))@@ -35,10 +35,10 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr)void prepare_ftrace_return (unsigned long *parent,unsigned long self_addr); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* CONFIG_FUNCTION_TRACER */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* arch/sh/kernel/return_address.c */ extern void *return_address (unsigned int );@@ -53,6 +53,6 @@ static inline void arch_ftrace_nmi_enter(void) { }static inline void arch_ftrace_nmi_exit (void ) { }#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_FTRACE_H */ arch/sh/include/asm/mmu.h +2
-2@@ -33,7 +33,7 @@#define PMB_NO_ENTRY (-1) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/errno.h> #include <linux/threads.h> #include <asm/page.h> @@ -102,6 +102,6 @@ pmb_remap(phys_addr_t phys, unsigned long size, pgprot_t prot)return pmb_remap_caller (phys, size, prot,__builtin_return_address (0 )); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __MMU_H */ arch/sh/include/asm/page.h +4
-4@@ -30,7 +30,7 @@#define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/uncached.h> extern unsigned long shm_align_mask;@@ -85,7 +85,7 @@ typedef struct page *pgtable_t;#define pte_pgprot (x) __pgprot(pte_val(x) & PTE_FLAGS_MASK) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * __MEMORY_START and SIZE are the physical addresses and size of RAM. @@ -126,10 +126,10 @@ typedef struct page *pgtable_t;#define ___va (x) ((x)+PAGE_OFFSET)#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __pa (x) ___pa((unsigned long)x)#define __va (x) (void *)___va((unsigned long)x) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #ifdef CONFIG_UNCACHED_MAPPING #if defined(CONFIG_29BIT )arch/sh/include/asm/pgtable.h +2
-2@@ -17,7 +17,7 @@#include <asm/page.h> #include <asm/mmu.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/addrspace.h> #include <asm/fixmap.h> @@ -28,7 +28,7 @@extern unsigned long empty_zero_page[PAGE_SIZE /sizeof (unsigned long )];#define ZERO_PAGE (vaddr) (virt_to_page(empty_zero_page)) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ /* * Effective and physical address definitions, to aid with sign arch/sh/include/asm/pgtable_32.h +4
-4@@ -170,7 +170,7 @@ static inline unsigned long copy_ptea_attributes(unsigned long x) (PTE_MASK | _PAGE_ACCESSED | _PAGE_CACHABLE | \ _PAGE_DIRTY | _PAGE_SPECIAL) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#if defined(CONFIG_X2TLB )/* SH-X2 TLB */ #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_CACHABLE | \@@ -287,9 +287,9 @@ static inline unsigned long copy_ptea_attributes(unsigned long x) __pgprot(0)#endif -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * Certain architectures need to do special things when PTEs @@ -486,5 +486,5 @@ static inline int pte_swp_exclusive(pte_t pte) PTE_BIT_FUNC(low, swp_mkexclusive, |= _PAGE_SWP_EXCLUSIVE); PTE_BIT_FUNC(low, swp_clear_exclusive, &= ~_PAGE_SWP_EXCLUSIVE); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_PGTABLE_32_H */ arch/sh/include/asm/processor.h +2
-2@@ -5,7 +5,7 @@#include <asm/cpu-features.h> #include <asm/cache.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * CPU type and hardware bug flags. Kept separately for each CPU. * @@ -168,7 +168,7 @@ extern unsigned int instruction_size(unsigned int insn);void select_idle_routine (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #include <asm/processor_32.h> arch/sh/include/asm/smc37c93x.h +2
-2@@ -67,7 +67,7 @@#define UART_DLL 0x0/* Divisor Latch (LS) */ #define UART_DLM 0x2/* Divisor Latch (MS) */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ typedef struct uart_reg { volatile __u16 rbr; volatile __u16 ier;@@ -78,7 +78,7 @@ typedef struct uart_reg {volatile __u16 msr; volatile __u16 scr; } uart_reg; -#endif /* ! __ASSEMBLY__ */ +#endif /* ! __ASSEMBLER__ */ /* Alias for Write Only Register */ arch/sh/include/asm/suspend.h +1
-1@@ -2,7 +2,7 @@#ifndef _ASM_SH_SUSPEND_H#define _ASM_SH_SUSPEND_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/notifier.h> #include <asm/ptrace.h> arch/sh/include/asm/thread_info.h +5
-5@@ -21,7 +21,7 @@#define FAULT_CODE_PROT (1 << 3)/* protection fault */ #define FAULT_CODE_USER (1 << 4)/* user-mode access */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/processor.h> struct thread_info {@@ -49,7 +49,7 @@ struct thread_info {/* * macros/functions for gaining access to the thread information structure */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \ .task = &tsk, \@@ -86,7 +86,7 @@ static inline struct thread_info *current_thread_info(void)extern void init_thread_xstate (void ); -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* * Thread information flags @@ -144,7 +144,7 @@ extern void init_thread_xstate(void);*/ #define TS_USEDFPU 0x0002/* FPU used by this task this quantum */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define TI_FLAG_FAULT_CODE_SHIFT 24@@ -164,5 +164,5 @@ static inline unsigned int get_thread_fault_code(void)return ti->flags >>TI_FLAG_FAULT_CODE_SHIFT ; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __ASM_SH_THREAD_INFO_H */ arch/sh/include/asm/tlb.h +2
-2@@ -2,7 +2,7 @@#ifndef __ASM_SH_TLB_H#define __ASM_SH_TLB_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/pagemap.h> #include <asm-generic/tlb.h> @@ -29,5 +29,5 @@ asmlinkage int handle_tlbmiss(struct pt_regs *regs, unsigned long error_code, unsigned long address);#endif /* CONFIG_MMU */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_TLB_H */ arch/sh/include/asm/types.h +2
-2@@ -7,10 +7,10 @@/* * These aren't exported outside the kernel to avoid name space clashes */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef u16 insn_size_t ;typedef u32 reg_size_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_SH_TYPES_H */ arch/sh/include/mach-common/mach/romimage.h +3
-3@@ -1,12 +1,12 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* do nothing here by default */ -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ static inline void mmcif_update_progress (int nr) { } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ arch/sh/include/mach-ecovec24/mach/romimage.h +3
-3@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* EcoVec board specific boot code: * converts the "partner-jet-script.txt" script into assembly @@ -22,7 +22,7 @@ 1 : .long 0xa8000000 2 : -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ /* Ecovec board specific information: * @@ -45,4 +45,4 @@ static inline void mmcif_update_progress(int nr) __raw_writeb(1 << (nr - 1), PGDR); } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ arch/sh/include/mach-kfr2r09/mach/romimage.h +1
-1@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* kfr2r09 board specific boot code: * converts the "partner-jet-script.txt" script into assembly @@ -22,10 +22,10 @@ 1: .long 0xa8000000 2:
arch/sh/include/mach-kfr2r09/mach/romimage.h line 31
Quoted 10 lines
arch/sh/include/mach-kfr2r09/mach/romimage.h +2
-2-#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ static inline void mmcif_update_progress (int nr) { } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */
I agree with this. Changes look good to me.
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
PATCH 33/41 sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
In reply to Thomas Huth__ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembly code.
This is a completely mechanical patch (done with a simple "sed -i" statement).
--- arch/sparc/include/uapi/asm/ptrace.h | 24 ++++++++++++------------ arch/sparc/include/uapi/asm/signal.h | 4 ++-- arch/sparc/include/uapi/asm/traps.h | 4 ++-- arch/sparc/include/uapi/asm/utrap.h | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-)
arch/sparc/include/uapi/asm/ptrace.h +12 -12
@@ -15,7 +15,7 @@*/ #define PT_REGS_MAGIC 0x57ac6c00 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h>
@@ -88,7 +88,7 @@ struct sparc_trapf {unsigned long _unused; struct pt_regs *regs; }; -#endif /* (!__ASSEMBLY__) */ +#endif /* (!__ASSEMBLER__) */ #else /* 32 bit sparc */
@@ -97,7 +97,7 @@ struct sparc_trapf {/* This struct defines the way the registers are stored on the * stack during a system call and basically all traps. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h>
@@ -125,11 +125,11 @@ struct sparc_stackf {unsigned long xargs[6 ];unsigned long xxargs[1 ]; }; -#endif /* (!__ASSEMBLY__) */ +#endif /* (!__ASSEMBLER__) */ #endif /* (defined(__sparc__) && defined(__arch64__))*/ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define TRACEREG_SZ sizeof(struct pt_regs)#define STACKFRAME_SZ sizeof(struct sparc_stackf)
@@ -137,7 +137,7 @@ struct sparc_stackf {#define TRACEREG32_SZ sizeof(struct pt_regs32)#define STACKFRAME32_SZ sizeof(struct sparc_stackf32) -#endif /* (!__ASSEMBLY__) */ +#endif /* (!__ASSEMBLER__) */ #define UREG_G0 0#define UREG_G1 1
@@ -161,30 +161,30 @@ struct sparc_stackf {#if defined(__sparc__) && defined(__arch64__)/* 64 bit sparc */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ -#else /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ /* For assembly code. */ #define TRACEREG_SZ 0xa0#define STACKFRAME_SZ 0xc0#define TRACEREG32_SZ 0x50#define STACKFRAME32_SZ 0x60 -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #else /* (defined(__sparc__) && defined(__arch64__)) */ /* 32 bit sparc */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ -#else /* (!__ASSEMBLY__) */ +#else /* (!__ASSEMBLER__) */ /* For assembly code. */ #define TRACEREG_SZ 0x50#define STACKFRAME_SZ 0x60 -#endif /* (!__ASSEMBLY__) */ +#endif /* (!__ASSEMBLER__) */ #endif /* (defined(__sparc__) && defined(__arch64__)) */
arch/sparc/include/uapi/asm/signal.h +2 -2
@@ -105,7 +105,7 @@#define __old_sigaction32 sigaction32#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef unsigned long __old_sigset_t ;/* at least 32 bits */
@@ -176,6 +176,6 @@ typedef struct sigaltstack { } stack_t; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* _UAPI__SPARC_SIGNAL_H */
arch/sparc/include/uapi/asm/traps.h +2 -2
@@ -10,8 +10,8 @@#define NUM_SPARC_TRAPS 255 -#ifndef __ASSEMBLY__ -#endif /* !(__ASSEMBLY__) */ +#ifndef __ASSEMBLER__ +#endif /* !(__ASSEMBLER__) */ /* For patching the trap table at boot time, we need to know how to * form various common Sparc instructions. Thus these macros...
arch/sparc/include/uapi/asm/utrap.h +2 -2
@@ -44,9 +44,9 @@#define UTH_NOCHANGE (-1) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__typedef int utrap_entry_t ;typedef void *utrap_handler_t ; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* !(__ASM_SPARC64_PROCESSOR_H) */
Signature · 1 line
2.48.1
Re: [PATCH 33/41] sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
Quoted 13 lines · Thomas Huth
__ASSEMBLY__is only defined by theMakefileof the kernel, so this is not really useful for uapi headers (unless the userspaceMakefiledefines it, too). Let's switch to__ASSEMBLER__which gets set automatically by the compiler when compiling assembly code.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc "David S. Miller" <[email protected]>Cc Andreas Larsson <[email protected]>Signed-off-by Thomas Huth <[email protected]>
Quoted 6 lines
--- arch/sparc/include/uapi/asm/ptrace.h | 24 ++++++++++++------------ arch/sparc/include/uapi/asm/signal.h | 4 ++-- arch/sparc/include/uapi/asm/traps.h | 4 ++-- arch/sparc/include/uapi/asm/utrap.h | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-)
Picking this up to my for-next.
Thanks,
Andreas
PATCH 34/41 sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
In reply to Thomas HuthWhile the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize on the __ASSEMBLER__ macro that is provided by the compilers now.
This is a completely mechanical patch (done with a simple "sed -i" statement).
--- arch/sparc/include/asm/adi_64.h | 4 +- arch/sparc/include/asm/auxio.h | 4 +- arch/sparc/include/asm/auxio_32.h | 4 +- arch/sparc/include/asm/auxio_64.h | 4 +- arch/sparc/include/asm/cacheflush_64.h | 4 +- arch/sparc/include/asm/cpudata.h | 4 +- arch/sparc/include/asm/cpudata_64.h | 4 +- arch/sparc/include/asm/delay_64.h | 4 +- arch/sparc/include/asm/ftrace.h | 2 +- arch/sparc/include/asm/hvtramp.h | 2 +- arch/sparc/include/asm/hypervisor.h | 92 ++++++++++++------------- arch/sparc/include/asm/irqflags_32.h | 4 +- arch/sparc/include/asm/irqflags_64.h | 4 +- arch/sparc/include/asm/jump_label.h | 4 +- arch/sparc/include/asm/kdebug_32.h | 4 +- arch/sparc/include/asm/leon.h | 8 +-- arch/sparc/include/asm/leon_amba.h | 6 +- arch/sparc/include/asm/mman.h | 4 +- arch/sparc/include/asm/mmu_64.h | 4 +- arch/sparc/include/asm/mmu_context_32.h | 4 +- arch/sparc/include/asm/mmu_context_64.h | 4 +- arch/sparc/include/asm/mxcc.h | 4 +- arch/sparc/include/asm/obio.h | 4 +- arch/sparc/include/asm/openprom.h | 4 +- arch/sparc/include/asm/page_32.h | 8 +-- arch/sparc/include/asm/page_64.h | 8 +-- arch/sparc/include/asm/pcic.h | 2 +- arch/sparc/include/asm/pgtable_32.h | 4 +- arch/sparc/include/asm/pgtable_64.h | 8 +-- arch/sparc/include/asm/pgtsrmmu.h | 6 +- arch/sparc/include/asm/processor_64.h | 10 +-- arch/sparc/include/asm/psr.h | 4 +- arch/sparc/include/asm/ptrace.h | 12 ++-- arch/sparc/include/asm/ross.h | 4 +- arch/sparc/include/asm/sbi.h | 4 +- arch/sparc/include/asm/sigcontext.h | 4 +- arch/sparc/include/asm/signal.h | 6 +- arch/sparc/include/asm/smp_32.h | 8 +-- arch/sparc/include/asm/smp_64.h | 8 +-- arch/sparc/include/asm/spinlock_32.h | 4 +- arch/sparc/include/asm/spinlock_64.h | 4 +- arch/sparc/include/asm/spitfire.h | 4 +- arch/sparc/include/asm/starfire.h | 2 +- arch/sparc/include/asm/thread_info_32.h | 4 +- arch/sparc/include/asm/thread_info_64.h | 12 ++-- arch/sparc/include/asm/trap_block.h | 4 +- arch/sparc/include/asm/traps.h | 4 +- arch/sparc/include/asm/tsb.h | 2 +- arch/sparc/include/asm/ttable.h | 2 +- arch/sparc/include/asm/turbosparc.h | 4 +- arch/sparc/include/asm/upa.h | 4 +- arch/sparc/include/asm/vaddrs.h | 2 +- arch/sparc/include/asm/viking.h | 4 +- arch/sparc/include/asm/visasm.h | 2 +- drivers/char/hw_random/n2rng.h | 4 +- 55 files changed, 172 insertions(+), 172 deletions(-)
arch/sparc/include/asm/adi_64.h +2 -2
@@ -9,7 +9,7 @@#include <linux/types.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct adi_caps { __u64 blksz;
@@ -41,6 +41,6 @@ static inline unsigned long adi_nbits(void)return adi_state.caps.nbits; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* !(__ASM_SPARC64_ADI_H) */
arch/sparc/include/asm/auxio.h +2 -2
@@ -2,11 +2,11 @@#ifndef ___ASM_SPARC_AUXIO_H#define ___ASM_SPARC_AUXIO_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void __iomem *auxio_register; -#endif /* ifndef __ASSEMBLY__ */ +#endif /* ifndef __ASSEMBLER__ */ #if defined(__sparc__) && defined(__arch64__)#include <asm/auxio_64.h>
arch/sparc/include/asm/auxio_32.h +2 -2
@@ -29,7 +29,7 @@#define AUXIO_FLPY_EJCT 0x02/* Eject floppy disk. Write only. */ #define AUXIO_LED 0x01/* On if set, off if unset. Read/Write */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * NOTE: these routines are implementation dependent--
@@ -75,7 +75,7 @@ do { \ } \ } while (0) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* AUXIO2 (Power Off Control) */
arch/sparc/include/asm/auxio_64.h +2 -2
@@ -74,7 +74,7 @@#define AUXIO_PCIO_CPWR_OFF 0x02/* Courtesy Power Off */ #define AUXIO_PCIO_SPWR_OFF 0x01/* System Power Off */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define AUXIO_LTE_ON 1#define AUXIO_LTE_OFF 0
@@ -94,6 +94,6 @@ void auxio_set_lte(int on);*/ void auxio_set_led (int on); -#endif /* ifndef __ASSEMBLY__ */ +#endif /* ifndef __ASSEMBLER__ */ #endif /* !(_SPARC64_AUXIO_H) */
arch/sparc/include/asm/cacheflush_64.h +2 -2
@@ -4,7 +4,7 @@#include <asm/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/mm.h>
@@ -78,6 +78,6 @@ void flush_ptrace_access(struct vm_area_struct *, struct page *,#define flush_cache_vmap_early (start, end) do { } while (0)#define flush_cache_vunmap (start, end) do { } while (0) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _SPARC64_CACHEFLUSH_H */
arch/sparc/include/asm/cpudata.h +2 -2
@@ -2,14 +2,14 @@#ifndef ___ASM_SPARC_CPUDATA_H#define ___ASM_SPARC_CPUDATA_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/threads.h> #include <linux/percpu.h> extern const struct seq_operations cpuinfo_op; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #if defined(__sparc__) && defined(__arch64__)#include <asm/cpudata_64.h>
arch/sparc/include/asm/cpudata_64.h +2 -2
@@ -7,7 +7,7 @@ #ifndef _SPARC64_CPUDATA_H #define _SPARC64_CPUDATA_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ typedef struct { /* Dcache line 1 */
@@ -35,7 +35,7 @@ DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);#define cpu_data (__cpu) per_cpu(__cpu_data, (__cpu))#define local_cpu_data () (*this_cpu_ptr(&__cpu_data)) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #include <asm/trap_block.h>
arch/sparc/include/asm/delay_64.h +2 -2
@@ -7,12 +7,12 @@#ifndef _SPARC64_DELAY_H#define _SPARC64_DELAY_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void __delay (unsigned long loops);void udelay (unsigned long usecs);#define mdelay (n) udelay((n) * 1000) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _SPARC64_DELAY_H */
arch/sparc/include/asm/ftrace.h +1 -1
@@ -6,7 +6,7 @@#define MCOUNT_ADDR ((unsigned long)(_mcount))#define MCOUNT_INSN_SIZE 4/* sizeof mcount call */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void _mcount (void );#endif
arch/sparc/include/asm/hvtramp.h +1 -1
@@ -2,7 +2,7 @@#ifndef _SPARC64_HVTRAP_H#define _SPARC64_HVTRAP_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h>
arch/sparc/include/asm/hypervisor.h +46 -46
368 lines not on this page · raw message
arch/sparc/include/asm/irqflags_32.h +2 -2
@@ -11,7 +11,7 @@#ifndef _ASM_IRQFLAGS_H#define _ASM_IRQFLAGS_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <asm/psr.h>
@@ -43,6 +43,6 @@ static inline notrace bool arch_irqs_disabled(void)return arch_irqs_disabled_flags (arch_local_save_flags ()); } -#endif /* (__ASSEMBLY__) */ +#endif /* (__ASSEMBLER__) */ #endif /* !(_ASM_IRQFLAGS_H) */
arch/sparc/include/asm/irqflags_64.h +2 -2
@@ -13,7 +13,7 @@#include <asm/pil.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline notrace unsigned long arch_local_save_flags (void ) {
@@ -93,6 +93,6 @@ static inline notrace unsigned long arch_local_irq_save(void)return flags; } -#endif /* (__ASSEMBLY__) */ +#endif /* (__ASSEMBLER__) */ #endif /* !(_ASM_IRQFLAGS_H) */
arch/sparc/include/asm/jump_label.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_SPARC_JUMP_LABEL_H#define _ASM_SPARC_JUMP_LABEL_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h>
@@ -48,5 +48,5 @@ struct jump_entry {jump_label_t key; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif
arch/sparc/include/asm/kdebug_32.h +2 -2
@@ -19,7 +19,7 @@#define DEBUG_BP_TRAP 126 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* The debug vector is passed in %o1 at boot time. It is a pointer to * a structure in the debuggers address space. Here is its format. */
@@ -64,7 +64,7 @@ enum die_val { DIE_OOPS, }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* Some nice offset defines for assembler code. */ #define KDEBUG_ENTRY_OFF 0x0
arch/sparc/include/asm/leon.h +4 -4
@@ -59,7 +59,7 @@#define ASI_LEON3_SYSCTRL_CFG_SNOOPING (1 << 27)#define ASI_LEON3_SYSCTRL_CFG_SSIZE (c) (1 << ((c >> 20) & 0xf)) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* do a physical address bypass write, i.e. for 0x80000000 */ static inline void leon_store_reg (unsigned long paddr,unsigned long value)
@@ -132,7 +132,7 @@ static inline int sparc_leon3_cpuid(void) return sparc_leon3_asr17() >> 28; } -#endif /*!__ASSEMBLY__*/ +#endif /*!__ASSEMBLER__*/ #ifdef CONFIG_SMP # define LEON3_IRQ_IPI_DEFAULT 13
@@ -194,7 +194,7 @@ static inline int sparc_leon3_cpuid(void)#define LEON2_CCR_DSETS_MASK 0x03000000UL#define LEON2_CFG_SSIZE_MASK 0x00007000UL -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct vm_area_struct ;unsigned long leon_swprobe (unsigned long vaddr,unsigned long *paddr);
@@ -247,7 +247,7 @@ extern int leon_ipi_irq;#endif /* CONFIG_SMP */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* macros used in leon_mm.c */ #define PFN (x) ((x) >> PAGE_SHIFT)
arch/sparc/include/asm/leon_amba.h +3 -3
@@ -8,7 +8,7 @@ #ifndef LEON_AMBA_H_INCLUDE #define LEON_AMBA_H_INCLUDE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct amba_prom_registers { unsigned int phys_addr; /* The physical address of this register */
@@ -89,7 +89,7 @@ struct amba_prom_registers {#define LEON3_GPTIMER_CONFIG_NRTIMERS (c) ((c)->config & 0x7)#define LEON3_GPTIMER_CTRL_ISPENDING (r) (((r)&LEON3_GPTIMER_CTRL_PENDING) ? 1 : 0) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct leon3_irqctrl_regs_map { u32 ilevel;
@@ -189,7 +189,7 @@ extern int leon_debug_irqout;extern unsigned long leon3_gptimer_irq;extern unsigned int sparc_leon_eirq; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define LEON3_IO_AREA 0xfff00000#define LEON3_CONF_AREA 0xff000
arch/sparc/include/asm/mman.h +2 -2
@@ -4,7 +4,7 @@#include <uapi/asm/mman.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define arch_mmap_check (addr,len,flags) sparc_mmap_check(addr,len)int sparc_mmap_check (unsigned long addr,unsigned long len);
@@ -87,5 +87,5 @@ static inline bool arch_validate_flags(unsigned long vm_flags) }#endif /* CONFIG_SPARC64 */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __SPARC_MMAN_H__ */
arch/sparc/include/asm/mmu_64.h +2 -2
@@ -59,7 +59,7 @@#define CTX_HWBITS (__ctx) ((__ctx.sparc64_ctx_val) & CTX_HW_MASK)#define CTX_NRBITS (__ctx) ((__ctx.sparc64_ctx_val) & CTX_NR_MASK) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define TSB_ENTRY_ALIGNMENT 16
@@ -117,7 +117,7 @@ typedef struct { spinlock_t tag_lock; } mm_context_t; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #define TSB_CONFIG_TSB 0x00#define TSB_CONFIG_RSS_LIMIT 0x08
arch/sparc/include/asm/mmu_context_32.h +2 -2
@@ -2,7 +2,7 @@#ifndef __SPARC_MMU_CONTEXT_H#define __SPARC_MMU_CONTEXT_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm-generic/mm_hooks.h>
@@ -29,6 +29,6 @@ void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,#include <asm-generic/mmu_context.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_MMU_CONTEXT_H) */
arch/sparc/include/asm/mmu_context_64.h +2 -2
@@ -4,7 +4,7 @@/* Derived heavily from Linus's Alpha/AXP ASN code... */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/spinlock.h> #include <linux/mm_types.h>
@@ -193,6 +193,6 @@ static inline unsigned long mm_untag_mask(struct mm_struct *mm)#include <asm-generic/mmu_context.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC64_MMU_CONTEXT_H) */
arch/sparc/include/asm/mxcc.h +2 -2
@@ -84,7 +84,7 @@* MID: The moduleID of the cpu your read this from. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void mxcc_set_stream_src (unsigned long *paddr) {
@@ -133,6 +133,6 @@ static inline void mxcc_set_creg(unsigned long mxcc_control) "i" (ASI_M_MXCC)); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_MXCC_H) */
arch/sparc/include/asm/obio.h +2 -2
@@ -97,7 +97,7 @@#define CC_EREG 0x1F00E00/* Error code register */ #define CC_CID 0x1F00F04/* Component ID */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline int bw_get_intr_mask (int sbus_level) {
@@ -221,6 +221,6 @@ static inline void cc_set_igen(unsigned int gen) "i" (ASI_M_MXCC)); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_OBIO_H) */
arch/sparc/include/asm/openprom.h +2 -2
@@ -11,7 +11,7 @@/* Empirical constants... */ #define LINUX_OPPROM_MAGIC 0x10010407 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/of.h> /* V0 prom device operations. */
@@ -275,6 +275,6 @@ struct linux_prom_pci_intmask {unsigned int interrupt; }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_OPENPROM_H) */
arch/sparc/include/asm/page_32.h +4 -4
@@ -13,7 +13,7 @@#include <vdso/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define clear_page (page) memset((void *)(page), 0, PAGE_SIZE)#define copy_page (to,from) memcpy((void *)(to), (void *)(from), PAGE_SIZE)
@@ -108,14 +108,14 @@ typedef pte_t *pgtable_t;#define TASK_UNMAPPED_BASE 0x50000000 -#else /* !(__ASSEMBLY__) */ +#else /* !(__ASSEMBLER__) */ #define __pgprot (x) (x) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #define PAGE_OFFSET 0xf0000000 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned long phys_base;extern unsigned long pfn_base;#endif
arch/sparc/include/asm/page_64.h +4 -4
@@ -30,7 +30,7 @@#define HUGE_MAX_HSTATE 5#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#if defined(CONFIG_HUGETLB_PAGE ) || defined(CONFIG_TRANSPARENT_HUGEPAGE )struct pt_regs ;
@@ -128,7 +128,7 @@ extern unsigned long sparc64_va_hole_bottom;extern unsigned long PAGE_OFFSET ; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* The maximum number of physical memory address bits we support. The * largest value we can support is whatever "KPGD_SHIFT + KPTE_BITS"
@@ -139,7 +139,7 @@ extern unsigned long PAGE_OFFSET;#define ILOG2_4MB 22#define ILOG2_256MB 28 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __pa (x) ((unsigned long)(x) - PAGE_OFFSET)#define __va (x) ((void *)((unsigned long) (x) + PAGE_OFFSET))
@@ -153,7 +153,7 @@ extern unsigned long PAGE_OFFSET;#define virt_to_phys __pa#define phys_to_virt __va -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #include <asm-generic/getorder.h>
arch/sparc/include/asm/pcic.h +1 -1
@@ -8,7 +8,7 @@#ifndef __SPARC_PCIC_H#define __SPARC_PCIC_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <linux/smp.h>
arch/sparc/include/asm/pgtable_32.h +2 -2
@@ -21,7 +21,7 @@#define PGDIR_MASK (~(PGDIR_SIZE-1))#define PGDIR_ALIGN (__addr) (((__addr) + ~PGDIR_MASK) & PGDIR_MASK) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm-generic/pgtable-nopud.h> #include <linux/spinlock.h>
@@ -428,7 +428,7 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma, __changed; \ }) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #define VMALLOC_START _AC(0xfe600000,UL)#define VMALLOC_END _AC(0xffc00000,UL)
arch/sparc/include/asm/pgtable_64.h +4 -4
@@ -79,7 +79,7 @@#error PMD_SHIFT must equal HPAGE_SHIFT for transparent huge pages.#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned long VMALLOC_END ;
@@ -106,7 +106,7 @@ bool kern_addr_valid(unsigned long addr);pr_err ("%s:%d: bad pgd %p(%016lx) seen at (%pS)\n" , \ __FILE__, __LINE__, &(e), pgd_val(e), __builtin_return_address(0)) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* PTE bits which are the same in SUN4U and SUN4V format. */ #define _PAGE_VALID _AC(0x8000000000000000,UL)/* Valid TTE */
@@ -191,7 +191,7 @@ bool kern_addr_valid(unsigned long addr);/* We borrow bit 20 to store the exclusive marker in swap PTEs. */ #define _PAGE_SWP_EXCLUSIVE _AC(0x0000000000100000, UL) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__pte_t mk_pte_io (unsigned long ,pgprot_t ,int ,unsigned long );
@@ -1181,6 +1181,6 @@ extern unsigned long pte_leaf_size(pte_t pte);#endif /* CONFIG_HUGETLB_PAGE */ -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC64_PGTABLE_H) */
arch/sparc/include/asm/pgtsrmmu.h +3 -3
@@ -10,7 +10,7 @@#include <asm/page.h> -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#include <asm/thread_info.h> /* TI_UWINMASK for WINDOW_FLUSH */ #endif
@@ -97,7 +97,7 @@ bne 99b; \ restore %g0, %g0, %g0; -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned long last_valid_pfn;/* This makes sense. Honest it does - Anton */
@@ -136,6 +136,6 @@ srmmu_get_pte (unsigned long addr)return entry; } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC_PGTSRMMU_H) */
arch/sparc/include/asm/processor_64.h +5 -5
@@ -21,7 +21,7 @@* XXX No longer using virtual page tables, kill this upper limit... */ #define VA_BITS 44 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define VPTE_SIZE (1UL << (VA_BITS - PAGE_SHIFT + 3))#else #define VPTE_SIZE (1 << (VA_BITS - PAGE_SHIFT + 3))
@@ -45,7 +45,7 @@#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* The Sparc processor specific thread struct. */ /* XXX This should die, everything can go into thread_info now. */
@@ -62,7 +62,7 @@ struct thread_struct {#endif }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #ifndef CONFIG_DEBUG_SPINLOCK #define INIT_THREAD { \
@@ -75,7 +75,7 @@ struct thread_struct { }#endif /* !(CONFIG_DEBUG_SPINLOCK) */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <asm/fpumacro.h>
@@ -242,6 +242,6 @@ static inline void prefetchw(const void *x)int do_mathemu (struct pt_regs *regs,struct fpustate *f,bool illegal_insn_trap); -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__ASM_SPARC64_PROCESSOR_H) */
arch/sparc/include/asm/psr.h +2 -2
@@ -14,7 +14,7 @@#include <uapi/asm/psr.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Get the %psr register. */ static inline unsigned int get_psr (void ) {
@@ -63,6 +63,6 @@ static inline unsigned int get_fsr(void)return fsr; } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__LINUX_SPARC_PSR_H) */
arch/sparc/include/asm/ptrace.h +6 -6
@@ -5,7 +5,7 @@#include <uapi/asm/ptrace.h> #if defined(__sparc__) && defined(__arch64__) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/compiler.h> #include <linux/threads.h>
@@ -113,10 +113,10 @@ static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) {return regs->u_regs[UREG_I6 ]; } -#else /* __ASSEMBLY__ */ -#endif /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ +#endif /* __ASSEMBLER__ */ #else /* (defined(__sparc__) && defined(__arch64__)) */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/switch_to.h> static inline bool pt_regs_is_syscall (struct pt_regs *regs)
@@ -144,8 +144,8 @@ static inline bool pt_regs_clear_syscall(struct pt_regs *regs)#define instruction_pointer (regs) ((regs)->pc)#define user_stack_pointer (regs) ((regs)->u_regs[UREG_FP])unsigned long profile_pc (struct pt_regs *); -#else /* (!__ASSEMBLY__) */ -#endif /* (!__ASSEMBLY__) */ +#else /* (!__ASSEMBLER__) */ +#endif /* (!__ASSEMBLER__) */ #endif /* (defined(__sparc__) && defined(__arch64__)) */ #define STACK_BIAS 2047
arch/sparc/include/asm/ross.h +2 -2
@@ -95,7 +95,7 @@#define HYPERSPARC_ICCR_FTD 0x00000002#define HYPERSPARC_ICCR_ICE 0x00000001 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline unsigned int get_ross_icr (void ) {
@@ -187,6 +187,6 @@ static inline void hyper_flush_cache_page(unsigned long page) } } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC_ROSS_H) */
arch/sparc/include/asm/sbi.h +2 -2
@@ -64,7 +64,7 @@ struct sbi_regs {*/ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline int acquire_sbi (int devid,int mask) {
@@ -111,6 +111,6 @@ static inline void set_sbi_ctl(int devid, int cfgno, int cfg) "i" (ASI_M_CTL)); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_SBI_H) */
arch/sparc/include/asm/sigcontext.h +2 -2
@@ -5,7 +5,7 @@#include <asm/ptrace.h> #include <uapi/asm/sigcontext.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __SUNOS_MAXWIN 31
@@ -104,6 +104,6 @@ typedef struct {#endif /* (CONFIG_SPARC64) */ -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_SIGCONTEXT_H) */
arch/sparc/include/asm/signal.h +3 -3
@@ -2,16 +2,16 @@#ifndef __SPARC_SIGNAL_H#define __SPARC_SIGNAL_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/personality.h> #include <linux/types.h> #endif #include <uapi/asm/signal.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __ARCH_HAS_KA_RESTORER#define __ARCH_HAS_SA_RESTORER -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_SIGNAL_H) */
arch/sparc/include/asm/smp_32.h +4 -4
@@ -10,15 +10,15 @@#include <linux/threads.h> #include <asm/head.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/cpumask.h> -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #ifdef CONFIG_SMP -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ptrace.h> #include <asm/asi.h>
@@ -105,7 +105,7 @@ int hard_smp_processor_id(void);void smp_setup_cpu_possible_map (void ); -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* Sparc specific messages. */ #define MSG_CROSS_CALL 0x0005/* run func on cpus */
arch/sparc/include/asm/smp_64.h +4 -4
@@ -12,16 +12,16 @@#include <asm/starfire.h> #include <asm/spitfire.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/cpumask.h> #include <linux/cache.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #ifdef CONFIG_SMP -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * Private routines/data
@@ -68,7 +68,7 @@ int __cpu_disable(void);void __cpu_die (unsigned int cpu);#endif -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #else
arch/sparc/include/asm/spinlock_32.h +2 -2
@@ -7,7 +7,7 @@#ifndef __SPARC_SPINLOCK_H#define __SPARC_SPINLOCK_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/psr.h> #include <asm/barrier.h>
@@ -183,6 +183,6 @@ static inline int __arch_read_trylock(arch_rwlock_t *rw) res; \ }) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* __SPARC_SPINLOCK_H */
arch/sparc/include/asm/spinlock_64.h +2 -2
@@ -7,13 +7,13 @@#ifndef __SPARC64_SPINLOCK_H#define __SPARC64_SPINLOCK_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/processor.h> #include <asm/barrier.h> #include <asm/qspinlock.h> #include <asm/qrwlock.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC64_SPINLOCK_H) */
arch/sparc/include/asm/spitfire.h +2 -2
@@ -68,7 +68,7 @@#define CPU_ID_M8 ('8')#define CPU_ID_SONOMA1 ('N') -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__enum ultra_tlb_layout { spitfire = 0,
@@ -363,6 +363,6 @@ static inline void cheetah_put_itlb_data(int entry, unsigned long data) "i" (ASI_ITLB_DATA_ACCESS)); } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* CONFIG_SPARC64 */ #endif /* !(_SPARC64_SPITFIRE_H) */
arch/sparc/include/asm/starfire.h +1 -1
@@ -8,7 +8,7 @@#ifndef _SPARC64_STARFIRE_H#define _SPARC64_STARFIRE_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern int this_is_starfire;
arch/sparc/include/asm/thread_info_32.h +2 -2
@@ -14,7 +14,7 @@#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ptrace.h> #include <asm/page.h>
@@ -72,7 +72,7 @@ register struct thread_info *current_thread_info_reg asm("g6");*/ #define THREAD_SIZE_ORDER 1 -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* Size of kernel stack for each process */ #define THREAD_SIZE (2 * PAGE_SIZE)
arch/sparc/include/asm/thread_info_64.h +6 -6
@@ -26,7 +26,7 @@#include <asm/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ptrace.h> #include <asm/types.h>
@@ -64,7 +64,7 @@ struct thread_info { __attribute__ ((aligned(64))); }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* offsets into the thread_info struct for assembly code access */ #define TI_TASK 0x00000000
@@ -110,7 +110,7 @@ struct thread_info {/* * macros/functions for gaining access to the thread information structure */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \
@@ -150,7 +150,7 @@ extern struct thread_info *current_thread_info(void);#define set_thread_fpdepth (val) (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_FPDEPTH] = (val))#define get_thread_wsaved () (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_WSAVED])#define set_thread_wsaved (val) (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_WSAVED] = (val)) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* * Thread information flags, only 16 bits are available as we encode
@@ -228,14 +228,14 @@ extern struct thread_info *current_thread_info(void);* Note that there are only 8 bits available. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define thread32_stack_is_64bit (__SP) (((__SP) & 0x1) != 0)#define test_thread_64bit_stack (__SP) \ ((test_thread_flag(TIF_32BIT) && !thread32_stack_is_64bit(__SP)) ? \ false : true) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __KERNEL__ */
arch/sparc/include/asm/trap_block.h +2 -2
@@ -7,7 +7,7 @@#include <asm/hypervisor.h> #include <asm/asi.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Trap handling code needs to get at a few critical values upon * trap entry and to process TSB misses. These cannot be in the
@@ -91,7 +91,7 @@ extern struct sun4v_2insn_patch_entry __sun_m7_2insn_patch, __sun_m7_2insn_patch_end; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #define TRAP_PER_CPU_THREAD 0x00#define TRAP_PER_CPU_PGD_PADDR 0x08
arch/sparc/include/asm/traps.h +2 -2
@@ -9,7 +9,7 @@#include <uapi/asm/traps.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /* This is for V8 compliant Sparc CPUS */ struct tt_entry { unsigned long inst_one;
@@ -21,5 +21,5 @@ struct tt_entry {/* We set this to _start in system setup. */ extern struct tt_entry *sparc_ttable; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC_TRAPS_H) */
arch/sparc/include/asm/tsb.h +1 -1
@@ -59,7 +59,7 @@* The kernel TSB is locked into the TLB by virtue of being in the * kernel image, so we don't play these games for swapper_tsb access. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct tsb_ldquad_phys_patch_entry { unsigned int addr; unsigned int sun4u_insn;
arch/sparc/include/asm/ttable.h +1 -1
@@ -5,7 +5,7 @@#include <asm/utrap.h> #include <asm/pil.h> -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#include <asm/thread_info.h> #endif
arch/sparc/include/asm/turbosparc.h +2 -2
@@ -57,7 +57,7 @@#define TURBOSPARC_WTENABLE 0x00000020/* Write thru for dcache */ #define TURBOSPARC_SNENABLE 0x40000000/* DVMA snoop enable */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Bits [13:5] select one of 512 instruction cache tags */ static inline void turbosparc_inv_insn_tag (unsigned long addr)
@@ -121,6 +121,6 @@ static inline unsigned long turbosparc_get_ccreg(void)return regval; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_TURBOSPARC_H) */
arch/sparc/include/asm/upa.h +2 -2
@@ -24,7 +24,7 @@#define UPA_PORTID_ID 0x000000000000ffff/* Module Identification bits */ /* UPA I/O space accessors */ -#if defined(__KERNEL__) && !defined(__ASSEMBLY__) +#if defined(__KERNEL__) && !defined(__ASSEMBLER__)static inline unsigned char _upa_readb (unsigned long addr) {unsigned char ret;
@@ -105,6 +105,6 @@ static inline void _upa_writeq(unsigned long q, unsigned long addr)#define upa_writew (__w, __addr) (_upa_writew((__w), (unsigned long)(__addr)))#define upa_writel (__l, __addr) (_upa_writel((__l), (unsigned long)(__addr)))#define upa_writeq (__q, __addr) (_upa_writeq((__q), (unsigned long)(__addr))) -#endif /* __KERNEL__ && !__ASSEMBLY__ */ +#endif /* __KERNEL__ && !__ASSEMBLER__ */ #endif /* !(_SPARC64_UPA_H) */
arch/sparc/include/asm/vaddrs.h +1 -1
@@ -31,7 +31,7 @@*/ #define SRMMU_NOCACHE_ALCRATIO 64/* 256 pages per 64MB of system RAM */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/kmap_size.h> enum fixed_addresses {
arch/sparc/include/asm/viking.h +2 -2
@@ -110,7 +110,7 @@#define VIKING_PTAG_DIRTY 0x00010000/* Block has been modified */ #define VIKING_PTAG_SHARED 0x00000100/* Shared with some other cache */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void viking_flush_icache (void ) {
@@ -250,6 +250,6 @@ static inline unsigned long viking_hwprobe(unsigned long vaddr)return val; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_VIKING_H) */
arch/sparc/include/asm/visasm.h +1 -1
@@ -45,7 +45,7 @@#define VISExitHalfFast \ wr %o5, 0, %fprs; -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void save_and_clear_fpu (void ) { __asm__ __volatile__ ( " rd %%fprs, %%o5\n"
drivers/char/hw_random/n2rng.h +2 -2
@@ -48,7 +48,7 @@#define HV_RNG_NUM_CONTROL 4 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned long sun4v_rng_get_diag_ctl (void ); extern unsigned long sun4v_rng_ctl_read_v1(unsigned long ctl_regs_ra, unsigned long *state,
@@ -147,6 +147,6 @@ struct n2rng {#define N2RNG_BUSY_LIMIT 100#define N2RNG_HCHECK_LIMIT 100 -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* _N2RNG_H */
Signature · 1 line
2.48.1
Re: [PATCH 34/41] sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
Quoted 1,743 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc "David S. Miller" <[email protected]>Cc Andreas Larsson <[email protected]>Signed-off-by Thomas Huth <[email protected]>--- arch/sparc/include/asm/adi_64.h | 4 +- arch/sparc/include/asm/auxio.h | 4 +- arch/sparc/include/asm/auxio_32.h | 4 +- arch/sparc/include/asm/auxio_64.h | 4 +- arch/sparc/include/asm/cacheflush_64.h | 4 +- arch/sparc/include/asm/cpudata.h | 4 +- arch/sparc/include/asm/cpudata_64.h | 4 +- arch/sparc/include/asm/delay_64.h | 4 +- arch/sparc/include/asm/ftrace.h | 2 +- arch/sparc/include/asm/hvtramp.h | 2 +- arch/sparc/include/asm/hypervisor.h | 92 ++++++++++++------------- arch/sparc/include/asm/irqflags_32.h | 4 +- arch/sparc/include/asm/irqflags_64.h | 4 +- arch/sparc/include/asm/jump_label.h | 4 +- arch/sparc/include/asm/kdebug_32.h | 4 +- arch/sparc/include/asm/leon.h | 8 +-- arch/sparc/include/asm/leon_amba.h | 6 +- arch/sparc/include/asm/mman.h | 4 +- arch/sparc/include/asm/mmu_64.h | 4 +- arch/sparc/include/asm/mmu_context_32.h | 4 +- arch/sparc/include/asm/mmu_context_64.h | 4 +- arch/sparc/include/asm/mxcc.h | 4 +- arch/sparc/include/asm/obio.h | 4 +- arch/sparc/include/asm/openprom.h | 4 +- arch/sparc/include/asm/page_32.h | 8 +-- arch/sparc/include/asm/page_64.h | 8 +-- arch/sparc/include/asm/pcic.h | 2 +- arch/sparc/include/asm/pgtable_32.h | 4 +- arch/sparc/include/asm/pgtable_64.h | 8 +-- arch/sparc/include/asm/pgtsrmmu.h | 6 +- arch/sparc/include/asm/processor_64.h | 10 +-- arch/sparc/include/asm/psr.h | 4 +- arch/sparc/include/asm/ptrace.h | 12 ++-- arch/sparc/include/asm/ross.h | 4 +- arch/sparc/include/asm/sbi.h | 4 +- arch/sparc/include/asm/sigcontext.h | 4 +- arch/sparc/include/asm/signal.h | 6 +- arch/sparc/include/asm/smp_32.h | 8 +-- arch/sparc/include/asm/smp_64.h | 8 +-- arch/sparc/include/asm/spinlock_32.h | 4 +- arch/sparc/include/asm/spinlock_64.h | 4 +- arch/sparc/include/asm/spitfire.h | 4 +- arch/sparc/include/asm/starfire.h | 2 +- arch/sparc/include/asm/thread_info_32.h | 4 +- arch/sparc/include/asm/thread_info_64.h | 12 ++-- arch/sparc/include/asm/trap_block.h | 4 +- arch/sparc/include/asm/traps.h | 4 +- arch/sparc/include/asm/tsb.h | 2 +- arch/sparc/include/asm/ttable.h | 2 +- arch/sparc/include/asm/turbosparc.h | 4 +- arch/sparc/include/asm/upa.h | 4 +- arch/sparc/include/asm/vaddrs.h | 2 +- arch/sparc/include/asm/viking.h | 4 +- arch/sparc/include/asm/visasm.h | 2 +- drivers/char/hw_random/n2rng.h | 4 +- 55 files changed, 172 insertions(+), 172 deletions(-)arch/sparc/include/asm/adi_64.h +2
-2@@ -9,7 +9,7 @@#include <linux/types.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct adi_caps { __u64 blksz;@@ -41,6 +41,6 @@ static inline unsigned long adi_nbits(void)return adi_state.caps.nbits; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* !(__ASM_SPARC64_ADI_H) */ arch/sparc/include/asm/auxio.h +2
-2@@ -2,11 +2,11 @@#ifndef ___ASM_SPARC_AUXIO_H#define ___ASM_SPARC_AUXIO_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern void __iomem *auxio_register; -#endif /* ifndef __ASSEMBLY__ */ +#endif /* ifndef __ASSEMBLER__ */ #if defined(__sparc__) && defined(__arch64__)#include <asm/auxio_64.h> arch/sparc/include/asm/auxio_32.h +2
-2@@ -29,7 +29,7 @@#define AUXIO_FLPY_EJCT 0x02/* Eject floppy disk. Write only. */ #define AUXIO_LED 0x01/* On if set, off if unset. Read/Write */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * NOTE: these routines are implementation dependent-- @@ -75,7 +75,7 @@ do { \ } \ } while (0) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* AUXIO2 (Power Off Control) */ arch/sparc/include/asm/auxio_64.h +2
-2@@ -74,7 +74,7 @@#define AUXIO_PCIO_CPWR_OFF 0x02/* Courtesy Power Off */ #define AUXIO_PCIO_SPWR_OFF 0x01/* System Power Off */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define AUXIO_LTE_ON 1#define AUXIO_LTE_OFF 0@@ -94,6 +94,6 @@ void auxio_set_lte(int on);*/ void auxio_set_led (int on); -#endif /* ifndef __ASSEMBLY__ */ +#endif /* ifndef __ASSEMBLER__ */ #endif /* !(_SPARC64_AUXIO_H) */ arch/sparc/include/asm/cacheflush_64.h +2
-2@@ -4,7 +4,7 @@#include <asm/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/mm.h> @@ -78,6 +78,6 @@ void flush_ptrace_access(struct vm_area_struct *, struct page *,#define flush_cache_vmap_early (start, end) do { } while (0)#define flush_cache_vunmap (start, end) do { } while (0) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _SPARC64_CACHEFLUSH_H */ arch/sparc/include/asm/cpudata.h +2
-2@@ -2,14 +2,14 @@#ifndef ___ASM_SPARC_CPUDATA_H#define ___ASM_SPARC_CPUDATA_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/threads.h> #include <linux/percpu.h> extern const struct seq_operations cpuinfo_op; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #if defined(__sparc__) && defined(__arch64__)#include <asm/cpudata_64.h> arch/sparc/include/asm/cpudata_64.h +2
-2@@ -7,7 +7,7 @@ #ifndef _SPARC64_CPUDATA_H #define _SPARC64_CPUDATA_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ typedef struct { /* Dcache line 1 */@@ -35,7 +35,7 @@ DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);#define cpu_data (__cpu) per_cpu(__cpu_data, (__cpu))#define local_cpu_data () (*this_cpu_ptr(&__cpu_data)) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #include <asm/trap_block.h> arch/sparc/include/asm/delay_64.h +2
-2@@ -7,12 +7,12 @@#ifndef _SPARC64_DELAY_H#define _SPARC64_DELAY_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void __delay (unsigned long loops);void udelay (unsigned long usecs);#define mdelay (n) udelay((n) * 1000) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _SPARC64_DELAY_H */ arch/sparc/include/asm/ftrace.h +1
-1@@ -6,7 +6,7 @@#define MCOUNT_ADDR ((unsigned long)(_mcount))#define MCOUNT_INSN_SIZE 4/* sizeof mcount call */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void _mcount (void );#endif arch/sparc/include/asm/hvtramp.h +1
-1@@ -2,7 +2,7 @@#ifndef _SPARC64_HVTRAP_H#define _SPARC64_HVTRAP_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> arch/sparc/include/asm/hypervisor.h +46
-46@@ -102,7 +102,7 @@*/ #define HV_FAST_MACH_EXIT 0x00 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void sun4v_mach_exit (unsigned long exit_code);#endif @@ -131,7 +131,7 @@ void sun4v_mach_exit(unsigned long exit_code);*/ #define HV_FAST_MACH_DESC 0x01 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_mach_desc (unsigned long buffer_pa,unsigned long buf_len,unsigned long *real_buf_len);@@ -152,7 +152,7 @@ unsigned long sun4v_mach_desc(unsigned long buffer_pa,*/ #define HV_FAST_MACH_SIR 0x02 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void sun4v_mach_sir (void );#endif @@ -208,7 +208,7 @@ void sun4v_mach_sir(void);*/ #define HV_FAST_MACH_SET_WATCHDOG 0x05 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_mach_set_watchdog (unsigned long timeout,unsigned long *orig_timeout);#endif @@ -254,7 +254,7 @@ unsigned long sun4v_mach_set_watchdog(unsigned long timeout,*/ #define HV_FAST_CPU_START 0x10 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_cpu_start(unsigned long cpuid, unsigned long pc, unsigned long rtba,@@ -282,7 +282,7 @@ unsigned long sun4v_cpu_start(unsigned long cpuid,*/ #define HV_FAST_CPU_STOP 0x11 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_cpu_stop (unsigned long cpuid);#endif @@ -299,7 +299,7 @@ unsigned long sun4v_cpu_stop(unsigned long cpuid);*/ #define HV_FAST_CPU_YIELD 0x12 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_cpu_yield (void );#endif @@ -317,7 +317,7 @@ unsigned long sun4v_cpu_yield(void);*/ #define HV_FAST_CPU_POKE 0x13 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_cpu_poke (unsigned long cpuid);#endif @@ -363,7 +363,7 @@ unsigned long sun4v_cpu_poke(unsigned long cpuid);#define HV_CPU_QUEUE_RES_ERROR 0x3e#define HV_CPU_QUEUE_NONRES_ERROR 0x3f -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_cpu_qconf (unsigned long type,unsigned long queue_paddr,unsigned long num_queue_entries);@@ -416,7 +416,7 @@ unsigned long sun4v_cpu_qconf(unsigned long type,*/ #define HV_FAST_CPU_MONDO_SEND 0x42 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_cpu_mondo_send (unsigned long cpu_count,unsigned long cpu_list_pa,unsigned long mondo_block_pa);@@ -449,7 +449,7 @@ unsigned long sun4v_cpu_mondo_send(unsigned long cpu_count,#define HV_CPU_STATE_RUNNING 0x02#define HV_CPU_STATE_ERROR 0x03 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__long sun4v_cpu_state (unsigned long cpuid);#endif @@ -485,7 +485,7 @@ long sun4v_cpu_state(unsigned long cpuid);* * Layout of a TSB description for mmu_tsb_ctx{,non}0() calls. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_tsb_descr { unsigned short pgsz_idx; unsigned short assoc;@@ -536,7 +536,7 @@ struct hv_tsb_descr {* The fault status block is a multiple of 64-bytes and must be aligned * on a 64-byte boundary. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_fault_status { unsigned long i_fault_type; unsigned long i_fault_addr;@@ -651,7 +651,7 @@ struct hv_fault_status {*/ #define HV_FAST_MMU_TSB_CTX0 0x20 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_mmu_tsb_ctx0 (unsigned long num_descriptions,unsigned long tsb_desc_ra);#endif @@ -736,7 +736,7 @@ unsigned long sun4v_mmu_tsb_ctx0(unsigned long num_descriptions,*/ #define HV_FAST_MMU_DEMAP_ALL 0x24 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__void sun4v_mmu_demap_all (void );#endif @@ -766,7 +766,7 @@ void sun4v_mmu_demap_all(void);*/ #define HV_FAST_MMU_MAP_PERM_ADDR 0x25 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_mmu_map_perm_addr(unsigned long vaddr, unsigned long set_to_zero, unsigned long tte,@@ -990,7 +990,7 @@ unsigned long sun4v_mmu_map_perm_addr(unsigned long vaddr,*/ #define HV_CCB_SUBMIT 0x34 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_ccb_submit(unsigned long ccb_buf, unsigned long len, unsigned long flags,@@ -1035,7 +1035,7 @@ unsigned long sun4v_ccb_submit(unsigned long ccb_buf,*/ #define HV_CCB_INFO 0x35 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_ccb_info (unsigned long ca,void *info_arr);#endif @@ -1069,7 +1069,7 @@ unsigned long sun4v_ccb_info(unsigned long ca,*/ #define HV_CCB_KILL 0x36 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_ccb_kill (unsigned long ca,void *kill_status);#endif @@ -1104,7 +1104,7 @@ unsigned long sun4v_ccb_kill(unsigned long ca,*/ #define HV_FAST_TOD_GET 0x50 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_tod_get (unsigned long *time);#endif @@ -1121,7 +1121,7 @@ unsigned long sun4v_tod_get(unsigned long *time);*/ #define HV_FAST_TOD_SET 0x51 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_tod_set (unsigned long time);#endif @@ -1197,7 +1197,7 @@ unsigned long sun4v_tod_set(unsigned long time);*/ #define HV_FAST_CONS_WRITE 0x63 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__long sun4v_con_getchar (long *status);long sun4v_con_putchar (long c); long sun4v_con_read(unsigned long buffer,@@ -1239,7 +1239,7 @@ unsigned long sun4v_con_write(unsigned long buffer,#define HV_SOFT_STATE_NORMAL 0x01#define HV_SOFT_STATE_TRANSITION 0x02 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_mach_set_soft_state (unsigned long soft_state,unsigned long msg_string_ra);#endif @@ -1318,7 +1318,7 @@ unsigned long sun4v_mach_set_soft_state(unsigned long soft_state,*/ #define HV_FAST_SVC_CLRSTATUS 0x84 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_svc_send(unsigned long svc_id, unsigned long buffer, unsigned long buffer_size,@@ -1348,7 +1348,7 @@ unsigned long sun4v_svc_clrstatus(unsigned long svc_id,* start (offset 0) of the trap trace buffer, and is described as * follows: */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_trap_trace_control { unsigned long head_offset; unsigned long tail_offset;@@ -1367,7 +1367,7 @@ struct hv_trap_trace_control {* * Each trap trace buffer entry is laid out as follows: */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_trap_trace_entry { unsigned char type; /* Hypervisor or guest entry? */ unsigned char hpstate; /* Hyper-privileged state */@@ -1617,7 +1617,7 @@ struct hv_trap_trace_entry {*/ #define HV_FAST_INTR_DEVINO2SYSINO 0xa0 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_devino_to_sysino (unsigned long devhandle,unsigned long devino);#endif @@ -1635,7 +1635,7 @@ unsigned long sun4v_devino_to_sysino(unsigned long devhandle,*/ #define HV_FAST_INTR_GETENABLED 0xa1 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_intr_getenabled (unsigned long sysino);#endif @@ -1651,7 +1651,7 @@ unsigned long sun4v_intr_getenabled(unsigned long sysino);*/ #define HV_FAST_INTR_SETENABLED 0xa2 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_intr_setenabled (unsigned long sysino,unsigned long intr_enabled);#endif @@ -1668,7 +1668,7 @@ unsigned long sun4v_intr_setenabled(unsigned long sysino,*/ #define HV_FAST_INTR_GETSTATE 0xa3 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_intr_getstate (unsigned long sysino);#endif @@ -1688,7 +1688,7 @@ unsigned long sun4v_intr_getstate(unsigned long sysino);*/ #define HV_FAST_INTR_SETSTATE 0xa4 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_intr_setstate (unsigned long sysino,unsigned long intr_state);#endif @@ -1706,7 +1706,7 @@ unsigned long sun4v_intr_setstate(unsigned long sysino, unsigned long intr_state*/ #define HV_FAST_INTR_GETTARGET 0xa5 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_intr_gettarget (unsigned long sysino);#endif @@ -1723,7 +1723,7 @@ unsigned long sun4v_intr_gettarget(unsigned long sysino);*/ #define HV_FAST_INTR_SETTARGET 0xa6 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_intr_settarget (unsigned long sysino,unsigned long cpuid);#endif @@ -1807,7 +1807,7 @@ unsigned long sun4v_intr_settarget(unsigned long sysino, unsigned long cpuid);*/ #define HV_FAST_VINTR_SET_TARGET 0xae -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_vintr_get_cookie (unsigned long dev_handle,unsigned long dev_ino,unsigned long *cookie);@@ -3047,7 +3047,7 @@ unsigned long sun4v_vintr_set_target(unsigned long dev_handle,#define LDC_MTE_SZ64K 0x0000000000000001/* 64K page */ #define LDC_MTE_SZ8K 0x0000000000000000/* 8K page */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct ldc_mtable_entry { unsigned long mte; unsigned long cookie;@@ -3130,7 +3130,7 @@ struct ldc_mtable_entry {*/ #define HV_FAST_LDC_REVOKE 0xef -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_ldc_tx_qconf (unsigned long channel,unsigned long ra,unsigned long num_entries);@@ -3230,7 +3230,7 @@ unsigned long sun4v_ldc_revoke(unsigned long channel,#define HV_FAST_N2_GET_PERFREG 0x104#define HV_FAST_N2_SET_PERFREG 0x105 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_niagara_getperf (unsigned long reg,unsigned long *val); unsigned long sun4v_niagara_setperf(unsigned long reg,@@ -3247,7 +3247,7 @@ unsigned long sun4v_niagara2_setperf(unsigned long reg,* a buffer where these statistics can be collected. It is continually * updated once configured. The layout is as follows: */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_mmu_statistics { unsigned long immu_tsb_hits_ctx0_8k_tte; unsigned long immu_tsb_ticks_ctx0_8k_tte;@@ -3332,7 +3332,7 @@ struct hv_mmu_statistics {*/ #define HV_FAST_MMUSTAT_INFO 0x103 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_mmustat_conf (unsigned long ra,unsigned long *orig_ra);unsigned long sun4v_mmustat_info (unsigned long *ra);#endif @@ -3343,7 +3343,7 @@ unsigned long sun4v_mmustat_info(unsigned long *ra);#define HV_NCS_QCONF 0x01#define HV_NCS_QTAIL_UPDATE 0x02 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_ncs_queue_entry { /* MAU Control Register */ unsigned long mau_control;@@ -3422,7 +3422,7 @@ struct hv_ncs_qtail_update_arg {*/ #define HV_FAST_NCS_REQUEST 0x110 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_ncs_request (unsigned long request,unsigned long arg_ra,unsigned long arg_size);@@ -3433,7 +3433,7 @@ unsigned long sun4v_ncs_request(unsigned long request,#define HV_FAST_REBOOT_DATA_SET 0x172 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_reboot_data_set (unsigned long ra,unsigned long len);#endif @@ -3441,7 +3441,7 @@ unsigned long sun4v_reboot_data_set(unsigned long ra,#define HV_FAST_VT_GET_PERFREG 0x184#define HV_FAST_VT_SET_PERFREG 0x185 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_vt_get_perfreg (unsigned long reg_num,unsigned long *reg_val); unsigned long sun4v_vt_set_perfreg(unsigned long reg_num,@@ -3451,7 +3451,7 @@ unsigned long sun4v_vt_set_perfreg(unsigned long reg_num,#define HV_FAST_T5_GET_PERFREG 0x1a8#define HV_FAST_T5_SET_PERFREG 0x1a9 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_t5_get_perfreg (unsigned long reg_num,unsigned long *reg_val); unsigned long sun4v_t5_set_perfreg(unsigned long reg_num,@@ -3462,7 +3462,7 @@ unsigned long sun4v_t5_set_perfreg(unsigned long reg_num,#define HV_FAST_M7_GET_PERFREG 0x43#define HV_FAST_M7_SET_PERFREG 0x44 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_m7_get_perfreg (unsigned long reg_num,unsigned long *reg_val); unsigned long sun4v_m7_set_perfreg(unsigned long reg_num,@@ -3506,7 +3506,7 @@ unsigned long sun4v_m7_set_perfreg(unsigned long reg_num,#define HV_GRP_T5_CPU 0x0211#define HV_GRP_DIAG 0x0300 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long sun4v_get_version (unsigned long group,unsigned long *major,unsigned long *minor);arch/sparc/include/asm/irqflags_32.h +2
-2@@ -11,7 +11,7 @@#ifndef _ASM_IRQFLAGS_H#define _ASM_IRQFLAGS_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <asm/psr.h> @@ -43,6 +43,6 @@ static inline notrace bool arch_irqs_disabled(void)return arch_irqs_disabled_flags (arch_local_save_flags ()); } -#endif /* (__ASSEMBLY__) */ +#endif /* (__ASSEMBLER__) */ #endif /* !(_ASM_IRQFLAGS_H) */ arch/sparc/include/asm/irqflags_64.h +2
-2@@ -13,7 +13,7 @@#include <asm/pil.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline notrace unsigned long arch_local_save_flags (void ) {@@ -93,6 +93,6 @@ static inline notrace unsigned long arch_local_irq_save(void)return flags; } -#endif /* (__ASSEMBLY__) */ +#endif /* (__ASSEMBLER__) */ #endif /* !(_ASM_IRQFLAGS_H) */ arch/sparc/include/asm/jump_label.h +2
-2@@ -2,7 +2,7 @@#ifndef _ASM_SPARC_JUMP_LABEL_H#define _ASM_SPARC_JUMP_LABEL_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> @@ -48,5 +48,5 @@ struct jump_entry {jump_label_t key; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif arch/sparc/include/asm/kdebug_32.h +2
-2@@ -19,7 +19,7 @@#define DEBUG_BP_TRAP 126 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* The debug vector is passed in %o1 at boot time. It is a pointer to * a structure in the debuggers address space. Here is its format. */ @@ -64,7 +64,7 @@ enum die_val { DIE_OOPS, }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* Some nice offset defines for assembler code. */ #define KDEBUG_ENTRY_OFF 0x0arch/sparc/include/asm/leon.h +4
-4@@ -59,7 +59,7 @@#define ASI_LEON3_SYSCTRL_CFG_SNOOPING (1 << 27)#define ASI_LEON3_SYSCTRL_CFG_SSIZE (c) (1 << ((c >> 20) & 0xf)) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* do a physical address bypass write, i.e. for 0x80000000 */ static inline void leon_store_reg (unsigned long paddr,unsigned long value)@@ -132,7 +132,7 @@ static inline int sparc_leon3_cpuid(void) return sparc_leon3_asr17() >> 28; } -#endif /*!__ASSEMBLY__*/ +#endif /*!__ASSEMBLER__*/ #ifdef CONFIG_SMP # define LEON3_IRQ_IPI_DEFAULT 13@@ -194,7 +194,7 @@ static inline int sparc_leon3_cpuid(void)#define LEON2_CCR_DSETS_MASK 0x03000000UL#define LEON2_CFG_SSIZE_MASK 0x00007000UL -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__struct vm_area_struct ;unsigned long leon_swprobe (unsigned long vaddr,unsigned long *paddr);@@ -247,7 +247,7 @@ extern int leon_ipi_irq;#endif /* CONFIG_SMP */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* macros used in leon_mm.c */ #define PFN (x) ((x) >> PAGE_SHIFT)arch/sparc/include/asm/leon_amba.h +3
-3@@ -8,7 +8,7 @@ #ifndef LEON_AMBA_H_INCLUDE #define LEON_AMBA_H_INCLUDE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct amba_prom_registers { unsigned int phys_addr; /* The physical address of this register */@@ -89,7 +89,7 @@ struct amba_prom_registers {#define LEON3_GPTIMER_CONFIG_NRTIMERS (c) ((c)->config & 0x7)#define LEON3_GPTIMER_CTRL_ISPENDING (r) (((r)&LEON3_GPTIMER_CTRL_PENDING) ? 1 : 0) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct leon3_irqctrl_regs_map { u32 ilevel;@@ -189,7 +189,7 @@ extern int leon_debug_irqout;extern unsigned long leon3_gptimer_irq;extern unsigned int sparc_leon_eirq; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define LEON3_IO_AREA 0xfff00000#define LEON3_CONF_AREA 0xff000arch/sparc/include/asm/mman.h +2
-2@@ -4,7 +4,7 @@#include <uapi/asm/mman.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define arch_mmap_check (addr,len,flags) sparc_mmap_check(addr,len)int sparc_mmap_check (unsigned long addr,unsigned long len);@@ -87,5 +87,5 @@ static inline bool arch_validate_flags(unsigned long vm_flags) }#endif /* CONFIG_SPARC64 */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __SPARC_MMAN_H__ */ arch/sparc/include/asm/mmu_64.h +2
-2@@ -59,7 +59,7 @@#define CTX_HWBITS (__ctx) ((__ctx.sparc64_ctx_val) & CTX_HW_MASK)#define CTX_NRBITS (__ctx) ((__ctx.sparc64_ctx_val) & CTX_NR_MASK) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define TSB_ENTRY_ALIGNMENT 16@@ -117,7 +117,7 @@ typedef struct { spinlock_t tag_lock; } mm_context_t; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #define TSB_CONFIG_TSB 0x00#define TSB_CONFIG_RSS_LIMIT 0x08arch/sparc/include/asm/mmu_context_32.h +2
-2@@ -2,7 +2,7 @@#ifndef __SPARC_MMU_CONTEXT_H#define __SPARC_MMU_CONTEXT_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm-generic/mm_hooks.h> @@ -29,6 +29,6 @@ void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,#include <asm-generic/mmu_context.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_MMU_CONTEXT_H) */ arch/sparc/include/asm/mmu_context_64.h +2
-2@@ -4,7 +4,7 @@/* Derived heavily from Linus's Alpha/AXP ASN code... */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/spinlock.h> #include <linux/mm_types.h> @@ -193,6 +193,6 @@ static inline unsigned long mm_untag_mask(struct mm_struct *mm)#include <asm-generic/mmu_context.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC64_MMU_CONTEXT_H) */ arch/sparc/include/asm/mxcc.h +2
-2@@ -84,7 +84,7 @@* MID: The moduleID of the cpu your read this from. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void mxcc_set_stream_src (unsigned long *paddr) {@@ -133,6 +133,6 @@ static inline void mxcc_set_creg(unsigned long mxcc_control) "i" (ASI_M_MXCC)); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_MXCC_H) */ arch/sparc/include/asm/obio.h +2
-2@@ -97,7 +97,7 @@#define CC_EREG 0x1F00E00/* Error code register */ #define CC_CID 0x1F00F04/* Component ID */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline int bw_get_intr_mask (int sbus_level) {@@ -221,6 +221,6 @@ static inline void cc_set_igen(unsigned int gen) "i" (ASI_M_MXCC)); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_OBIO_H) */ arch/sparc/include/asm/openprom.h +2
-2@@ -11,7 +11,7 @@/* Empirical constants... */ #define LINUX_OPPROM_MAGIC 0x10010407 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/of.h> /* V0 prom device operations. */ @@ -275,6 +275,6 @@ struct linux_prom_pci_intmask {unsigned int interrupt; }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_OPENPROM_H) */ arch/sparc/include/asm/page_32.h +4
-4@@ -13,7 +13,7 @@#include <vdso/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define clear_page (page) memset((void *)(page), 0, PAGE_SIZE)#define copy_page (to,from) memcpy((void *)(to), (void *)(from), PAGE_SIZE)@@ -108,14 +108,14 @@ typedef pte_t *pgtable_t;#define TASK_UNMAPPED_BASE 0x50000000 -#else /* !(__ASSEMBLY__) */ +#else /* !(__ASSEMBLER__) */ #define __pgprot (x) (x) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #define PAGE_OFFSET 0xf0000000 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned long phys_base;extern unsigned long pfn_base;#endif arch/sparc/include/asm/page_64.h +4
-4@@ -30,7 +30,7 @@#define HUGE_MAX_HSTATE 5#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#if defined(CONFIG_HUGETLB_PAGE ) || defined(CONFIG_TRANSPARENT_HUGEPAGE )struct pt_regs ;@@ -128,7 +128,7 @@ extern unsigned long sparc64_va_hole_bottom;extern unsigned long PAGE_OFFSET ; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* The maximum number of physical memory address bits we support. The * largest value we can support is whatever "KPGD_SHIFT + KPTE_BITS" @@ -139,7 +139,7 @@ extern unsigned long PAGE_OFFSET;#define ILOG2_4MB 22#define ILOG2_256MB 28 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __pa (x) ((unsigned long)(x) - PAGE_OFFSET)#define __va (x) ((void *)((unsigned long) (x) + PAGE_OFFSET))@@ -153,7 +153,7 @@ extern unsigned long PAGE_OFFSET;#define virt_to_phys __pa#define phys_to_virt __va -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #include <asm-generic/getorder.h> arch/sparc/include/asm/pcic.h +1
-1@@ -8,7 +8,7 @@#ifndef __SPARC_PCIC_H#define __SPARC_PCIC_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <linux/smp.h> arch/sparc/include/asm/pgtable_32.h +2
-2@@ -21,7 +21,7 @@#define PGDIR_MASK (~(PGDIR_SIZE-1))#define PGDIR_ALIGN (__addr) (((__addr) + ~PGDIR_MASK) & PGDIR_MASK) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm-generic/pgtable-nopud.h> #include <linux/spinlock.h> @@ -428,7 +428,7 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma, __changed; \ }) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #define VMALLOC_START _AC(0xfe600000,UL)#define VMALLOC_END _AC(0xffc00000,UL)arch/sparc/include/asm/pgtable_64.h +4
-4@@ -79,7 +79,7 @@#error PMD_SHIFT must equal HPAGE_SHIFT for transparent huge pages.#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned long VMALLOC_END ;@@ -106,7 +106,7 @@ bool kern_addr_valid(unsigned long addr);pr_err ("%s:%d: bad pgd %p(%016lx) seen at (%pS)\n" , \ __FILE__, __LINE__, &(e), pgd_val(e), __builtin_return_address(0)) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* PTE bits which are the same in SUN4U and SUN4V format. */ #define _PAGE_VALID _AC(0x8000000000000000,UL)/* Valid TTE */ @@ -191,7 +191,7 @@ bool kern_addr_valid(unsigned long addr);/* We borrow bit 20 to store the exclusive marker in swap PTEs. */ #define _PAGE_SWP_EXCLUSIVE _AC(0x0000000000100000, UL) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__pte_t mk_pte_io (unsigned long ,pgprot_t ,int ,unsigned long );@@ -1181,6 +1181,6 @@ extern unsigned long pte_leaf_size(pte_t pte);#endif /* CONFIG_HUGETLB_PAGE */ -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC64_PGTABLE_H) */ arch/sparc/include/asm/pgtsrmmu.h +3
-3@@ -10,7 +10,7 @@#include <asm/page.h> -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#include <asm/thread_info.h> /* TI_UWINMASK for WINDOW_FLUSH */ #endif @@ -97,7 +97,7 @@ bne 99b; \ restore %g0, %g0, %g0; -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned long last_valid_pfn;/* This makes sense. Honest it does - Anton */ @@ -136,6 +136,6 @@ srmmu_get_pte (unsigned long addr)return entry; } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC_PGTSRMMU_H) */ arch/sparc/include/asm/processor_64.h +5
-5@@ -21,7 +21,7 @@* XXX No longer using virtual page tables, kill this upper limit... */ #define VA_BITS 44 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define VPTE_SIZE (1UL << (VA_BITS - PAGE_SHIFT + 3))#else #define VPTE_SIZE (1 << (VA_BITS - PAGE_SHIFT + 3))@@ -45,7 +45,7 @@#endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* The Sparc processor specific thread struct. */ /* XXX This should die, everything can go into thread_info now. */ @@ -62,7 +62,7 @@ struct thread_struct {#endif }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #ifndef CONFIG_DEBUG_SPINLOCK #define INIT_THREAD { \@@ -75,7 +75,7 @@ struct thread_struct { }#endif /* !(CONFIG_DEBUG_SPINLOCK) */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/types.h> #include <asm/fpumacro.h> @@ -242,6 +242,6 @@ static inline void prefetchw(const void *x)int do_mathemu (struct pt_regs *regs,struct fpustate *f,bool illegal_insn_trap); -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__ASM_SPARC64_PROCESSOR_H) */ arch/sparc/include/asm/psr.h +2
-2@@ -14,7 +14,7 @@#include <uapi/asm/psr.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Get the %psr register. */ static inline unsigned int get_psr (void ) {@@ -63,6 +63,6 @@ static inline unsigned int get_fsr(void)return fsr; } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__LINUX_SPARC_PSR_H) */ arch/sparc/include/asm/ptrace.h +6
-6@@ -5,7 +5,7 @@#include <uapi/asm/ptrace.h> #if defined(__sparc__) && defined(__arch64__) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/compiler.h> #include <linux/threads.h> @@ -113,10 +113,10 @@ static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) {return regs->u_regs[UREG_I6 ]; } -#else /* __ASSEMBLY__ */ -#endif /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ +#endif /* __ASSEMBLER__ */ #else /* (defined(__sparc__) && defined(__arch64__)) */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/switch_to.h> static inline bool pt_regs_is_syscall (struct pt_regs *regs)@@ -144,8 +144,8 @@ static inline bool pt_regs_clear_syscall(struct pt_regs *regs)#define instruction_pointer (regs) ((regs)->pc)#define user_stack_pointer (regs) ((regs)->u_regs[UREG_FP])unsigned long profile_pc (struct pt_regs *); -#else /* (!__ASSEMBLY__) */ -#endif /* (!__ASSEMBLY__) */ +#else /* (!__ASSEMBLER__) */ +#endif /* (!__ASSEMBLER__) */ #endif /* (defined(__sparc__) && defined(__arch64__)) */ #define STACK_BIAS 2047arch/sparc/include/asm/ross.h +2
-2@@ -95,7 +95,7 @@#define HYPERSPARC_ICCR_FTD 0x00000002#define HYPERSPARC_ICCR_ICE 0x00000001 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline unsigned int get_ross_icr (void ) {@@ -187,6 +187,6 @@ static inline void hyper_flush_cache_page(unsigned long page) } } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC_ROSS_H) */ arch/sparc/include/asm/sbi.h +2
-2@@ -64,7 +64,7 @@ struct sbi_regs {*/ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline int acquire_sbi (int devid,int mask) {@@ -111,6 +111,6 @@ static inline void set_sbi_ctl(int devid, int cfgno, int cfg) "i" (ASI_M_CTL)); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_SBI_H) */ arch/sparc/include/asm/sigcontext.h +2
-2@@ -5,7 +5,7 @@#include <asm/ptrace.h> #include <uapi/asm/sigcontext.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __SUNOS_MAXWIN 31@@ -104,6 +104,6 @@ typedef struct {#endif /* (CONFIG_SPARC64) */ -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_SIGCONTEXT_H) */ arch/sparc/include/asm/signal.h +3
-3@@ -2,16 +2,16 @@#ifndef __SPARC_SIGNAL_H#define __SPARC_SIGNAL_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/personality.h> #include <linux/types.h> #endif #include <uapi/asm/signal.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define __ARCH_HAS_KA_RESTORER#define __ARCH_HAS_SA_RESTORER -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_SIGNAL_H) */ arch/sparc/include/asm/smp_32.h +4
-4@@ -10,15 +10,15 @@#include <linux/threads.h> #include <asm/head.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/cpumask.h> -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #ifdef CONFIG_SMP -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ptrace.h> #include <asm/asi.h> @@ -105,7 +105,7 @@ int hard_smp_processor_id(void);void smp_setup_cpu_possible_map (void ); -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* Sparc specific messages. */ #define MSG_CROSS_CALL 0x0005/* run func on cpus */ arch/sparc/include/asm/smp_64.h +4
-4@@ -12,16 +12,16 @@#include <asm/starfire.h> #include <asm/spitfire.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <linux/cpumask.h> #include <linux/cache.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #ifdef CONFIG_SMP -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* * Private routines/data @@ -68,7 +68,7 @@ int __cpu_disable(void);void __cpu_die (unsigned int cpu);#endif -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #else arch/sparc/include/asm/spinlock_32.h +2
-2@@ -7,7 +7,7 @@#ifndef __SPARC_SPINLOCK_H#define __SPARC_SPINLOCK_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/psr.h> #include <asm/barrier.h> @@ -183,6 +183,6 @@ static inline int __arch_read_trylock(arch_rwlock_t *rw) res; \ }) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* __SPARC_SPINLOCK_H */ arch/sparc/include/asm/spinlock_64.h +2
-2@@ -7,13 +7,13 @@#ifndef __SPARC64_SPINLOCK_H#define __SPARC64_SPINLOCK_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/processor.h> #include <asm/barrier.h> #include <asm/qspinlock.h> #include <asm/qrwlock.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC64_SPINLOCK_H) */ arch/sparc/include/asm/spitfire.h +2
-2@@ -68,7 +68,7 @@#define CPU_ID_M8 ('8')#define CPU_ID_SONOMA1 ('N') -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__enum ultra_tlb_layout { spitfire = 0,@@ -363,6 +363,6 @@ static inline void cheetah_put_itlb_data(int entry, unsigned long data) "i" (ASI_ITLB_DATA_ACCESS)); } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* CONFIG_SPARC64 */ #endif /* !(_SPARC64_SPITFIRE_H) */ arch/sparc/include/asm/starfire.h +1
-1@@ -8,7 +8,7 @@#ifndef _SPARC64_STARFIRE_H#define _SPARC64_STARFIRE_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern int this_is_starfire;arch/sparc/include/asm/thread_info_32.h +2
-2@@ -14,7 +14,7 @@#ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ptrace.h> #include <asm/page.h> @@ -72,7 +72,7 @@ register struct thread_info *current_thread_info_reg asm("g6");*/ #define THREAD_SIZE_ORDER 1 -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* Size of kernel stack for each process */ #define THREAD_SIZE (2 * PAGE_SIZE)arch/sparc/include/asm/thread_info_64.h +6
-6@@ -26,7 +26,7 @@#include <asm/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/ptrace.h> #include <asm/types.h> @@ -64,7 +64,7 @@ struct thread_info { __attribute__ ((aligned(64))); }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* offsets into the thread_info struct for assembly code access */ #define TI_TASK 0x00000000@@ -110,7 +110,7 @@ struct thread_info {/* * macros/functions for gaining access to the thread information structure */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define INIT_THREAD_INFO (tsk) \ { \@@ -150,7 +150,7 @@ extern struct thread_info *current_thread_info(void);#define set_thread_fpdepth (val) (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_FPDEPTH] = (val))#define get_thread_wsaved () (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_WSAVED])#define set_thread_wsaved (val) (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_WSAVED] = (val)) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* * Thread information flags, only 16 bits are available as we encode @@ -228,14 +228,14 @@ extern struct thread_info *current_thread_info(void);* Note that there are only 8 bits available. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#define thread32_stack_is_64bit (__SP) (((__SP) & 0x1) != 0)#define test_thread_64bit_stack (__SP) \ ((test_thread_flag(TIF_32BIT) && !thread32_stack_is_64bit(__SP)) ? \ false : true) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __KERNEL__ */ arch/sparc/include/asm/trap_block.h +2
-2@@ -7,7 +7,7 @@#include <asm/hypervisor.h> #include <asm/asi.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Trap handling code needs to get at a few critical values upon * trap entry and to process TSB misses. These cannot be in the @@ -91,7 +91,7 @@ extern struct sun4v_2insn_patch_entry __sun_m7_2insn_patch, __sun_m7_2insn_patch_end; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #define TRAP_PER_CPU_THREAD 0x00#define TRAP_PER_CPU_PGD_PADDR 0x08arch/sparc/include/asm/traps.h +2
-2@@ -9,7 +9,7 @@#include <uapi/asm/traps.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /* This is for V8 compliant Sparc CPUS */ struct tt_entry { unsigned long inst_one;@@ -21,5 +21,5 @@ struct tt_entry {/* We set this to _start in system setup. */ extern struct tt_entry *sparc_ttable; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC_TRAPS_H) */ arch/sparc/include/asm/tsb.h +1
-1@@ -59,7 +59,7 @@* The kernel TSB is locked into the TLB by virtue of being in the * kernel image, so we don't play these games for swapper_tsb access. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct tsb_ldquad_phys_patch_entry { unsigned int addr; unsigned int sun4u_insn;arch/sparc/include/asm/ttable.h +1
-1@@ -5,7 +5,7 @@#include <asm/utrap.h> #include <asm/pil.h> -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__#include <asm/thread_info.h> #endif arch/sparc/include/asm/turbosparc.h +2
-2@@ -57,7 +57,7 @@#define TURBOSPARC_WTENABLE 0x00000020/* Write thru for dcache */ #define TURBOSPARC_SNENABLE 0x40000000/* DVMA snoop enable */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__/* Bits [13:5] select one of 512 instruction cache tags */ static inline void turbosparc_inv_insn_tag (unsigned long addr)@@ -121,6 +121,6 @@ static inline unsigned long turbosparc_get_ccreg(void)return regval; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_TURBOSPARC_H) */ arch/sparc/include/asm/upa.h +2
-2@@ -24,7 +24,7 @@#define UPA_PORTID_ID 0x000000000000ffff/* Module Identification bits */ /* UPA I/O space accessors */ -#if defined(__KERNEL__) && !defined(__ASSEMBLY__) +#if defined(__KERNEL__) && !defined(__ASSEMBLER__)static inline unsigned char _upa_readb (unsigned long addr) {unsigned char ret;@@ -105,6 +105,6 @@ static inline void _upa_writeq(unsigned long q, unsigned long addr)#define upa_writew (__w, __addr) (_upa_writew((__w), (unsigned long)(__addr)))#define upa_writel (__l, __addr) (_upa_writel((__l), (unsigned long)(__addr)))#define upa_writeq (__q, __addr) (_upa_writeq((__q), (unsigned long)(__addr))) -#endif /* __KERNEL__ && !__ASSEMBLY__ */ +#endif /* __KERNEL__ && !__ASSEMBLER__ */ #endif /* !(_SPARC64_UPA_H) */ arch/sparc/include/asm/vaddrs.h +1
-1@@ -31,7 +31,7 @@*/ #define SRMMU_NOCACHE_ALCRATIO 64/* 256 pages per 64MB of system RAM */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include <asm/kmap_size.h> enum fixed_addresses {arch/sparc/include/asm/viking.h +2
-2@@ -110,7 +110,7 @@#define VIKING_PTAG_DIRTY 0x00010000/* Block has been modified */ #define VIKING_PTAG_SHARED 0x00000100/* Shared with some other cache */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void viking_flush_icache (void ) {@@ -250,6 +250,6 @@ static inline unsigned long viking_hwprobe(unsigned long vaddr)return val; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_VIKING_H) */ arch/sparc/include/asm/visasm.h +1
-1@@ -45,7 +45,7 @@#define VISExitHalfFast \ wr %o5, 0, %fprs; -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__static inline void save_and_clear_fpu (void ) { __asm__ __volatile__ ( " rd %%fprs, %%o5\n"drivers/char/hw_random/n2rng.h +1
-1@@ -48,7 +48,7 @@#define HV_RNG_NUM_CONTROL 4 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__extern unsigned long sun4v_rng_get_diag_ctl (void ); extern unsigned long sun4v_rng_ctl_read_v1(unsigned long ctl_regs_ra, unsigned long *state,
drivers/char/hw_random/n2rng.h struct n2rng { · line 152
Quoted 7 lines
drivers/char/hw_random/n2rng.h +1
-1@@ -147,6 +147,6 @@ struct n2rng {#define N2RNG_BUSY_LIMIT 100#define N2RNG_HCHECK_LIMIT 100 -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* _N2RNG_H */
Friendly ping!
David, Andreas, could you maybe pick this (and the previous patch) up via your sparc tree? (x86 and parisc already got merge via their respective architecture trees, so I guess the same should happen for this patch here, too).
Thanks,
Thomas
Re: [PATCH 34/41] sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
Quoted 1,466 lines · Thomas Huth
Quoted 1,457 lines · Thomas Huth
While the GCC and Clang compilers already define
__ASSEMBLER__automatically when compiling assembly code,__ASSEMBLY__is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use__ASSEMBLER__instead. So let's standardize on the__ASSEMBLER__macro that is provided by the compilers now.This is a completely mechanical patch (done with a simple "sed -i" statement).
Cc "David S. Miller" <[email protected]>Cc Andreas Larsson <[email protected]>Signed-off-by Thomas Huth <[email protected]>---
arch/sparc/include/asm/adi_64.h | 4 +- arch/sparc/include/asm/auxio.h | 4 +- arch/sparc/include/asm/auxio_32.h | 4 +- arch/sparc/include/asm/auxio_64.h | 4 +- arch/sparc/include/asm/cacheflush_64.h | 4 +- arch/sparc/include/asm/cpudata.h | 4 +- arch/sparc/include/asm/cpudata_64.h | 4 +- arch/sparc/include/asm/delay_64.h | 4 +- arch/sparc/include/asm/ftrace.h | 2 +- arch/sparc/include/asm/hvtramp.h | 2 +- arch/sparc/include/asm/hypervisor.h | 92 ++++++++++++------------- arch/sparc/include/asm/irqflags_32.h | 4 +- arch/sparc/include/asm/irqflags_64.h | 4 +- arch/sparc/include/asm/jump_label.h | 4 +- arch/sparc/include/asm/kdebug_32.h | 4 +- arch/sparc/include/asm/leon.h | 8 +-- arch/sparc/include/asm/leon_amba.h | 6 +- arch/sparc/include/asm/mman.h | 4 +- arch/sparc/include/asm/mmu_64.h | 4 +-arch/sparc/include/asm/mmu_context_32.h| 4 +-arch/sparc/include/asm/mmu_context_64.h| 4 +- arch/sparc/include/asm/mxcc.h | 4 +- arch/sparc/include/asm/obio.h | 4 +- arch/sparc/include/asm/openprom.h | 4 +- arch/sparc/include/asm/page_32.h | 8 +-- arch/sparc/include/asm/page_64.h | 8 +-- arch/sparc/include/asm/pcic.h | 2 +- arch/sparc/include/asm/pgtable_32.h | 4 +- arch/sparc/include/asm/pgtable_64.h | 8 +-- arch/sparc/include/asm/pgtsrmmu.h | 6 +- arch/sparc/include/asm/processor_64.h | 10 +-- arch/sparc/include/asm/psr.h | 4 +- arch/sparc/include/asm/ptrace.h | 12 ++-- arch/sparc/include/asm/ross.h | 4 +- arch/sparc/include/asm/sbi.h | 4 +- arch/sparc/include/asm/sigcontext.h | 4 +-arch/sparc/include/asm/signal.h | 6 +- arch/sparc/include/asm/smp_32.h | 8 +-- arch/sparc/include/asm/smp_64.h | 8 +--arch/sparc/include/asm/spinlock_32.h | 4 +- arch/sparc/include/asm/spinlock_64.h | 4 +- arch/sparc/include/asm/spitfire.h | 4 +- arch/sparc/include/asm/starfire.h | 2 +-
arch/sparc/include/asm/thread_info_32.h| 4 +-arch/sparc/include/asm/thread_info_64.h| 12 ++-- arch/sparc/include/asm/trap_block.h | 4 +- arch/sparc/include/asm/traps.h | 4 +- arch/sparc/include/asm/tsb.h | 2 +- arch/sparc/include/asm/ttable.h | 2 +- arch/sparc/include/asm/turbosparc.h | 4 +- arch/sparc/include/asm/upa.h | 4 +-arch/sparc/include/asm/vaddrs.h | 2 +- arch/sparc/include/asm/viking.h | 4 +- arch/sparc/include/asm/visasm.h | 2 +- drivers/char/hw_random/n2rng.h | 4 +- 55 files changed, 172 insertions(+), 172 deletions(-)arch/sparc/include/asm/adi_64.h +2
-2@@ -9,7 +9,7 @@ #include <linux/types.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct adi_caps { __u64 blksz;@@ -41,6 +41,6 @@ static inline unsigned long adi_nbits(void) return adi_state.caps.nbits; } -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* !(__ASM_SPARC64_ADI_H) */arch/sparc/include/asm/auxio.h +2
-2@@ -2,11 +2,11 @@ #ifndef ___ASM_SPARC_AUXIO_H #define ___ASM_SPARC_AUXIO_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ extern void __iomem *auxio_register; -#endif /* ifndef __ASSEMBLY__ */ +#endif /* ifndef __ASSEMBLER__ */ #if defined(__sparc__) && defined(__arch64__) #include <asm/auxio_64.h>arch/sparc/include/asm/auxio_32.h +2
-2@@ -29,7 +29,7 @@ #define AUXIO_FLPY_EJCT 0x02 /* Eject floppy disk. Write only. */ #define AUXIO_LED 0x01 /* On if set, off if unset. Read/Write */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /** NOTE: these routines are implementation dependent-- @@ -75,7 +75,7 @@ do { \ } \ } while (0) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* AUXIO2 (Power Off Control) */arch/sparc/include/asm/auxio_64.h +2
-2@@ -74,7 +74,7 @@ #define AUXIO_PCIO_CPWR_OFF 0x02 /* Courtesy Power Off */ #define AUXIO_PCIO_SPWR_OFF 0x01 /* System Power Off */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define AUXIO_LTE_ON 1 #define AUXIO_LTE_OFF 0@@ -94,6 +94,6 @@ void auxio_set_lte(int on);*/ void auxio_set_led(int on); -#endif /* ifndef __ASSEMBLY__ */ +#endif /* ifndef __ASSEMBLER__ */ #endif /* !(_SPARC64_AUXIO_H) */arch/sparc/include/asm/cacheflush_64.h +2
-2@@ -4,7 +4,7 @@ #include <asm/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/mm.h>@@ -78,6 +78,6 @@ void flush_ptrace_access(struct vm_area_struct *, struct page *, #define flush_cache_vmap_early(start, end) do { } while (0) #define flush_cache_vunmap(start, end) do { } while (0) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _SPARC64_CACHEFLUSH_H */arch/sparc/include/asm/cpudata.h +2
-2@@ -2,14 +2,14 @@ #ifndef ___ASM_SPARC_CPUDATA_H #define ___ASM_SPARC_CPUDATA_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/threads.h> #include <linux/percpu.h> extern const struct seq_operations cpuinfo_op; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #if defined(__sparc__) && defined(__arch64__) #include <asm/cpudata_64.h>arch/sparc/include/asm/cpudata_64.h +2
-2@@ -7,7 +7,7 @@ #ifndef _SPARC64_CPUDATA_H #define _SPARC64_CPUDATA_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ typedef struct { /* Dcache line 1 */@@ -35,7 +35,7 @@ DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data); #define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu)) #define local_cpu_data() (*this_cpu_ptr(&__cpu_data)) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #include <asm/trap_block.h>arch/sparc/include/asm/delay_64.h +2
-2@@ -7,12 +7,12 @@ #ifndef _SPARC64_DELAY_H #define _SPARC64_DELAY_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ void __delay(unsigned long loops); void udelay(unsigned long usecs); #define mdelay(n) udelay((n) * 1000) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* _SPARC64_DELAY_H */arch/sparc/include/asm/ftrace.h +1
-1@@ -6,7 +6,7 @@ #define MCOUNT_ADDR ((unsigned long)(_mcount)) #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ void _mcount(void); #endifarch/sparc/include/asm/hvtramp.h +1
-1@@ -2,7 +2,7 @@ #ifndef _SPARC64_HVTRAP_H #define _SPARC64_HVTRAP_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/types.h>arch/sparc/include/asm/hypervisor.h +26
-26@@ -102,7 +102,7 @@*/ #define HV_FAST_MACH_EXIT 0x00 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ void sun4v_mach_exit(unsigned long exit_code); #endif@@ -131,7 +131,7 @@ void sun4v_mach_exit(unsigned long exit_code);*/ #define HV_FAST_MACH_DESC 0x01 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_mach_desc(unsigned long buffer_pa, unsigned long buf_len, unsigned long *real_buf_len);@@ -152,7 +152,7 @@ unsigned long sun4v_mach_desc(unsigned long buffer_pa,*/ #define HV_FAST_MACH_SIR 0x02 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ void sun4v_mach_sir(void); #endif@@ -208,7 +208,7 @@ void sun4v_mach_sir(void);*/ #define HV_FAST_MACH_SET_WATCHDOG 0x05 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_mach_set_watchdog(unsigned long timeout, unsigned long *orig_timeout); #endif@@ -254,7 +254,7 @@ unsigned long sun4v_mach_set_watchdog(unsigned longtimeout, */ #define HV_FAST_CPU_START 0x10 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_cpu_start(unsigned long cpuid, unsigned long pc, unsigned long rtba,@@ -282,7 +282,7 @@ unsigned long sun4v_cpu_start(unsigned long cpuid,*/ #define HV_FAST_CPU_STOP 0x11 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_cpu_stop(unsigned long cpuid); #endif@@ -299,7 +299,7 @@ unsigned long sun4v_cpu_stop(unsigned long cpuid);*/ #define HV_FAST_CPU_YIELD 0x12 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_cpu_yield(void); #endif@@ -317,7 +317,7 @@ unsigned long sun4v_cpu_yield(void);*/ #define HV_FAST_CPU_POKE 0x13 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_cpu_poke(unsigned long cpuid); #endif@@ -363,7 +363,7 @@ unsigned long sun4v_cpu_poke(unsigned long cpuid); #define HV_CPU_QUEUE_RES_ERROR 0x3e #define HV_CPU_QUEUE_NONRES_ERROR 0x3f -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_cpu_qconf(unsigned long type, unsigned long queue_paddr, unsigned long num_queue_entries);@@ -416,7 +416,7 @@ unsigned long sun4v_cpu_qconf(unsigned long type,*/ #define HV_FAST_CPU_MONDO_SEND 0x42 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_cpu_mondo_send(unsigned long cpu_count, unsigned long cpu_list_pa, unsigned long mondo_block_pa);@@ -449,7 +449,7 @@ unsigned long sun4v_cpu_mondo_send(unsigned long cpu_count, #define HV_CPU_STATE_RUNNING 0x02 #define HV_CPU_STATE_ERROR 0x03 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ long sun4v_cpu_state(unsigned long cpuid); #endif@@ -485,7 +485,7 @@ long sun4v_cpu_state(unsigned long cpuid);* * Layout of a TSB description for mmu_tsb_ctx{,non}0() calls. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_tsb_descr { unsigned short pgsz_idx; unsigned short assoc;@@ -536,7 +536,7 @@ struct hv_tsb_descr {* The fault status block is a multiple of 64-bytes and must be aligned * on a 64-byte boundary. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_fault_status { unsigned long i_fault_type; unsigned long i_fault_addr;@@ -651,7 +651,7 @@ struct hv_fault_status {*/ #define HV_FAST_MMU_TSB_CTX0 0x20 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_mmu_tsb_ctx0(unsigned long num_descriptions, unsigned long tsb_desc_ra); #endif@@ -736,7 +736,7 @@ unsigned long sun4v_mmu_tsb_ctx0(unsigned longnum_descriptions, */ #define HV_FAST_MMU_DEMAP_ALL 0x24 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ void sun4v_mmu_demap_all(void); #endif@@ -766,7 +766,7 @@ void sun4v_mmu_demap_all(void);*/ #define HV_FAST_MMU_MAP_PERM_ADDR 0x25 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_mmu_map_perm_addr(unsigned long vaddr, unsigned long set_to_zero, unsigned long tte,@@ -990,7 +990,7 @@ unsigned long sun4v_mmu_map_perm_addr(unsigned longvaddr, */ #define HV_CCB_SUBMIT 0x34 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_ccb_submit(unsigned long ccb_buf, unsigned long len, unsigned long flags,@@ -1035,7 +1035,7 @@ unsigned long sun4v_ccb_submit(unsigned long ccb_buf,*/ #define HV_CCB_INFO 0x35 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_ccb_info(unsigned long ca, void *info_arr); #endif@@ -1069,7 +1069,7 @@ unsigned long sun4v_ccb_info(unsigned long ca,*/ #define HV_CCB_KILL 0x36 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_ccb_kill(unsigned long ca, void *kill_status); #endif@@ -1104,7 +1104,7 @@ unsigned long sun4v_ccb_kill(unsigned long ca,*/ #define HV_FAST_TOD_GET 0x50 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_tod_get(unsigned long *time); #endif@@ -1121,7 +1121,7 @@ unsigned long sun4v_tod_get(unsigned long *time);*/ #define HV_FAST_TOD_SET 0x51 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_tod_set(unsigned long time); #endif@@ -1197,7 +1197,7 @@ unsigned long sun4v_tod_set(unsigned long time);*/ #define HV_FAST_CONS_WRITE 0x63 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ long sun4v_con_getchar(long *status); long sun4v_con_putchar(long c); long sun4v_con_read(unsigned long buffer,@@ -1239,7 +1239,7 @@ unsigned long sun4v_con_write(unsigned long buffer, #define HV_SOFT_STATE_NORMAL 0x01 #define HV_SOFT_STATE_TRANSITION 0x02 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_mach_set_soft_state(unsigned long soft_state, unsigned long msg_string_ra); #endif@@ -1318,7 +1318,7 @@ unsigned long sun4v_mach_set_soft_state(unsignedlong soft_state, */ #define HV_FAST_SVC_CLRSTATUS 0x84 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_svc_send(unsigned long svc_id, unsigned long buffer, unsigned long buffer_size,@@ -1348,7 +1348,7 @@ unsigned long sun4v_svc_clrstatus(unsigned long svc_id,* start (offset 0) of the trap trace buffer, and is described as * follows: */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_trap_trace_control { unsigned long head_offset; unsigned long tail_offset;@@ -1367,7 +1367,7 @@ struct hv_trap_trace_control {* * Each trap trace buffer entry is laid out as follows: */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_trap_trace_entry {unsigned char type; /* Hypervisor or guest entry? */ unsigned char hpstate; /* Hyper-privileged state */
arch/sparc/include/asm/hypervisor.h +5
-5@@ -1617,7 +1617,7 @@ struct hv_trap_trace_entry {*/ #define HV_FAST_INTR_DEVINO2SYSINO 0xa0 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_devino_to_sysino(unsigned long devhandle, unsigned long devino); #endif@@ -1635,7 +1635,7 @@ unsigned long sun4v_devino_to_sysino(unsigned longdevhandle, */ #define HV_FAST_INTR_GETENABLED 0xa1 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_intr_getenabled(unsigned long sysino); #endif@@ -1651,7 +1651,7 @@ unsigned long sun4v_intr_getenabled(unsigned longsysino); */ #define HV_FAST_INTR_SETENABLED 0xa2 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_intr_setenabled(unsigned long sysino, unsigned long intr_enabled); #endif@@ -1668,7 +1668,7 @@ unsigned long sun4v_intr_setenabled(unsigned longsysino, */ #define HV_FAST_INTR_GETSTATE 0xa3 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_intr_getstate(unsigned long sysino); #endif@@ -1688,7 +1688,7 @@ unsigned long sun4v_intr_getstate(unsigned longsysino); */ #define HV_FAST_INTR_SETSTATE 0xa4 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_intr_setstate(unsigned long sysino, unsigned long intr_state); #endif@@ -1706,7 +1706,7 @@ unsigned long sun4v_intr_setstate(unsigned longsysino, unsigned long
intr_state
*/
#define HV_FAST_INTR_GETTARGET0xa5arch/sparc/include/asm/hypervisor.h +1
-1-#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__unsigned long
sun4v_intr_gettarget(unsigned long sysino); #endifarch/sparc/include/asm/hypervisor.h +14
-14@@ -1723,7 +1723,7 @@ unsigned long sun4v_intr_gettarget(unsigned longsysino); */ #define HV_FAST_INTR_SETTARGET 0xa6 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_intr_settarget(unsigned long sysino, unsigned long cpuid); #endif@@ -1807,7 +1807,7 @@ unsigned long sun4v_intr_settarget(unsigned longsysino, unsigned long cpuid); */ #define HV_FAST_VINTR_SET_TARGET 0xae -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_vintr_get_cookie(unsigned long dev_handle, unsigned long dev_ino, unsigned long *cookie);@@ -3047,7 +3047,7 @@ unsigned long sun4v_vintr_set_target(unsigned long dev_handle, #define LDC_MTE_SZ64K 0x0000000000000001 /* 64K page */ #define LDC_MTE_SZ8K 0x0000000000000000 /* 8K page */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct ldc_mtable_entry { unsigned long mte; unsigned long cookie;@@ -3130,7 +3130,7 @@ struct ldc_mtable_entry {*/ #define HV_FAST_LDC_REVOKE 0xef -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_ldc_tx_qconf(unsigned long channel, unsigned long ra, unsigned long num_entries);@@ -3230,7 +3230,7 @@ unsigned long sun4v_ldc_revoke(unsigned long channel, #define HV_FAST_N2_GET_PERFREG 0x104 #define HV_FAST_N2_SET_PERFREG 0x105 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_niagara_getperf(unsigned long reg, unsigned long *val); unsigned long sun4v_niagara_setperf(unsigned long reg,@@ -3247,7 +3247,7 @@ unsigned long sun4v_niagara2_setperf(unsigned long reg,* a buffer where these statistics can be collected. It is continually * updated once configured. The layout is as follows: */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_mmu_statistics { unsigned long immu_tsb_hits_ctx0_8k_tte; unsigned long immu_tsb_ticks_ctx0_8k_tte;@@ -3332,7 +3332,7 @@ struct hv_mmu_statistics {*/ #define HV_FAST_MMUSTAT_INFO 0x103 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_mmustat_conf(unsigned long ra, unsigned long *orig_ra); unsigned long sun4v_mmustat_info(unsigned long *ra); #endif@@ -3343,7 +3343,7 @@ unsigned long sun4v_mmustat_info(unsigned long *ra); #define HV_NCS_QCONF 0x01 #define HV_NCS_QTAIL_UPDATE 0x02 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct hv_ncs_queue_entry { /* MAU Control Register */ unsigned long mau_control;@@ -3422,7 +3422,7 @@ struct hv_ncs_qtail_update_arg {*/ #define HV_FAST_NCS_REQUEST 0x110 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_ncs_request(unsigned long request, unsigned long arg_ra, unsigned long arg_size);@@ -3433,7 +3433,7 @@ unsigned long sun4v_ncs_request(unsigned long request, #define HV_FAST_REBOOT_DATA_SET 0x172 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_reboot_data_set(unsigned long ra, unsigned long len); #endif@@ -3441,7 +3441,7 @@ unsigned long sun4v_reboot_data_set(unsigned long ra, #define HV_FAST_VT_GET_PERFREG 0x184 #define HV_FAST_VT_SET_PERFREG 0x185 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_vt_get_perfreg(unsigned long reg_num, unsigned long *reg_val); unsigned long sun4v_vt_set_perfreg(unsigned long reg_num,@@ -3451,7 +3451,7 @@ unsigned long sun4v_vt_set_perfreg(unsigned long reg_num, #define HV_FAST_T5_GET_PERFREG 0x1a8 #define HV_FAST_T5_SET_PERFREG 0x1a9 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_t5_get_perfreg(unsigned long reg_num, unsigned long *reg_val); unsigned long sun4v_t5_set_perfreg(unsigned long reg_num,@@ -3462,7 +3462,7 @@ unsigned long sun4v_t5_set_perfreg(unsigned long reg_num, #define HV_FAST_M7_GET_PERFREG 0x43 #define HV_FAST_M7_SET_PERFREG 0x44 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_m7_get_perfreg(unsigned long reg_num, unsigned long *reg_val); unsigned long sun4v_m7_set_perfreg(unsigned long reg_num,@@ -3506,7 +3506,7 @@ unsigned long sun4v_m7_set_perfreg(unsigned long reg_num, #define HV_GRP_T5_CPU 0x0211 #define HV_GRP_DIAG 0x0300 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ unsigned long sun4v_get_version(unsigned long group, unsigned long *major, unsigned long *minor);arch/sparc/include/asm/irqflags_32.h +2
-2@@ -11,7 +11,7 @@ #ifndef _ASM_IRQFLAGS_H #define _ASM_IRQFLAGS_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/types.h> #include <asm/psr.h>@@ -43,6 +43,6 @@ static inline notrace bool arch_irqs_disabled(void) return arch_irqs_disabled_flags(arch_local_save_flags()); } -#endif /* (__ASSEMBLY__) */ +#endif /* (__ASSEMBLER__) */ #endif /* !(_ASM_IRQFLAGS_H) */arch/sparc/include/asm/irqflags_64.h +2
-2@@ -13,7 +13,7 @@ #include <asm/pil.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ static inline notrace unsigned long arch_local_save_flags(void) {@@ -93,6 +93,6 @@ static inline notrace unsigned longarch_local_irq_save (void ) return flags; } -#endif /* (__ASSEMBLY__) */ +#endif /* (__ASSEMBLER__) */ #endif /* !(_ASM_IRQFLAGS_H) */arch/sparc/include/asm/jump_label.h +2
-2@@ -2,7 +2,7 @@ #ifndef _ASM_SPARC_JUMP_LABEL_H #define _ASM_SPARC_JUMP_LABEL_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/types.h>@@ -48,5 +48,5 @@ struct jump_entry { jump_label_t key; }; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endifarch/sparc/include/asm/kdebug_32.h +2
-2@@ -19,7 +19,7 @@ #define DEBUG_BP_TRAP 126 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /* The debug vector is passed in %o1 at boot time. It is a pointer to* a structure in the debuggers address space. Here is its format. */ @@ -64,7 +64,7 @@ enum die_val { DIE_OOPS, }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* Some nice offset defines for assembler code. */ #define KDEBUG_ENTRY_OFF 0x0arch/sparc/include/asm/leon.h +4
-4@@ -59,7 +59,7 @@ #define ASI_LEON3_SYSCTRL_CFG_SNOOPING (1 << 27) #define ASI_LEON3_SYSCTRL_CFG_SSIZE(c) (1 << ((c >> 20) & 0xf)) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /* do a physical address bypass write, i.e. for 0x80000000 */ static inline void leon_store_reg(unsigned long paddr, unsigned long value)@@ -132,7 +132,7 @@ static inline int sparc_leon3_cpuid(void) return sparc_leon3_asr17() >> 28; } -#endif /*!__ASSEMBLY__*/ +#endif /*!__ASSEMBLER__*/ #ifdef CONFIG_SMP # define LEON3_IRQ_IPI_DEFAULT 13@@ -194,7 +194,7 @@ static inline int sparc_leon3_cpuid(void) #define LEON2_CCR_DSETS_MASK 0x03000000UL #define LEON2_CFG_SSIZE_MASK 0x00007000UL -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct vm_area_struct; unsigned long leon_swprobe(unsigned long vaddr, unsigned long *paddr);@@ -247,7 +247,7 @@ extern int leon_ipi_irq; #endif /* CONFIG_SMP */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* macros used in leon_mm.c */ #define PFN(x) ((x) >> PAGE_SHIFT)arch/sparc/include/asm/leon_amba.h +1
-1@@ -8,7 +8,7 @@ #ifndef LEON_AMBA_H_INCLUDE #define LEON_AMBA_H_INCLUDE -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct amba_prom_registers {unsigned int phys_addr; /* The physical address of this register */
arch/sparc/include/asm/leon_amba.h +2
-2@@ -89,7 +89,7 @@ struct amba_prom_registers { #define LEON3_GPTIMER_CONFIG_NRTIMERS(c) ((c)->config & 0x7) #define LEON3_GPTIMER_CTRL_ISPENDING(r) (((r)&LEON3_GPTIMER_CTRL_PENDING) ? 1 : 0) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct leon3_irqctrl_regs_map { u32 ilevel;@@ -189,7 +189,7 @@ extern int leon_debug_irqout; extern unsigned long leon3_gptimer_irq; extern unsigned int sparc_leon_eirq; -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #define LEON3_IO_AREA 0xfff00000 #define LEON3_CONF_AREA 0xff000arch/sparc/include/asm/mman.h +2
-2@@ -4,7 +4,7 @@ #include <uapi/asm/mman.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define arch_mmap_check(addr,len,flags) sparc_mmap_check(addr,len) int sparc_mmap_check(unsigned long addr, unsigned long len);@@ -87,5 +87,5 @@ static inline bool arch_validate_flags(unsigned long vm_flags) } #endif /* CONFIG_SPARC64 */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __SPARC_MMAN_H__ */arch/sparc/include/asm/mmu_64.h +2
-2@@ -59,7 +59,7 @@ #define CTX_HWBITS(__ctx) ((__ctx.sparc64_ctx_val) & CTX_HW_MASK) #define CTX_NRBITS(__ctx) ((__ctx.sparc64_ctx_val) & CTX_NR_MASK) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define TSB_ENTRY_ALIGNMENT 16@@ -117,7 +117,7 @@ typedef struct { spinlock_t tag_lock; } mm_context_t; -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #define TSB_CONFIG_TSB 0x00 #define TSB_CONFIG_RSS_LIMIT 0x08arch/sparc/include/asm/mmu_context_32.h +2
-2@@ -2,7 +2,7 @@ #ifndef __SPARC_MMU_CONTEXT_H #define __SPARC_MMU_CONTEXT_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <asm-generic/mm_hooks.h>@@ -29,6 +29,6 @@ void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, #include <asm-generic/mmu_context.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_MMU_CONTEXT_H) */arch/sparc/include/asm/mmu_context_64.h +2
-2@@ -4,7 +4,7 @@ /* Derived heavily from Linus's Alpha/AXP ASN code... */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/spinlock.h> #include <linux/mm_types.h>@@ -193,6 +193,6 @@ static inline unsigned long mm_untag_mask(struct mm_struct *mm) #include <asm-generic/mmu_context.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC64_MMU_CONTEXT_H) */arch/sparc/include/asm/mxcc.h +2
-2@@ -84,7 +84,7 @@* MID: The moduleID of the cpu your read this from. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ static inline void mxcc_set_stream_src(unsigned long *paddr) {@@ -133,6 +133,6 @@ static inline void mxcc_set_creg(unsigned long mxcc_control) "i" (ASI_M_MXCC)); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_MXCC_H) */arch/sparc/include/asm/obio.h +2
-2@@ -97,7 +97,7 @@ #define CC_EREG 0x1F00E00 /* Error code register */ #define CC_CID 0x1F00F04 /* Component ID */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ static inline int bw_get_intr_mask(int sbus_level) {@@ -221,6 +221,6 @@ static inline void cc_set_igen(unsigned int gen) "i" (ASI_M_MXCC)); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_OBIO_H) */arch/sparc/include/asm/openprom.h +2
-2@@ -11,7 +11,7 @@ /* Empirical constants... */ #define LINUX_OPPROM_MAGIC 0x10010407 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/of.h> /* V0 prom device operations. */@@ -275,6 +275,6 @@ struct linux_prom_pci_intmask { unsigned int interrupt; }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_OPENPROM_H) */arch/sparc/include/asm/page_32.h +4
-4@@ -13,7 +13,7 @@ #include <vdso/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define clear_page(page) memset((void *)(page), 0, PAGE_SIZE) #define copy_page(to,from) memcpy((void *)(to), (void *)(from), PAGE_SIZE)@@ -108,14 +108,14 @@ typedef pte_t *pgtable_t; #define TASK_UNMAPPED_BASE 0x50000000 -#else /* !(__ASSEMBLY__) */ +#else /* !(__ASSEMBLER__) */ #define __pgprot(x) (x) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #define PAGE_OFFSET 0xf0000000 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ extern unsigned long phys_base; extern unsigned long pfn_base; #endifarch/sparc/include/asm/page_64.h +4
-4@@ -30,7 +30,7 @@ #define HUGE_MAX_HSTATE 5 #endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #if defined(CONFIG_HUGETLB_PAGE) || defined(CONFIG_TRANSPARENT_HUGEPAGE) struct pt_regs;@@ -128,7 +128,7 @@ extern unsigned long sparc64_va_hole_bottom; extern unsigned long PAGE_OFFSET; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* The maximum number of physical memory address bits we support. The* largest value we can support is whatever "KPGD_SHIFT + KPTE_BITS" @@ -139,7 +139,7 @@ extern unsigned long PAGE_OFFSET; #define ILOG2_4MB 22 #define ILOG2_256MB 28 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define __pa(x) ((unsigned long)(x) - PAGE_OFFSET) #define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET))@@ -153,7 +153,7 @@ extern unsigned long PAGE_OFFSET; #define virt_to_phys __pa #define phys_to_virt __va -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #include <asm-generic/getorder.h>arch/sparc/include/asm/pcic.h +1
-1@@ -8,7 +8,7 @@ #ifndef __SPARC_PCIC_H #define __SPARC_PCIC_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/types.h> #include <linux/smp.h>arch/sparc/include/asm/pgtable_32.h +2
-2@@ -21,7 +21,7 @@ #define PGDIR_MASK (~(PGDIR_SIZE-1)) #define PGDIR_ALIGN(__addr) (((__addr) + ~PGDIR_MASK) & PGDIR_MASK) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <asm-generic/pgtable-nopud.h> #include <linux/spinlock.h>@@ -428,7 +428,7 @@ static inline int io_remap_pfn_range(structvm_area_struct *vma, __changed; \ }) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #define VMALLOC_START _AC(0xfe600000,UL) #define VMALLOC_END _AC(0xffc00000,UL)arch/sparc/include/asm/pgtable_64.h +4
-4@@ -79,7 +79,7 @@ #error PMD_SHIFT must equal HPAGE_SHIFT for transparent huge pages. #endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ extern unsigned long VMALLOC_END;@@ -106,7 +106,7 @@ bool kern_addr_valid(unsigned long addr); pr_err("%s:%d: bad pgd %p(%016lx) seen at (%pS)\n", \ __FILE__, __LINE__, &(e), pgd_val(e), __builtin_return_address(0)) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* PTE bits which are the same in SUN4U and SUN4V format. */ #define _PAGE_VALID _AC(0x8000000000000000,UL) /* Valid TTE */@@ -191,7 +191,7 @@ bool kern_addr_valid(unsigned long addr); /* We borrow bit 20 to store the exclusive marker in swap PTEs. */ #define _PAGE_SWP_EXCLUSIVE _AC(0x0000000000100000, UL) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ pte_t mk_pte_io(unsigned long, pgprot_t, int, unsigned long);@@ -1181,6 +1181,6 @@ extern unsigned long pte_leaf_size(pte_t pte); #endif /* CONFIG_HUGETLB_PAGE */ -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC64_PGTABLE_H) */arch/sparc/include/asm/pgtsrmmu.h +3
-3@@ -10,7 +10,7 @@ #include <asm/page.h> -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ #include <asm/thread_info.h> /* TI_UWINMASK for WINDOW_FLUSH */ #endif@@ -97,7 +97,7 @@ bne 99b; \ restore %g0, %g0, %g0; -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ extern unsigned long last_valid_pfn; /* This makes sense. Honest it does - Anton */@@ -136,6 +136,6 @@ srmmu_get_pte (unsigned long addr) return entry; } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC_PGTSRMMU_H) */arch/sparc/include/asm/processor_64.h +5
-5@@ -21,7 +21,7 @@* XXX No longer using virtual page tables, kill this upper limit... */ #define VA_BITS 44 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define VPTE_SIZE (1UL << (VA_BITS - PAGE_SHIFT + 3)) #else #define VPTE_SIZE (1 << (VA_BITS - PAGE_SHIFT + 3))@@ -45,7 +45,7 @@ #endif -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /* The Sparc processor specific thread struct. */ /* XXX This should die, everything can go into thread_info now. */@@ -62,7 +62,7 @@ struct thread_struct { #endif }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #ifndef CONFIG_DEBUG_SPINLOCK #define INIT_THREAD { \@@ -75,7 +75,7 @@ struct thread_struct { } #endif /* !(CONFIG_DEBUG_SPINLOCK) */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/types.h> #include <asm/fpumacro.h>@@ -242,6 +242,6 @@ static inline void prefetchw(const void *x) int do_mathemu(struct pt_regs *regs, struct fpustate *f, bool illegal_insn_trap); -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__ASM_SPARC64_PROCESSOR_H) */arch/sparc/include/asm/psr.h +2
-2@@ -14,7 +14,7 @@ #include <uapi/asm/psr.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /* Get the %psr register. */ static inline unsigned int get_psr(void) {@@ -63,6 +63,6 @@ static inline unsigned int get_fsr(void) return fsr; } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__LINUX_SPARC_PSR_H) */arch/sparc/include/asm/ptrace.h +6
-6@@ -5,7 +5,7 @@ #include <uapi/asm/ptrace.h> #if defined(__sparc__) && defined(__arch64__) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/compiler.h> #include <linux/threads.h>@@ -113,10 +113,10 @@ static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) { return regs->u_regs[UREG_I6]; } -#else /* __ASSEMBLY__ */ -#endif /* __ASSEMBLY__ */ +#else /* __ASSEMBLER__ */ +#endif /* __ASSEMBLER__ */ #else /* (defined(__sparc__) && defined(__arch64__)) */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <asm/switch_to.h> static inline bool pt_regs_is_syscall(struct pt_regs *regs)@@ -144,8 +144,8 @@ static inline bool pt_regs_clear_syscall(struct pt_regs *regs) #define instruction_pointer(regs) ((regs)->pc) #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP]) unsigned long profile_pc(struct pt_regs *); -#else /* (!__ASSEMBLY__) */ -#endif /* (!__ASSEMBLY__) */ +#else /* (!__ASSEMBLER__) */ +#endif /* (!__ASSEMBLER__) */ #endif /* (defined(__sparc__) && defined(__arch64__)) */ #define STACK_BIAS 2047arch/sparc/include/asm/ross.h +2
-2@@ -95,7 +95,7 @@ #define HYPERSPARC_ICCR_FTD 0x00000002 #define HYPERSPARC_ICCR_ICE 0x00000001 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ static inline unsigned int get_ross_icr(void) {@@ -187,6 +187,6 @@ static inline void hyper_flush_cache_page(unsigned long page) } } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC_ROSS_H) */arch/sparc/include/asm/sbi.h +2
-2@@ -64,7 +64,7 @@ struct sbi_regs {*/ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ static inline int acquire_sbi(int devid, int mask) {@@ -111,6 +111,6 @@ static inline void set_sbi_ctl(int devid, int cfgno, int cfg) "i" (ASI_M_CTL)); } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_SBI_H) */arch/sparc/include/asm/sigcontext.h +2
-2@@ -5,7 +5,7 @@ #include <asm/ptrace.h> #include <uapi/asm/sigcontext.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define __SUNOS_MAXWIN 31@@ -104,6 +104,6 @@ typedef struct { #endif /* (CONFIG_SPARC64) */ -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_SIGCONTEXT_H) */arch/sparc/include/asm/signal.h +3
-3@@ -2,16 +2,16 @@ #ifndef __SPARC_SIGNAL_H #define __SPARC_SIGNAL_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/personality.h> #include <linux/types.h> #endif #include <uapi/asm/signal.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define __ARCH_HAS_KA_RESTORER #define __ARCH_HAS_SA_RESTORER -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_SIGNAL_H) */arch/sparc/include/asm/smp_32.h +4
-4@@ -10,15 +10,15 @@ #include <linux/threads.h> #include <asm/head.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/cpumask.h> -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #ifdef CONFIG_SMP -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <asm/ptrace.h> #include <asm/asi.h>@@ -105,7 +105,7 @@ int hard_smp_processor_id(void); void smp_setup_cpu_possible_map(void); -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* Sparc specific messages. */ #define MSG_CROSS_CALL 0x0005 /* run func on cpus */arch/sparc/include/asm/smp_64.h +4
-4@@ -12,16 +12,16 @@ #include <asm/starfire.h> #include <asm/spitfire.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <linux/cpumask.h> #include <linux/cache.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #ifdef CONFIG_SMP -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /** Private routines/data @@ -68,7 +68,7 @@ int __cpu_disable(void); void __cpu_die(unsigned int cpu); #endif -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #elsearch/sparc/include/asm/spinlock_32.h +2
-2@@ -7,7 +7,7 @@ #ifndef __SPARC_SPINLOCK_H #define __SPARC_SPINLOCK_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <asm/psr.h> #include <asm/barrier.h>@@ -183,6 +183,6 @@ static inline int __arch_read_trylock(arch_rwlock_t *rw) res; \ }) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* __SPARC_SPINLOCK_H */arch/sparc/include/asm/spinlock_64.h +2
-2@@ -7,13 +7,13 @@ #ifndef __SPARC64_SPINLOCK_H #define __SPARC64_SPINLOCK_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <asm/processor.h> #include <asm/barrier.h> #include <asm/qspinlock.h> #include <asm/qrwlock.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC64_SPINLOCK_H) */arch/sparc/include/asm/spitfire.h +2
-2@@ -68,7 +68,7 @@ #define CPU_ID_M8 ('8') #define CPU_ID_SONOMA1 ('N') -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ enum ultra_tlb_layout { spitfire = 0,@@ -363,6 +363,6 @@ static inline void cheetah_put_itlb_data(int entry, unsigned long data) "i" (ASI_ITLB_DATA_ACCESS)); } -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* CONFIG_SPARC64 */ #endif /* !(_SPARC64_SPITFIRE_H) */arch/sparc/include/asm/starfire.h +1
-1@@ -8,7 +8,7 @@ #ifndef _SPARC64_STARFIRE_H #define _SPARC64_STARFIRE_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ extern int this_is_starfire;arch/sparc/include/asm/thread_info_32.h +2
-2@@ -14,7 +14,7 @@ #ifdef __KERNEL__ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <asm/ptrace.h> #include <asm/page.h>@@ -72,7 +72,7 @@ register struct thread_info *current_thread_info_regasm("g6"); */ #define THREAD_SIZE_ORDER 1 -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ /* Size of kernel stack for each process */ #define THREAD_SIZE (2 * PAGE_SIZE)arch/sparc/include/asm/thread_info_64.h +6
-6@@ -26,7 +26,7 @@ #include <asm/page.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <asm/ptrace.h> #include <asm/types.h>@@ -64,7 +64,7 @@ struct thread_info { __attribute__ ((aligned(64))); }; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /* offsets into the thread_info struct for assembly code access */ #define TI_TASK 0x00000000@@ -110,7 +110,7 @@ struct thread_info { /** macros/functions for gaining access to the thread information structure */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define INIT_THREAD_INFO(tsk) \ { \@@ -150,7 +150,7 @@ extern struct thread_info *current_thread_info(void); #define set_thread_fpdepth(val) (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_FPDEPTH] = (val)) #define get_thread_wsaved() (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_WSAVED]) #define set_thread_wsaved(val) (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_WSAVED] = (val)) -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ /** Thread information flags, only 16 bits are available as we encode @@ -228,14 +228,14 @@ extern struct thread_info *current_thread_info(void);* Note that there are only 8 bits available. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define thread32_stack_is_64bit(__SP) (((__SP) & 0x1) != 0) #define test_thread_64bit_stack(__SP) \ ((test_thread_flag(TIF_32BIT) && !thread32_stack_is_64bit(__SP)) ? \ false : true) -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* __KERNEL__ */arch/sparc/include/asm/trap_block.h +2
-2@@ -7,7 +7,7 @@ #include <asm/hypervisor.h> #include <asm/asi.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /* Trap handling code needs to get at a few critical values upon* trap entry and to process TSB misses. These cannot be in the @@ -91,7 +91,7 @@ extern struct sun4v_2insn_patch_entry __sun_m7_2insn_patch, __sun_m7_2insn_patch_end; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #define TRAP_PER_CPU_THREAD 0x00 #define TRAP_PER_CPU_PGD_PADDR 0x08arch/sparc/include/asm/traps.h +2
-2@@ -9,7 +9,7 @@ #include <uapi/asm/traps.h> -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /* This is for V8 compliant Sparc CPUS */ struct tt_entry { unsigned long inst_one;@@ -21,5 +21,5 @@ struct tt_entry { /* We set this to _start in system setup. */ extern struct tt_entry *sparc_ttable; -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(_SPARC_TRAPS_H) */arch/sparc/include/asm/tsb.h +1
-1@@ -59,7 +59,7 @@* The kernel TSB is locked into the TLB by virtue of being in the * kernel image, so we don't play these games for swapper_tsb access. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ struct tsb_ldquad_phys_patch_entry { unsigned int addr; unsigned int sun4u_insn;arch/sparc/include/asm/ttable.h +1
-1@@ -5,7 +5,7 @@ #include <asm/utrap.h> #include <asm/pil.h> -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ #include <asm/thread_info.h> #endifarch/sparc/include/asm/turbosparc.h +2
-2@@ -57,7 +57,7 @@ #define TURBOSPARC_WTENABLE 0x00000020 /* Write thru for dcache */ #define TURBOSPARC_SNENABLE 0x40000000 /* DVMA snoop enable */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /* Bits [13:5] select one of 512 instruction cache tags */ static inline void turbosparc_inv_insn_tag(unsigned long addr)@@ -121,6 +121,6 @@ static inline unsigned long turbosparc_get_ccreg(void) return regval; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_TURBOSPARC_H) */arch/sparc/include/asm/upa.h +2
-2@@ -24,7 +24,7 @@ #define UPA_PORTID_ID 0x000000000000ffff /* Module Identification bits */ /* UPA I/O space accessors */ -#if defined(__KERNEL__) && !defined(__ASSEMBLY__) +#if defined(__KERNEL__) && !defined(__ASSEMBLER__) static inline unsigned char _upa_readb(unsigned long addr) { unsigned char ret;@@ -105,6 +105,6 @@ static inline void _upa_writeq(unsigned long q, unsigned long addr) #define upa_writew(__w, __addr) (_upa_writew((__w), (unsigned long)(__addr))) #define upa_writel(__l, __addr) (_upa_writel((__l), (unsigned long)(__addr))) #define upa_writeq(__q, __addr) (_upa_writeq((__q), (unsigned long)(__addr))) -#endif /* __KERNEL__ && !__ASSEMBLY__ */ +#endif /* __KERNEL__ && !__ASSEMBLER__ */ #endif /* !(_SPARC64_UPA_H) */arch/sparc/include/asm/vaddrs.h +1
-1@@ -31,7 +31,7 @@*/ #define SRMMU_NOCACHE_ALCRATIO 64 /* 256 pages per 64MB of system RAM */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <asm/kmap_size.h> enum fixed_addresses {arch/sparc/include/asm/viking.h +2
-2@@ -110,7 +110,7 @@ #define VIKING_PTAG_DIRTY 0x00010000 /* Block has been modified */ #define VIKING_PTAG_SHARED 0x00000100 /* Shared with some other cache */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ static inline void viking_flush_icache(void) {@@ -250,6 +250,6 @@ static inline unsigned long viking_hwprobe(unsigned long vaddr) return val; } -#endif /* !__ASSEMBLY__ */ +#endif /* !__ASSEMBLER__ */ #endif /* !(_SPARC_VIKING_H) */arch/sparc/include/asm/visasm.h +1
-1@@ -45,7 +45,7 @@ #define VISExitHalfFast \ wr %o5, 0, %fprs; -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ static inline void save_and_clear_fpu(void) {
__asm____volatile__(
" rd %%fprs, %%o5\n"drivers/char/hw_random/n2rng.h +1
-1@@ -48,7 +48,7 @@ #define HV_RNG_NUM_CONTROL 4 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ extern unsigned long sun4v_rng_get_diag_ctl(void); extern unsigned long sun4v_rng_ctl_read_v1(unsigned long ctl_regs_ra, unsigned long *state,drivers/char/hw_random/n2rng.h struct n2rng { · line 150
Quoted 5 lines
drivers/char/hw_random/n2rng.h +1
-1@@ -147,6 +147,6 @@ struct n2rng { #define N2RNG_BUSY_LIMIT 100 #define N2RNG_HCHECK_LIMIT 100 -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* _N2RNG_H */Friendly ping!
Quoted 1 line
David, Andreas, could you maybe pick this (and the previous patch) up via your sparc tree? (x86 and parisc already got merge via their respective architecture trees, so I guess the same should happen for this patch here, too).
Ping^2! Any chance you could pick this up for v6.17 ?
Thomas