PCI: mvebu: Use max_t() instead of max(resource_size_t,)
PATCH 1/1 PCI: mvebu: Use max_t() instead of max(resource_size_t,)
Use max_t() instead of max(resource_size_t,) in order to fix the following checkpatch warning.
WARNING: max() should probably be max_t(resource_size_t, SZ_64K, size)
WARNING: max() should probably be max_t(resource_size_t, SZ_1M, size)
--- drivers/pci/host/pci-mvebu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pci/host/pci-mvebu.c +2 -2
@@ -735,9 +735,9 @@ static resource_size_t mvebu_pcie_align_resource(struct pci_dev *dev,* aligned on their size */ if (res->flags &IORESOURCE_IO ) -return round_up (start,max ((resource_size_t )SZ_64K , size)); +return round_up (start,max_t (resource_size_t,SZ_64K , size));else if (res->flags &IORESOURCE_MEM ) -return round_up (start,max ((resource_size_t )SZ_1M , size)); +return round_up (start,max_t (resource_size_t,SZ_1M , size));else return start; }
Signature · 1 line
1.7.10.4
Quoted 10 lines · Jingoo Han
Use
max_t()instead ofmax(resource_size_t,)in order to fix the following checkpatch warning.WARNING:
max()should probably bemax_t(resource_size_t, SZ_64K, size)
WARNING:max()should probably bemax_t(resource_size_t, SZ_1M, size)Signed-off-by Jingoo Han <[email protected]>--- drivers/pci/host/pci-mvebu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
thx,
Jason.
Bjorn Helgaas
maintainerQuoted 7 lines · Jingoo Han
Use
max_t()instead ofmax(resource_size_t,)in order to fix the following checkpatch warning.WARNING:
max()should probably bemax_t(resource_size_t, SZ_64K, size)
WARNING:max()should probably bemax_t(resource_size_t, SZ_1M, size)Signed-off-by Jingoo Han <[email protected]>
Applied with Jason's ack to pci/host-mvebu for v3.14, thanks!
Bjorn
Quoted 24 lines
--- drivers/pci/host/pci-mvebu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/pci/host/pci-mvebu.c +2
-2@@ -735,9 +735,9 @@ static resource_size_t mvebu_pcie_align_resource(struct pci_dev *dev,* aligned on their size */ if (res->flags &IORESOURCE_IO ) -return round_up (start,max ((resource_size_t )SZ_64K , size)); +return round_up (start,max_t (resource_size_t,SZ_64K , size));else if (res->flags &IORESOURCE_MEM ) -return round_up (start,max ((resource_size_t )SZ_1M , size)); +return round_up (start,max_t (resource_size_t,SZ_1M , size));else return start; }Signature · 1 line
1.7.10.4