linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] EDAC: add parameters to edac stub macros
@ 2022-12-31 16:01 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2022-12-31 16:01 UTC (permalink / raw)
  To: bp, mchehab, tony.luck, james.morse, rric
  Cc: linux-edac, linux-kernel, Tom Rix

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 <trix@redhat.com>
---
 drivers/edac/edac_module.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/edac/edac_module.h b/drivers/edac/edac_module.h
index 50ed9f2425bb..fe6b4e004432 100644
--- a/drivers/edac/edac_module.h
+++ b/drivers/edac/edac_module.h
@@ -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__ */
-- 
2.27.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-31 16:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-31 16:01 [PATCH] EDAC: add parameters to edac stub macros Tom Rix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).