Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1126312ybl; Fri, 16 Aug 2019 09:17:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1GhS+8zl2NT4XGYmIaUv/CAfmCMjCm0iQDcLdZ+GbX+rjgOotLdRZNVSoIdmv584ICX0M X-Received: by 2002:a17:90a:fa82:: with SMTP id cu2mr8227753pjb.85.1565972240969; Fri, 16 Aug 2019 09:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565972240; cv=none; d=google.com; s=arc-20160816; b=LZ+Z609P0xJ2ZaLsONTyt/6S1wU7KX7tVc/zPShccFkqyJXNeOgtVd336to7xeF5DY YjvYzRkWoC93ln+angYwDeCWhyhjuZTmFKXaWW5XRbsSZB2MM3Ku69hy/gnoYc1monlB eihu98QIEs9wMaCufAjP7FdL+yUjb+Vt/FBV94KWcarRf0JEtO9mbYpu/BL6Bk1Z/Gdl rxjSptSjIhkzenuviv7fBotSqaW4nCZkihT5nxrijtmJJ9uamuC7PLl9X+bDg9AKj5Az 2JXurCXttPvoHRi7Nz2sruff0vx1V8he7olpmIWvPva9wZRQrklX0+2I4BUjLwvsk1G1 xkbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=aXOWm885zlSQjaOTNsiB6ixyEYYi9R71KVEE87CvUak=; b=OHkwCsfCFggiayol9lPsINp+qFnHYoFeZJsJyImDqeP7tPqvWkWCRCtT7t8YtDm9i7 5XTaGSep2wrcw0i/DWk7KFeYn6hWB1qjlkLXEUxCwjIqC49zmzSAe1scW6FqmypFzL9A KMltF+2RsqY23maz7Zum1yicjgr1K4k7buxUWdjz7wO5I4KP1flvS0WNPNmPs7CiACEv 5IDuLOT68QRhWoluxUYtpDR/RjRVhF0g2BNG0Hq5k4wwuBtthQ6avIi+W6oAc2ue9SHm s+UESyEvVp+JUxHajGb0SPVnLE4F7GfJzoVt20YSvy6+VggNLNM8L6Laa4k3jy2znuLq j+rQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l184si4035245pgd.203.2019.08.16.09.17.05; Fri, 16 Aug 2019 09:17: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbfHPQQV (ORCPT + 99 others); Fri, 16 Aug 2019 12:16:21 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:42697 "EHLO mail-wr1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbfHPQQU (ORCPT ); Fri, 16 Aug 2019 12:16:20 -0400 Received: by mail-wr1-f47.google.com with SMTP id b16so2051457wrq.9 for ; Fri, 16 Aug 2019 09:16:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=aXOWm885zlSQjaOTNsiB6ixyEYYi9R71KVEE87CvUak=; b=h4DtxmSlUw9TqH7zxEdjC2JI/DRm8fztqIoAjXImuS+eBIecleeCG4Juf3kxuhV9NB jTRjtD6Sw1nTopBNt6iLSCtyHQzKnJhz8wxJHbQ1B5bdg58/o8ptWEG0IwtfeJ2iD8Ir FMli7+OdEVU2qDOn9vPkWC1GH/CWg/PsJ0yf5SqjkZhZ+H/CNA2o2MpGh+OGqtGoQoy0 +VgLJtZP0bqVcnHpZhEY7EzIrpTTvqjidyD6UD8iUqKVrl9PV2gMWOLxyyfaqZUyxE+f +EeBTU7T8B3rKnHPpV59DQFymgViuLN5EMWGuzPHSFRmPk0alI3fQwxasL3jOl7NrmWc rF8w== X-Gm-Message-State: APjAAAWIHImWXLgUEWgWNVpOfnimUOmulujWWxO+cdU7lCfIFAg8rSNf IVZqa9xsppXYbmkNn1yama9EIg== X-Received: by 2002:a5d:6b84:: with SMTP id n4mr12261415wrx.118.1565972178874; Fri, 16 Aug 2019 09:16:18 -0700 (PDT) Received: from vitty.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id f70sm8693222wme.22.2019.08.16.09.16.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2019 09:16:18 -0700 (PDT) From: Vitaly Kuznetsov To: Haiyang Zhang Cc: KY Srinivasan , Stephen Hemminger , "linux-kernel\@vger.kernel.org" , "sashal\@kernel.org" , "davem\@davemloft.net" , "saeedm\@mellanox.com" , "leon\@kernel.org" , "eranbe\@mellanox.com" , "lorenzo.pieralisi\@arm.com" , "bhelgaas\@google.com" , "linux-pci\@vger.kernel.org" , "linux-hyperv\@vger.kernel.org" , "netdev\@vger.kernel.org" Subject: RE: [PATCH net-next, 2/6] PCI: hv: Add a Hyper-V PCI mini driver for software backchannel interface In-Reply-To: References: <1565809632-39138-1-git-send-email-haiyangz@microsoft.com> <1565809632-39138-3-git-send-email-haiyangz@microsoft.com> <878srt8fd8.fsf@vitty.brq.redhat.com> Date: Fri, 16 Aug 2019 18:16:17 +0200 Message-ID: <871rxl84ry.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Haiyang Zhang writes: > > The pci_hyperv can only be loaded on VMs on Hyper-V and Azure. Other > drivers like MLX5e will have symbolic dependency of pci_hyperv if they > use functions exported by pci_hyperv. This dependency will cause other > drivers fail to load on other platforms, like VMs on KVM. So we created > this mini driver, which can be loaded on any platforms to provide the > symbolic dependency. (/me wondering is there a nicer way around this, by using __weak or something like that...) In case this stub is the best solution I'd suggest to rename it to something like PCI_HYPERV_INTERFACE to make it clear it is not a separate driver (_MINI makes me think so). -- Vitaly