From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2482EE49AD for ; Wed, 23 Aug 2023 05:42:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232693AbjHWFmL (ORCPT ); Wed, 23 Aug 2023 01:42:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230354AbjHWFmJ (ORCPT ); Wed, 23 Aug 2023 01:42:09 -0400 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CAECCD2; Tue, 22 Aug 2023 22:42:08 -0700 (PDT) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1bc0d39b52cso35058455ad.2; Tue, 22 Aug 2023 22:42:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692769328; x=1693374128; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZXFrwzCPZpjmPe0jGsBW0zhL8FGGi+rHIxlG2RCSp3M=; b=Ms31qEFuQl9uTvAbizJ2kesyPBtubDRBNJTrQzC0nc3DOyA8vE3K2dZ36x9/euikY/ cFVBPNv/O2JvL5rrB7SgOeEWe9FquDkEaRzoDSBHWC8GJiPi3zxnBfVM5RgiFexNhgFX eAdz6EqhDacJmQF4rk37bK2c3IvphODX4Vl+oApUpPtyXd14Jq6Ml49fayRpry1iI0Pj K379yfgP4C19ry2BGrqUbSuqXRxS3ayA/8ng77YvmXKqheUyBKETV8xhcxSlkhsVSRgy eqo2vkYP6OKPrahfhvLFu2y3hHRuQgCoKh59rm47eKcCt4Lfc8b/cr6xpvD8gXjykoZ5 1yww== X-Gm-Message-State: AOJu0YwuZkgDFeU77mOwlipDKISHbKXNPRjAfQh304juWRkjM/MuAP+t W4csSvjpS/vwtc5UDe0BE8EoV0cKsls= X-Google-Smtp-Source: AGHT+IHwWwyNqcwGFCJcai2/Zp8Qf19N7YHZ3EX/92MJSUq1BAhBTsJMXS48VcMQTbv2Y9ewFWaqQg== X-Received: by 2002:a17:902:6b47:b0:1b8:b3f0:3d57 with SMTP id g7-20020a1709026b4700b001b8b3f03d57mr8432370plt.31.1692769327722; Tue, 22 Aug 2023 22:42:07 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id jw15-20020a170903278f00b001b9d7c8f44dsm9962498plb.182.2023.08.22.22.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 22:42:07 -0700 (PDT) Date: Wed, 23 Aug 2023 05:41:46 +0000 From: Wei Liu To: Dexuan Cui Cc: Nathan Chancellor , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , "linux-hyperv@vger.kernel.org" , "x86@kernel.org" , "Michael Kelley (LINUX)" , Tianyu Lan , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" Subject: Re: [PATCH] x86/hyperv: Add missing 'inline' to hv_snp_boot_ap() stub Message-ID: References: <20230822-hv_snp_boot_ap-missing-inline-v1-1-e712dcb2da0f@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 23, 2023 at 01:00:55AM +0000, Dexuan Cui wrote: > > From: Nathan Chancellor > > Sent: Tuesday, August 22, 2023 11:26 AM > > [...] > > When building without CONFIG_AMD_MEM_ENCRYPT, there are several > > repeated instances of -Wunused-function due to missing 'inline' on > > the stub of hy_snp_boot_ap(): > > > > In file included from drivers/hv/hv_common.c:29: > > ./arch/x86/include/asm/mshyperv.h:272:12: error: 'hv_snp_boot_ap' > > defined but not used [-Werror=unused-function] > > 272 | static int hv_snp_boot_ap(int cpu, unsigned long start_ip) { return > > 0; } > > | ^~~~~~~~~~~~~~ > > cc1: all warnings being treated as errors > > > > Add 'inline' to fix the warnings. > > > > Fixes: 44676bb9d566 ("x86/hyperv: Add smp support for SEV-SNP guest") > > Signed-off-by: Nathan Chancellor > > Reviewed-by: Dexuan Cui Applied. Thanks.