From patchwork Mon Sep 21 14:18:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7231931 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CE9D79F30C for ; Mon, 21 Sep 2015 14:53:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 10D0F20718 for ; Mon, 21 Sep 2015 14:53:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 341B820717 for ; Mon, 21 Sep 2015 14:53:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756147AbbIUOx1 (ORCPT ); Mon, 21 Sep 2015 10:53:27 -0400 Received: from m50-133.163.com ([123.125.50.133]:35554 "EHLO m50-133.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755799AbbIUOx0 (ORCPT ); Mon, 21 Sep 2015 10:53:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=ERlPboV7oPySAd/s58 HVoXaa3cDxRDv+IZztlf9eYNw=; b=LSFM/T2uDi/5nqgzCwt6RXS9UQacuifm2w stTqPxlbmHJHiSBzEoE6w6T3VngQJjogONHGICG5giWsAh2SClM+EEYyAjemsOoD QPOQihHAjr4yjZe1wl5KlwplfHWDOdU7Y3PUgW9Hnd2KVavc6a+wPIOXB/AzcmiA /x1dkPKn0= Received: from localhost (unknown [116.77.141.222]) by smtp3 (Coremail) with SMTP id DdGowEBpOpG0EQBWKYuyBA--.6914S3; Mon, 21 Sep 2015 22:18:30 +0800 (CST) From: Geliang Tang To: Mike Marciniszyn , Doug Ledford , Sean Hefty , Hal Rosenstock , Greg Kroah-Hartman Cc: Geliang Tang , linux-rdma@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] IB/hfi1: class_name_user() should be static Date: Mon, 21 Sep 2015 22:18:14 +0800 Message-Id: <3fc89a14df9bdee0d0eaba7031e533e4f88fc5c6.1442844831.git.geliangtang@163.com> X-Mailer: git-send-email 2.5.0 X-CM-TRANSID: DdGowEBpOpG0EQBWKYuyBA--.6914S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7JFWxXr1UGrWxXF1UAFyUtrb_yoW3uFb_CF y2vw1xXa4IkasayrnIkay8ZryIv3WSqFsY9w1xKa93ArW5Zw4rC34kZw1rKryDWF47Wry3 urn5XrWYkr48KjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjUGYJUUUUU== X-Originating-IP: [116.77.141.222] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiJRd8mVUL6+jEgQAAsP Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following sparse warning: drivers/staging/rdma/hfi1/device.c:127:12: warning: symbol 'class_name_user' was not declared. Should it be static? Signed-off-by: Geliang Tang --- drivers/staging/rdma/hfi1/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rdma/hfi1/device.c b/drivers/staging/rdma/hfi1/device.c index bc26a53..58472e5 100644 --- a/drivers/staging/rdma/hfi1/device.c +++ b/drivers/staging/rdma/hfi1/device.c @@ -124,7 +124,7 @@ static char *hfi1_devnode(struct device *dev, umode_t *mode) } static const char *hfi1_class_name_user = "hfi1_user"; -const char *class_name_user(void) +static const char *class_name_user(void) { return hfi1_class_name_user; }