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 X-Spam-Level: X-Spam-Status: No, score=-6.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39C5BC433E0 for ; Tue, 26 Jan 2021 19:06:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0284D22228 for ; Tue, 26 Jan 2021 19:06:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727864AbhAZRBB (ORCPT ); Tue, 26 Jan 2021 12:01:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:41176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729662AbhAZGCU (ORCPT ); Tue, 26 Jan 2021 01:02:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B397522A84; Tue, 26 Jan 2021 06:01:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611640899; bh=UJTUpQslFeeTwA/ZmcZRakfjPhEw6pZ2rj5imXYRts0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TrWdhnpwMrvgAp08gWlyJCXdRyA25BAJGGBA32snrUBjgj+p3vuJyLQpjvhrk//Is 9se71PPkl4ab2gO1B1ICfJmkAbg0aJftIdBLJocs7IXEe2bvM0X19bnOjoHYyzc+8p BOm8YyJpFmH+bP1bJl5wfy+R4HwhhmvkbTxEXi1PWiSVvWAZrx+9tUXgnFgxsDRL7A vbCQv524tsSXD2eO7FgRPuw/9RykCHMPVOxYL73lNcmSxLxoM6Msj58sQ2veI/ZCku wD0po+tXIsTc+H8gDPAZDZDd4QTlKLswety7jk6tOIgBtYGvuYXf0YRiJCMzUv9KXm Om7tX5fg8Mn8w== Date: Tue, 26 Jan 2021 08:01:35 +0200 From: Leon Romanovsky To: Jakub Kicinski , Joe Perches Cc: Bjorn Helgaas , Saeed Mahameed , Jason Gunthorpe , Alexander Duyck , linux-pci@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, Don Dutile , Alex Williamson , "David S . Miller" Subject: Re: [PATCH mlx5-next v4 1/4] PCI: Add sysfs callback to allow MSI-X table size change of SR-IOV VFs Message-ID: <20210126060135.GQ579511@unreal> References: <20210124131119.558563-1-leon@kernel.org> <20210124131119.558563-2-leon@kernel.org> <20210125135229.6193f783@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210125135229.6193f783@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Jan 25, 2021 at 01:52:29PM -0800, Jakub Kicinski wrote: > On Sun, 24 Jan 2021 15:11:16 +0200 Leon Romanovsky wrote: > > +static int pci_enable_vfs_overlay(struct pci_dev *dev) { return 0; } > > +static void pci_disable_vfs_overlay(struct pci_dev *dev) {} > > s/static /static inline / Thanks a lot, I think that we should extend checkpatch.pl to catch such mistakes. Joe, How hard is it to extend checkpatch.pl to do regexp and warn if in *.h file someone declared function with implementation but didn't add "inline" word? Thanks