diff mbox

[4/4] arm64: debug: remove unused local_dbg_{enable, disable} macros

Message ID 1468937260-23988-4-git-send-email-will.deacon@arm.com
State Accepted
Commit 2572214170fb95370be21915c0397f4b6a27e7e3
Headers show

Commit Message

Will Deacon July 19, 2016, 2:07 p.m. UTC
The debug enable/disable macros are not used anywhere in the kernel, so
remove them from irqflags.h

Reported-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>

---
 arch/arm64/include/asm/irqflags.h | 3 ---
 1 file changed, 3 deletions(-)

-- 
2.1.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Comments

Mark Rutland July 19, 2016, 2:38 p.m. UTC | #1
On Tue, Jul 19, 2016 at 03:07:40PM +0100, Will Deacon wrote:
> The debug enable/disable macros are not used anywhere in the kernel, so

> remove them from irqflags.h

> 

> Reported-by: Robin Murphy <robin.murphy@arm.com>

> Signed-off-by: Will Deacon <will.deacon@arm.com>


Acked-by: Mark Rutland <mark.rutland@arm.com>


Mark.

> ---

>  arch/arm64/include/asm/irqflags.h | 3 ---

>  1 file changed, 3 deletions(-)

> 

> diff --git a/arch/arm64/include/asm/irqflags.h b/arch/arm64/include/asm/irqflags.h

> index 11cc941bd107..8c581281fa12 100644

> --- a/arch/arm64/include/asm/irqflags.h

> +++ b/arch/arm64/include/asm/irqflags.h

> @@ -110,8 +110,5 @@ static inline int arch_irqs_disabled_flags(unsigned long flags)

>  		: : "r" (flags) : "memory");				\

>  	} while (0)

>  

> -#define local_dbg_enable()	asm("msr	daifclr, #8" : : : "memory")

> -#define local_dbg_disable()	asm("msr	daifset, #8" : : : "memory")

> -

>  #endif

>  #endif

> -- 

> 2.1.4

> 

> 

> _______________________________________________

> linux-arm-kernel mailing list

> linux-arm-kernel@lists.infradead.org

> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

> 


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff mbox

Patch

diff --git a/arch/arm64/include/asm/irqflags.h b/arch/arm64/include/asm/irqflags.h
index 11cc941bd107..8c581281fa12 100644
--- a/arch/arm64/include/asm/irqflags.h
+++ b/arch/arm64/include/asm/irqflags.h
@@ -110,8 +110,5 @@  static inline int arch_irqs_disabled_flags(unsigned long flags)
 		: : "r" (flags) : "memory");				\
 	} while (0)
 
-#define local_dbg_enable()	asm("msr	daifclr, #8" : : : "memory")
-#define local_dbg_disable()	asm("msr	daifset, #8" : : : "memory")
-
 #endif
 #endif