Neither text_poke() nor watchdog_setup() have their return value consulted.
Switch them to being void.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Release-acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
* "noinline" to cause control flow change and thus invalidate I$ and
* cause refetch after modification.
*/
-static void *init_or_livepatch noinline
+static void init_or_livepatch noinline
text_poke(void *addr, const void *opcode, size_t len)
{
- return memcpy(addr, opcode, len);
+ memcpy(addr, opcode, len);
}
extern void *const __initdata_cf_clobber_start[];
return !atomic_read(&watchdog_disable_count);
}
-int __init watchdog_setup(void)
+void __init watchdog_setup(void)
{
unsigned int cpu;
/*
- * Activate periodic heartbeats. We cannot do this earlier during
+ * Activate periodic heartbeats. We cannot do this earlier during
* setup because the timer infrastructure is not available.
*/
for_each_online_cpu ( cpu )
register_cpu_notifier(&cpu_nmi_nfb);
watchdog_enable();
- return 0;
}
/* Returns false if this was not a watchdog NMI, true otherwise */
#ifdef CONFIG_WATCHDOG
/* Try to set up a watchdog. */
-int watchdog_setup(void);
+void watchdog_setup(void);
/* Enable the watchdog. */
void watchdog_enable(void);