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 */