From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A4BFCE79AC for ; Wed, 20 Sep 2023 05:21:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232692AbjITFV5 (ORCPT ); Wed, 20 Sep 2023 01:21:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbjITFVt (ORCPT ); Wed, 20 Sep 2023 01:21:49 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CA3EF3 for ; Tue, 19 Sep 2023 22:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=bdGMMInrswQ95Tb8dukbNjhTN3UO5dqRY0oC6nmLpw4=; b=VYVOF3t5sAVT6/NToDEzNwDCSt 0ujQ0Zga1aIka7ubet3P4Ysl6F+ASh073v7Vd1PtZoonyQqNRTQViZYQ5YrPb3D8YX7XM7XqFlWAr zCwFJs0wOXORgzPrNXZcs8yXMRYESCR4z2rQaD7XBxuYUDj6DPcNrK8mmyJP0kYXGHEDGkgMCXK7G Ly8BtxHe3hBRyqLTSef+GRa5n9McrxPjteeg+YssXEuVypNoFsCXPHsI4/fMDJpVgIoHE0ohDyY/v VWAWkyRYIcc4A+3GJzKSxCTEmWC5Zt3vXl5eRMc3AbMMLTqiWWZwmCFaEN5iac2raPJf74xJpazGw DG4R+yWA==; Received: from [2601:1c2:980:9ec0::9fed] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qipeh-001tym-0l; Wed, 20 Sep 2023 05:21:43 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 04/16] xtensa: ptrace: add prototypes to Date: Tue, 19 Sep 2023 22:21:27 -0700 Message-ID: <20230920052139.10570-5-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230920052139.10570-1-rdunlap@infradead.org> References: <20230920052139.10570-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add prototype for do_syscall_trace_enter() to asm/ptrace.h. Move prototype for do_syscall_trace_leave() there to be consistent. Fixes a build warning: arch/xtensa/kernel/ptrace.c:545:5: warning: no previous prototype for 'do_syscall_trace_enter' [-Wmissing-prototypes] 545 | int do_syscall_trace_enter(struct pt_regs *regs) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/include/asm/ptrace.h | 3 +++ arch/xtensa/kernel/ptrace.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff -- a/arch/xtensa/include/asm/ptrace.h b/arch/xtensa/include/asm/ptrace.h --- a/arch/xtensa/include/asm/ptrace.h +++ b/arch/xtensa/include/asm/ptrace.h @@ -106,6 +106,9 @@ static inline unsigned long regs_return_ return regs->areg[2]; } +int do_syscall_trace_enter(struct pt_regs *regs); +void do_syscall_trace_leave(struct pt_regs *regs); + #else /* __ASSEMBLY__ */ # include diff -- a/arch/xtensa/kernel/ptrace.c b/arch/xtensa/kernel/ptrace.c --- a/arch/xtensa/kernel/ptrace.c +++ b/arch/xtensa/kernel/ptrace.c @@ -541,7 +541,6 @@ long arch_ptrace(struct task_struct *chi return ret; } -void do_syscall_trace_leave(struct pt_regs *regs); int do_syscall_trace_enter(struct pt_regs *regs) { if (regs->syscall == NO_SYSCALL)