Message ID | 20230920052139.10570-3-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 h50csp3948614vqi; Wed, 20 Sep 2023 00:42:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuAkIOv15bgVpfTkhu/WMiVl6odtI0IEePrWdgLAv/xODDSD/NpGL65XRimOkM20CIuhp8 X-Received: by 2002:a17:90b:fd7:b0:262:ded7:63d with SMTP id gd23-20020a17090b0fd700b00262ded7063dmr1946181pjb.17.1695195757016; Wed, 20 Sep 2023 00:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695195756; cv=none; d=google.com; s=arc-20160816; b=xCTm1uYvxJY3jQMP/DbA5yYQ2BUVHjZhYr3EYTFOh3oEceTQI7JZBqex0G/fStLq4C a1df51RiPIGEPbvgLC79N4wd5Sd6No8nUmKlICPKaHihEy4L3lgCNt5vt5oD9wQnIPA9 PbHSIEDIF+i5DtVltoJh6ukKeB0b06PKxsaR6x9qpQigdXDp1IPX+L9MzxG1frb4qIK/ iU69BL7AQ6wJMzsm/WqK7ei0Fzak+IIMoMJfQbV9VfHO4BZtVgM1wys/XP4VxU9gl2yb 73V6gAx1tHSa/7W7DkFWqiS6Noyyb74U6WVma6gM8cvrFfjhy4qIlglbTvbVqVjSlVqM 9hWg== 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=hCZcNUEy4iqLT3BAp5Zoej2cmdoBsoAXgP3KswQYSrE=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=nsm/fF8lMhjN58ry2WKoT0RQs0GwmaBPgJzyAUE6jiM4fKajZCF45j1KOa93njMlfX wCHR3ezlFjgSivYpSaPw7nITZg3DlsY0hNgxiDsQqyUgj2vIWiOsSD0rp6fXd4HnkCzG gk3DfRrvnL6WZbmjZAHyhyk07l6qxonpGx7OTRhPG2xy6gzE4AqQeemofAblR30xEzPK CBxSOJOUkbbBah6LHKRFVwXv4wR4pmmkPaJMMskPpnuaKGH1y5TBXSMpD3I/yQHFcPwb 4N7m2pwchCUGqNuVlIlkTCK5W4s+DL1/iO0UR0xdUgSVdGcixVX3M8xXuF65lmS08+FI aZ7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DIAVfUJS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id ot13-20020a17090b3b4d00b0026b043c8bbesi1093084pjb.136.2023.09.20.00.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 00:42:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DIAVfUJS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 0B04180FF036; Tue, 19 Sep 2023 22:22:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232392AbjITFWG (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Wed, 20 Sep 2023 01:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232380AbjITFVt (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 16CEBE6 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=hCZcNUEy4iqLT3BAp5Zoej2cmdoBsoAXgP3KswQYSrE=; b=DIAVfUJS2KXuakukko0SKLHbFp t9u7QyAhg5MDEAde3gUpXH6h4s815PqfeTOLmnk1gfaw8Nzv6zIVxyJf4hhaplD0UoXPyEyQ2kEnW 1FwEC4rxjmxL7QmlWjQPq78QurRReQw7FsjVouJ9t0/7JGJ1IErgDX+BBbsYA3Q1NoKeEuUTDEiR2 pHIUrw3fHbam4Qno1CTOVAY6txi4E3LfoB/VJwwpGq1HymSpkBVfs7iK8uFSLSSh83nHLeXK8+bO5 Oxy+YIPXMSKElgKKPkkKv/i5wKSn3R+VZR6oYCuMMVr/7tIYz/zqdKzwPez4LP7TbBRTJoBAV5AkK tdJ5gkqA==; 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 1qipeg-001tym-23; Wed, 20 Sep 2023 05:21:42 +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 02/16] xtensa: fault: include <asm/traps.h> Date: Tue, 19 Sep 2023 22:21:25 -0700 Message-ID: <20230920052139.10570-3-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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:41 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777541585795853178 X-GMAIL-MSGID: 1777541585795853178 |
Series |
xtensa: fix W=1 build warnings
|
|
Commit Message
Randy Dunlap
Sept. 20, 2023, 5:21 a.m. UTC
Use <asm/traps.h> to provide the function prototype for do_page_fault()
to prevent a build warning:
arch/xtensa/mm/fault.c:87:6: warning: no previous prototype for 'do_page_fault' [-Wmissing-prototypes]
87 | void do_page_fault(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/mm/fault.c | 1 +
1 file changed, 1 insertion(+)
diff -- a/arch/xtensa/mm/fault.c b/arch/xtensa/mm/fault.c --- a/arch/xtensa/mm/fault.c +++ b/arch/xtensa/mm/fault.c @@ -20,6 +20,7 @@ #include <asm/mmu_context.h> #include <asm/cacheflush.h> #include <asm/hardirq.h> +#include <asm/traps.h> void bad_page_fault(struct pt_regs*, unsigned long, int);