Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751850AbdINVPl (ORCPT ); Thu, 14 Sep 2017 17:15:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:47756 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751454AbdINVPi (ORCPT ); Thu, 14 Sep 2017 17:15:38 -0400 Date: Thu, 14 Sep 2017 14:15:36 -0700 (PDT) From: Jiri Kosina X-X-Sender: jkosina@wotan.suse.de To: Joe Lawrence cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] livepatch: __klp_shadow_get_or_alloc() is local to shadow.c Message-ID: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 854 Lines: 28 From: Jiri Kosina ... therefore make it static. Fixes: 439e7271dc2 ("livepatch: introduce shadow variable API") Signed-off-by: Jiri Kosina --- 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