From patchwork Fri Sep 30 07:41:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 77157 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp128686qgf; Fri, 30 Sep 2016 00:42:40 -0700 (PDT) X-Received: by 10.66.89.34 with SMTP id bl2mr9367572pab.33.1475221360849; Fri, 30 Sep 2016 00:42:40 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si18877927pfe.3.2016.09.30.00.42.40; Fri, 30 Sep 2016 00:42:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932177AbcI3Hmi (ORCPT + 27 others); Fri, 30 Sep 2016 03:42:38 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33584 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751959AbcI3Hm3 (ORCPT ); Fri, 30 Sep 2016 03:42:29 -0400 Received: by mail-pf0-f177.google.com with SMTP id 21so37726129pfy.0 for ; Fri, 30 Sep 2016 00:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=DxGjJsgWoll9tWJ9caLsuNB39aTsz7u1N64HDVNxcVw=; b=dPbx3bQ/Cjcc2rlFbE+qmGKXEpP8IxeWSph2KjYCtqr/13bTk8SO/+sHfNO3Mq3BRc Sk/74MzZ3DYJ1bjp6BNINiCagO1hdcX90P68nN+HM2yNDeDLGhd3nk8Pun0hxqLgttxE jG7gWNwnRff6YgdWwqlSR59MVRo1abPgmVPNE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DxGjJsgWoll9tWJ9caLsuNB39aTsz7u1N64HDVNxcVw=; b=gJmPB+N60xh0cqjSg5OPnWht+OFXRQu0S3svqjYI+sTK1IHyaKPT5Yt/QXaDqJyz2p z2tEanJVJAR/4bZ+vjVVjjLhK0iJjQemWizixi/bbWixiQHWwWioYsCfi6CDiHcF3W7D I7jOByq5sn8xOpYQ1Bd68J4TZnfo2B7qJPw0rDMZuFmSNglr7cKAuMcJV2Q0TEa6+Rhv /aSMkRzW7JykmVnQXqdjart6UPHwqQK+gHJS01ZKVt2sU2wXB29O+iMB3f36/jnvoDiA 9N6T2jdp9mtFDDDGbdHKPOhwLeyi9O0fvrGLoV6GP372r0ajlDfXIGF1vIe4FyergiZe 6srg== X-Gm-Message-State: AA6/9RlPUUetAl9XKJqfTisEBOHXKKnQ7vDZLSl/jaTbQBy3khbj9WTSnsiadybIwbX1/gmZ X-Received: by 10.98.78.72 with SMTP id c69mr9315590pfb.67.1475221348801; Fri, 30 Sep 2016 00:42:28 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.182]) by smtp.gmail.com with ESMTPSA id x66sm25283661pfb.86.2016.09.30.00.42.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Sep 2016 00:42:28 -0700 (PDT) From: Baoyou Xie To: yisen.zhuang@huawei.com, salil.mehta@huawei.com, davem@davemloft.net, huangdaode@hisilicon.com, lisheng011@huawei.com, xieqianqian@huawei.com, fabf@skynet.be, oulijun@huawei.com, arnd@arndb.de, vinod.koul@intel.com, lipeng321@huawei.com, andrew@lunn.ch, tremyfr@gmail.com, chenny.xu@huawei.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH 2/2] net: hns: add missing function declaration Date: Fri, 30 Sep 2016 15:41:55 +0800 Message-Id: <1475221315-18602-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2784:5: warning: no previous prototype for 'hns_dsaf_roce_reset' [-Wmissing-prototypes] In fact, this function is not declared in any file, but should be declared in a header file. thus can be recognized in other file. so this patch adds the missing function declaration into drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h. Signed-off-by: Baoyou Xie --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h index f3681d5..c655ecb 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h +++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h @@ -449,7 +449,10 @@ void hns_dsaf_srst_chns(struct dsaf_device *dsaf_dev, u32 msk, bool enable); void hns_dsaf_roce_srst(struct dsaf_device *dsaf_dev, bool enable); +int hns_dsaf_roce_reset(struct fwnode_handle *dsaf_fwnode, bool enable); + int hns_dsaf_ae_init(struct dsaf_device *dsaf_dev); + void hns_dsaf_ae_uninit(struct dsaf_device *dsaf_dev); void hns_dsaf_update_stats(struct dsaf_device *dsaf_dev, u32 inode_num);