pci: __FUNCTION__ is gcc-specific, use __func__
PATCH 1/1 pci: __FUNCTION__ is gcc-specific, use __func__
Signed-off-by Harvey Harrison <[email protected]>
---
I guess checkpatch isn't a string enough warning :-/
drivers/pci/pci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/pci/pci.c +2 -2
@@ -651,7 +651,7 @@ static int pci_save_pcie_state(struct pci_dev *dev) save_state =pci_find_saved_cap (dev,PCI_CAP_ID_EXP );if (!save_state) { -dev_err (&dev->dev,"buffer not found in %s\n" , __FUNCTION__); +dev_err (&dev->dev,"buffer not found in %s\n" , __func__);return -ENOMEM ; } cap = (u16 *)&save_state->data[0 ];
@@ -694,7 +694,7 @@ static int pci_save_pcix_state(struct pci_dev *dev) save_state =pci_find_saved_cap (dev,PCI_CAP_ID_PCIX );if (!save_state) { -dev_err (&dev->dev,"buffer not found in %s\n" , __FUNCTION__); +dev_err (&dev->dev,"buffer not found in %s\n" , __func__);return -ENOMEM ; }
Signature · 1 line
1.6.1.94.g9388
Jesse Barnes
AppliedQuoted 3 lines · Harvey Harrison
Signed-off-by Harvey Harrison <[email protected]>---
I guess checkpatch isn't a string enough warning :-/
Applied, thanks.
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center