✗ CI.checkpatch: warning for PCI: VF resizable BAR (rev9)

Patchwork patchwork at emeril.freedesktop.org
Wed Jul 2 11:13:08 UTC 2025


== Series Details ==

Series: PCI: VF resizable BAR (rev9)
URL   : https://patchwork.freedesktop.org/series/138887/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
f8ff75ae1d2127635239b134695774ed4045d05b
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 7e6589a2333722a6cb74cf67ece2b97b74bfbfc1
Author: Michał Winiarski <michal.winiarski at intel.com>
Date:   Wed Jul 2 11:35:22 2025 +0200

    PCI: Allow drivers to control VF BAR size
    
    Drivers could leverage the fact that the VF BAR MMIO reservation is
    created for total number of VFs supported by the device by resizing the
    BAR to larger size when smaller number of VFs is enabled.
    
    Add a pci_iov_vf_bar_set_size() function to control the size and a
    pci_iov_vf_bar_get_sizes() helper to get the VF BAR sizes that will
    allow up to num_vfs to be successfully enabled with the current
    underlying reservation size.
    
    Signed-off-by: Michał Winiarski <michal.winiarski at intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>
+ /mt/dim checkpatch e46fcd77ceacb06a5411cb77b7344d6b82e1ab72 drm-intel
059d3c165659 PCI/IOV: Restore VF resizable BAR state after reset
-:115: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#115: FILE: drivers/pci/pci.h:745:
 }
+static inline u16 pci_iov_vf_rebar_cap(struct pci_dev *dev)

total: 0 errors, 0 warnings, 1 checks, 106 lines checked
43ae323d2285 PCI: Add a helper to convert between VF BAR number and IOV resource
-:112: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#112: FILE: drivers/pci/pci.h:725:
 }
+static inline int pci_resource_num_from_vf_bar(int resno)

-:116: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#116: FILE: drivers/pci/pci.h:729:
+}
+static inline int pci_resource_num_to_vf_bar(int resno)

-:127: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#127: FILE: drivers/pci/pci.h:761:
 }
+static inline int pci_resource_num_from_vf_bar(int resno)

-:132: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#132: FILE: drivers/pci/pci.h:766:
+}
+static inline int pci_resource_num_to_vf_bar(int resno)

total: 0 errors, 0 warnings, 4 checks, 111 lines checked
00c25094bce9 PCI: Allow IOV resources to be resized in pci_resize_resource()
-:93: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#93: FILE: drivers/pci/pci.h:756:
 }
+static inline void pci_iov_resource_set_size(struct pci_dev *dev, int resno,

total: 0 errors, 0 warnings, 1 checks, 127 lines checked
f4165eff7ab7 PCI/IOV: Check that VF BAR fits within the reservation
7e6589a23337 PCI: Allow drivers to control VF BAR size
-:73: WARNING:ENOTSUPP: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP
#73: FILE: drivers/pci/iov.c:1348:
+		return -ENOTSUPP;

total: 0 errors, 1 warnings, 0 checks, 105 lines checked




More information about the Intel-xe mailing list