Received: by 10.213.65.68 with SMTP id h4csp194466imn; Tue, 13 Mar 2018 00:45:18 -0700 (PDT) X-Google-Smtp-Source: AG47ELvpBhxU1tGiPIvf9nb5FNnrIWRfJoAfuoJ+jVyw8j76RVoGuWEfiaLEw+7V8yL3eFlnRuWB X-Received: by 10.99.97.149 with SMTP id v143mr3055221pgb.319.1520927118448; Tue, 13 Mar 2018 00:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520927118; cv=none; d=google.com; s=arc-20160816; b=I5y0tswkKhwwQJnjHIWfyCOUzoxaylujt7OGdBkh98zlYAfP8TYW82PAVIaSHOsQ1O 2830Idcq5HLm2XYm6tiZRB1zP+S1uAMOibiYQqjn0UedRWmZJ9ZXQYnQmQBWfGr1vl+D mkcTT6NNCF5WoebQe7IVLZ9ShXCCUhAKhnaIgdw3bBbICvSP+E1SFBpzsyqHAocM8WHK /+j96kRY+bkuf6MnGz8oZZ5tw+yXxr1alIS7k2Z+FQzQ3hfai/V/5GcZsbCVtgBUNwZH SMUmauGyAxiaW15B9OYVYdX8EUBg28BmBTJCXR8Pm1fLSjzSj3LWBoKXjdig2L1sPw4I sGJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=0HTciFk/LwiKlhooeYdKrgiIXOsDfDfRyBUYYAhbA+8=; b=G/jfzlOL0zarcOqqkWIq+opfOOfyp1+rneFaSA7WXEmoEmMKb2ailvSTjq/t+Ju40Q TXY3IjWfUZ3BIUNrenRBpLNTyi7N68iQKI3+JvcBAv2snqwKsPAP7v3Eyz6XUZiJP7MK 3JlhMYHjOYht8sVVHiQjeXJwQoyafl7swy891GqsBeZup3rGp/OpOfg1A+MamXUlHpDC Mm6a/T7RA8EPhRCcDx6JNJf7CEDDEkKpIUc8WeNMHUG3LRSX+m++kCik7cuVtjmE7Rg3 JWpYcqDX35sOJ4ZMwGN3o2Ake4cg5yPDTj01ETSefV4mIQHD8dwwyerxLlLRB4eckywL wPxw== 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 z10si6161286pgz.803.2018.03.13.00.45.03; Tue, 13 Mar 2018 00:45:18 -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 S1752130AbeCMHoJ (ORCPT + 99 others); Tue, 13 Mar 2018 03:44:09 -0400 Received: from verein.lst.de ([213.95.11.211]:56466 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751830AbeCMHoH (ORCPT ); Tue, 13 Mar 2018 03:44:07 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id BBA607F12C; Tue, 13 Mar 2018 08:44:05 +0100 (CET) Date: Tue, 13 Mar 2018 08:44:05 +0100 From: Christoph Hellwig To: Alexander Duyck Cc: Keith Busch , Bjorn Helgaas , "Duyck, Alexander H" , linux-pci@vger.kernel.org, virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org, Netdev , "Daly, Dan" , LKML , linux-nvme@lists.infradead.org, netanel@amazon.com, Maximilian Heyne , "Wang, Liang-min" , "Rustad, Mark D" , David Woodhouse , Christoph Hellwig , dwmw@amazon.co.uk Subject: Re: [pci PATCH v5 1/4] pci: Add pci_sriov_configure_simple for PFs that don't manage VF resources Message-ID: <20180313074405.GA32480@lst.de> References: <20180312171813.3487.94803.stgit@localhost.localdomain> <20180312172031.3487.20651.stgit@localhost.localdomain> <20180312174012.GE18494@localhost.localdomain> <20180312182321.GG18494@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 12, 2018 at 01:17:00PM -0700, Alexander Duyck wrote: > No, I am aware of those. The problem is they aren't accessed as > function pointers. As such converting them to static inline functions > is easy. As I am sure you are aware an "inline" function doesn't > normally generate a function pointer. I think Keith's original idea of defining them to NULL is right. That takes care of all the current trivial assign to struct cases. If someone wants to call these functions they'll still need the ifdef around the call as those won't otherwise compile, but they probably want the ifdef around the whole caller anyway.