Patch "xtensa: umulsidi3: fix conditional expression" has been added to the 6.5-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

    xtensa: umulsidi3: fix conditional expression

to the 6.5-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:
     xtensa-umulsidi3-fix-conditional-expression.patch
and it can be found in the queue-6.5 subdirectory.

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



commit dbd6353a3972ac5dbdd7ef4f928837a0932724ce
Author: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Date:   Tue Sep 19 22:21:38 2023 -0700

    xtensa: umulsidi3: fix conditional expression
    
    [ Upstream commit 9aecda97ec3deecbfa7670877c8ddfd3d0fc87c4 ]
    
    Even when a variant has one or more of these defines set to 1, the
    multiplier code paths are not used. Change the expression so that the
    correct code paths are used.
    
    arch/xtensa/lib/umulsidi3.S:44:38: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
       44 | #if defined(__XTENSA_CALL0_ABI__) && XCHAL_NO_MUL
    arch/xtensa/lib/umulsidi3.S:145:38: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
      145 | #if defined(__XTENSA_CALL0_ABI__) && XCHAL_NO_MUL
    arch/xtensa/lib/umulsidi3.S:159:5: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
      159 | #if XCHAL_NO_MUL
    
    Fixes: 8939c58d68f9 ("xtensa: add __umulsidi3 helper")
    Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
    Cc: Chris Zankel <chris@xxxxxxxxxx>
    Cc: Max Filippov <jcmvbkbc@xxxxxxxxx>
    Message-Id: <20230920052139.10570-16-rdunlap@xxxxxxxxxxxxx>
    Signed-off-by: Max Filippov <jcmvbkbc@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/xtensa/lib/umulsidi3.S b/arch/xtensa/lib/umulsidi3.S
index 8c7a94a0c5d07..5da501b578136 100644
--- a/arch/xtensa/lib/umulsidi3.S
+++ b/arch/xtensa/lib/umulsidi3.S
@@ -3,7 +3,9 @@
 #include <asm/asmmacro.h>
 #include <asm/core.h>
 
-#if !XCHAL_HAVE_MUL16 && !XCHAL_HAVE_MUL32 && !XCHAL_HAVE_MAC16
+#if XCHAL_HAVE_MUL16 || XCHAL_HAVE_MUL32 || XCHAL_HAVE_MAC16
+#define XCHAL_NO_MUL 0
+#else
 #define XCHAL_NO_MUL 1
 #endif
 



[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