* [frank-w-bpi-r2-4.14:5.14-otg2 6/29] drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:669:7: error: no previous prototype for function 'mtk_wcn_wmt_wifi_init'
@ 2021-08-30 18:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-30 18:55 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 10211 bytes --]
Hi Frank,
First bad commit (maybe != root cause):
tree: https://github.com/frank-w/BPI-R2-4.14 5.14-otg2
head: 7a786af94309f2e30a2ebd70d4a7cc163a8aedab
commit: edca53c1a674fef8ffbbae42e646a4bc40cd1605 [6/29] mt6625l: include wifi-code
config: arm-buildonly-randconfig-r002-20210830 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/frank-w/BPI-R2-4.14/commit/edca53c1a674fef8ffbbae42e646a4bc40cd1605
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.14-otg2
git checkout edca53c1a674fef8ffbbae42e646a4bc40cd1605
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1136:14: warning: no previous prototype for function '_cfg80211_classify8021d' [-Wmissing-prototypes]
unsigned int _cfg80211_classify8021d(struct sk_buff *skb)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1136:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned int _cfg80211_classify8021d(struct sk_buff *skb)
^
static
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1534:5: warning: no previous prototype for function 'wlanDoIOCTL' [-Wmissing-prototypes]
int wlanDoIOCTL(struct net_device *prDev, struct ifreq *prIfReq, int i4Cmd)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1534:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int wlanDoIOCTL(struct net_device *prDev, struct ifreq *prIfReq, int i4Cmd)
^
static
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1841:6: warning: no previous prototype for function 'wlanSchedScanStoppedWorkQueue' [-Wmissing-prototypes]
VOID wlanSchedScanStoppedWorkQueue(struct work_struct *work)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1841:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
VOID wlanSchedScanStoppedWorkQueue(struct work_struct *work)
^
static
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2022:26: warning: no previous prototype for function 'wlanGetStats' [-Wmissing-prototypes]
struct net_device_stats *wlanGetStats(IN struct net_device *prDev)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2022:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct net_device_stats *wlanGetStats(IN struct net_device *prDev)
^
static
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2079:16: warning: variable 'prGlueInfo' set but not used [-Wunused-but-set-variable]
P_GLUE_INFO_T prGlueInfo = NULL;
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2764:14: warning: variable 'rWlanStatus' set but not used [-Wunused-but-set-variable]
WLAN_STATUS rWlanStatus = WLAN_STATUS_SUCCESS;
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2860:19: warning: variable 'prWlandevInfo' set but not used [-Wunused-but-set-variable]
P_WLANDEV_INFO_T prWlandevInfo = NULL;
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3252:19: warning: variable 'prWlandevInfo' set but not used [-Wunused-but-set-variable]
P_WLANDEV_INFO_T prWlandevInfo = NULL;
^
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3502:5: warning: no previous prototype for function 'mtk_wcn_wlan_gen2_init' [-Wmissing-prototypes]
int mtk_wcn_wlan_gen2_init(void)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3502:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int mtk_wcn_wlan_gen2_init(void)
^
static
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3508:6: warning: no previous prototype for function 'mtk_wcn_wlan_gen2_exit' [-Wmissing-prototypes]
void mtk_wcn_wlan_gen2_exit(void)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3508:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mtk_wcn_wlan_gen2_exit(void)
^
static
10 warnings generated.
--
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:101:6: error: no previous prototype for function 'register_set_p2p_mode_handler' [-Werror,-Wmissing-prototypes]
VOID register_set_p2p_mode_handler(set_p2p_mode handler)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:101:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
VOID register_set_p2p_mode_handler(set_p2p_mode handler)
^
static
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:159:6: error: no previous prototype for function 'register_set_dbg_level_handler' [-Werror,-Wmissing-prototypes]
VOID register_set_dbg_level_handler(set_dbg_level handler)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
VOID register_set_dbg_level_handler(set_dbg_level handler)
^
static
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:211:7: error: no previous prototype for function 'wifi_reset_start' [-Werror,-Wmissing-prototypes]
INT32 wifi_reset_start(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:211:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
INT32 wifi_reset_start(VOID)
^
static
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:248:7: error: no previous prototype for function 'wifi_reset_end' [-Werror,-Wmissing-prototypes]
INT32 wifi_reset_end(ENUM_RESET_STATUS_T status)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:248:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
INT32 wifi_reset_end(ENUM_RESET_STATUS_T status)
^
static
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:336:9: error: no previous prototype for function 'WIFI_write' [-Werror,-Wmissing-prototypes]
ssize_t WIFI_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:336:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
ssize_t WIFI_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos)
^
static
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:669:7: error: no previous prototype for function 'mtk_wcn_wmt_wifi_init' [-Werror,-Wmissing-prototypes]
INT32 mtk_wcn_wmt_wifi_init(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:669:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
INT32 mtk_wcn_wmt_wifi_init(VOID)
^
static
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:675:6: error: no previous prototype for function 'mtk_wcn_wmt_wifi_exit' [-Werror,-Wmissing-prototypes]
VOID mtk_wcn_wmt_wifi_exit(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:675:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
VOID mtk_wcn_wmt_wifi_exit(VOID)
^
static
7 errors generated.
vim +/mtk_wcn_wmt_wifi_init +669 drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 668
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 @669 INT32 mtk_wcn_wmt_wifi_init(VOID)
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 670 {
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 671 return WIFI_init();
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 672 }
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 673 EXPORT_SYMBOL(mtk_wcn_wmt_wifi_init);
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 674
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 @675 VOID mtk_wcn_wmt_wifi_exit(VOID)
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 676 {
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 677 return WIFI_exit();
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 678 }
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 679 EXPORT_SYMBOL(mtk_wcn_wmt_wifi_exit);
0ff25df9d86ff2 Frank Wunderlich 2021-07-12 680
:::::: The code at line 669 was first introduced by commit
:::::: 0ff25df9d86ff2c2e8beeba54e39a8a20a99ad5a mt6625l: add driver folder from 5.13
:::::: TO: Frank Wunderlich <frank-w@public-files.de>
:::::: CC: Frank Wunderlich <frank-w@public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 46074 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-30 18:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30 18:55 [frank-w-bpi-r2-4.14:5.14-otg2 6/29] drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/wmt_chrdev_wifi.c:669:7: error: no previous prototype for function 'mtk_wcn_wmt_wifi_init' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.