* [PATCH -next] staging/sep: fix build error & warning & kconfig
@ 2009-08-17 20:35 Randy Dunlap
2009-08-17 20:42 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2009-08-17 20:35 UTC (permalink / raw)
To: Linux Kernel Mailing List, linux-next; +Cc: Greg KH, Andrew Morton
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix sep_driver build when CONFIG_PCI=n:
drivers/staging/sep/sep_driver.c:2548: error: implicit declaration of function 'pci_dev_get'
and printk format warning:
drivers/staging/sep/sep_driver.c:290:
warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned
int'
Also, the default kconfig value should not be 'y'.
And something should be done about this warning (but I didn't fix it):
drivers/staging/sep/sep_driver.c:1780: warning: 'error' may be used uninitialized in this function
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
drivers/staging/sep/Kconfig | 3 +--
drivers/staging/sep/sep_driver.c | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
--- linux-next-20090817.orig/drivers/staging/sep/Kconfig
+++ linux-next-20090817/drivers/staging/sep/Kconfig
@@ -1,8 +1,7 @@
config DX_SEP
tristate "Discretix SEP driver"
# depends on MRST
- depends on RAR_REGISTER
- default y
+ depends on RAR_REGISTER && PCI
help
Discretix SEP driver
--- linux-next-20090817.orig/drivers/staging/sep/sep_driver.c
+++ linux-next-20090817/drivers/staging/sep/sep_driver.c
@@ -287,7 +287,7 @@ static int sep_map_and_alloc_shared_area
sep->shared_area = sep->shared_addr;
/* set the physical address of the shared area */
sep->shared_area_bus = sep->shared_bus;
- edbg("sep: shared_area %d bytes @%p (bus %08llx)\n",
+ edbg("sep: shared_area %lu bytes @%p (bus %08llx)\n",
size, sep->shared_addr, (unsigned long long)sep->shared_bus);
return 0;
}
--
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] staging/sep: fix build error & warning & kconfig
2009-08-17 20:35 [PATCH -next] staging/sep: fix build error & warning & kconfig Randy Dunlap
@ 2009-08-17 20:42 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2009-08-17 20:42 UTC (permalink / raw)
To: Randy Dunlap, Alan Cox
Cc: Linux Kernel Mailing List, linux-next, Andrew Morton
On Mon, Aug 17, 2009 at 01:35:30PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Fix sep_driver build when CONFIG_PCI=n:
>
> drivers/staging/sep/sep_driver.c:2548: error: implicit declaration of function 'pci_dev_get'
I just merged a patch to fix this a few minutes ago.
> and printk format warning:
>
> drivers/staging/sep/sep_driver.c:290:
> warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned
> int'
I think Alan is taking care of this stuff already.
> Also, the default kconfig value should not be 'y'.
>
> And something should be done about this warning (but I didn't fix it):
> drivers/staging/sep/sep_driver.c:1780: warning: 'error' may be used uninitialized in this function
Alan has already resolved this one.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-17 20:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-17 20:35 [PATCH -next] staging/sep: fix build error & warning & kconfig Randy Dunlap
2009-08-17 20:42 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).