All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] livepatch: core: Return ENOTSUPP instead of ENOSYS
@ 2019-01-26 19:26 Alice Ferrazzi
  2019-01-28 19:49 ` Joe Lawrence
  0 siblings, 1 reply; 6+ messages in thread
From: Alice Ferrazzi @ 2019-01-26 19:26 UTC (permalink / raw)
  To: jpoimboe, jeyu, jikos, mbenes, pmladek, live-patching, linux-kernel
  Cc: Alice Ferrazzi, Alice Ferrazzi

This patch fixes a checkpatch warning:
    WARNING: ENOSYS means 'invalid syscall nr' and nothing else

Signed-off-by: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
---
 kernel/livepatch/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c
index 5b77a7314e01..eea6b94fef89 100644
--- a/kernel/livepatch/core.c
+++ b/kernel/livepatch/core.c
@@ -897,7 +897,7 @@ int klp_register_patch(struct klp_patch *patch)
 
 	if (!klp_have_reliable_stack()) {
 		pr_err("This architecture doesn't have support for the livepatch consistency model.\n");
-		return -ENOSYS;
+		return -ENOTSUPP;
 	}
 
 	return klp_init_patch(patch);
-- 
2.19.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-01-30 13:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-26 19:26 [PATCH] livepatch: core: Return ENOTSUPP instead of ENOSYS Alice Ferrazzi
2019-01-28 19:49 ` Joe Lawrence
2019-01-29 16:50   ` Josh Poimboeuf
2019-01-30 12:41     ` Petr Mladek
2019-01-30 13:00       ` alicef
2019-01-30 13:10       ` Josh Poimboeuf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.