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 3129EC433F5 for ; Fri, 6 May 2022 21:21:22 +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=evfxkf4urcWEJHvixEZj32OOTH8QCPL1fFxdv+m02jQ=; b=jFIu4wTRgyfz/f 7+D6WNq59rUCc+lGYKExu2YSDKTzlcq9TdERztmz49cGRXm8iZpejvziQgvFH2XTjg3foT6bIr6DF R2la0OayRbemFPrUiskN/hzsw7+PKytZaGP8+6+yPyROhEkB9D1++S213134jvMTR4TVmq6dvnw0J zUskERAfwlqXREG84LkOy9/W6t5LhCYy47KNRtfOeH+M+zHx/yZwSR2EXBmQ3a3jO0SxCuIg+SxZZ ojsWFGwArqPYBftGcraE5zQ5KoCLHeDIJKCJ68oey7iOS7OAzwfWHDOOnqzxJyQ99a5dMjsqhifNL n/DiLOlBqgnAW1aYMjUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nn5Ma-0054VJ-9H; Fri, 06 May 2022 21:19:48 +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 1nn5MW-0054Rf-Ah for linux-arm-kernel@lists.infradead.org; Fri, 06 May 2022 21:19:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651871984; x=1683407984; h=date:from:to:cc:subject:message-id:mime-version; bh=12J3mpOifLdxmvfb9ViizrbQtJM2XjmtvSiGHpAjHyk=; b=A5pbO3IW8CcuI51Kv+oTofcu26VAktlyWes0KpGhiu70wAzco/TVvc0a onmJsnj/rCEcZIBrzI4/VxnXQuoBYsYueV6SzD6pMO/PnhFfUJT9AMDtk VNDA34npRDMEFLV1HYhvgHuouRnutV8txTpZ3M3I/nJ6Q7mIAQunZaCrV RYbX2Y4SLi+RetTLih1cIybCSq5PVQyxNUlt60uFnkTXFuRm+8HEVcml8 sItLJG5hlXJMzVmxt8ElsGK31bHao+v8sdMkFLwca6jar7Ud8m+iQCyPY 30SMOFEBmDOOCqOSpG/4/ST2c14O2QyV6pkWxHweIO4sPa3M+cu3pFzCa w==; X-IronPort-AV: E=McAfee;i="6400,9594,10339"; a="268471106" X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="268471106" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 14:19:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="518237554" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 06 May 2022 14:19:37 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nn5MP-000Dup-7F; Fri, 06 May 2022 21:19:37 +0000 Date: Sat, 7 May 2022 05:19:27 +0800 From: kernel test robot To: Appana Durga Kedareswara Rao Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Michal Simek , Radhey Shyam Pandey , Swati Agarwal Subject: [xilinx-xlnx:xlnx_rebase_v5.15_LTS 216/1129] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:690:31: warning: cast to pointer from integer of different size Message-ID: <202205070534.9VpvFLXb-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220506_141944_490723_60024D8E X-CRM114-Status: GOOD ( 13.58 ) 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: 3076249fc30bf463f8390f89009de928ad3e95ff commit: bf05571deda79b6b79d0e5cd93dd813a7696fa79 [216/1129] net: axienet: Add support for 1588 config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220507/202205070534.9VpvFLXb-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 11.3.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/bf05571deda79b6b79d0e5cd93dd813a7696fa79 git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS git checkout bf05571deda79b6b79d0e5cd93dd813a7696fa79 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/clk/ drivers/gpu/drm/xlnx/ drivers/media/i2c/ drivers/media/mc/ drivers/media/platform/xilinx/ drivers/misc/ drivers/net/ethernet/xilinx/ drivers/phy/xilinx/ drivers/ptp/ drivers/staging/ drivers/uio/ drivers/usb/host/ 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: In function 'axienet_tx_hwtstamp': >> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:690:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 690 | skb_hwtstamps((struct sk_buff *)cur_p->ptp_tx_skb); | ^ drivers/net/ethernet/xilinx/xilinx_axienet_main.c:743:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 743 | skb_pull((struct sk_buff *)cur_p->ptp_tx_skb, | ^ drivers/net/ethernet/xilinx/xilinx_axienet_main.c:746:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 746 | skb_tstamp_tx((struct sk_buff *)cur_p->ptp_tx_skb, shhwtstamps); | ^ drivers/net/ethernet/xilinx/xilinx_axienet_main.c:747:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 747 | dev_kfree_skb_any((struct sk_buff *)cur_p->ptp_tx_skb); | ^ drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_start_xmit': >> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1066:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1066 | cur_p->ptp_tx_skb = (phys_addr_t)skb_get(skb); | ^ drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1137:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1137 | cur_p->tx_skb = (phys_addr_t)skb; | ^ drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_dma_err_handler': drivers/net/ethernet/xilinx/xilinx_axienet_main.c:2397:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2397 | dev_kfree_skb_irq((struct sk_buff *)cur_p->tx_skb); | ^ drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_probe': >> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:2719:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 2719 | struct resource txtsres, rxtsres; | ^~~~~~ At top level: drivers/net/ethernet/xilinx/xilinx_axienet_main.c:682:13: warning: 'axienet_tx_hwtstamp' defined but not used [-Wunused-function] 682 | static void axienet_tx_hwtstamp(struct axienet_local *lp, | ^~~~~~~~~~~~~~~~~~~ vim +690 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 673 674 #ifdef CONFIG_XILINX_AXI_EMAC_HWTSTAMP 675 /** 676 * axienet_tx_hwtstamp - Read tx timestamp from hw and update it to the skbuff 677 * @lp: Pointer to axienet local structure 678 * @cur_p: Pointer to the axi_dma current bd 679 * 680 * Return: None. 681 */ 682 static void axienet_tx_hwtstamp(struct axienet_local *lp, 683 struct axidma_bd *cur_p) 684 { 685 u32 sec = 0, nsec = 0, val; 686 u64 time64; 687 int err = 0; 688 u32 count, len = lp->axienet_config->tx_ptplen; 689 struct skb_shared_hwtstamps *shhwtstamps = > 690 skb_hwtstamps((struct sk_buff *)cur_p->ptp_tx_skb); 691 692 val = axienet_txts_ior(lp, XAXIFIFO_TXTS_ISR); 693 if (unlikely(!(val & XAXIFIFO_TXTS_INT_RC_MASK))) 694 dev_info(lp->dev, "Did't get FIFO tx interrupt %d\n", val); 695 696 /* If FIFO is configured in cut through Mode we will get Rx complete 697 * interrupt even one byte is there in the fifo wait for the full packet 698 */ 699 err = readl_poll_timeout_atomic(lp->tx_ts_regs + XAXIFIFO_TXTS_RLR, val, 700 ((val & XAXIFIFO_TXTS_RXFD_MASK) >= 701 len), 0, 1000000); 702 if (err) 703 netdev_err(lp->ndev, "%s: Didn't get the full timestamp packet", 704 __func__); 705 706 nsec = axienet_txts_ior(lp, XAXIFIFO_TXTS_RXFD); 707 sec = axienet_txts_ior(lp, XAXIFIFO_TXTS_RXFD); 708 val = axienet_txts_ior(lp, XAXIFIFO_TXTS_RXFD); 709 val = ((val & XAXIFIFO_TXTS_TAG_MASK) >> XAXIFIFO_TXTS_TAG_SHIFT); 710 dev_dbg(lp->dev, "tx_stamp:[%04x] %04x %u %9u\n", 711 cur_p->ptp_tx_ts_tag, val, sec, nsec); 712 713 if (val != cur_p->ptp_tx_ts_tag) { 714 count = axienet_txts_ior(lp, XAXIFIFO_TXTS_RFO); 715 while (count) { 716 nsec = axienet_txts_ior(lp, XAXIFIFO_TXTS_RXFD); 717 sec = axienet_txts_ior(lp, XAXIFIFO_TXTS_RXFD); 718 val = axienet_txts_ior(lp, XAXIFIFO_TXTS_RXFD); 719 val = ((val & XAXIFIFO_TXTS_TAG_MASK) >> 720 XAXIFIFO_TXTS_TAG_SHIFT); 721 722 dev_dbg(lp->dev, "tx_stamp:[%04x] %04x %u %9u\n", 723 cur_p->ptp_tx_ts_tag, val, sec, nsec); 724 if (val == cur_p->ptp_tx_ts_tag) 725 break; 726 count = axienet_txts_ior(lp, XAXIFIFO_TXTS_RFO); 727 } 728 if (val != cur_p->ptp_tx_ts_tag) { 729 dev_info(lp->dev, "Mismatching 2-step tag. Got %x", 730 val); 731 dev_info(lp->dev, "Expected %x\n", 732 cur_p->ptp_tx_ts_tag); 733 } 734 } 735 736 if (lp->axienet_config->mactype != XAXIENET_10G_25G) 737 val = axienet_txts_ior(lp, XAXIFIFO_TXTS_RXFD); 738 739 time64 = sec * NS_PER_SEC + nsec; 740 memset(shhwtstamps, 0, sizeof(struct skb_shared_hwtstamps)); 741 shhwtstamps->hwtstamp = ns_to_ktime(time64); 742 if (lp->axienet_config->mactype != XAXIENET_10G_25G) 743 skb_pull((struct sk_buff *)cur_p->ptp_tx_skb, 744 AXIENET_TS_HEADER_LEN); 745 > 746 skb_tstamp_tx((struct sk_buff *)cur_p->ptp_tx_skb, shhwtstamps); 747 dev_kfree_skb_any((struct sk_buff *)cur_p->ptp_tx_skb); 748 cur_p->ptp_tx_skb = 0; 749 } 750 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel