From patchwork Sun Sep 18 09:11:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76455 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp452239qgf; Sun, 18 Sep 2016 02:11:58 -0700 (PDT) X-Received: by 10.66.161.225 with SMTP id xv1mr37168034pab.20.1474189918911; Sun, 18 Sep 2016 02:11:58 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id to7si16644958pac.282.2016.09.18.02.11.58; Sun, 18 Sep 2016 02:11:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 S1755866AbcIRJLz (ORCPT + 4 others); Sun, 18 Sep 2016 05:11:55 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:35189 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754464AbcIRJLw (ORCPT ); Sun, 18 Sep 2016 05:11:52 -0400 Received: by mail-pf0-f171.google.com with SMTP id z123so40866075pfz.2 for ; Sun, 18 Sep 2016 02:11:52 -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=ynJWap0qu/IDeX97no8Vv0UMTFEAJ+G1LsSBfudEhYM=; b=FxV4x6ftveT+uWEwUkiQO1VxuPq7stwqYACAApe9LsziJ2N90RzIBQJxS6xUoHLpyz +LhjeoaN41ML+h3GmLI39yI36DZihJyJAwEUtpNfFSirGD0MlIiMUVSTBdvVH/bO+JTw 1CUCSoDN8oPN6wZHYNqua9F7j7enGOy7uEA5I= 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=ynJWap0qu/IDeX97no8Vv0UMTFEAJ+G1LsSBfudEhYM=; b=XYoah+VC3Hay3uXuu7GWo0GkQ1SjyVuxqCdI/K+G/xBqZCmHwFZ4lbaxYiLoeXQ1Ny 1AWgSd3Dfd+KzbFMqqxLkVR//Skd3eX5N1lU5JMnFpg3HMPfnkK9gbI65bfimAdx2z7y OsRWvpVI/al/uHYFUAo4S5lZ3poHa6fMsqquDQnET7C6HaitZGrTUpNLBiX/AMhHwrhf TtZ2oTPxDY4CgHlxBsZoMEa3L2dN4AccnutshMDxkyyMGlRFbKKEzAl7/PqT53TjwWlD 9WBrYeOhks2r/Uwf75kXRuiANvjDG/GgvSrO+05AyyaOuHLTZrg2DPrZrCP7G6ZCGlYd fYRA== X-Gm-Message-State: AE9vXwOUQpBaQUvg66GmK/ZloS13obQF7a8Bhk/JAt97EPNXu2ICETV1alc1Z8jH1nwt9yH+ X-Received: by 10.98.102.148 with SMTP id s20mr37762733pfj.79.1474189911876; Sun, 18 Sep 2016 02:11:51 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.27]) by smtp.gmail.com with ESMTPSA id b88sm63359805pfe.66.2016.09.18.02.11.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 02:11:51 -0700 (PDT) From: Baoyou Xie To: yisen.zhuang@huawei.com, salil.mehta@huawei.com, davem@davemloft.net, yankejian@huawei.com, huangdaode@hisilicon.com, lipeng321@huawei.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] net: hns: add function declarations in hns_dsaf_mac.h Date: Sun, 18 Sep 2016 17:11:36 +0800 Message-Id: <1474189896-20417-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org We get 2 warnings when building kernel with W=1: drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c:246:6: warning: no previous prototype for 'hns_dsaf_srst_chns' [-Wmissing-prototypes] drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c:276:6: warning: no previous prototype for 'hns_dsaf_roce_srst' [-Wmissing-prototypes] In fact, these two functions are 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 declarations into drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h Signed-off-by: Baoyou Xie --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h index 4cbdf14..31f6505 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h +++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h @@ -462,4 +462,6 @@ int hns_cpld_led_set_id(struct hns_mac_cb *mac_cb, enum hnae_led_state status); void hns_mac_set_promisc(struct hns_mac_cb *mac_cb, u8 en); +void hns_dsaf_srst_chns(struct dsaf_device *dsaf_dev, u32 msk, bool dereset); +void hns_dsaf_roce_srst(struct dsaf_device *dsaf_dev, bool dereset); #endif /* _HNS_DSAF_MAC_H */