Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5351357ybc; Wed, 27 Nov 2019 02:42:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzWdbxUQm6BuTP8Gx3BOSUQnevWQocjBI/iRyejz7PZOpocsemZ24+Mm7AJSVN6ONID0a4x X-Received: by 2002:aa7:c2c7:: with SMTP id m7mr31334759edp.295.1574851355194; Wed, 27 Nov 2019 02:42:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574851355; cv=none; d=google.com; s=arc-20160816; b=uvHmMBxhL7JX3QboTx9v2PJwIGXHh0YzUEHtkCkeyaW/7qfeoCCcysDfAA9XgsglG4 trM5XtLVckDrClZc2q7Q3t7Zr0IZGA8yRSZ0xLZbUGoqaW0d6ifeI0wZogXm9t01muhE x+hEqR5en0vIMuvGWWAf2d/747X7Y9MG8O9rQEQQA9quqkVkas1f/LYPtpZGsMowyz+R //lN2iStNMYTR66sfuotUey1SNMAAhR7N+33mL/h2f1CEDRL2Enmdldl4KAGiF3ONKoq cSgivY9QOK0GCsx0RwNqO3wT9Iw7YKbDDxMmlmYLv2ooWd6/2n3xzqe+OFpxSpYyNah7 0ZOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UUi9U+I9ODRLeLmA+QuWym+5lVFuxuDv52iI28V57Ds=; b=n0RqPz1sIchL7YXaPLturh8UiDGvrrGDL0cyqnU+7wQTsdDRkUTW8XiINoTbMpOBVu 78gK0nkr6cD0pD7hg1DYxnBzRMcsNz0CmT/zTDL4LiSii9jSSvXX0H3EhPdzPj9rg+Qo 7j0gZbmb+JT+3Ajto8LNORQ9z2H7AFIf0sx09EbiH+OrEwgSGDxmFB3jnGcm/biEHWwX +V53mx6g/6bfjb7dI54hILBNGZeiQcf3wZf3Bn+cDn9/urVrgt+e/BfhVRqCZTIchMbE hAVteE77qUzPpHErd5cHqLXD4IrJMaXYD5GG+J8LaFINJ07/dpGIhxd7Vrr5B9hcG7RM 4wlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si529404ejw.357.2019.11.27.02.42.11; Wed, 27 Nov 2019 02:42:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727451AbfK0Kkd (ORCPT + 99 others); Wed, 27 Nov 2019 05:40:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:56510 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727287AbfK0KkA (ORCPT ); Wed, 27 Nov 2019 05:40:00 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 34605B47B; Wed, 27 Nov 2019 10:39:58 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Oleg Nesterov , Alexander Viro , Christian Brauner , Nicholas Piggin , Allison Randal , "Naveen N. Rao" , Thomas Gleixner , Breno Leitao , Christophe Leroy , Claudio Carvalho , Russell Currey , Greg Kroah-Hartman , Mahesh Salgaonkar , Arnd Bergmann , Geert Uytterhoeven , Firoz Khan , Dmitry Vyukov , Masahiro Yamada , Hari Bathini , Andrew Donnellan , Nicolai Stange , Valentin Schneider , Diana Craciun , Daniel Axtens , Michael Neuling , Gustavo Romero , Mathieu Malaterre , "Steven Rostedt" , "Eric W. Biederman" , Heiko Carstens , David Howells , Brajeswar Ghosh , Jagadeesh Pagadala , David Hildenbrand , Andrew Morton , Madhavan Srinivasan , linux-kernel@vger.kernel.org Subject: [PATCH v2 rebase 26/34] powerpc/64: system call: Fix sparse warning about missing declaration Date: Wed, 27 Nov 2019 11:39:02 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse warns about missing declarations for these functions: +arch/powerpc/kernel/syscall_64.c:108:23: warning: symbol 'syscall_exit_prepare' was not declared. Should it be static? +arch/powerpc/kernel/syscall_64.c:18:6: warning: symbol 'system_call_exception' was not declared. Should it be static? +arch/powerpc/kernel/syscall_64.c:200:23: warning: symbol 'interrupt_exit_user_prepare' was not declared. Should it be static? +arch/powerpc/kernel/syscall_64.c:288:23: warning: symbol 'interrupt_exit_kernel_prepare' was not declared. Should it be static? Add declaration for them. Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/asm-prototypes.h | 6 ++++++ arch/powerpc/kernel/syscall_64.c | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/powerpc/include/asm/asm-prototypes.h b/arch/powerpc/include/asm/asm-prototypes.h index 399ca63196e4..841746357833 100644 --- a/arch/powerpc/include/asm/asm-prototypes.h +++ b/arch/powerpc/include/asm/asm-prototypes.h @@ -96,6 +96,12 @@ ppc_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, s unsigned long __init early_init(unsigned long dt_ptr); void __init machine_init(u64 dt_ptr); #endif +#ifdef CONFIG_PPC64 +long system_call_exception(long r3, long r4, long r5, long r6, long r7, long r8, unsigned long r0, struct pt_regs *regs); +notrace unsigned long syscall_exit_prepare(unsigned long r3, struct pt_regs *regs); +notrace unsigned long interrupt_exit_user_prepare(struct pt_regs *regs, unsigned long msr); +notrace unsigned long interrupt_exit_kernel_prepare(struct pt_regs *regs, unsigned long msr); +#endif long ppc_fadvise64_64(int fd, int advice, u32 offset_high, u32 offset_low, u32 len_high, u32 len_low); diff --git a/arch/powerpc/kernel/syscall_64.c b/arch/powerpc/kernel/syscall_64.c index d00cfc4a39a9..62f44c3072f3 100644 --- a/arch/powerpc/kernel/syscall_64.c +++ b/arch/powerpc/kernel/syscall_64.c @@ -1,4 +1,5 @@ #include +#include #include #include #include -- 2.23.0