misc: mic: Fixes for randconfig build errors and warnings.
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Wed, 30 Oct 2013 00:09:59 +0000 (17:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Oct 2013 17:19:30 +0000 (10:19 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/host/mic_boot.c
drivers/misc/mic/host/mic_fops.c
drivers/misc/mic/host/mic_virtio.c

index d56b8bf4eaf6363b1856989ec7e71cfc3e4121e8..b079c65eed6d2f77ca8fbd989180c3295c0b269d 100644 (file)
@@ -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"
index 8dc6ff16845a8ab40ac3dbb872c12f3a5f0fcb6c..85776d7327f372bfb14567b87f36e6b34891ff42 100644 (file)
@@ -19,6 +19,7 @@
  *
  */
 #include <linux/poll.h>
+#include <linux/pci.h>
 
 #include <linux/mic_common.h>
 #include "../common/mic_dev.h"
index 0c883cd4f1d14e8db5c106d42d4dfd1dc5dc0a98..5b8494bd1e003ff9cb53d49fa7ffd22798893912 100644 (file)
@@ -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;