mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 1/1] checkpatch: Add dev_err_probe() to the list of Log Functions
@ 2023-12-01 15:14 Andy Shevchenko
  2023-12-01 16:01 ` Guenter Roeck
  0 siblings, 1 reply; 8+ messages in thread
From: Andy Shevchenko @ 2023-12-01 15:14 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel
  Cc: Andy Whitcroft, Joe Perches, Dwaipayan Ray, Lukas Bulwahn,
	Guenter Roeck, Andy Shevchenko

dev_err_probe() is missing in the list of Log Functions and hence
checkpatch issues a warning in the cases when any other function
in use won't trigger it. Add dev_err_probe() to the list to behave
consistently.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 scripts/checkpatch.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index a94ed6c46a6d..c40f3f784f7e 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -593,6 +593,7 @@ our $zero_initializer = qr{(?:(?:0[xX])?0+$Int_type?|NULL|false)\b};
 our $logFunctions = qr{(?x:
 	printk(?:_ratelimited|_once|_deferred_once|_deferred|)|
 	(?:[a-z0-9]+_){1,2}(?:printk|emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)(?:_ratelimited|_once|)|
+	dev_err_probe|
 	TP_printk|
 	WARN(?:_RATELIMIT|_ONCE|)|
 	panic|
-- 
2.43.0.rc1.1.gbec44491f096


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-04 13:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-01 15:14 [PATCH v1 1/1] checkpatch: Add dev_err_probe() to the list of Log Functions Andy Shevchenko
2023-12-01 16:01 ` Guenter Roeck
2023-12-01 16:17   ` Andy Shevchenko
2023-12-01 16:20     ` Andy Shevchenko
2023-12-01 16:34     ` Guenter Roeck
2023-12-01 17:07       ` Andy Shevchenko
2023-12-01 22:29         ` Joe Perches
2023-12-04 12:59           ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®