* [PATCH char-misc-next] misc: mic: Fixes for randconfig build errors and warnings.
@ 2013-10-30 0:09 Ashutosh Dixit
0 siblings, 0 replies; only message in thread
From: Ashutosh Dixit @ 2013-10-30 0:09 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jim Davis, Arnd Bergmann, Joe Perches,
linux-kernel, linux-doc, Fengguang Wu, Stephen Rothwell
Cc: Dasaratharaman Chandramouli, Ashutosh Dixit, Sudeep Dutt,
Nikhil Rao, Harshavardhan R Kharche, Peter P Waskiewicz Jr,
Yaozu (Eddie) Dong
This patch fixes the build errors and warnings reported at
https://lkml.org/lkml/2013/10/29/421.
Co-author: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com>
Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
drivers/misc/mic/host/mic_boot.c | 1 +
drivers/misc/mic/host/mic_fops.c | 1 +
drivers/misc/mic/host/mic_virtio.c | 4 ++--
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/mic/host/mic_boot.c b/drivers/misc/mic/host/mic_boot.c
index d56b8bf..b079c65 100644
--- a/drivers/misc/mic/host/mic_boot.c
+++ b/drivers/misc/mic/host/mic_boot.c
@@ -20,6 +20,7 @@
*/
#include <linux/delay.h>
#include <linux/firmware.h>
+#include <linux/pci.h>
#include <linux/mic_common.h>
#include "../common/mic_dev.h"
diff --git a/drivers/misc/mic/host/mic_fops.c b/drivers/misc/mic/host/mic_fops.c
index 8dc6ff1..85776d7 100644
--- a/drivers/misc/mic/host/mic_fops.c
+++ b/drivers/misc/mic/host/mic_fops.c
@@ -19,6 +19,7 @@
*
*/
#include <linux/poll.h>
+#include <linux/pci.h>
#include <linux/mic_common.h>
#include "../common/mic_dev.h"
diff --git a/drivers/misc/mic/host/mic_virtio.c b/drivers/misc/mic/host/mic_virtio.c
index 0c883cd..5b8494b 100644
--- a/drivers/misc/mic/host/mic_virtio.c
+++ b/drivers/misc/mic/host/mic_virtio.c
@@ -517,10 +517,10 @@ int mic_virtio_add_device(struct mic_vdev *mvdev,
void __user *argp)
{
struct mic_device *mdev = mvdev->mdev;
- struct mic_device_desc *dd;
+ struct mic_device_desc *dd = NULL;
struct mic_vqconfig *vqconfig;
int vr_size, i, j, ret;
- u8 type;
+ u8 type = 0;
s8 db;
char irqname[10];
struct mic_bootparam *bootparam = mdev->dp;
--
1.8.2.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-30 0:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-30 0:09 [PATCH char-misc-next] misc: mic: Fixes for randconfig build errors and warnings Ashutosh Dixit
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®