From: Ashutosh Dixit Date: Wed, 30 Oct 2013 00:09:59 +0000 (-0700) Subject: misc: mic: Fixes for randconfig build errors and warnings. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=425792266a40189e0b3fec02cb59a69935d8c58c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git misc: mic: Fixes for randconfig build errors and warnings. This patch fixes the build errors and warnings reported at https://lkml.org/lkml/2013/10/29/421. Co-author: Dasaratharaman Chandramouli Reviewed-by: Sudeep Dutt Reported-by: Jim Davis Signed-off-by: Ashutosh Dixit Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/mic/host/mic_boot.c b/drivers/misc/mic/host/mic_boot.c index d56b8bf4eaf6..b079c65eed6d 100644 --- a/drivers/misc/mic/host/mic_boot.c +++ b/drivers/misc/mic/host/mic_boot.c @@ -20,6 +20,7 @@ */ #include #include +#include #include #include "../common/mic_dev.h" diff --git a/drivers/misc/mic/host/mic_fops.c b/drivers/misc/mic/host/mic_fops.c index 8dc6ff16845a..85776d7327f3 100644 --- a/drivers/misc/mic/host/mic_fops.c +++ b/drivers/misc/mic/host/mic_fops.c @@ -19,6 +19,7 @@ * */ #include +#include #include #include "../common/mic_dev.h" diff --git a/drivers/misc/mic/host/mic_virtio.c b/drivers/misc/mic/host/mic_virtio.c index 0c883cd4f1d1..5b8494bd1e00 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;