mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] livepatch: __klp_shadow_get_or_alloc() is local to shadow.c
@ 2017-09-14 21:15 Jiri Kosina
  2017-09-15 14:28 ` Joe Lawrence
  2017-09-19 11:48 ` Miroslav Benes
  0 siblings, 2 replies; 3+ messages in thread
From: Jiri Kosina @ 2017-09-14 21:15 UTC (permalink / raw)
  To: Joe Lawrence; +Cc: live-patching, linux-kernel

From: Jiri Kosina <jkosina@suse.cz>

... therefore make it static.

Fixes: 439e7271dc2 ("livepatch: introduce shadow variable API")
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---

Sorry for not having spotted this before pushing out.

 kernel/livepatch/shadow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/livepatch/shadow.c b/kernel/livepatch/shadow.c
index 67e4360..fdac275 100644
--- a/kernel/livepatch/shadow.c
+++ b/kernel/livepatch/shadow.c
@@ -113,7 +113,7 @@ void *klp_shadow_get(void *obj, unsigned long id)
 }
 EXPORT_SYMBOL_GPL(klp_shadow_get);
 
-void *__klp_shadow_get_or_alloc(void *obj, unsigned long id, void *data,
+static void *__klp_shadow_get_or_alloc(void *obj, unsigned long id, void *data,
 		       size_t size, gfp_t gfp_flags, bool warn_on_exist)
 {
 	struct klp_shadow *new_shadow;
-- 
1.8.5.6

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

* Re: [PATCH] livepatch: __klp_shadow_get_or_alloc() is local to shadow.c
  2017-09-14 21:15 [PATCH] livepatch: __klp_shadow_get_or_alloc() is local to shadow.c Jiri Kosina
@ 2017-09-15 14:28 ` Joe Lawrence
  2017-09-19 11:48 ` Miroslav Benes
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Lawrence @ 2017-09-15 14:28 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: live-patching, linux-kernel

On Thu, Sep 14, 2017 at 02:15:36PM -0700, Jiri Kosina wrote:
> From: Jiri Kosina <jkosina@suse.cz>
> 
> ... therefore make it static.
> 
> Fixes: 439e7271dc2 ("livepatch: introduce shadow variable API")
> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
> ---
> 
> Sorry for not having spotted this before pushing out.
> 
>  kernel/livepatch/shadow.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/livepatch/shadow.c b/kernel/livepatch/shadow.c
> index 67e4360..fdac275 100644
> --- a/kernel/livepatch/shadow.c
> +++ b/kernel/livepatch/shadow.c
> @@ -113,7 +113,7 @@ void *klp_shadow_get(void *obj, unsigned long id)
>  }
>  EXPORT_SYMBOL_GPL(klp_shadow_get);
>  
> -void *__klp_shadow_get_or_alloc(void *obj, unsigned long id, void *data,
> +static void *__klp_shadow_get_or_alloc(void *obj, unsigned long id, void *data,
>  		       size_t size, gfp_t gfp_flags, bool warn_on_exist)
>  {
>  	struct klp_shadow *new_shadow;
> -- 
> 1.8.5.6

Acked-by: Joe Lawrence <joe.lawrence@redhat.com>

Thanks for cleaning this up, Jiri.

Also thanks to Miroslav, Petr, Nicolai and Josh for the patchset
reviews!

-- Joe

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

* Re: [PATCH] livepatch: __klp_shadow_get_or_alloc() is local to shadow.c
  2017-09-14 21:15 [PATCH] livepatch: __klp_shadow_get_or_alloc() is local to shadow.c Jiri Kosina
  2017-09-15 14:28 ` Joe Lawrence
@ 2017-09-19 11:48 ` Miroslav Benes
  1 sibling, 0 replies; 3+ messages in thread
From: Miroslav Benes @ 2017-09-19 11:48 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Joe Lawrence, live-patching, linux-kernel

On Thu, 14 Sep 2017, Jiri Kosina wrote:

> From: Jiri Kosina <jkosina@suse.cz>
> 
> ... therefore make it static.
> 
> Fixes: 439e7271dc2 ("livepatch: introduce shadow variable API")
> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
> ---

FWIW (but I noticed you've already applied it)

Acked-by: Miroslav Benes <mbenes@suse.cz>

Miroslav

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

end of thread, other threads:[~2017-09-19 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-14 21:15 [PATCH] livepatch: __klp_shadow_get_or_alloc() is local to shadow.c Jiri Kosina
2017-09-15 14:28 ` Joe Lawrence
2017-09-19 11:48 ` Miroslav Benes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®