mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 3/4] char/n_tty: fix sparse warnings (__nocast type)
@ 2005-07-07 21:31 domen
  0 siblings, 0 replies; only message in thread
From: domen @ 2005-07-07 21:31 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Victor Fusco, domen

[-- Attachment #1: sparse-drivers_char_n_tty --]
[-- Type: text/plain, Size: 758 bytes --]

From: Victor Fusco <victor@cetuc.puc-rio.br>


Fix the sparse warning "implicit cast to nocast type"
 
File/Subsystem: drivers/char/n_tty.c

Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
 

---
 n_tty.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: quilt/drivers/char/n_tty.c
===================================================================
--- quilt.orig/drivers/char/n_tty.c
+++ quilt/drivers/char/n_tty.c
@@ -62,7 +62,7 @@
 
 static inline unsigned char *alloc_buf(void)
 {
-	int prio = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL;
+	unsigned int prio = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL;
 
 	if (PAGE_SIZE != N_TTY_BUF_SIZE)
 		return kmalloc(N_TTY_BUF_SIZE, prio);

--

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-07 22:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-07 21:31 [patch 3/4] char/n_tty: fix sparse warnings (__nocast type) domen

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®