Skip to contentSkip to conversation

char/n_tty: fix sparse warnings (__nocast type)

PATCH In review [email protected] 1 participant 1 message Jul 7, 2005 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 char/n_tty: fix sparse warnings (__nocast type)

From: Victor Fusco <[email protected]>

Fix the sparse warning "implicit cast to nocast type"

File/Subsystem: drivers/char/n_tty.c

---
 n_tty.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/char/n_tty.c +1 -1
Index: 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);

--