projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
358bca0
)
ARC: fix smatch warning
author
Vineet Gupta
<vgupta@kernel.org>
Sat, 9 Dec 2023 00:25:23 +0000
(16:25 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:51:44 +0000
(11:51 +0100)
[ Upstream commit
4eb69d00fe967699b9d93f7e74a990fe813e8d2b
]
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202311280906.VAIwEAfT-lkp@intel.com/
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arc/kernel/setup.c
patch
|
blob
|
history
diff --git
a/arch/arc/kernel/setup.c
b/arch/arc/kernel/setup.c
index 4dcf8589b708ac2564b883912ce65ec35c6f0658..d08a5092c2b4d451e50b1b26e47926d04f01d2c2 100644
(file)
--- a/
arch/arc/kernel/setup.c
+++ b/
arch/arc/kernel/setup.c
@@
-153,7
+153,7
@@
static int arcv2_mumbojumbo(int c, struct cpuinfo_arc *info, char *buf, int len)
{
int n = 0;
#ifdef CONFIG_ISA_ARCV2
- const char *release
, *cpu_nm
, *isa_nm = "ARCv2";
+ const char *release
= "", *cpu_nm = "HS38"
, *isa_nm = "ARCv2";
int dual_issue = 0, dual_enb = 0, mpy_opt, present;
int bpu_full, bpu_cache, bpu_pred, bpu_ret_stk;
char mpy_nm[16], lpb_nm[32];
@@
-172,8
+172,6
@@
static int arcv2_mumbojumbo(int c, struct cpuinfo_arc *info, char *buf, int len)
* releases only update it.
*/
- cpu_nm = "HS38";
-
if (info->arcver > 0x50 && info->arcver <= 0x53) {
release = arc_hs_rel[info->arcver - 0x51].str;
} else {