From patchwork Wed May 26 18:42:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Campbell X-Patchwork-Id: 102465 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4QIgAmc008639 for ; Wed, 26 May 2010 18:42:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755472Ab0EZSmK (ORCPT ); Wed, 26 May 2010 14:42:10 -0400 Received: from vpn.pathscale.com ([198.186.3.75]:44412 "HELO mx.mv.qlogic.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with SMTP id S1755109Ab0EZSmJ (ORCPT ); Wed, 26 May 2010 14:42:09 -0400 Received: from chromite.mv.qlogic.com (chromite.mv.qlogic.com [10.29.2.82]) by mx.mv.qlogic.com (Postfix) with ESMTP id 2B30B143087D; Wed, 26 May 2010 11:42:06 -0700 (PDT) Received: from chromite.mv.qlogic.com (localhost.localdomain [127.0.0.1]) by chromite.mv.qlogic.com (Postfix) with ESMTP id 1EA2614264C; Wed, 26 May 2010 11:42:06 -0700 (PDT) From: Ralph Campbell Subject: [PATCH] IB/qib: fix powerpc compile warnings To: Roland Dreier Cc: linux-rdma@vger.kernel.org Date: Wed, 26 May 2010 11:42:06 -0700 Message-ID: <20100526184205.11285.79404.stgit@chromite.mv.qlogic.com> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 26 May 2010 18:42:11 +0000 (UTC) diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index 7554704..8a354f7 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c @@ -143,7 +143,7 @@ static const struct file_operations driver_ops[] = { static ssize_t dev_counters_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { - u64 *counters; + u64 *counters = NULL; struct qib_devdata *dd = private2dd(file); return simple_read_from_buffer(buf, count, ppos, counters, @@ -154,7 +154,7 @@ static ssize_t dev_counters_read(struct file *file, char __user *buf, static ssize_t dev_names_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { - char *names; + char *names = NULL; struct qib_devdata *dd = private2dd(file); return simple_read_from_buffer(buf, count, ppos, names, @@ -175,7 +175,7 @@ static const struct file_operations cntr_ops[] = { static ssize_t portnames_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { - char *names; + char *names = NULL; struct qib_devdata *dd = private2dd(file); return simple_read_from_buffer(buf, count, ppos, names, @@ -186,7 +186,7 @@ static ssize_t portnames_read(struct file *file, char __user *buf, static ssize_t portcntrs_1_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { - u64 *counters; + u64 *counters = NULL; struct qib_devdata *dd = private2dd(file); return simple_read_from_buffer(buf, count, ppos, counters, @@ -197,7 +197,7 @@ static ssize_t portcntrs_1_read(struct file *file, char __user *buf, static ssize_t portcntrs_2_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { - u64 *counters; + u64 *counters = NULL; struct qib_devdata *dd = private2dd(file); return simple_read_from_buffer(buf, count, ppos, counters,