Message ID | 20230920052139.10570-5-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4079055vqi; Wed, 20 Sep 2023 05:00:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEshnKYe70aArJkEzQeSl+CI5jwLtADeKXN57DwvpzbKAl+0JzPEweOoOBKQyM+mU8gzK02 X-Received: by 2002:a9d:730f:0:b0:6bd:c7c3:aabc with SMTP id e15-20020a9d730f000000b006bdc7c3aabcmr2131709otk.19.1695211244595; Wed, 20 Sep 2023 05:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695211244; cv=none; d=google.com; s=arc-20160816; b=R6OJJntqQ71uYP4aQq7CH5+UR7gcRohC2v/3WNLXfV+Dek4oguTXebbqc3UnXisZ4b hAVGAn7/YoYCo0Widi3LUFxY8o8Uj47q1V9YfWzz5hBGNEbPptpLs1K/wXV7ZimSVBAa 9VDpILAG+Xs4Ys0xeuogtyg1HpohaCCaYQUOhA0AUdm8OG7bz+06wqvpXMahUw+7cMjd OPKosPhj70yXvNGESDPpKgMPscAnMURHQ/7qkgRUfqcHMKD/mhXAP83nXd+mKNAFDKgK Fwm/OJx/6x3Ua+auDBBacPMozxbrTUoEBbo6xxUtfcRPGzW6/zadziwWAIn/KhPBOEcg bFjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bdGMMInrswQ95Tb8dukbNjhTN3UO5dqRY0oC6nmLpw4=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=sdl9uqrWJYdxcXkr21eisZ3wlBulrRKGfDIpMdyIbmuDR5eh28pGR/6fU/iEJ75k0X fB6uIjPx72pIqKvxyTQ/vT5+rNGqRayHCR0LFsNHZXpRT9NLlKNStlATMqEMy/vBcqNP EFJIxJt0MzowCn8dKh3MZ2S7P4/QOuUfPwZUDW9yuDvzMI++FFwm8zsYM2D5uWmtlKMS ilq9mduiXeTHN58snqWnqNXLZJNi86K3rSuGGnpn1P8rcJWXuBJLIy030x/YCVzZZqOz xBSfh73PyfMyP6UpgpMY3Sn3pnRpReVN3yiPjv+gNUL8cToy0ZgCOEHWtYbS4hnsvMcA hyvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=VYVOF3t5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id bs190-20020a6328c7000000b0057877ee7d78si5940450pgb.575.2023.09.20.05.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 05:00:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=VYVOF3t5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D73F680C7AF2; Tue, 19 Sep 2023 22:22:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232649AbjITFVy (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Wed, 20 Sep 2023 01:21:54 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Chris Zankel <chris@zankel.net>, Max Filippov <jcmvbkbc@gmail.com> Subject: [PATCH 04/16] xtensa: ptrace: add prototypes to <asm/ptrace.h> 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777557825977932531 X-GMAIL-MSGID: 1777557825977932531 |
Series |
xtensa: fix W=1 build warnings
|
|
Commit Message
Randy Dunlap
Sept. 20, 2023, 5:21 a.m. UTC
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 <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
---
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 <asm/asm-offsets.h> 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)