Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp460061imm; Wed, 26 Sep 2018 01:25:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV61MymLJ6bsZxDx8sGqcR7iFFELN9UXqZmC+9GMxDvPh+NP8YY4KVT6f8o1VzNCs87vX7vDH X-Received: by 2002:a62:670a:: with SMTP id b10-v6mr5084952pfc.243.1537950321007; Wed, 26 Sep 2018 01:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537950320; cv=none; d=google.com; s=arc-20160816; b=iFOxCXjntp0uvL3zi8RD8Jzp8tGXS141GGgDQ3iYAHe04UvUHGdLzSQzz6yw6rNi35 dUngxwvO6g0tN5TuWKa6y8CQ9XFHan63YRnplVZ6k5zvg+eudzARSRFFlK9Fl8FABTgD zx68LqvKmi3ktlUZTAbZ1mDgf6yEpJ5Jolu7wOHDcuwOTQdHJtK0sY7TiA/FidOrAHPB dQqK1PtDa7KeRRs+N7RLhg6nPBGuXthXW7chqgOwuLNDlaNMFknDapnSwwHgkKddLEep wLQFNwjwFofBi+lJbFY7jpc6oNRxGmHx4qfX1qjvRAA6ZICHUk8QzDOfToxf6/IdBZca kVcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=qDfNHVs2DLuh59wWdKITWc4LEl4mcnDQSE0gDW7XoBY=; b=uxF15wG7WrJcB3Nuf7WgF2ljQ/yTrqZqT89K/kb3af8rI17NNKtHVYXwM5eRy0ZCds fLohHTMkJxRInuaWiq2j8mXk2mrzYuplO8OJlz2zKFaBakyugXRButG4qoRuzITsX3i6 r6Lszq3DhOVAX3VD9K6jzs3b2JJH2gvXzgH8O+Er2cuVdYQncrJTjfAHdM9j+levHwym z0oJSEz7wYFSywnyEGEp3hQtsiEgHjUSaxs8mIA/TWVO00dDdb0uj1rjlIMpqksfw9p7 bgFY4P/RtzEncMdYPf1DwINhZKMHPyA46v63vvQNJIr7BjcoC9+7R+ExjXDDzhCmzM9u wIwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12-v6si4732832plc.332.2018.09.26.01.25.05; Wed, 26 Sep 2018 01:25:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727501AbeIZOff (ORCPT + 99 others); Wed, 26 Sep 2018 10:35:35 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:48605 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbeIZOfe (ORCPT ); Wed, 26 Sep 2018 10:35:34 -0400 Received: from [217.9.97.180] (helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1g556m-0001KK-Fp; Wed, 26 Sep 2018 10:23:44 +0200 Date: Wed, 26 Sep 2018 10:23:44 +0200 (CEST) From: Thomas Gleixner To: Yi Sun cc: linux-kernel@vger.kernel.org, x86@kernel.org, chao.p.peng@intel.com, chao.gao@intel.com, isaku.yamahata@intel.com, michael.h.kelley@microsoft.com, tianyu.lan@microsoft.com, "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger Subject: Re: [PATCH v2 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V In-Reply-To: <1537514712-62434-3-git-send-email-yi.y.sun@linux.intel.com> Message-ID: References: <1537514712-62434-1-git-send-email-yi.y.sun@linux.intel.com> <1537514712-62434-3-git-send-email-yi.y.sun@linux.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Sep 2018, Yi Sun wrote: > static inline int hyperv_flush_guest_mapping(u64 as) { return -1; } > +void __init hv_init_spinlocks(void) {} That stub want's to be static inline void hv_.... But as the code which uses it is ifdef guarded anyway, you don't need it at all. We add stub functions to avoid te ifdeffery in the code so the compiler can optimize them out, but if the ifdef guards are required for other reasons, then providing the stub for nothing is a pointless exercise. Thanks, tglx