Patch "clk/sophgo: Using BUG() instead of unreachable() in mmux_get_parent_id()" has been added to the 6.10-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

    clk/sophgo: Using BUG() instead of unreachable() in mmux_get_parent_id()

to the 6.10-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:
     clk-sophgo-using-bug-instead-of-unreachable-in-mmux_.patch
and it can be found in the queue-6.10 subdirectory.

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



commit 2ad93e5a777abc3e3629c402c47f7ecb441d847e
Author: Li Qiang <liqiang01@xxxxxxxxxx>
Date:   Tue Jul 9 14:36:38 2024 +0800

    clk/sophgo: Using BUG() instead of unreachable() in mmux_get_parent_id()
    
    [ Upstream commit 1f7a04a0e673c19cc10bf4039047e11367ac5735 ]
    
    In general it's a good idea to avoid using bare unreachable() because it
    introduces undefined behavior in compiled code. but it caused a compilation warning,
    Using BUG() instead of unreachable() to resolve compilation warnings.
    
    Fixes the following warnings:
        drivers/clk/sophgo/clk-cv18xx-ip.o: warning: objtool: mmux_round_rate() falls through to next function bypass_div_round_rate()
    
    Fixes: 80fd61ec46124 ("clk: sophgo: Add clock support for CV1800 SoC")
    Signed-off-by: Li Qiang <liqiang01@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/c8e66d51f880127549e2a3e623be6787f62b310d.1720506143.git.liqiang01@xxxxxxxxxx
    Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/clk/sophgo/clk-cv18xx-ip.c b/drivers/clk/sophgo/clk-cv18xx-ip.c
index 805f561725ae..b186e64d4813 100644
--- a/drivers/clk/sophgo/clk-cv18xx-ip.c
+++ b/drivers/clk/sophgo/clk-cv18xx-ip.c
@@ -613,7 +613,7 @@ static u8 mmux_get_parent_id(struct cv1800_clk_mmux *mmux)
 			return i;
 	}
 
-	unreachable();
+	BUG();
 }
 
 static int mmux_enable(struct clk_hw *hw)




[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