All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: speakup: Use pr_warn() defined in <linux/printk.h>.
@ 2020-03-22 14:33 Sam Muhammed
  2020-03-22 14:35 ` Samuel Thibault
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Muhammed @ 2020-03-22 14:33 UTC (permalink / raw)
  To: outreachy-kernel, William Hubbs, Chris Brannon, Kirk Reiser,
	Samuel Thibault, Greg Kroah-Hartman
  Cc: Sam Muhammed

Dropping a user-defined pr_warn() and using the kernel
message printing functions implemented in <linux/printk.h>.

Since both have the same functionality, using the standard
kernel functions is better.

Signed-off-by: Sam Muhammed <jane.pnx9@gmail.com>
---
 drivers/staging/speakup/spk_priv.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/speakup/spk_priv.h b/drivers/staging/speakup/spk_priv.h
index ac6a74883af4..c75b40838794 100644
--- a/drivers/staging/speakup/spk_priv.h
+++ b/drivers/staging/speakup/spk_priv.h
@@ -11,13 +11,11 @@
 #ifndef _SPEAKUP_PRIVATE_H
 #define _SPEAKUP_PRIVATE_H

+#include <linux/printk.h>
+
 #include "spk_types.h"
 #include "spk_priv_keyinfo.h"

-#ifndef pr_warn
-#define pr_warn(fmt, arg...) printk(KERN_WARNING fmt, ##arg)
-#endif
-
 #define V_LAST_VAR { MAXVARS }
 #define SPACE 0x20
 #define SYNTH_CHECK 20030716 /* today's date ought to do for check value */
---
2.20.1



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

end of thread, other threads:[~2020-03-22 14:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-22 14:33 [PATCH] Staging: speakup: Use pr_warn() defined in <linux/printk.h> Sam Muhammed
2020-03-22 14:35 ` Samuel Thibault
2020-03-22 14:47   ` [Outreachy kernel] " Sam Muhammed
2020-03-22 14:54     ` Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.