From patchwork Tue May 16 19:35:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94876 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp659203vqo; Tue, 16 May 2023 12:38:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6o3YqX4MOPxFYzWqypYa3M9j2Kzix77frvmRpvZSYXqYu3XqpmFoxeDpqSGFN7Qlph2n6G X-Received: by 2002:a17:90a:dd8d:b0:252:98ca:e7ac with SMTP id l13-20020a17090add8d00b0025298cae7acmr17854053pjv.44.1684265913091; Tue, 16 May 2023 12:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684265913; cv=none; d=google.com; s=arc-20160816; b=dRbQIB6GFHlGYI9wKGSGi2Ua2baQVQ8ICXMbWOixwlj+D+frOvyt/C33XqC/aDLwpc fMdFAnJVieVZpxnxHL4/iYQV6E4ecWrN1aO5H2P6Zv8ywM41exapW/9MR9EwKj3UrX5I DS8GVWfKJTXanob3d0epPJKzUddfctwJ3Pi8gvkyWU3ayShHbytPLWSoosOYy21KqGvp IrFcB3XWyaNjtfnW7cMeX0tNxUBneg6HnnslI1mkcRXaRx/Uqf+MinV79eU3TV7ij8Wg qXfzh46XjSnWxLq8dP6ovU8amWoK0V3y/BTDYfLoX4jqF9rtMg/ENqBc7Y7NOg/zKbB1 bU5A== 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=Xa60m0BkwxL0YwOhVNV3DLj0coMVCK/xcT0wZKHwjqI=; b=FcBesHt5pGEWJPJ7SQL4BX2C4ayfoZEK2nov8Pd18DZKM638yx8E5nvUEspDHFQERD RMCoCw5aoAXQtkJKNftRSAVWz6nN+e8ns31vYZZiqZ4PPSFWJHZPiLDTOaCh8Uy1s3Sj v3aiRLaj0Tm0iR1+90i1K/543REUao/wDneZfdtWNHWoJJD/lBGk9qgsQ1ykunvQITay t9ywHyMX4XRFiJzeYT+U4s6DLNx0Jkwzh0D+nPY56PN27xvCFAJ94ATXZEup+u/Gw+vr lT+P+3p9PXcaMjy5j+oKky/bNw1qA1DQKslHrxetJFca7l8GlRe3sMwjLBRSXmDv728U iySg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f0SoTDZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o22-20020a17090ad25600b0024e0361745csi58707pjw.186.2023.05.16.12.38.19; Tue, 16 May 2023 12:38:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f0SoTDZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229988AbjEPThP (ORCPT + 99 others); Tue, 16 May 2023 15:37:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjEPThO (ORCPT ); Tue, 16 May 2023 15:37:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C1B6B9; Tue, 16 May 2023 12:36:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C1BB563E89; Tue, 16 May 2023 19:36:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98313C433A4; Tue, 16 May 2023 19:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265804; bh=LoIviGdfSLH1ko7JOljz+WAWBtvFrxU7baITA30Kitg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f0SoTDZCBXANhO1JcRHoynXaLVhlO4XJ4vTd5g+5q0mXl9+dwihXQSjEJ2aF5PXD/ YJxxo2zEzGeYvPkjnpK4ydF8PNotm4sCoP7sIPFgPh0+jYX3ClFJbP9hWa/pr/81FH rmiMLwAicNzJUMwErqx6DSJsta/whdlp/sC/tZT1cvxj5paHYr0r+8Nyyo5u5xkv5T 3r84XCOMO59rOsDFBM8wNIcW0zhbFHV1ety++q1mSUr8ScvUEZcAnGwKVpfu1h2uwR waDu2tWolCE9YEYKKmG7d67vPlyLJ4ZYk6cOavjtt4C56mPdY+e8uvRCKegTvnFXKC xnJG4ywBEjUvw== From: Arnd Bergmann To: x86@kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Juergen Gross , "Srivatsa S. Bhat (VMware)" , Alexey Makhalov , VMware PV-Drivers Reviewers , Peter Zijlstra , Darren Hart , Andy Shevchenko , Boris Ostrovsky , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-pci@vger.kernel.org, platform-driver-x86@vger.kernel.org, xen-devel@lists.xenproject.org, linux-pm@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 06/20] x86: math-emu: include asm/fpu/regset.h Date: Tue, 16 May 2023 21:35:35 +0200 Message-Id: <20230516193549.544673-7-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516193549.544673-1-arnd@kernel.org> References: <20230516193549.544673-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766080814193254702?= X-GMAIL-MSGID: =?utf-8?q?1766080814193254702?= From: Arnd Bergmann The fpregs_soft_set/fpregs_soft_get functions are declared in a header that is not included in the file that defines them, causing a W=1 warning: /home/arnd/arm-soc/arch/x86/math-emu/fpu_entry.c:638:5: error: no previous prototype for 'fpregs_soft_set' [-Werror=missing-prototypes] 638 | int fpregs_soft_set(struct task_struct *target, | ^~~~~~~~~~~~~~~ /home/arnd/arm-soc/arch/x86/math-emu/fpu_entry.c:690:5: error: no previous prototype for 'fpregs_soft_get' [-Werror=missing-prototypes] 690 | int fpregs_soft_get(struct task_struct *target, Include the file here to avoid the warning. Signed-off-by: Arnd Bergmann --- arch/x86/math-emu/fpu_entry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/math-emu/fpu_entry.c b/arch/x86/math-emu/fpu_entry.c index 7fe56c594aa6..91c52ead1226 100644 --- a/arch/x86/math-emu/fpu_entry.c +++ b/arch/x86/math-emu/fpu_entry.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "fpu_system.h" #include "fpu_emu.h"