From 00c6eb6b68d9bc5abeabcd167882f5ef17f28143 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Mon, 15 Jan 2024 17:39:44 +1100 Subject: [PATCH] pif: Remove unused pif_name() function pif_name() has no current callers, although we expect some as we expand the flow table support. I'm not sure why this didn't get caught by one of our static checkers earlier, but it's now causing cppcheck failures for me. Add a cppcheck suppression. Signed-off-by: David Gibson Signed-off-by: Stefano Brivio --- pif.h | 1 + 1 file changed, 1 insertion(+) diff --git a/pif.h b/pif.h index ca85b34..bd52936 100644 --- a/pif.h +++ b/pif.h @@ -38,6 +38,7 @@ static inline const char *pif_type(enum pif_type pt) return "?"; } +/* cppcheck-suppress unusedFunction */ static inline const char *pif_name(uint8_t pif) { return pif_type(pif);