From patchwork Wed Sep 20 05:21:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142429 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4189157vqi; Wed, 20 Sep 2023 07:38:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzr7XAl4cVj/6mnwv2oz97oQxK1Vy06Hbh1pVoW5GvhkiVD4AnxooLaiyT7SzA5P/FJdVF X-Received: by 2002:a17:902:c649:b0:1c5:9bc0:c15b with SMTP id s9-20020a170902c64900b001c59bc0c15bmr2149007pls.44.1695220704430; Wed, 20 Sep 2023 07:38:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695220704; cv=none; d=google.com; s=arc-20160816; b=GIP2gAjWDyTG8h1bCdh6j87xaHJf7PA+1T5cpqRXHTImiJM3siAL3KGcLk4Waxi45V EI8Xxnm4/3mFlzH2jxrj0RzxDhoUDApONvgRWA79UvjtqvhUqiNu1NrUebf0781wTomm Yzq1QN1gmOi3kINQbdAyIitt94FeB/EFCYPFfuijVGqSyVJHpENJ3OpuJRvk12Hxm704 d06OxC0Jz39w9MqzfGRO5aVBUwws/WRTCrp2cfHhEf5F/nYo0pnp/bXq1GkJIWTIDuTk uiyc0g6I5CgBXAAvWci73eqct4fEA/up0rxhtjAUuMzEZjD6DEl8CLOt3ZcsAg2GwIP2 IphQ== 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=OxzrvE1JC0Hk/FxRt+ZKzqjg6DJt/qiLZ+huaIf11C8=; fh=UXf4OSnZhx9fnGMUOA/JLXL37i/SLVU9SEXkjcpWeGE=; b=sGF9P72k3cyqwVQx3jaCxavnAKvBWHSg9WTHiccNahGE8J2+/KC1DuRcxlP8KtKtUL KzL+SEOsDjZKJkiKTbY29N8ptJgTh4fn87cMnRBqddPV3eHCvEYkkOdhLYVnh1YEC5hA L7U7vdohge+E6ahU1k+50rQ/H/3URQLsLTQRKNCERbK+/zs0xgKanycTAWoBYhOp1L6p s/oiw2OUeMV2kCTEz+t0Fc2sbIo13AUckC3L+t+l+wukAHZHknFMBbRfR6gBb6Qvba13 QwYi0xRhtH9zB2bqtyw/kcr9qp8GAhBqicOKQeI6FALuT1+iJxQzhZfQUI14jNQk+PWL 4bIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Z73rZCZb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id e1-20020a170902cf4100b001b53b6b029csi12009893plg.124.2023.09.20.07.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 07:38:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Z73rZCZb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 855BB8104F73; Tue, 19 Sep 2023 22:22:47 -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 S232575AbjITFWI (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232374AbjITFVt (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 16E61F5 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=OxzrvE1JC0Hk/FxRt+ZKzqjg6DJt/qiLZ+huaIf11C8=; b=Z73rZCZb2BfvYo6j5H1Sdnan/W 68wUnbgRHHAerl/zgUOlP1Rg+c4W/rA8Qh2IN+3UVeEPc5g09LegkogfUhbONCiZyGYGE69GMUfZo c7q8xrxzucgScNj60o0lLwqQ+LOEGTCYn5UoukAhw5t4vIFO7DnsZ1gcuBkRxlYmIdzOQktRR1SHN sd4E0+YbOZz49Af6MM3+DyaH9Vidl5HOeU6mL2TG0z3JdJEB/mhcEdy4EyoDtL0JH/UUoWyAS6j4O UAbiQ1FhHMPzsVSscEXJqj7/RXiQzvXAkN2uTJJ+2wFbsbnQWlf9UI6uR+eNtlfLOAfQI0fYWjiCA YwE+mS7A==; 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-1A; Wed, 20 Sep 2023 05:21:42 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Chris Zankel , Max Filippov Subject: [PATCH 01/16] xtensa: FSF: define XCHAL_HAVE_DIV32 Date: Tue, 19 Sep 2023 22:21:24 -0700 Message-ID: <20230920052139.10570-2-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 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: 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:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777567745381913490 X-GMAIL-MSGID: 1777567745381913490 When variant FSF is set, XCHAL_HAVE_DIV32 is not defined, so add the define for FSF to prevent build warnings: arch/xtensa/lib/divsi3.S:9:5: warning: "XCHAL_HAVE_DIV32" is not defined, evaluates to 0 [-Wundef] 9 | #if XCHAL_HAVE_DIV32 arch/xtensa/lib/modsi3.S:9:5: warning: "XCHAL_HAVE_DIV32" is not defined, evaluates to 0 [-Wundef] 9 | #if XCHAL_HAVE_DIV32 Fixes: 173d6681380a ("xtensa: remove extra header files") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Closes: lore.kernel.org/r/202309150556.t0yCdv3g-lkp@intel.com Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/variants/fsf/include/variant/core.h | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/xtensa/variants/fsf/include/variant/core.h b/arch/xtensa/variants/fsf/include/variant/core.h --- a/arch/xtensa/variants/fsf/include/variant/core.h +++ b/arch/xtensa/variants/fsf/include/variant/core.h @@ -41,6 +41,7 @@ #define XCHAL_HAVE_MUL16 0 /* MUL16S/MUL16U instructions */ #define XCHAL_HAVE_MUL32 0 /* MULL instruction */ #define XCHAL_HAVE_MUL32_HIGH 0 /* MULUH/MULSH instructions */ +#define XCHAL_HAVE_DIV32 0 /* QUOS/QUOU/REMS/REMU instructions */ #define XCHAL_HAVE_L32R 1 /* L32R instruction */ #define XCHAL_HAVE_ABSOLUTE_LITERALS 1 /* non-PC-rel (extended) L32R */ #define XCHAL_HAVE_CONST16 0 /* CONST16 instruction */ From patchwork Wed Sep 20 05:21:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142262 Return-Path: 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 + 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 ); 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 ; 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 To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 02/16] xtensa: fault: include 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 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: 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 Use 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 Cc: Chris Zankel Cc: Max Filippov --- 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 #include #include +#include void bad_page_fault(struct pt_regs*, unsigned long, int); From patchwork Wed Sep 20 05:21:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142292 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3980673vqi; Wed, 20 Sep 2023 01:54:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCaY6SPkmzR+97/gd3aOS9wgZkN/DfYN1r2dlw2hawDJmPj3F30wSL29NEEPc23C1+tgMz X-Received: by 2002:a05:6a00:22d4:b0:68e:4587:3da9 with SMTP id f20-20020a056a0022d400b0068e45873da9mr1997661pfj.17.1695200090040; Wed, 20 Sep 2023 01:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695200090; cv=none; d=google.com; s=arc-20160816; b=uKnlDRFyTzQNOYwfX6hXZiEVodgKxJrNbLVeTnEmiovx2IqvxRIPKktKl0gtyKWqUz ghiLwnP8h9mbR2Ecbw7DeDp8It3lMmrz8181/7M1UPxy4xaXxmVDPYsrD3KcqHMYzoNc OQPU46oCxiS/bwD9UysTesSWC1ACfW+/uQB0VATlC3L8ruCrNfrw4qeV+0/n9uIcoAdS /sCdiT7aNy4fOvwPlkPva7YSB3XV93Lye4HA2c5sH3V8mS68V2cCigFQ6fjiVZOvW8dz B4c7ARbdbaV8ZjYa5IDaHwoza9u8KFsNtuEe4ZPdgmXAU3I8mvgn0Sjp+3xvrfGG5CYO Ztiw== 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=k1o2Ekmeu8BpquniHUsCXqdavZ5ZtIt3qUMpaG8idGY=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=idhWjcbgxROl4GAl3YzlXjyopB6FwhWvLGGAOBEVjedTsUZue7XL8bMwcG2fCPFX0z NNLqkcd6NW9zkZH/W6u3s+/coOa/W63zkNmMavw40cO/kZS/CICpR1fjOWQZ+NIysQ+C LLeJe/k5rqyQvQeIm2HnpfpUUbyljOj9qlMlKXG2KoKBFHML3AgPnpWYVuZNxtRRC1kF SKlLJZ50z8rWtezfd9QfupsviZqRQilo/461Q5fhuVmPKk53sPz2zAaT+kzhyPq/6s5B jOoeRNDWry7Gc0CwPRLnl0cW4BcHSkTTLKZYrhKhUMxtfo+3XK3T4khAjnM8SFNeL+5V Iemw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NLnTXwIm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id y184-20020a638ac1000000b00578a79e8f8bsi3505589pgd.551.2023.09.20.01.54.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 01:54:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NLnTXwIm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 01F37829AA0C; Tue, 19 Sep 2023 22:22:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232680AbjITFWB (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232376AbjITFVt (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 400BCF7 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=k1o2Ekmeu8BpquniHUsCXqdavZ5ZtIt3qUMpaG8idGY=; b=NLnTXwImvvhPaUU6GRVAi8580t OA5ZG+ZnbgUgFYPptAGJcweZcPwvfMSwh5faftayoVwj75hR/AwZ8B87EyR2JcVFBdW7P7XeobuRz hVzi7u0yFhYqOjBe8X0swguFJXh/SE6jndckWKlWxZIKNMwQTHVzSQrkOy9oofxvRHMo7g9o5oF/X O7BwRIkG6yoeKQWfsHTf2A6Vgen/Ij2U7GGhqMVRMzdig4nszt8DNteuwKdiI6RDxEpNjcqB9zkhL /NTaxEMAhPZsSK881YYDEXSk6W9fEmX9PRnr8TU18q0AkNjHFPebVHg/d2jN+44W07tkEW7DK7/It FaoYDFDg==; 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-31; 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 03/16] xtensa: irq: include Date: Tue, 19 Sep 2023 22:21:26 -0700 Message-ID: <20230920052139.10570-4-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 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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:13 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777546129524254439 X-GMAIL-MSGID: 1777546129524254439 Use to provide the function prototype for do_IRQ() to prevent a build warning: arch/xtensa/kernel/irq.c:34:17: warning: no previous prototype for 'do_IRQ' [-Wmissing-prototypes] 34 | asmlinkage void do_IRQ(int hwirq, struct pt_regs *regs) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/kernel/irq.c | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/xtensa/kernel/irq.c b/arch/xtensa/kernel/irq.c --- a/arch/xtensa/kernel/irq.c +++ b/arch/xtensa/kernel/irq.c @@ -28,6 +28,7 @@ #include #include #include +#include DECLARE_PER_CPU(unsigned long, nmi_count); From patchwork Wed Sep 20 05:21:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142374 Return-Path: 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 + 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 ); 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 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: 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 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) From patchwork Wed Sep 20 05:21:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142245 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3918835vqi; Tue, 19 Sep 2023 23:35:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdMe5TUZA5LVlTs5+8FUYRI14FP6mKExkOajXHMoOGLLzX2XezAhHLUAN6x1cI9ZRE701q X-Received: by 2002:a54:4090:0:b0:3a3:f13f:8036 with SMTP id i16-20020a544090000000b003a3f13f8036mr1410689oii.11.1695191759300; Tue, 19 Sep 2023 23:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695191759; cv=none; d=google.com; s=arc-20160816; b=G2SCTTro9hbztCZD4I6PqNil5Ss0fZAYOi/TTD4wugNAEcKjEAafgMPX1cWpNJZh5R WUD8KiSbeUpd/M5qHyoYFn7zlQ6BQ6F6CgN/p7tr2HBJQyp303H6WmYOeqabI2IbdT2y MoPXTf8Dp7os77V36shylDecD1PyG+OfrKf+ZlGZ8haGxKWgAnmD+TUWNVUVV01bdJEo TBMfPh6SZI5GUEEMoBz222pFmjqGm62VmrP+tse6FSumoSaAsYHdQrbz2NIj7HUCdoBx CRHdeWXuqEc7y4QbD6MhDMnhOy7dV+WW3mFzksoJgT0eQoYrr2O642TrIWJSMRKYoo0I rnFQ== 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=kk6lZRO/t/J9IUZNk6Jb2vRh19MJNCWq1VrhGxnRYi8=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=pK/xypQE3unX114Cn+Vyr4bmb/aR5gJje8nY9Op53CNlk9HKmA0R2GUE8oUm1blV8l 9VLxgK7DvUrTAG1AEw+2uot1m7P+vSFI04CkqXvmdyv/syM9GDVRHJPLItKXZOAdZIp4 MHUkbNZsxwQiN61gYC2S3tdCosENScvTfkPvgKFtUfAPtSMd/YlJzTyvC9d2PZyAy2MH Uc7EldYecEAUa4CQzIJg1V9SefaOYvGTO9qwsfbd7Wz9KOntkFGmxquMtJFU8bGn/z9u rLMXRubhAw6ce4rykXZ4DFwXIAiN1QAIZyQsUnx6U+0NzQY7sIY16Xsq5+/u/DEDa1TI b88Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=gIuisHB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id c16-20020a656190000000b00573fc6de956si10978223pgv.223.2023.09.19.23.35.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 23:35:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=gIuisHB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 7F1A482CEFC8; Tue, 19 Sep 2023 22:22:19 -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 S232591AbjITFWO (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232446AbjITFVu (ORCPT ); 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 C444E110 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=kk6lZRO/t/J9IUZNk6Jb2vRh19MJNCWq1VrhGxnRYi8=; b=gIuisHB8CA3PMSlxEJHLzHsXqn K9TT1b2fTS35Y51d5hXTQl5kUvyCsHiWLpWymn00kdEeBQn79xhQPRktUY2dMy7bfz8tbQ/v4MUQ7 bAhptWXh/DI75Z8tKKEU5XE8yb7PvFVI+GJkVyCrW8WyddUuGkTvkgWCe2e3qZiAEQ7duYoO/ZmOf NXQHhcWQvGsVLPKJhZ92iCesGBhbKIQF65DSfpzFBBxvHIbJ+S9Jlj/1SqKpIY4QM6K3gMa5IiC52 5049TX/Zl7t2x3bxvzU+FI/1zx0M+kFoxBv1JD1PNL2EB5nNwySTEfk4US96J0avdQg/dKUTIdIzM mHd1dhlQ==; 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-1f; 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 05/16] xtensa: processor.h: add init_arch() prototype Date: Tue, 19 Sep 2023 22:21:28 -0700 Message-ID: <20230920052139.10570-6-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 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: 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:19 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777537394007267410 X-GMAIL-MSGID: 1777537394007267410 Add the prototype for init_arch() to asm/processor.h to prevent a build warning: arch/xtensa/kernel/setup.c:244:13: warning: no previous prototype for 'init_arch' [-Wmissing-prototypes] 244 | void __init init_arch(bp_tag_t *bp_start) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/include/asm/processor.h | 4 ++++ 1 file changed, 4 insertions(+) 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 @@ -14,6 +14,8 @@ #include #include + +#include #include #include #include @@ -217,6 +219,8 @@ struct mm_struct; extern unsigned long __get_wchan(struct task_struct *p); +void init_arch(bp_tag_t *bp_start); + #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) #define KSTK_ESP(tsk) (task_pt_regs(tsk)->areg[1]) From patchwork Wed Sep 20 05:21:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142227 Return-Path: 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 + 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 ); 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 ; 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 To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov 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 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: 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 Add to satisfy the xtensa_rt_sigreturn() prototype warning. Add 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 Cc: Chris Zankel Cc: Max Filippov --- 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 #include #include +#include +#include #include 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]) From patchwork Wed Sep 20 05:21:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142412 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4152140vqi; Wed, 20 Sep 2023 06:46:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTSNEV74D4SiwlQSm5uWwhsTnllyl74tnQM44cRNldyKZGFy+HNtytUNRTrEZ7AQjyNO9p X-Received: by 2002:a17:90b:1058:b0:268:15dd:c5c7 with SMTP id gq24-20020a17090b105800b0026815ddc5c7mr2385429pjb.40.1695217616977; Wed, 20 Sep 2023 06:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695217616; cv=none; d=google.com; s=arc-20160816; b=rATCPzD4tCN+Ewuip8rSOKFCkjh+pY3GOo7utwQ6Jra3J0KE4HwH5nOVaiFQJxYANf nMP+GREScccYMOEjDwYqkrTHAXMbqaEv+sK9kMR3fU712giSAVal3vo+y2XtjQwB0fI4 M+RXuPO7X5A3DA1e0pDR1mGMvIgvCkTR+nCoLDw9cQaEIsE4zXLEQvs5oeu5eiA7PF90 n6Ci0EWIHHKWyTpP5DcLivraYnVazKeEuBudMZpnMQuTjUcLTA4BSxB9utO11pCSW5zx 3M3TSBYVQbfzHQEX69PClE5agZg97DDFZ8ju1gx4b2WCy+SWgUZFrnv6HbGTMByZrSRJ aRrA== 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=OX+5DgL5L+DB7XZdBwxF1pwtxEcW3b8yHimwNmQkOpo=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=P8oLZ6OTwl6sVhMIdlkN40sOE/vqDn1MfKZ87T2R7BcftCgihnk33Ku56zvsdFp2Kp 1/81FjW5BztBOAj963N2cHcgXhV9zJwftaiA8uNRSEe3OJ1db3DT6KoCMzYbnSqAqku+ NIhXZWaCH7TULg7SaFMoCAd1H0c4GJ5xQzuuriOXEXxmQAQlegsm+CwAtyVcNyPgtROu x1MkRBaqNVYBtV2erZK3V/yP8suDGFYnItf0eWGFxLmwliv1mGzYmyL4BiiomKVQ7lQg D55fWLwdB6i2vuGVtlceNDxrkpJT4Cj3FH1eiHbubQzthDqkl6tkVsToEQWocccaj5iX ezvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ARBb1QXs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id om4-20020a17090b3a8400b0027652885184si1690276pjb.91.2023.09.20.06.46.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 06:46:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ARBb1QXs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 86F9882878DC; Tue, 19 Sep 2023 22:22:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232708AbjITFWW (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232477AbjITFVu (ORCPT ); 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 7A6BCDE for ; 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=OX+5DgL5L+DB7XZdBwxF1pwtxEcW3b8yHimwNmQkOpo=; b=ARBb1QXsZW6yqaduKl4ez0JHar gvxxwUAo4kAzoYh8DJAZvYiWfQYaDVTGNmyyd5G//JeJ6BdQw1mvdSYVkl5uINRbBHhxZLR0kkbOy //QDlldJmSoqOyWvrHCOg4Tz/93iw6d+9eX0h8wsdqG0PC2PTbWDzYH/aNJ7um82RP1x1ua4GNJmS JEXYFubkGfNM5BHYd2AvT/ETCOKfCc1IXxvupJ/vr9Tm5Vu337dRy3/3ja91zYJg9bsLGr8THIJmz 6087bbXgj6zJG7zEhmRDe1lhMZTT2UpD0hur3ygUZmNz6/thB4Q2V8y5P8RTAl6PNdcfdWrzBP3E8 GHxuY7Hg==; 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 1qipei-001tym-0H; Wed, 20 Sep 2023 05:21:44 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 07/16] xtensa: stacktrace: include for prototype Date: Tue, 19 Sep 2023 22:21:30 -0700 Message-ID: <20230920052139.10570-8-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 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:46 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777564508145596231 X-GMAIL-MSGID: 1777564508145596231 Use to prevent a build warning: arch/xtensa/kernel/stacktrace.c:263:15: warning: no previous prototype for 'return_address' [-Wmissing-prototypes] 263 | unsigned long return_address(unsigned level) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/kernel/stacktrace.c | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/xtensa/kernel/stacktrace.c b/arch/xtensa/kernel/stacktrace.c --- a/arch/xtensa/kernel/stacktrace.c +++ b/arch/xtensa/kernel/stacktrace.c @@ -12,6 +12,7 @@ #include #include +#include #include #include #include From patchwork Wed Sep 20 05:21:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142340 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4029483vqi; Wed, 20 Sep 2023 03:32:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFU48V84hhLWav1NsY8Batmz0VyriMBRmxy3S0LcSkQYpGOeGS48gECBM8CpLL/UC/HlbzS X-Received: by 2002:a17:90a:e002:b0:276:5512:13ab with SMTP id u2-20020a17090ae00200b00276551213abmr6898053pjy.10.1695205951229; Wed, 20 Sep 2023 03:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695205951; cv=none; d=google.com; s=arc-20160816; b=XmVv7Of+3hb/rqvQkLNBNlsRIiljKLvU1p4hEqqMOWnL4kWSJS4vdoktS2VnHv+ktT p1U4JDkrNS4+qxeyn/O3hnnrTqeOusxofQw2i4TIuUnJ/VPgVvHCXaNzoQVfXBE4iKZZ OpDCmuoBT2U3Njw+AJqaS99Qj2CNHas9mWAjsKPRxHZ4e8aRN+pLpGG8lXGKnqI6MKvv pKZL6oQLtliVFm7PdrQdd3SqutoAr6Xwt1pb/JouugsLMSQVzs6Elt3U7XxJinrX5bqD j5ILrcJGuMk7HJHTBiCdrbDfY2ckgMfR3yrvaevjYhh/EhByOjW4MfgmgeunD2X/i3Hu bKyw== 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=9RDLrFWJyVC7v0tIEBUg6ZLVQEM25lEHLTr8hB/zzyw=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=QeM1GkyXWKIhW66eDRVaj8hgp601RCBzgxdJIOwbPx3iRT0qOdWxIXoXIk+/bV80wc e1KxbEAlvrX6cGVB3VhUROBjXWpnN3OBvis856suEgPflchStxl4erUFBud13UVmmakT yGxxVPr6Lcf8cgXAxfBpXa7TbYNEubhA0/2ZSENXq5tqYiY4TsSiccvDbt2Wm0VZgFG8 wNNjGPA6Ka9pBFU0RYn7bVJaw1ZFBM00aw3C8bZFPhmpMAloEEufY+zX1R8IgzrfzGz/ bWMrunmG2wv4BNf+ga5JicF1DBeOVHca/lTwgXaZbPUYKkF9bJvS2fFfb434Xd+i41aZ vCgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=GAC2VprH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id b26-20020a6567da000000b00569161a1885si1062918pgs.288.2023.09.20.03.32.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 03:32:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=GAC2VprH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 66E5D80FE95D; Tue, 19 Sep 2023 22:22:28 -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 S232800AbjITFWT (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232469AbjITFVu (ORCPT ); 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 D3329118 for ; 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=9RDLrFWJyVC7v0tIEBUg6ZLVQEM25lEHLTr8hB/zzyw=; b=GAC2VprHJCnQrsn9TMAD+nz823 KSRCb8cb7Vnd74j/oih/8KTT5stxbf7QV0uGnRJkvc9Nouu/hESJORih3zI5xndnP5tc8OZyUrciM rE56yQIVLRWQwMwcxhpjXCb+XD+LGC/LPvABD4CmGFvOJZaDyBxWofK0VhiXXvK8tn9e14oehpQwg B8ujO+en8uZlLo2REtLG0I2F5jcIVfXWU+Xx3YJb8FovFgzoyTlvNbn/JozdVhY4dfxpcPje4WBU5 7tDSmIG09DDufvPOiXlvWUzuRnOB+MXjIdVT67lZbSacMjfRMqyqjAszrGQF5zSJUfYbunhPZTdEn 5ooHxT/w==; 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 1qipei-001tym-1D; Wed, 20 Sep 2023 05:21:44 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 08/16] xtensa: traps: add for function prototype Date: Tue, 19 Sep 2023 22:21:31 -0700 Message-ID: <20230920052139.10570-9-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 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: 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:28 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777552275506353641 X-GMAIL-MSGID: 1777552275506353641 Use to provide the prototype for trap_init(), to prevent a build warning: arch/xtensa/kernel/traps.c:484:13: warning: no previous prototype for 'trap_init' [-Wmissing-prototypes] 484 | void __init trap_init(void) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/kernel/traps.c | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c --- a/arch/xtensa/kernel/traps.c +++ b/arch/xtensa/kernel/traps.c @@ -23,6 +23,7 @@ * for more details. */ +#include #include #include #include From patchwork Wed Sep 20 05:21:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142588 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4403841vqi; Wed, 20 Sep 2023 13:23:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiBMlFSvoURF3lQcr8JXohanKqX6WFZ/l7SXUyTZ/sMH+0UsoJIwCnusjDrDtXMYmMR83a X-Received: by 2002:a17:90a:134e:b0:268:b66b:d9f6 with SMTP id y14-20020a17090a134e00b00268b66bd9f6mr3360909pjf.18.1695241428541; Wed, 20 Sep 2023 13:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695241428; cv=none; d=google.com; s=arc-20160816; b=Ta3HujkVtQgYy0XQRs30RAUxUy4oHxQY7Zm5jF1/heZmUTcrN7J5kenPrGut9rUokV +cGPHSbo8cGoKFKD7KGykJ/5zrTolvZ2+RIJ6u8g0Dplwhfxz3vmM9QfK6TR82P01L/A iCkDHT2K8YACDSGvcSDbHqg0cS+Y2lSwFDBvmKYk2SF3uBr2953OyPIDXsvUJjqNVCHk /eelE305KzOtfQQqTLd9wlhX2sio06PRBCSG9LfZjP8VZCWpI97YfZIKZwbbm14FJP9f bF7aHujfa7S9yHOe7z78bYlB4wtLap7h1//SOKIiHwWwcAAgoOD6Z8F0zOTAIdvTSZzL Hc5A== 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=wbH2UWPn7ZVKXlkjQXd3Ii2h2zPMBwxphVeZKwIKuXE=; fh=5sAf3dSu0rhHl/ha7RfGNJF8dgZn5C4Gv5gSNqoq4qs=; b=l3gOmgKQ9xNw62RJK/4aFZY4fQLuMJxB0/OtyuRo+yd44cUdiKRkzr5rVvdfbXBJHW 1ydltDUFdy9zIJCI5vw5/xCUThTqfz4mPZlq/mvtBBNUcwxGFC5eaadz9LgceFC/44IJ K6jA2HT3sDpelH56GXbS9EeK4ZHIZIQBOSMrtiXfR8XKEWUE+2t8S88dpHCSCHgJaTiP Abz3keN7amXCFIEMgY2+5yzQ11oSFXw6MtvlNDM5sjCTrXB7ngUsMGTYXFbE0d03r4D7 9tBWWjS1DoCz+90b1eQ4fAvDpwng2QR0j421whiqxaVqsEBH4cYB+bL0uhp9K7UWm0ny OdAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MQjtQyeb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id n6-20020a17090ade8600b002631e44f48csi7414pjv.179.2023.09.20.13.23.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 13:23:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MQjtQyeb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 9E73582B9F8C; Tue, 19 Sep 2023 22:23:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232496AbjITFWm (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232524AbjITFVv (ORCPT ); Wed, 20 Sep 2023 01:21:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A34F119 for ; Tue, 19 Sep 2023 22:21:45 -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=wbH2UWPn7ZVKXlkjQXd3Ii2h2zPMBwxphVeZKwIKuXE=; b=MQjtQyeb+8H6HXu+fLUBoJc4oN 1d/E+974ScSuSw0nzlMKBYD7a7sKXaU7ftDvvzJ+dV7mgHcA6wNqdUJ2D6oDV1c5dkvtw2eTd0wzK ILu/ggQWZTtrm4C2gdOraYwvlXvkM815lxwaDHDaDuFstuAD7Pp7SEZ/vSm6jVAzvKSIS5ZCCbOaw TApOPQsYOZuhlyB/Y1itlo1M9Vog5fQxgRuYKTWJYX6ba4DqfKOk+fzC3HF1g58wWXYoRqTzqApW2 DhI8pv7byvUM4NzqOG7CFHK4ERYYxnDqoFEJc/PFy9UWJiIUa4EZlSpFf/Fm45l4tnXjN2VmQZH1N fLeLIvDg==; 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 1qipei-001tym-2N; Wed, 20 Sep 2023 05:21:44 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov , Thomas Gleixner , Marc Zyngier Subject: [PATCH 09/16] irqchip: irq-xtensa-mx: include header for missing prototype Date: Tue, 19 Sep 2023 22:21:32 -0700 Message-ID: <20230920052139.10570-10-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 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:23:04 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777551664847406723 X-GMAIL-MSGID: 1777589476483927895 Add to provide the function prototype to prevent a build warning: drivers/irqchip/irq-xtensa-mx.c:166:12: warning: no previous prototype for 'xtensa_mx_init_legacy' [-Wmissing-prototypes] 166 | int __init xtensa_mx_init_legacy(struct device_node *interrupt_parent) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov Cc: Thomas Gleixner Cc: Marc Zyngier --- drivers/irqchip/irq-xtensa-mx.c | 1 + 1 file changed, 1 insertion(+) diff -- a/drivers/irqchip/irq-xtensa-mx.c b/drivers/irqchip/irq-xtensa-mx.c --- a/drivers/irqchip/irq-xtensa-mx.c +++ b/drivers/irqchip/irq-xtensa-mx.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include From patchwork Wed Sep 20 05:21:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142365 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4062045vqi; Wed, 20 Sep 2023 04:30:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGl/VHSRmMpCfILyvkoN6H4Kc1kFXoJuFvUOOGdqu0PEIpwqXUUl8xQELEgekTs4n7eFzqj X-Received: by 2002:a17:903:32c5:b0:1b8:8ff5:2cee with SMTP id i5-20020a17090332c500b001b88ff52ceemr2292208plr.64.1695209429450; Wed, 20 Sep 2023 04:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695209429; cv=none; d=google.com; s=arc-20160816; b=yTFIr0rO4gGj/vg9cC/8aPUGGpifoXjeWc/MofdlCFBLmH7Cc3FmmLTUdLbf5Bq36R zZsw3RAgLoRKlgR1ZFTZm3yE9j0wHLS0hEooZrNPJCu5g/CceiG0XRwqCsOgHMhAwcKT jXhKMl9aITEViNSo96msk5HFigHJRlzWdqrgzJoE5yI0aCU6zXmiUt6GlnUBq4kl6pDp CMlLjjumfGNPPjEhz2cHHYlLD76dgJNfZNZFw140ZmNiVhiCCMEXUCZaKV2HkoT2o7ER nknabyNV5+NVx3Ne6rpI8NAXh400X3urnvfX056X2+C4iPhlJAI2A0rwE3qCDbTj/Od4 ws1w== 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=4HIhMY7GzHluaw6zpJ+7jZBwZYJkux/Wi2WftldLB38=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=mmRkzw+bcEvkyei+Y4q+TVXrUyLTxKdgGNAgK4DSY7xE11a5oL3bz4WRK8Hs8W3H7V J4TCkizTgc0c9HJDl7OqbiVRM+tZN2h+eALBB04ZJo2MXER5W8DWoXdqT72/aFRBj0ES nc1qr0pYGomVhSHtN9WG6tUzmDQezDE5KOiIVdgxFTA1u3DBctKeA/EARDGL1xlEwRrK E+xA60aKZAQQnwyfyXVP9rmEJjd00pJDGCgQ3s/0PiRowuBNVRXWIZ9+BpBoJsz8u9Qq TSgW5ILKh+zq026QLpVST/wyesVxoSS4nRVEl4cvwp/IaNTG8PY5Y2m+VX6sxwzlkDCI GWkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=RcDjiSTf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id km16-20020a17090327d000b001c3346175acsi11400688plb.137.2023.09.20.04.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 04:30:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=RcDjiSTf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id F193A80D7725; Tue, 19 Sep 2023 22:23:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232885AbjITFW5 (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232529AbjITFVv (ORCPT ); Wed, 20 Sep 2023 01:21:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40BBBC2 for ; Tue, 19 Sep 2023 22:21:45 -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=4HIhMY7GzHluaw6zpJ+7jZBwZYJkux/Wi2WftldLB38=; b=RcDjiSTfO6D/u/E2n07xRc/WUb LFK30atEO3ctcQ7/z/XmRxrOxrAtmNGu5Hp7p2paAmXIBbEB4Dj1307NCfwmv1ySxzF0zXxk8OUY8 3lt6Hj+z1Lfw1cLfUpco219XLo47Hq1DeDTsqHYoIFVLtQXHwK4HyIUpyUV1TP2bmYNqaPRHzeYjz nZMFtD4sl4EuX57ABKcT1kj3/YG4QoH9q4w0etVI0VM4Vz51hGzvR13ju73m9zE68BK5XiVPmBY2Q ZR3G4DLF9vI4I65LT1xeWfJP/RH/shRHbQrHZIohJ/4dD8MN8fFWHDOphLVEKEo6KrzmgnnlQLOJe 5BjTi6LQ==; 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 1qipej-001tym-04; Wed, 20 Sep 2023 05:21:45 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 10/16] xtensa: smp: add headers for missing function prototypes Date: Tue, 19 Sep 2023 22:21:33 -0700 Message-ID: <20230920052139.10570-11-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 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:23:20 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777555922358088986 X-GMAIL-MSGID: 1777555922358088986 Use to provide the prototype for secondary_start_kernel(). Use to provide the prototype for setup_profiling_timer(). arch/xtensa/kernel/smp.c:119:6: warning: no previous prototype for 'secondary_start_kernel' [-Wmissing-prototypes] 119 | void secondary_start_kernel(void) arch/xtensa/kernel/smp.c:461:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes] 461 | int setup_profiling_timer(unsigned int multiplier) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/include/asm/smp.h | 1 + arch/xtensa/kernel/smp.c | 1 + 2 files changed, 2 insertions(+) diff -- a/arch/xtensa/include/asm/smp.h b/arch/xtensa/include/asm/smp.h --- a/arch/xtensa/include/asm/smp.h +++ b/arch/xtensa/include/asm/smp.h @@ -23,6 +23,7 @@ struct cpumask; void arch_send_call_function_ipi_mask(const struct cpumask *mask); void arch_send_call_function_single_ipi(int cpu); +void secondary_start_kernel(void); void smp_init_cpus(void); void secondary_init_irq(void); void ipi_init(void); diff -- a/arch/xtensa/kernel/smp.c b/arch/xtensa/kernel/smp.c --- a/arch/xtensa/kernel/smp.c +++ b/arch/xtensa/kernel/smp.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include From patchwork Wed Sep 20 05:21:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142389 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4100661vqi; Wed, 20 Sep 2023 05:30:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7pYbdQIkPCO8Jnzu6wXGCb7yrRTzQsmxxmlj40C5RMEQw8PaLKTaoDGxemvfcR1QSzEpJ X-Received: by 2002:a17:90b:916:b0:274:4f21:deae with SMTP id bo22-20020a17090b091600b002744f21deaemr2200832pjb.35.1695213047455; Wed, 20 Sep 2023 05:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695213047; cv=none; d=google.com; s=arc-20160816; b=oxQEZ8sSOXIcfj2nsLfkJNfmhrbrbz0de/CV1XYd1ffrnqxeVL75TkfP6ogGNSwYo3 kayEGb/xOxa/VODrqTkOKRrJZpaBNMV2+7V7J0zStvoR3CVruCGhS/RitnUImnRUU3/j WEN1BP0j8O8/Ra+J4qsD58RW5NvjZ/vtv8TrA3vBekFpVQd1fioiP5UR9q3KyIXlH1WB F1TgLAjleZ1+gPDXj7cMMgwXVHKXfMUZFqJQAe5CloRr5iF/ikA1QtI8EHT48TrcpW7p JJaLwWk0rSV3mm6JNa+dAzMlDXXGXJRFCXN232otQoEg8akbSVngjSwIulf4wYoNJ0DQ LQnQ== 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=u3Ft1l1JDv7ZC52Lq7+Ymsf40ejM5vNmM+ncxv9CXLE=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=0ABTFIwQ8IzUiW/gFzsXncCGsELFhak+ilThPxPdblT6i02jIPKWTq/H7EaU12rNU1 uRi63hnMrFV3tMPeY40G5YgA7tADOetmtuhUAnZYywgbKlUGG8VGTWw0f75RjzvKyC9S DmMkbTfyfBnhgdcHK8/3CjTkSt1I6VBQmzha+vATrmcFMCNjUSgXAvl4SCCy5uca4W8o pVpqzvR4Ep8r1Oru63iP6/fZ+cK3ESGDQsbCM14Pb5erbBTeZFevL8Iz45Bv0Et3dM2q 67HaS9LT2d4yhKYGc4hsSNgzUem4H8T7vA0bemxyANinjAXJf7lZL9cXcs1Dek2jxcNm vbOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=oUraPWiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s6-20020a17090a948600b00276971af989si1361002pjo.190.2023.09.20.05.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 05:30:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=oUraPWiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id C2AFD82B2E52; Tue, 19 Sep 2023 22:22:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232723AbjITFWY (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232520AbjITFVv (ORCPT ); Wed, 20 Sep 2023 01:21:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86C56CE for ; Tue, 19 Sep 2023 22:21:45 -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=u3Ft1l1JDv7ZC52Lq7+Ymsf40ejM5vNmM+ncxv9CXLE=; b=oUraPWiAz2WkKj3ieKbjfyRNMB ybzOBWZlLYsFk4UpVQw+IylNiJG6UcwMPV5L90XGa2hLnUv0jfPUFDG7esxrqFg11xqsp6K+vA57h iZySrxGh1VKm0Eg50/ud38QMQ+zcGUIX8cONeTVUNlOXJl3fS8tOXMD/gJfqo7rCKhsYgDlxtj2ZU VZBjA316DqchJJajOvPZfcDiCcU1G79WEEvMCEL/V/M61vcbEVIp1CWO4VH4/Slcs+/PJt/2HPhSB NjtYAfukYaPTn238BlKVZXYuOhDoZxMfq87qtNhX71ay2FX3VdQvUKyyDcaf2ljYKMc6YaSq3OYkR WHc49Gxg==; 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 1qipej-001tym-11; Wed, 20 Sep 2023 05:21:45 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 11/16] xtensa: hw_breakpoint: include header for missing prototype Date: Tue, 19 Sep 2023 22:21:34 -0700 Message-ID: <20230920052139.10570-12-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 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777559716769318915 X-GMAIL-MSGID: 1777559716769318915 Add the prototype for restore_dbreak() to and use that header in hw_breakpoint.c to prevent a build warning: arch/xtensa/kernel/hw_breakpoint.c:263:6: warning: no previous prototype for 'restore_dbreak' [-Wmissing-prototypes] 263 | void restore_dbreak(void) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/include/asm/hw_breakpoint.h | 1 + arch/xtensa/kernel/hw_breakpoint.c | 1 + 2 files changed, 2 insertions(+) diff -- a/arch/xtensa/include/asm/hw_breakpoint.h b/arch/xtensa/include/asm/hw_breakpoint.h --- a/arch/xtensa/include/asm/hw_breakpoint.h +++ b/arch/xtensa/include/asm/hw_breakpoint.h @@ -48,6 +48,7 @@ void arch_uninstall_hw_breakpoint(struct void hw_breakpoint_pmu_read(struct perf_event *bp); int check_hw_breakpoint(struct pt_regs *regs); void clear_ptrace_hw_breakpoint(struct task_struct *tsk); +void restore_dbreak(void); #else diff -- a/arch/xtensa/kernel/hw_breakpoint.c b/arch/xtensa/kernel/hw_breakpoint.c --- a/arch/xtensa/kernel/hw_breakpoint.c +++ b/arch/xtensa/kernel/hw_breakpoint.c @@ -13,6 +13,7 @@ #include #include #include +#include /* Breakpoint currently in use for each IBREAKA. */ static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[XCHAL_NUM_IBREAK]); From patchwork Wed Sep 20 05:21:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142491 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4222904vqi; Wed, 20 Sep 2023 08:28:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8JlcxEt3BKB9n6YtmoPHJ9v+oBrVrGwwOJ2qB9sLJvOOrymoUQgMyuqT9X0TwKPxtZk19 X-Received: by 2002:a17:902:ea0c:b0:1c1:fc5c:b31b with SMTP id s12-20020a170902ea0c00b001c1fc5cb31bmr4339979plg.9.1695223700553; Wed, 20 Sep 2023 08:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695223700; cv=none; d=google.com; s=arc-20160816; b=ho4PSe33arPFLnAJBsnkozPWuN5e8pxPfR+BuLEWAnzmg5hZyvz2sdrh6Y/aak/iO0 UueBmEZ+g4auOYRUYvx+/RKJNqaNcQ/xRvlgYxCnvZN7enq13ZynQbstGYHyJdzpBLpN 0+ArI2puKSLWZeY6El5BAC57GzBpxzABfJ0+Va+xOT8nFNu1nJqEKR+CdhoCz5Gz+uD3 5RR+ZMDUIJjRk8UsXj1WevyYOtsApIWK5Uy/F1LMS+kKMfFeH2GMPrdg6hX0UY3gOmX+ 4bd1ckDnE5gsTeNDeHQajnn6KVYhtRoqgirk8NWZHyqAErchOUnxzGl6rOBLOyUMXGoU 8aPA== 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=muiwzLxZMy2jBRh4Pcbc7GxkV5wLF//W5T5aDFUGToo=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=gPCBjtCH9UB7Qz5T8bhTbR85VZfl2TfmHWK0lsh/+xqE97GSvmOLMerQ7XpkyINyZi Tj8hKFm6CRR186Ouh6nByff2FnxU1/77WvSjBwsmrWMXndGM5JjRx931t+h3PpN6Aa0q 75c5XiTRx5TkfA/xq5DWfjnlH/IIAetpMnJxNpCBUDviGY/1+d2KBkNrBM7pO9CI0vMJ OJY6YeL0RvYfSxNsn/JisjUVBgqyblCkzwnwakS5j8+BrhaIFnWg2FL68Gw+gczUM994 AJD9tPDM4Hj3Q9TcxEeBrvkWlgmHE02Sq90k6qyuWmD55Z3f1yTbj+bOXbai2TGzXlmJ qIMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Z1VwBgv4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id p15-20020a170902e74f00b001bde8c9800esi12579478plf.459.2023.09.20.08.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:28:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Z1VwBgv4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id DFACA802C17E; Tue, 19 Sep 2023 22:22:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232799AbjITFWt (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232543AbjITFVv (ORCPT ); Wed, 20 Sep 2023 01:21:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF95FD7 for ; Tue, 19 Sep 2023 22:21:45 -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=muiwzLxZMy2jBRh4Pcbc7GxkV5wLF//W5T5aDFUGToo=; b=Z1VwBgv4GnNAEnNv9MdCTu7HQK jHpWqEkNRqm058IC99bKK7tUqs1ukIg+6+ZdyJP+fTHKNpeSdgBdm9vjjd8NFQamC69nYGBgg4RWL QiTZ5bkOzDqISdieJjn+r7kIRMJNUv/BIyi9FuPTiEbOdJAKHzIdNoOXl6bDWGFi7AajbK+BPD700 dMoUuCr76hm8tWGihZrDYxoXvCPqQEW8mAQls80UQmOBd/fLfBkuNB/q5DS83ugJYJy/N9NAiYZSo dp0B0Z25hOX4Ka7Ow/lDmHSLQgMICe6s7ufeiLzsGpEsndwVJpz/VxUGY4LUK76MtQeM+pyn6fR4h hHrXhiSw==; 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 1qipej-001tym-1t; Wed, 20 Sep 2023 05:21:45 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 12/16] xtensa: tlb: include for missing prototype Date: Tue, 19 Sep 2023 22:21:35 -0700 Message-ID: <20230920052139.10570-13-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 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777570887057013569 X-GMAIL-MSGID: 1777570887057013569 Add the prototype for check_tlb_sanity() to and use that header to prevent a build warning: arch/xtensa/mm/tlb.c:273:6: warning: no previous prototype for 'check_tlb_sanity' [-Wmissing-prototypes] 273 | void check_tlb_sanity(void) Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/include/asm/tlb.h | 2 ++ arch/xtensa/mm/tlb.c | 1 + 2 files changed, 3 insertions(+) diff -- a/arch/xtensa/include/asm/tlb.h b/arch/xtensa/include/asm/tlb.h --- a/arch/xtensa/include/asm/tlb.h +++ b/arch/xtensa/include/asm/tlb.h @@ -18,4 +18,6 @@ #define __pte_free_tlb(tlb, pte, address) pte_free((tlb)->mm, pte) +void check_tlb_sanity(void); + #endif /* _XTENSA_TLB_H */ diff -- a/arch/xtensa/mm/tlb.c b/arch/xtensa/mm/tlb.c --- a/arch/xtensa/mm/tlb.c +++ b/arch/xtensa/mm/tlb.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include From patchwork Wed Sep 20 05:21:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142706 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4572135vqi; Wed, 20 Sep 2023 19:59:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFROrK8sTBCdO/LRLY99eMUYlVd8S9UJ6cDkrlWturmjZt1gU25DaMC/55dllS7TCdriEG5 X-Received: by 2002:a17:902:a511:b0:1c5:be64:2c71 with SMTP id s17-20020a170902a51100b001c5be642c71mr2796142plq.8.1695265167328; Wed, 20 Sep 2023 19:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695265167; cv=none; d=google.com; s=arc-20160816; b=AwEHKVrkh+0FLk4i1v0BjV4tg7XqGa8idG/1PGrAWkhJ2b21zDOi14jLLYt4vwvlHB rgPAdksX9EY5Be+/Y29QE3OAI8VMtyNZP9YXb9PvdJJZNExcJYFTVDpFw2CGFugG+Ibg 9SeiAAMJALqlPM/82q6lACaouu1UNwAl+XhUShItDr5rSNbBH142s550pvUskSJFXZyv 0Z8SCg5fEyj1937USY2E4Tiilh0iSVfiyh2Szfl8efKRGIXKvKzxUGGoNMXVoIFx4zkQ qThBzsfYQ8RTocQFMdfc4N/wWL0xAHKYt58oHwT99KtwpnYwYsiBnec1pSJLxdf3j7zi 0H2Q== 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=1gBHFx2tI6V5P6z+m3jp+VBtTa+R50589jc6SHRpnzE=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=dV8Adkbsb27H+L+klR9na9JXcEfop4SGzNhodGp8S5KSAQYjG7SRvsQRrAUuv51Uxe vZ8/pnQZO3Y9nDmX+fhYeTY97MgLUbOeEB4zEUE3xADq6wJW/YGz5U41pVvJt3qkzRnn xXkM1LtUmJvn4mlZFxlI8MjE6Fx5TrmpymdDZjIkP6CF3AauohfdrvrNGZwy1cSs82ZB 9+YZcndHhZYDsY3KjT9RhYJGUtQj4D3xgEpEPh3VLtKGw0BfFv0G2yTJGomvFtgEtM4d //zdt/EKrO/bpq9lKVG3d3FXxrcU0nfJpTOtparHAf4JpkpBFhLhrLrkk+tn9IlW93fy pbuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=BcU6wf2L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n18-20020a170903111200b001bb2093efb6si493687plh.45.2023.09.20.19.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 19:59:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=BcU6wf2L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 6BF9282B9F9E; Tue, 19 Sep 2023 22:23:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232907AbjITFXC (ORCPT + 26 others); Wed, 20 Sep 2023 01:23:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232563AbjITFVv (ORCPT ); Wed, 20 Sep 2023 01:21:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 131CEDC for ; Tue, 19 Sep 2023 22:21:46 -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=1gBHFx2tI6V5P6z+m3jp+VBtTa+R50589jc6SHRpnzE=; b=BcU6wf2Ltl/WTOUgR2MqZvZQZJ 4y79NyIocfLB4sXv3rM34I6yaE9N3gGEjjEYUWK2eCEnR0EosCDdtfnGtEdAMquZlW+nWVzegS5fl gpnZqJJaM6hv53IAVaiUEwyFr151sR8ScnVFUDAmNAtQ8lXH3+gC5xG4DRE3f8R+t6ptAsAnGog6w hGuUtrdlOP24U0WqT8hhmf6GGo28M80oL+jgOu0DGxOOxExuRXC2pj+Pu11WNK5bwP6BqAaXCAeWt 7xnq+hREFRrJ7FElrBnc4nPKIPra5VPDl/ole3sg5LpR0wn93ZlHh3Tl702MSNKTsQjJEnAD6OK86 9iIj74yQ==; 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 1qipej-001tym-2l; Wed, 20 Sep 2023 05:21:45 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 13/16] xtensa: iss/network: make functions static Date: Tue, 19 Sep 2023 22:21:36 -0700 Message-ID: <20230920052139.10570-14-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 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:23:09 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777614367952643554 X-GMAIL-MSGID: 1777614367952643554 Make 2 functions static to prevent build warnings: arch/xtensa/platforms/iss/network.c:204:16: warning: no previous prototype for 'tuntap_protocol' [-Wmissing-prototypes] 204 | unsigned short tuntap_protocol(struct sk_buff *skb) arch/xtensa/platforms/iss/network.c:444:6: warning: no previous prototype for 'iss_net_user_timer_expire' [-Wmissing-prototypes] 444 | void iss_net_user_timer_expire(struct timer_list *unused) Fixes: 7282bee78798 ("xtensa: Architecture support for Tensilica Xtensa Part 8") Fixes: d8479a21a98b ("xtensa: Convert timers to use timer_setup()") Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/platforms/iss/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/arch/xtensa/platforms/iss/network.c b/arch/xtensa/platforms/iss/network.c --- a/arch/xtensa/platforms/iss/network.c +++ b/arch/xtensa/platforms/iss/network.c @@ -201,7 +201,7 @@ static int tuntap_write(struct iss_net_p return simc_write(lp->tp.info.tuntap.fd, (*skb)->data, (*skb)->len); } -unsigned short tuntap_protocol(struct sk_buff *skb) +static unsigned short tuntap_protocol(struct sk_buff *skb) { return eth_type_trans(skb, skb->dev); } @@ -441,7 +441,7 @@ static int iss_net_change_mtu(struct net return -EINVAL; } -void iss_net_user_timer_expire(struct timer_list *unused) +static void iss_net_user_timer_expire(struct timer_list *unused) { } From patchwork Wed Sep 20 05:21:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142478 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4209419vqi; Wed, 20 Sep 2023 08:08:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEweeF5cXD8Jcb3vzeVdX9kS+JYQaXz+2FLFFaKy6SDhb8IY9DQm7uD9de5QaZzhaySqDVc X-Received: by 2002:a05:6e02:2188:b0:34f:efde:ec7c with SMTP id j8-20020a056e02218800b0034fefdeec7cmr3498022ila.28.1695222502472; Wed, 20 Sep 2023 08:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695222502; cv=none; d=google.com; s=arc-20160816; b=AgsqhTFDhgQ7oJlw66Opxd2SLAqUkramkkCn4TSO/MzxEtgqjYSTrvV1q1FXQUE+oV W+j+Vg0+mE7Rijf/67Ilv/T7ZIRm/rjOsjuDIKguF+EnArZleZjDCgQ02B61YV+8U2Yk Q3GW2mDhhfUVyYJSBq4LG9KvcIrQmvMytVh9NhjNLwzswL6Z70ZCRRjGhgmmlCTpofcD biw9bsHFx/0UrMTYyOxigAuoYIEAoBmh6bWjWAVYBxy2a30p/8g1Zea9BkjMq7/d4Tgi CGZB56bU4nKR7fLTqncPzrV+Ukc29kkGdNE2QZK+EC+feSAqBUft0pSqAoXpSvj9ArO9 AXDw== 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=5gOGqeDWHWvZ+ziHLozSXMYvhhLuHutHz+RvPyTIpZg=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=jkaBxPwy7ZR5USjU+cS2AIQRyjowP6L78P86gD75uSXsq6TCNJqpEdWNkUcIbK6q6f Q0z6qVSPjHCc4z+vYKW5bHbWGDeC/kp20gThKMKT6cXxRR/WjY2LN+S00KC80Q/jZETs JM0YsxF7YMyHoFUZ1/kKpcCUfQLj2RizGbbJJz5Vh5v/FK2bs+hBI/5uIrnBBRKoOOhn MLCKauivARHkGdtPIyuU62kTheLPE8Cw3cRbyVKQkQSnn4m3qlHpIp9/iMRqFm1UJt0t MfuI1/dhfVtElxMm2qfZJmM93haM9v7XfkEiJB4cUiOLGFjsrr5Gm+V1P7iG+gq7MuiO mLTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=l0DOFm8h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 201-20020a6301d2000000b0056a290addadsi3700622pgb.787.2023.09.20.08.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=l0DOFm8h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 8CD7582B2E66; Tue, 19 Sep 2023 22:22:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233005AbjITFWg (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232584AbjITFVw (ORCPT ); Wed, 20 Sep 2023 01:21:52 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DE61E5 for ; Tue, 19 Sep 2023 22:21:46 -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=5gOGqeDWHWvZ+ziHLozSXMYvhhLuHutHz+RvPyTIpZg=; b=l0DOFm8hWJVSTxdJSFhbJgmYaz 9WN86N1TagNYlDWl0c9YVZIDmTB8u7tLsrwsu5qz1B88r6XtGhBnNtRTIWeBIiVerxDLOsvnspWEj x1WsvVX8S0lOWpQe5ZT5vx7AHlIE31ZLgJZ/kP0u/PJR0siINJNPSnr24apJ+UUbXKpTFpWMEaMve 4Ko9fGmb3zTJ9oGsxW9m92zZ2cRUIWPjNKoTopMhmsb/pIcs+BE6ivvdF3SFdKT8r3g9nQkq1rTZ+ g08nMwoXFcHbcs1R+1kWr5pkJ3/vvNdq/z/40h9/oRfihKClg2zZiJjN6cAFPSsEIIT+hsNIymphp SKQOJrxA==; 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 1qipek-001tym-0Q; Wed, 20 Sep 2023 05:21:46 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 14/16] xtensa: boot: don't add include-dirs Date: Tue, 19 Sep 2023 22:21:37 -0700 Message-ID: <20230920052139.10570-15-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 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:41 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777569631209359319 X-GMAIL-MSGID: 1777569631209359319 Drop the -I options to prevent build warnings since there is not boot/include directory: cc1: warning: arch/xtensa/boot/include: No such file or directory [-Wmissing-include-dirs] Fixes: 437374e9a950 ("restore arch/{ppc/xtensa}/boot cflags") Fixes: 4bedea945451 ("xtensa: Architecture support for Tensilica Xtensa Part 2") Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/boot/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -- a/arch/xtensa/boot/Makefile b/arch/xtensa/boot/Makefile --- a/arch/xtensa/boot/Makefile +++ b/arch/xtensa/boot/Makefile @@ -9,8 +9,7 @@ # KBUILD_CFLAGS used when building rest of boot (takes effect recursively) -KBUILD_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include -HOSTFLAGS += -Iarch/$(ARCH)/boot/include +KBUILD_CFLAGS += -fno-builtin subdir-y := lib targets += vmlinux.bin vmlinux.bin.gz From patchwork Wed Sep 20 05:21:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142582 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4399845vqi; Wed, 20 Sep 2023 13:15:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEBccA8TqjsTdgDJ1waluwZA4W0kQr9QgFzYWgVOjL/gnycGJmpP6xG9StQVzHJr/muoKrY X-Received: by 2002:a05:6a21:3291:b0:12e:98a3:77b7 with SMTP id yt17-20020a056a21329100b0012e98a377b7mr4126199pzb.59.1695240944810; Wed, 20 Sep 2023 13:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695240944; cv=none; d=google.com; s=arc-20160816; b=OEywDkkYBXdBPSj3AkshqR24sQkHSGqyy/PMMnEYxeD89A93SVHmrmoI+aJKKETdjz yG55XZkQy2AB/W8lTex/k1UghlC2UNgr38QY/BWfccgLnYiguFdwWujHHM5aO/iIvOmG oO3An647uwIj3fXR36giwT+cSsQZoPXEwgK+5ge6LmwpQy6D47zKpWsU9wlYPs+0sgEQ 59vq3uUEGNTbLPqDtV5r95xBNJv8pQjgg7x5oCr6Odh4jBPuHMwipjNaoIzOnA8IW8lD r0dhsTH64YDUEAEK6w+t92q3mhZCWzHzrrjGCi6KAaHzeYQ1N/zkxu/dOrMpYQoyZBg4 q1hw== 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=wYiT4DruSD+QC32dES8hhCpNakimhJKyMGf+5+i73PQ=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=jCHUEw8wUbFxnkyOBLDyDgPji0RrDbUGypZNGAhBgFMR0/Q4AC0L7NvnepvOM301iW BVgEvB82+pmHUJ96L/7+k3zXTFpEvbGiMD+mssWasQFTpvekqpMAzTr6Ib9o0NHO9Uwr aQRDrU4ul7R8clpNfYuY7ApoRG055ncThBMkXXomSgsKHSn8lErbbYn0zCNJi7HwTlLb gxGPC7AG3GPHj7HXAT9EqKAIY7av9LSU1EWXjP1GdDvUGJ4wvEqlcOSl8Fbq48cHfSGs 11QeykCM/gC9ukstWISMii4VR82gBWLsMIzWR0BwX79yWdikqUamXRE8v5TToM7gPh6u 1IYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1SA6bvTQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id f10-20020a170902ce8a00b001bf3a0306bcsi13047098plg.5.2023.09.20.13.15.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 13:15:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1SA6bvTQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 4A82382B2E5E; Tue, 19 Sep 2023 22:22:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232738AbjITFW0 (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbjITFVw (ORCPT ); Wed, 20 Sep 2023 01:21:52 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6F47F3 for ; Tue, 19 Sep 2023 22:21:46 -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=wYiT4DruSD+QC32dES8hhCpNakimhJKyMGf+5+i73PQ=; b=1SA6bvTQV2Vk09FYca8lUX8/en sVV57qGZ/26jHOL/POPyxs05mIJHAa49pv13lxW8gjnxCvQOcgzdMkxYsni7rDe4sIO3kcdY7bIfN X/t96CMQWNpMQU/gxGtrcVFTAr4uNMznh4UZ9BCFRBg6/QvM9usq+vPx+wVIqkC5T8iVPmDxT7xwV P6AaSESTff3eVtAHn42AAXXVOtjmQ4ffEB/k7elyG0hbVHA17h9mNqPKbUvj7tCCeGu772LN25p4J UkEONw7qHXJiRvJM9YNMoufwhdL4K24Skx5TmtCHXkMxVSbF1qUrpDJWH+p7ONLCdk31DsDUS9lGP /isNwHrg==; 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 1qipek-001tym-1P; Wed, 20 Sep 2023 05:21:46 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 15/16] xtensa: umulsidi3: fix conditional expression Date: Tue, 19 Sep 2023 22:21:38 -0700 Message-ID: <20230920052139.10570-16-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 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:33 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777588969027802561 X-GMAIL-MSGID: 1777588969027802561 Even when a variant has one or more of these defines set to 1, the multiplier code paths are not used. Change the expression so that the correct code paths are used. arch/xtensa/lib/umulsidi3.S:44:38: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef] 44 | #if defined(__XTENSA_CALL0_ABI__) && XCHAL_NO_MUL arch/xtensa/lib/umulsidi3.S:145:38: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef] 145 | #if defined(__XTENSA_CALL0_ABI__) && XCHAL_NO_MUL arch/xtensa/lib/umulsidi3.S:159:5: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef] 159 | #if XCHAL_NO_MUL Fixes: 8939c58d68f9 ("xtensa: add __umulsidi3 helper") Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/lib/umulsidi3.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -- a/arch/xtensa/lib/umulsidi3.S b/arch/xtensa/lib/umulsidi3.S --- a/arch/xtensa/lib/umulsidi3.S +++ b/arch/xtensa/lib/umulsidi3.S @@ -3,7 +3,9 @@ #include #include -#if !XCHAL_HAVE_MUL16 && !XCHAL_HAVE_MUL32 && !XCHAL_HAVE_MAC16 +#if XCHAL_HAVE_MUL16 || XCHAL_HAVE_MUL32 || XCHAL_HAVE_MAC16 +#define XCHAL_NO_MUL 0 +#else #define XCHAL_NO_MUL 1 #endif From patchwork Wed Sep 20 05:21:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 142228 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3890389vqi; Tue, 19 Sep 2023 22:26:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhBu91majNFZYFSHqIllD+FA2puHfBJFSRETYuacoBzKxIxspnPjQ/4glJqEMWOAQN+hgD X-Received: by 2002:aca:2117:0:b0:3a7:9837:7148 with SMTP id 23-20020aca2117000000b003a798377148mr1154124oiz.58.1695187566084; Tue, 19 Sep 2023 22:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695187566; cv=none; d=google.com; s=arc-20160816; b=MG1UKD2L40LsHBJvuU/jiefXgWqD7smaZYkVInbvlVaC+XkxL26ILQRNZRrYTjnqz+ rv40hm0atwkYU8qy89Xp7xWm79ljvsW0Wf3lpk+G8XabHLjp+lYlx1zQ/A86IS+fwqRl Ga6zha1twDIMr1webkuvR/wgdPMYChCtswVyoahbyBdpvRIH8w6HWizvmGBnXL+alLkd io75Sm5DURuM3n4jf5ic5LJ91K8K6hQElrz/61Fp8az53IiB7/5K4gtHSF5duNHxMgnE 1o+zCY2zJX67CUOT1w8SIgny+F1TBEpBuZOaUIV/aPk6kbkYGlZosBv5Yv6WQyfzSqJg q11Q== 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=F5img2w0CqZkSGbVt3g9ub4mLFP6v/5RAYKtgYB2Q/E=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=GP2HHcjlngQYknkNWc1BdxiZHVtwNgWxYJ/D1bhxh0DJ82+xV+wuUpleksrp52cgeL Z7yBKNm/eBUAb1XqUUjIUBAnMAQS6hmoGZraVcIbZdySCQmVHxk7hyalJF3FyTiK5VPD FtnXmt1SB5F1uLT3EK4yohuD7kvLdm4QGt2jRDyLu7VS8S/50ieh/J02/2pbCkWljo8Z 6GA0jbZw9P8iB07Q4iFmJ/O14QoLO9P2WkbkcV1jkjNjrN4OgFtdhRCXUhMq5vKCeQFa EUoygcOYyGH6nHX4OFyBIj8M5NRJ+ye/60ZIqqZ6VWoB2Ap/u4nCcb1N5OZbPEAkhzhd 9C7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=L5aRGlqF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b9-20020a056a000cc900b00690158afc78si11609573pfv.284.2023.09.19.22.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 22:26:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=L5aRGlqF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 113D482B9F87; Tue, 19 Sep 2023 22:22:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232889AbjITFWa (ORCPT + 26 others); Wed, 20 Sep 2023 01:22:30 -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 S232598AbjITFVw (ORCPT ); Wed, 20 Sep 2023 01:21:52 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA94F0 for ; Tue, 19 Sep 2023 22:21:47 -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=F5img2w0CqZkSGbVt3g9ub4mLFP6v/5RAYKtgYB2Q/E=; b=L5aRGlqFa0BvSIX4FQsXuUtGBp OZUaS/a7pAbNJRizkQA+IW8AHtukiTmXqXfH/EtK/njEP92In8td/Floa4GhTFj0xDDTd4brC+Dff CDarIkb/srH2GyDq0H5AV/P+EBKbj6gVZ8SVF7ilaSlg17tZuuM4KFS7E5Wk31XdPrfmTU2QzW5jX EpgIZ0ChsKZ/vgSlAE/KFSiNVSA9RUh2tHpn9Ut/pwOkcWu5EJw1MAXMKV/62Xhz6mO0r80f2jQhg A1gXt817fUpvuggYMfoBmwxJWDdw3kZXkqvZDrHXRJ0YWfN3ZQvgUmZQD9S6fzf1zvQ8R+OPuQIO7 Mccgg5Nw==; 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 1qipek-001tym-2K; Wed, 20 Sep 2023 05:21:46 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chris Zankel , Max Filippov Subject: [PATCH 16/16] xtensa: boot/lib: add missing prototypes for functions Date: Tue, 19 Sep 2023 22:21:39 -0700 Message-ID: <20230920052139.10570-17-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 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777532997020351998 X-GMAIL-MSGID: 1777532997020351998 Add function prototypes for exit(), zalloc(), and gunzip() to the boot library code. arch/xtensa/boot/lib/zmem.c:8:6: warning: no previous prototype for 'exit' [-Wmissing-prototypes] 8 | void exit (void) arch/xtensa/boot/lib/zmem.c:13:7: warning: no previous prototype for 'zalloc' [-Wmissing-prototypes] 13 | void *zalloc(unsigned size) arch/xtensa/boot/lib/zmem.c:35:6: warning: no previous prototype for 'gunzip' [-Wmissing-prototypes] 35 | void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp) Fixes: 4bedea945451 ("xtensa: Architecture support for Tensilica Xtensa Part 2") Fixes: e7d163f76665 ("xtensa: Removed local copy of zlib and fixed O= support") Signed-off-by: Randy Dunlap Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/boot/lib/zmem.c | 4 ++++ 1 file changed, 4 insertions(+) diff -- a/arch/xtensa/boot/lib/zmem.c b/arch/xtensa/boot/lib/zmem.c --- a/arch/xtensa/boot/lib/zmem.c +++ b/arch/xtensa/boot/lib/zmem.c @@ -5,6 +5,10 @@ extern void *avail_ram, *end_avail; +void exit (void); +void *zalloc(unsigned size); +void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp); + void exit (void) { for (;;);