EDAC: add parameters to edac stub macros
PATCH 1/1 EDAC: add parameters to edac stub macros
cppcheck reports this error
[drivers/edac/amd8111_edac.c:175]: (error) failed to expand 'edac_pci_handle_npe',
Wrong number of parameters for macro 'edac_pci_handle_npe'.
cppcheck is testing the stubs which do not have parameters. Add parameters to match function call.
Signed-off-by Tom Rix <[email protected]>
--- drivers/edac/edac_module.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/edac/edac_module.h +2 -2
@@ -117,8 +117,8 @@ extern void edac_pci_handle_npe(struct edac_pci_ctl_info *pci,#define edac_sysfs_pci_teardown ()#define edac_pci_get_check_errors ()#define edac_pci_get_poll_msec () -#define edac_pci_handle_pe () -#define edac_pci_handle_npe () +#define edac_pci_handle_pe (pci, msg) +#define edac_pci_handle_npe (pci, msg)#endif /* CONFIG_PCI */ #endif /* __EDAC_MODULE_H__ */
Signature · 1 line
2.27.0