Skip to contentSkip to conversation

arm64: paravirt: Mark steal_acc as __initdata

PATCH Superseded Thorsten Blum 3 participants 3 messages Oct 30

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: paravirt: Mark steal_acc as __initdata

steal_acc is only written by parse_no_stealacc() and read by pv_time_init(), both of which are __init functions.

---
 arch/arm64/kernel/paravirt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/paravirt.c +1 -1
index 572efb96b23f..df2e90092f47 100644
@@ -31,7 +31,7 @@ struct pv_time_stolen_time_region {
 
 static DEFINE_PER_CPU(struct pv_time_stolen_time_region, stolen_time_region);
 
-static bool steal_acc = true;
+static bool steal_acc __initdata = true;
 static int __init parse_no_stealacc(char *arg)
 {
 	steal_acc = false;
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 4 lines

steal_acc is only written by parse_no_stealacc() and read by pv_time_init(), both of which are __init functions.

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1