Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Remove duplicate definition for ppc_msgsnd_sync()

Remove duplicate definition of ppc_msgsnd_sync() introduced in commit
b87ac0218355 ("powerpc: Introduce msgsnd/doorbell barrier primitives").

No functional change intended.

Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
Reviewed-by: Ritesh Harjani (IBM) <riteshh@linux.ibm.com>
[maddy: Updated commit message to fixed checkpatch.pl warning]
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250813122319.62278-1-gautam@linux.ibm.com

authored by

Gautam Menghani and committed by
Madhavan Srinivasan
b034baff 6dc5d077

+6 -12
+6 -12
arch/powerpc/include/asm/dbell.h
··· 40 40 : : "i" (CPU_FTR_HVMODE), "r" (msg)); 41 41 } 42 42 43 - /* sync before sending message */ 44 - static inline void ppc_msgsnd_sync(void) 45 - { 46 - __asm__ __volatile__ ("sync" : : : "memory"); 47 - } 48 - 49 43 /* sync after taking message interrupt */ 50 44 static inline void ppc_msgsync(void) 51 45 { ··· 70 76 __asm__ __volatile__ (PPC_MSGSND(%0) : : "r" (msg)); 71 77 } 72 78 73 - /* sync before sending message */ 74 - static inline void ppc_msgsnd_sync(void) 75 - { 76 - __asm__ __volatile__ ("sync" : : : "memory"); 77 - } 78 - 79 79 /* sync after taking message interrupt */ 80 80 static inline void ppc_msgsync(void) 81 81 { ··· 78 90 #endif /* CONFIG_PPC_BOOK3S */ 79 91 80 92 extern void doorbell_exception(struct pt_regs *regs); 93 + 94 + /* sync before sending message */ 95 + static inline void ppc_msgsnd_sync(void) 96 + { 97 + __asm__ __volatile__ ("sync" : : : "memory"); 98 + } 81 99 82 100 static inline void ppc_msgsnd(enum ppc_dbell type, u32 flags, u32 tag) 83 101 {