public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: staging: speakup: fix sparse "warning: expression using sizeof bool"
@ 2015-03-27 20:29 Witos
  2015-04-03 11:42 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 7+ messages in thread
From: Witos @ 2015-03-27 20:29 UTC (permalink / raw)
  To: pwitos
  Cc: Chris Brannon, Kirk Reiser, Samuel Thibault, Greg Kroah-Hartman,
	speakup, devel, linux-kernel, trivial

Changed bool to u8.

Signed-off-by: Piotr Witoslawski <pwitos@gmail.com>
---
 drivers/staging/speakup/fakekey.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/speakup/fakekey.c b/drivers/staging/speakup/fakekey.c
index 4299cf4..3dfb6bd 100644
--- a/drivers/staging/speakup/fakekey.c
+++ b/drivers/staging/speakup/fakekey.c
@@ -28,7 +28,7 @@
 #define PRESSED 1
 #define RELEASED 0
 
-static DEFINE_PER_CPU(bool, reporting_keystroke);
+static DEFINE_PER_CPU(u8, reporting_keystroke);
 
 static struct input_dev *virt_keyboard;
 
-- 
2.0.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] drivers: staging: speakup: fix sparse "warning: expression using sizeof bool"
@ 2015-03-27 20:36 Witos
  2015-03-28  6:26 ` Sudip Mukherjee
  2015-04-03 11:42 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 7+ messages in thread
From: Witos @ 2015-03-27 20:36 UTC (permalink / raw)
  To: William Hubbs
  Cc: Chris Brannon, Kirk Reiser, Samuel Thibault, Greg Kroah-Hartman,
	speakup, devel, linux-kernel, trivial

Changed bool to u8 to get rid of sparse warning.

Signed-off-by: Piotr Witoslawski <pwitos@gmail.com>
---
 drivers/staging/speakup/fakekey.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/speakup/fakekey.c b/drivers/staging/speakup/fakekey.c
index 4299cf4..3dfb6bd 100644
--- a/drivers/staging/speakup/fakekey.c
+++ b/drivers/staging/speakup/fakekey.c
@@ -28,7 +28,7 @@
 #define PRESSED 1
 #define RELEASED 0
 
-static DEFINE_PER_CPU(bool, reporting_keystroke);
+static DEFINE_PER_CPU(u8, reporting_keystroke);
 
 static struct input_dev *virt_keyboard;
 
-- 
2.0.5


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

end of thread, other threads:[~2015-04-03 11:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-27 20:29 [PATCH] drivers: staging: speakup: fix sparse "warning: expression using sizeof bool" Witos
2015-04-03 11:42 ` Greg Kroah-Hartman
  -- strict thread matches above, loose matches on Subject: below --
2015-03-27 20:36 Witos
2015-03-28  6:26 ` Sudip Mukherjee
2015-03-28  7:57   ` Piotr Witosławski
2015-03-30  6:19     ` Sudip Mukherjee
2015-04-03 11:42 ` Greg Kroah-Hartman

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