Message ID | 20230920052139.10570-7-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 h50csp3889460vqi; Tue, 19 Sep 2023 22:23:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGra4YKJf6mvDmCisiSpXjJvS2Q+elGbCAEdjJabW8Bn+Eh9aVUjXG67lWEBchZrpbYZJU+ X-Received: by 2002:a05:6870:790:b0:1d0:cbc7:1c92 with SMTP id en16-20020a056870079000b001d0cbc71c92mr1826838oab.28.1695187411127; Tue, 19 Sep 2023 22:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695187411; cv=none; d=google.com; s=arc-20160816; b=Yq+pnJGdXHxm6uV2JXukQdOQtQxJfIoVEGnc+4ReVJAiIyT4RovbKe1C0oEQLTqRne +ks1vY5MSoustyRSQmn5UfN4EGhuNdmPHdo5CpBgs0Tq1w3S7c+mWmfu/bI+1Pa89TJz 5SY9etWur/EWwpEboZ4wvqT4vUK8tKuNPL5qVZO8AMXD2erfVKG0OcVpd4YRoCEenvXu IG2f8Sw3OEJ/m/1qEHimoXnnS0o9BRQBDMeJUqBmRj+oUpPnMWNR2+spE0TY+BuPCWAX WgRnCpGxeDPSX283TOfrM0d6B0ws2wkC0s4YLvkDCQ5/K542qr2E6uJjTIn20P28AW7g wgxQ== 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=s0y5UIjqoCpjnF4OBN5FWM7GDvbMo4ENMqy1dPJ0poI=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=y7oBoeWhaDrwQkCjOSPNBlR14CqG7jwLTImi1UZQlwLSPY30OWl2uPQOhCgRbycftf o6iossklu/Y08STSO3LC9pRdkRNsqMpf+XAqqBJThl/kMeTXoAHm622rb989WxeagGvy iINdCCymu+Tz3JlWu36+7gFy/iFSWzbawutDORiVfD+44fNYd0mAsNlgmca6HgpkeDcr 0Q518HqlVrvZjbPvDcT1U/IPL7pyADy+cqoanT5sTiJQaSXbGXsN8XuCGGtXrGRAiP4Z aph8pCcQuCLh1M9t0I/dSmm+nZI3OGyK/cwKY8+IVBdUiif/0VkrD7Tjs3jVTA45ph5O JY4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=sQqu1Adl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id cd23-20020a056a00421700b00690da053918si994175pfb.4.2023.09.19.22.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 22:23:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=sQqu1Adl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 52A7C81A9EF1; Tue, 19 Sep 2023 22:22:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232688AbjITFWQ (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Wed, 20 Sep 2023 01:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232431AbjITFVu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 20 Sep 2023 01:21:50 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04ABD9F for <linux-kernel@vger.kernel.org>; Tue, 19 Sep 2023 22:21:44 -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=s0y5UIjqoCpjnF4OBN5FWM7GDvbMo4ENMqy1dPJ0poI=; b=sQqu1AdlYjnuMiQvcqDvmHt5VE sdb/baXQUxEVZsWLXtqSeajq7O9yxvqpXOG4BgJhE2TUFqFiY2jMNCYDj1LYZJdkviYGJVNmetyPj ybFTPwhaatYrk7Mte4h//Zc+8I+QEKkKqmJ8llxJUNs//YyDiig5APahD5sWPTaDvLSvOH7HLXlvJ JJWj8vi+t/EMCheqqC2JnU2OMpcmklG5JhYuE5Gfw7PgW4i0RXcXKm9gWyoGos8SGglL9UBTAvdz5 gbC325GIkyK0CRYnzE4hh2cjmIfD8xWDMQcOTc/k+dd0ZRM4olETPt+/9d4d593V8+4X/b7CIlRA+ PA9uaQBA==; 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-2Z; 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 06/16] xtensa: signal: include headers for function prototypes Date: Tue, 19 Sep 2023 22:21:29 -0700 Message-ID: <20230920052139.10570-7-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=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:32 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777532835138021874 X-GMAIL-MSGID: 1777532835138021874 |
Series |
xtensa: fix W=1 build warnings
|
|
Commit Message
Randy Dunlap
Sept. 20, 2023, 5:21 a.m. UTC
Add <asm/syscall.h> to satisfy the xtensa_rt_sigreturn() prototype
warning.
Add <asm/processor.h> to satisfy the do_notify_resume() prototype
warning.
arch/xtensa/kernel/signal.c:246:17: warning: no previous prototype for 'xtensa_rt_sigreturn' [-Wmissing-prototypes]
arch/xtensa/kernel/signal.c:525:6: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
525 | void do_notify_resume(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/processor.h | 1 +
arch/xtensa/kernel/signal.c | 2 ++
2 files changed, 3 insertions(+)
diff -- a/arch/xtensa/kernel/signal.c b/arch/xtensa/kernel/signal.c --- a/arch/xtensa/kernel/signal.c +++ b/arch/xtensa/kernel/signal.c @@ -26,6 +26,8 @@ #include <linux/uaccess.h> #include <asm/cacheflush.h> #include <asm/coprocessor.h> +#include <asm/processor.h> +#include <asm/syscall.h> #include <asm/unistd.h> extern struct task_struct *coproc_owners[]; diff -- a/arch/xtensa/include/asm/processor.h b/arch/xtensa/include/asm/processor.h --- a/arch/xtensa/include/asm/processor.h +++ b/arch/xtensa/include/asm/processor.h @@ -220,6 +220,7 @@ struct mm_struct; extern unsigned long __get_wchan(struct task_struct *p); void init_arch(bp_tag_t *bp_start); +void do_notify_resume(struct pt_regs *regs); #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) #define KSTK_ESP(tsk) (task_pt_regs(tsk)->areg[1])