Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752188Ab3J3ADD (ORCPT ); Tue, 29 Oct 2013 20:03:03 -0400 Received: from mga14.intel.com ([143.182.124.37]:30975 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751292Ab3J3ADA (ORCPT ); Tue, 29 Oct 2013 20:03:00 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,596,1378882800"; d="scan'208";a="419418229" From: Ashutosh Dixit To: Greg Kroah-Hartman , Jim Davis , Arnd Bergmann , Joe Perches , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Fengguang Wu , Stephen Rothwell Cc: Dasaratharaman Chandramouli , Ashutosh Dixit , Sudeep Dutt , Nikhil Rao , Harshavardhan R Kharche , Peter P Waskiewicz Jr , "Yaozu (Eddie) Dong" Subject: [PATCH char-misc-next] misc: mic: Fixes for randconfig build errors and warnings. Date: Tue, 29 Oct 2013 17:09:59 -0700 Message-Id: <6af2b0097e54db275d06b71f8a8d33dbf7247b5e.1383087862.git.ashutosh.dixit@intel.com> X-Mailer: git-send-email 1.8.2.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2019 Lines: 62 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 --- 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 #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 8dc6ff1..85776d7 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 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/