All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH 10/20] Fix "nocast type" warnings
@ 2005-07-10 23:19 Victor Fusco
  2005-07-11 10:16 ` Alexey Dobriyan
  0 siblings, 1 reply; 2+ messages in thread
From: Victor Fusco @ 2005-07-10 23:19 UTC (permalink / raw)
  To: kernel-janitors

Description:
    Fix the sparse warning "implicit cast to nocast type"

File/Subsystem:drivers/pnp/pnpbios

Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>

--

 drivers/pnp/pnpbios/core.c    |    4 ++--
 drivers/pnp/pnpbios/pnpbios.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Index: linux-git/drivers/pnp/pnpbios/core.c
=================================--- linux-git.orig/drivers/pnp/pnpbios/core.c	2005-07-08 12:06:56.000000000 +0000
+++ linux-git/drivers/pnp/pnpbios/core.c	2005-07-10 22:43:10.000000000 +0000
@@ -86,9 +86,9 @@
 
 struct pnp_dev_node_info node_info;
 
-void *pnpbios_kmalloc(size_t size, int f)
+void *pnpbios_kmalloc(size_t size, unsigned int __nocast flags)
 {
-	void *p = kmalloc( size, f );
+	void *p = kmalloc( size, flags );
 	if ( p = NULL )
 		printk(KERN_ERR "PnPBIOS: kmalloc() failed\n");
 	else
Index: linux-git/drivers/pnp/pnpbios/pnpbios.h
=================================--- linux-git.orig/drivers/pnp/pnpbios/pnpbios.h	2005-07-08 12:06:56.000000000 +0000
+++ linux-git/drivers/pnp/pnpbios/pnpbios.h	2005-07-10 22:43:10.000000000 +0000
@@ -26,7 +26,7 @@
 
 extern int pnp_bios_present(void);
 extern int  pnpbios_dont_use_current_config;
-extern void *pnpbios_kmalloc(size_t size, int f);
+extern void *pnpbios_kmalloc(size_t size, unsigned int __nocast flags);
 
 extern int pnpbios_parse_data_stream(struct pnp_dev *dev, struct pnp_bios_node * node);
 extern int pnpbios_read_resources_from_node(struct pnp_resource_table *res, struct pnp_bios_node * node);

--

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2005-07-11 10:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-10 23:19 [KJ] [PATCH 10/20] Fix "nocast type" warnings Victor Fusco
2005-07-11 10:16 ` Alexey Dobriyan

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.