Patch "ARC: build: Use __force to suppress per-CPU cmpxchg warnings" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ARC: build: Use __force to suppress per-CPU cmpxchg warnings

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arc-build-use-__force-to-suppress-per-cpu-cmpxchg-wa.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5e539b2310a047c6c424d418e715a9670c0c9c96
Author: Paul E. McKenney <paulmck@xxxxxxxxxx>
Date:   Wed Oct 9 10:55:13 2024 -0700

    ARC: build: Use __force to suppress per-CPU cmpxchg warnings
    
    [ Upstream commit 1e8af9f04346ecc0bccf0c53b728fc8eb3490a28 ]
    
    Currently, the cast of the first argument to cmpxchg_emu_u8() drops the
    __percpu address-space designator, which results in sparse complaints
    when applying cmpxchg() to per-CPU variables in ARC.  Therefore, use
    __force to suppress these complaints, given that this does not pertain
    to cmpxchg() semantics, which are plently well-defined on variables in
    general, whether per-CPU or otherwise.
    
    Reported-by: kernel test robot <lkp@xxxxxxxxx>
    Closes: https://lore.kernel.org/oe-kbuild-all/202409251336.ToC0TvWB-lkp@xxxxxxxxx/
    Signed-off-by: Paul E. McKenney <paulmck@xxxxxxxxxx>
    Cc: <linux-snps-arc@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Vineet Gupta <vgupta@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arc/include/asm/cmpxchg.h b/arch/arc/include/asm/cmpxchg.h
index 58045c898340..76f43db0890f 100644
--- a/arch/arc/include/asm/cmpxchg.h
+++ b/arch/arc/include/asm/cmpxchg.h
@@ -48,7 +48,7 @@
 									\
 	switch(sizeof((_p_))) {						\
 	case 1:								\
-		_prev_ = (__typeof__(*(ptr)))cmpxchg_emu_u8((volatile u8 *)_p_, (uintptr_t)_o_, (uintptr_t)_n_);	\
+		_prev_ = (__typeof__(*(ptr)))cmpxchg_emu_u8((volatile u8 *__force)_p_, (uintptr_t)_o_, (uintptr_t)_n_);	\
 		break;							\
 	case 4:								\
 		_prev_ = __cmpxchg(_p_, _o_, _n_);			\




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux