Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1485743

[PATCH] net: hns: add function declarations in hns_dsaf_mac.h

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Baoyou Xie <baoyou.xie@linaro.org>
Newsgroups linux.kernel
Subject [PATCH] net: hns: add function declarations in hns_dsaf_mac.h
Date Sun, 18 Sep 2016 11:20:01 +0200
Message-ID <siGqt-6js-9@gated-at.bofh.it> (permalink)
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=i1iwsSRjvFsSApOYDtU6ZISkTF0TR78bM8d2E5hF2SNZxSBi3RBeNQCnrirB6E1NWf U0rpTFgeL/YsSgf9W9zF5QNOCWvhnTQBUbX6q5TYL5K2AamoFZL9lzPhrRJkoE7xuMVT nIvzld1VDOrMOmmruD3N+zPdXRsKLkOx+0b9tuNMhCrplELJ6DzRJT65SMBmmsmSWb7X ipldgW33eMVXQj1GeS6/4x0G9NL08iUAKEgG7AuSM0Dzw+Diil+MxV8/ibgZ4SYeAcek j9nmqoYEyVcrzl70WyfDb0IsIqtJjcDFKk6C4H8Q3Eb98SFq1MsT0qxzAOXoMMUKLLGu TDJQ==
X-Gm-Message-State AE9vXwOBCAcc78w8FCXYNYd+K8CoofngcJQ2pDiZPxvwU+HPLCbEWCBAkSwQncp3Gox+g39p
X-Received by 10.98.102.148 with SMTP id s20mr37762733pfj.79.1474189911876; Sun, 18 Sep 2016 02:11:51 -0700 (PDT)
X-Mailer git-send-email 2.7.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 28
Organization linux.* mail to news gateway
X-Original-Cc netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn
X-Original-Date Sun, 18 Sep 2016 17:11:36 +0800
X-Original-Message-ID <1474189896-20417-1-git-send-email-baoyou.xie@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1485743

Show key headers only | View raw


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 <baoyou.xie@linaro.org>
---
 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h | 2 ++
 1 file changed, 2 insertions(+)

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 */
-- 
2.7.4

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] net: hns: add function declarations in hns_dsaf_mac.h Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-18 11:20 +0200
  Re: [PATCH] net: hns: add function declarations in hns_dsaf_mac.h Arnd Bergmann <arnd@arndb.de> - 2016-09-18 22:40 +0200

csiph-web