Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6534150rwd; Mon, 5 Jun 2023 20:53:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4c02G+m6USSwOC9ZIonpF5Yf92PDdwqYLv+vomBgU7wJEktgR+sLaU+yYWV801T4wqq3oc X-Received: by 2002:a05:620a:2796:b0:75d:5397:bde5 with SMTP id g22-20020a05620a279600b0075d5397bde5mr738920qkp.36.1686023620961; Mon, 05 Jun 2023 20:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686023620; cv=none; d=google.com; s=arc-20160816; b=Q+JuJ5ttIWuSYlsMPEZl3oJ9MXrWt3FdbiYS2dGkWDeg1IiYxU+XySb9aonwtmNVnV jg7LGKGja/xR98jUVQv9obDGXtKeyFEGuVwnYEE2hJXULYZCKkMgGOm+yuwKwR18lrFf ExM9FYjw9VuldknRKPmozrVc+j4rOBSG3j3PFonoq50epSnMItQbzSHJOBEDzFbTOiYG jvxDDXJBYHEao71XoNpvlnhxR7rdI5J0lI8jxtYyuhyxwA6wBl+M4ADRO/0qLl1TjXja xFksn1MvDJ4RimvDYGJhxAKJdXDvLyl+3k4f1hwArTParKtRkdOq9nkhch9MTKTLMcce HIvQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=7owYOGk8oRpdHDHIbZHlEZuh++2fw2GYHoTKjKAdlts=; b=rg8g7khShHGoxOC7kncYF4KNeLZVWSrtYg7aK050ma4JIzsAMLR+4guPdafT/LWQ2F QZcntjwsge/hpOguyg/J3wShuhzmG8PnWwJetBvrAdPN7MT5X6WjrHis7DjkyMhswkZb qaW4RbVSIIxg962WuLpRI/dR0WcMbz+QNLM9R4klsWDmdYWBtc7cWqZ09UuUig8SyK3o OAe7JZTfaRuQhWq3tXJMcwFalEdE5NU9qD2kFeR52hK9KYF41QUiGhzcSz60YIjD9uel EkGDJzRpgCqFxAVJpuA3utQKsIQXILcKcn4Am9zwRBXcQlh6lgWha+n64SdbP4Riklei feSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RhZxegZj; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c28-20020a05620a11bc00b007578bbbff80si5431679qkk.223.2023.06.05.20.53.26; Mon, 05 Jun 2023 20:53:40 -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=@intel.com header.s=Intel header.b=RhZxegZj; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233187AbjFFDk4 (ORCPT + 99 others); Mon, 5 Jun 2023 23:40:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233779AbjFFDkv (ORCPT ); Mon, 5 Jun 2023 23:40:51 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 420631BF for ; Mon, 5 Jun 2023 20:40:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686022843; x=1717558843; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=nFLHxFEm3u0GWuWSqbjdKs9lBf/QVQCUmYEP1/nyvz8=; b=RhZxegZjVvYuBejUROa+i0OlNqcGxd0XbFR0afRx6pKDpAbFPa7RQgkB WVhI6SjZqboOX6BgQHJQU9MrFdccNYF7TM42qhKzcYqwxYhtdi0wWUCuq F0cpDqBeJf5clGbBLxngePzWKhExdWDXKMtHmTwHpyaHnpr0pVeh+jgMQ S6px9niNCLjKJC5/pMjKrKyQDe2Zn1tHOueMP78hYTjEA7PzKCtCyKVh7 nF8iPBv8I23dN8hZ+fZuhrQgW9Z4I78wJj8TAo1qCMS2TFNdkHI3D9bGX f9MA9Hpyb//Ui1t8yjU5rGk8P9iiYba9kVupV8+e02cEWlFmcFOBJ+2gO w==; X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="341192090" X-IronPort-AV: E=Sophos;i="6.00,219,1681196400"; d="scan'208";a="341192090" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2023 20:40:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="853237591" X-IronPort-AV: E=Sophos;i="6.00,219,1681196400"; d="scan'208";a="853237591" Received: from nataliai-mobl1.amr.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.209.159.2]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2023 20:40:23 -0700 From: Kai Huang To: linux-kernel@vger.kernel.org Cc: Kai Huang , Dave Hansen , Kuppuswamy Sathyanarayanan , "Kirill A . Shutemov" , Isaku Yamahata Subject: [PATCH] x86/tdx: Explicitly include in Date: Tue, 6 Jun 2023 15:40:00 +1200 Message-Id: <20230606034000.380270-1-kai.huang@intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Currently, in tdx_kvm_hypercall() simply returns -ENODEV when TDX guest isn't enabled in the Kconfig w/o having header explicitly included. Although the current code doesn't have build error, in general it is a good practice to explicitly include the header to make sure any future patch which uses won't get build error due to error code not being defined. Fixes: cfb8ec7a31f2 ("x86/tdx: Wire up KVM hypercalls") Suggested-by: Dave Hansen Cc: Kuppuswamy Sathyanarayanan Cc: Kirill A. Shutemov Cc: Dave Hansen Cc: Isaku Yamahata Signed-off-by: Kai Huang --- arch/x86/include/asm/tdx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/tdx.h b/arch/x86/include/asm/tdx.h index 28d889c9aa16..0f303c9abee8 100644 --- a/arch/x86/include/asm/tdx.h +++ b/arch/x86/include/asm/tdx.h @@ -5,6 +5,7 @@ #include #include +#include #include #include base-commit: 122333d6bd229af279cdb35d1b874b71b3b9ccfb -- 2.40.1