Received: by 2002:a05:7412:1492:b0:e2:908c:2ebd with SMTP id s18csp392298rdh; Wed, 23 Aug 2023 03:12:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoq4+iq6o7mdsgA1Q3AHOWwwaBG5dDyRnFInoiQLrZz6OyTG7QgARNGrSyb0q00ECiJD0r X-Received: by 2002:a05:6358:9925:b0:135:57d0:d173 with SMTP id w37-20020a056358992500b0013557d0d173mr12109691rwa.20.1692785571134; Wed, 23 Aug 2023 03:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692785571; cv=none; d=google.com; s=arc-20160816; b=rcD/2t0GbbtpiSUOlYocodwjTrV2tvjN/QaZ6a+C0fC5EqRw5VPQ/sx2wmtbxvfcR2 GRxWa4hV3jx0cEUTQJ5oL2LJZjxTAw6ZjKR1PQMpHipaEjej9W7DCs9ASRnqrS16L+5C JyNNV7oP1nztNvpcRoUXqCAAQTinWErWl6IbUg1fH18fsPGvzHgnUKAj1uVouEykjvmX UCvgvEWv4pn7JeCoEheWAvY9Nf51w7qGzLUNPYjEm7g7ShrP6YWWscEKSZ056sbGyCen irxLR5Fh7vvsAdgIcgesYrpFlGP9N4Z/49umudjrSWfBlx8KAVhlBH/m1orKKIu3Erl4 WQqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ZXFrwzCPZpjmPe0jGsBW0zhL8FGGi+rHIxlG2RCSp3M=; fh=A+lSw1/7G55Gz+cwp7gZq9XBOrbWTTH+07ixAvpVDOk=; b=TaHV6K6hNrZSdr4U5pgFIhQ+CUUcFcwQcDgcZPA6T7YGPgV1lAJ3yhElFpZXmgF+DQ Pv/4MjrnOAjVkuq4Vy0Oi8ItwtlHnnMPfaLBJpVMAwkYvJwB3NTmxvo+qnbTUABM0dVF 57KGjz4mJUfQxvpNYb1vmEqen8SBWRg0Kkut4TlgyN59rL5elPNqPkK6DK+YULaj/nJm HlNRuVLVA3Oz2oDH5w4U3s1GxoI0iozR7sAqfs7GmVa4lJh1TRcYB64jQstpwqeG9Cyp xOjBGknFid2zrABvekEOP8dx2+HVJnhSIyk05ZTpWXKYC87/afA8M5C3ZY1rWZNPgaP7 YEQg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r145-20020a632b97000000b005640118d203si3183953pgr.193.2023.08.23.03.12.15; Wed, 23 Aug 2023 03:12:51 -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; 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 S232228AbjHWFmK (ORCPT + 99 others); Wed, 23 Aug 2023 01:42:10 -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-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: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no 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 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.