From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45556C433EF for ; Wed, 9 Mar 2022 19:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DRT0NmH7HlDVd9bDbQga18YpnCP5JKiAKpyswp1buQk=; b=uhiK8PQhcUgDnl TUFJUrbs1sB6agotslEXO1ENIb4w4R1AWaHXjJyC2TYapvF0+MlGT1lqzHvhl7m8LJGX/F0Og7IWw ankMbhmdLqV/VGW7hPjF6fQLMTBBccs3Gwh7YAKrWhUvwQ0Ot2DV534w24kqhVV4C0EFL5+e1K/MF 4agGSiKuDZW2TIwej1GoFpLfP/xaVStL2Mkp9I5N0jNgMQaUBgGXmGJGcge00QlkM5HJlMH4nZDUz s4NxzGF9v6tNjBXbY1Q5Np3mA/qitYLp8SbVS3zUuIo4BO6sz4vjd3uWcVSfMe8xy3gZpUVDhYgW/ o3Xs9lUc+Pl4FuQlXjhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nS2P7-00ALqf-EO; Wed, 09 Mar 2022 19:55:25 +0000 Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nS2P3-00ALqB-Ko for linux-arm-kernel@lists.infradead.org; Wed, 09 Mar 2022 19:55:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646855721; x=1678391721; h=date:from:to:cc:subject:message-id:mime-version; bh=kxNiom0WclwkYrip1fiaFNaajxuscMjqd7F8i+f2dQU=; b=D8+5rW5T3Uek7riQjpwjtNNye2nNKshA6JBvrJlc1Vpc3++z4Y2Syl8C wWFmAzVCovX46IEBD14vy76NQfn68/FfrkQdgTn0Uv5zcZdwRPGGhUBwb ZCYgZWMQs4fCSqdCuZHZJ27eRXw004exwGndLxTGY06cCBSSbLVhO5Qgf C9KQjCN33XET2JFq3PGNVpjR9PhjSw6cACtgDxgF2lp3ntopYzRcySxcY iCceoSovEqgdTKhdtj8fxxZMxWN4Wj2J757J2r0cIYRx9GnTpj407+DuN lT49kceiJDfCUTdNjvBPcQC+b0aFiZg26VaMYFy0NiwrNG17qBbBD6Cxs w==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="255019789" X-IronPort-AV: E=Sophos;i="5.90,168,1643702400"; d="scan'208";a="255019789" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2022 11:55:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,168,1643702400"; d="scan'208";a="578516235" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 09 Mar 2022 11:55:17 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nS2Oz-0003ls-21; Wed, 09 Mar 2022 19:55:17 +0000 Date: Thu, 10 Mar 2022 03:55:09 +0800 From: kernel test robot To: Shravya Kumbham Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Michal Simek , Harini Katakam , Swati Agarwal Subject: [xilinx-xlnx:xlnx_rebase_v5.15_LTS 270/973] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:2660:5: warning: no previous prototype for 'axienet_ethtools_sset_count' Message-ID: <202203100319.tfXB6eLF-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220309_115521_800385_CA1660D3 X-CRM114-Status: GOOD ( 14.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS head: 802aff9b79e15ede7cbb84ac784f943f5a66287a commit: 5e2af855147c7a9c5c9288a6888e298435a1c2c3 [270/973] net: xilinx: Ethtool statistics support config: m68k-buildonly-randconfig-r003-20220309 (https://download.01.org/0day-ci/archive/20220310/202203100319.tfXB6eLF-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 11.2.0 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 # https://github.com/Xilinx/linux-xlnx/commit/5e2af855147c7a9c5c9288a6888e298435a1c2c3 git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS git checkout 5e2af855147c7a9c5c9288a6888e298435a1c2c3 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:2660:5: warning: no previous prototype for 'axienet_ethtools_sset_count' [-Wmissing-prototypes] 2660 | int axienet_ethtools_sset_count(struct net_device *ndev, int sset) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:2683:6: warning: no previous prototype for 'axienet_ethtools_get_stats' [-Wmissing-prototypes] 2683 | void axienet_ethtools_get_stats(struct net_device *ndev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:2710:6: warning: no previous prototype for 'axienet_ethtools_strings' [-Wmissing-prototypes] 2710 | void axienet_ethtools_strings(struct net_device *ndev, u32 sset, u8 *data) | ^~~~~~~~~~~~~~~~~~~~~~~~ vim +/axienet_ethtools_sset_count +2660 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 2650 2651 /** 2652 * axienet_ethtools_sset_count - Get number of strings that 2653 * get_strings will write. 2654 * @ndev: Pointer to net_device structure 2655 * @sset: Get the set strings 2656 * 2657 * Return: number of strings, on success, Non-zero error value on 2658 * failure. 2659 */ > 2660 int axienet_ethtools_sset_count(struct net_device *ndev, int sset) 2661 { 2662 switch (sset) { 2663 case ETH_SS_STATS: 2664 #ifdef CONFIG_AXIENET_HAS_MCDMA 2665 return axienet_sset_count(ndev, sset); 2666 #else 2667 return AXIENET_ETHTOOLS_SSTATS_LEN; 2668 #endif 2669 default: 2670 return -EOPNOTSUPP; 2671 } 2672 } 2673 2674 /** 2675 * axienet_ethtools_get_stats - Get the extended statistics 2676 * about the device. 2677 * @ndev: Pointer to net_device structure 2678 * @stats: Pointer to ethtool_stats structure 2679 * @data: To store the statistics values 2680 * 2681 * Return: None. 2682 */ > 2683 void axienet_ethtools_get_stats(struct net_device *ndev, 2684 struct ethtool_stats *stats, 2685 u64 *data) 2686 { 2687 unsigned int i = 0; 2688 2689 data[i++] = ndev->stats.tx_packets; 2690 data[i++] = ndev->stats.rx_packets; 2691 data[i++] = ndev->stats.tx_bytes; 2692 data[i++] = ndev->stats.rx_bytes; 2693 data[i++] = ndev->stats.tx_errors; 2694 data[i++] = ndev->stats.rx_missed_errors + ndev->stats.rx_frame_errors; 2695 2696 #ifdef CONFIG_AXIENET_HAS_MCDMA 2697 axienet_get_stats(ndev, stats, data); 2698 #endif 2699 } 2700 2701 /** 2702 * axienet_ethtools_strings - Set of strings that describe 2703 * the requested objects. 2704 * @ndev: Pointer to net_device structure 2705 * @sset: Get the set strings 2706 * @data: Data of Transmit and Receive statistics 2707 * 2708 * Return: None. 2709 */ > 2710 void axienet_ethtools_strings(struct net_device *ndev, u32 sset, u8 *data) 2711 { 2712 int i; 2713 2714 for (i = 0; i < AXIENET_ETHTOOLS_SSTATS_LEN; i++) { 2715 if (sset == ETH_SS_STATS) 2716 memcpy(data + i * ETH_GSTRING_LEN, 2717 axienet_get_ethtools_strings_stats[i].name, 2718 ETH_GSTRING_LEN); 2719 } 2720 #ifdef CONFIG_AXIENET_HAS_MCDMA 2721 axienet_strings(ndev, sset, data); 2722 #endif 2723 } 2724 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel