From: Sam Muhammed Date: Sun, 22 Mar 2020 14:33:22 +0000 (-0400) Subject: Staging: speakup: Use pr_warn() defined in . X-Git-Tag: v5.7-rc1~190^2~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c31a1302c4050466385fefc8f756ccbea582073;p=thirdparty%2Flinux.git Staging: speakup: Use pr_warn() defined in . Dropping a user-defined pr_warn() and using the kernel message printing functions implemented in . Since both have the same functionality, using the standard kernel functions is better. Signed-off-by: Sam Muhammed Reviewed-by: Samuel Thibault Link: https://lore.kernel.org/r/20200322143322.29098-1-jane.pnx9@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/spk_priv.h b/drivers/staging/speakup/spk_priv.h index ac6a74883af47..c75b408387947 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 + #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 */