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 D1D55C433EF for ; Wed, 13 Jul 2022 13:51:26 +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=nG/oRo2k5xjsBNUfaEt9MAs8lLrUVBo8VbFgMpV8Hls=; b=kvfF+fzYB01FQf NJ5RsoWqy6DZfUNCmEYRMWU0I4pQq9jMtaD4u4TfaNu4+4Viyvt9258uEdAJHXuhYkaBZTnidKSvK MAs5Ev3/RELszvGW/uUdMuelCUw0WX5D5+hwqK/K+vzoyzERl+PWKbbKpxAfKL7NvI+F9rEX4jnnF 5KfK0tCiTmMKQsslpWW1AMQP+1dg+OZ6iuVr3glPSt1SlldMj8kFDvU2hXda0LkH1jOO3Rc5YdV5L khaBZPQLtOtC0WBvBrw06/FF26klaQ4v4GtZgtHsN2XIOSs3GJGUwJp7oBrIVoq1ySV9N6aIxr358 lREsqX1tdL3GvWE3JN5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBckl-0045jH-NY; Wed, 13 Jul 2022 13:50:11 +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 1oBckg-0045fE-0a for linux-arm-kernel@lists.infradead.org; Wed, 13 Jul 2022 13:50:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657720205; x=1689256205; h=date:from:to:cc:subject:message-id:mime-version; bh=z+JXcM/svUcWl8WMdCRxAOwg1FfThgapSyAa/Q98PrA=; b=TVgYu82zMqxwByp22dYaWsIbCMoUiG0PmQU2flUJbLDHvKE2lX4+2ylx UNCkOEZQXjPWw3K4gyswwGLmRxbMdYcvnf2YPNKguX7xJonLlmhGPS8yw YyehZMo3534mzzwX2RmVEVwZ30ovB72BiCW4sHqfnqkrJsloLcQDPB+5R v/sfDc28ApnXg4qA88DIL1ggbTvSxqEUp8PPWYGkicpDPqYKIzEzgIXb8 8iNkfz192Ilb9iS8/5wOGzhGet6drahGbx87kKYjGZayKVtF2SqZ2WQEp QNM81M6ZsElpexrIEd4WM634EYI48gBl/x0mb+A0hn7tcLnoB+o7LKOOy Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10406"; a="286350084" X-IronPort-AV: E=Sophos;i="5.92,267,1650956400"; d="scan'208";a="286350084" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2022 06:50:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,267,1650956400"; d="scan'208";a="922635627" Received: from lkp-server02.sh.intel.com (HELO 8708c84be1ad) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 13 Jul 2022 06:50:00 -0700 Received: from kbuild by 8708c84be1ad with local (Exim 4.95) (envelope-from ) id 1oBcka-0003ZF-Dc; Wed, 13 Jul 2022 13:50:00 +0000 Date: Wed, 13 Jul 2022 21:49:20 +0800 From: kernel test robot To: Harini Katakam Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Michal Simek , Pranavi Somisetty , Quanyang Wang , Radhey Shyam Pandey Subject: [xilinx-xlnx:xlnx_rebase_v5.15_LTS 50/1226] drivers/net/ethernet/cadence/macb_main.c:4925:58: sparse: sparse: incorrect type in argument 1 (different base types) Message-ID: <202207132117.Vvxn4Wjd-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-20220713_065006_184706_FDB8557F X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. 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: 782529d063390382abaacec5d4a7f8c138b93715 commit: e4a3b891d0e4c1360f71c99b4f47754a727dce8c [50/1226] net: macb: Use WOL via ARP config: h8300-randconfig-s031-20220712 (https://download.01.org/0day-ci/archive/20220713/202207132117.Vvxn4Wjd-lkp@intel.com/config) compiler: h8300-linux-gcc (GCC) 11.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/Xilinx/linux-xlnx/commit/e4a3b891d0e4c1360f71c99b4f47754a727dce8c git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS git checkout e4a3b891d0e4c1360f71c99b4f47754a727dce8c # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=h8300 SHELL=/bin/bash drivers/net/ethernet/cadence/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/net/ethernet/cadence/macb_main.c:284:16: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] bottom @@ got restricted __le32 [usertype] @@ drivers/net/ethernet/cadence/macb_main.c:284:16: sparse: expected unsigned int [usertype] bottom drivers/net/ethernet/cadence/macb_main.c:284:16: sparse: got restricted __le32 [usertype] drivers/net/ethernet/cadence/macb_main.c:286:13: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] top @@ got restricted __le16 [usertype] @@ drivers/net/ethernet/cadence/macb_main.c:286:13: sparse: expected unsigned short [usertype] top drivers/net/ethernet/cadence/macb_main.c:286:13: sparse: got restricted __le16 [usertype] drivers/net/ethernet/cadence/macb_main.c:3250:39: sparse: sparse: restricted __be32 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3255:39: sparse: sparse: restricted __be32 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3260:40: sparse: sparse: restricted __be16 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3260:69: sparse: sparse: restricted __be16 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3285:20: sparse: sparse: restricted __be32 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3289:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] w0 @@ got restricted __be32 [usertype] ip4src @@ drivers/net/ethernet/cadence/macb_main.c:3289:20: sparse: expected unsigned int [assigned] [usertype] w0 drivers/net/ethernet/cadence/macb_main.c:3289:20: sparse: got restricted __be32 [usertype] ip4src drivers/net/ethernet/cadence/macb_main.c:3299:20: sparse: sparse: restricted __be32 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3303:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] w0 @@ got restricted __be32 [usertype] ip4dst @@ drivers/net/ethernet/cadence/macb_main.c:3303:20: sparse: expected unsigned int [assigned] [usertype] w0 drivers/net/ethernet/cadence/macb_main.c:3303:20: sparse: got restricted __be32 [usertype] ip4dst drivers/net/ethernet/cadence/macb_main.c:3313:21: sparse: sparse: restricted __be16 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3313:50: sparse: sparse: restricted __be16 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3319:30: sparse: sparse: restricted __be16 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3320:30: sparse: sparse: restricted __be16 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3327:36: sparse: sparse: restricted __be16 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3328:38: sparse: sparse: restricted __be16 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3331:38: sparse: sparse: restricted __be16 degrades to integer drivers/net/ethernet/cadence/macb_main.c:3367:9: sparse: sparse: cast from restricted __be32 drivers/net/ethernet/cadence/macb_main.c:3367:9: sparse: sparse: cast from restricted __be32 drivers/net/ethernet/cadence/macb_main.c:3367:9: sparse: sparse: cast from restricted __be16 drivers/net/ethernet/cadence/macb_main.c:3367:9: sparse: sparse: cast from restricted __be16 drivers/net/ethernet/cadence/macb_main.c:3420:25: sparse: sparse: cast from restricted __be32 drivers/net/ethernet/cadence/macb_main.c:3420:25: sparse: sparse: cast from restricted __be32 drivers/net/ethernet/cadence/macb_main.c:3420:25: sparse: sparse: cast from restricted __be16 drivers/net/ethernet/cadence/macb_main.c:3420:25: sparse: sparse: cast from restricted __be16 >> drivers/net/ethernet/cadence/macb_main.c:4925:58: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int const [usertype] *p @@ got restricted __be32 [noderef] __rcu * @@ drivers/net/ethernet/cadence/macb_main.c:4925:58: sparse: expected unsigned int const [usertype] *p drivers/net/ethernet/cadence/macb_main.c:4925:58: sparse: got restricted __be32 [noderef] __rcu * drivers/net/ethernet/cadence/macb_main.c:4925:41: sparse: sparse: restricted __be32 degrades to integer drivers/net/ethernet/cadence/macb_main.c: note: in included file (through include/linux/io.h): arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression drivers/net/ethernet/cadence/macb_main.c: note: in included file (through arch/h8300/include/asm/io.h, include/linux/io.h): include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 drivers/net/ethernet/cadence/macb_main.c: note: in included file (through include/linux/io.h): arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression drivers/net/ethernet/cadence/macb_main.c: note: in included file (through arch/h8300/include/asm/io.h, include/linux/io.h): include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] b @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] b include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype] drivers/net/ethernet/cadence/macb_main.c: note: in included file (through include/linux/io.h): arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression drivers/net/ethernet/cadence/macb_main.c: note: in included file (through arch/h8300/include/asm/io.h, include/linux/io.h): include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 drivers/net/ethernet/cadence/macb_main.c: note: in included file (through include/linux/io.h): arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression drivers/net/ethernet/cadence/macb_main.c: note: in included file (through arch/h8300/include/asm/io.h, include/linux/io.h): include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 drivers/net/ethernet/cadence/macb_main.c: note: in included file (through include/linux/io.h): arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression >> drivers/net/ethernet/cadence/macb_main.c:4892:29: sparse: sparse: dereference of noderef expression drivers/net/ethernet/cadence/macb_main.c:4925:50: sparse: sparse: dereference of noderef expression drivers/net/ethernet/cadence/macb_main.c:4925:50: sparse: sparse: dereference of noderef expression vim +4925 drivers/net/ethernet/cadence/macb_main.c 4878 4879 static int __maybe_unused macb_suspend(struct device *dev) 4880 { 4881 struct net_device *netdev = dev_get_drvdata(dev); 4882 struct macb *bp = netdev_priv(netdev); 4883 struct macb_queue *queue; 4884 unsigned long flags; 4885 unsigned int q; 4886 u32 ctrl, arpipmask; 4887 4888 if (!netif_running(netdev)) 4889 return 0; 4890 4891 if (device_may_wakeup(&bp->dev->dev)) { > 4892 if (!bp->dev->ip_ptr->ifa_list) { 4893 netdev_err(netdev, "IP address not assigned\n"); 4894 return -EOPNOTSUPP; 4895 } 4896 spin_lock_irqsave(&bp->lock, flags); 4897 ctrl = macb_readl(bp, NCR); 4898 ctrl &= ~(MACB_BIT(TE) | MACB_BIT(RE)); 4899 macb_writel(bp, NCR, ctrl); 4900 /* Tie off RX queues */ 4901 for (q = 0, queue = bp->queues; q < bp->num_queues; 4902 ++q, ++queue) { 4903 queue_writel(queue, RBQP, 4904 lower_32_bits(bp->rx_ring_tieoff_dma)); 4905 } 4906 ctrl = macb_readl(bp, NCR); 4907 ctrl |= MACB_BIT(RE); 4908 macb_writel(bp, NCR, ctrl); 4909 gem_writel(bp, NCFGR, gem_readl(bp, NCFGR) & ~MACB_BIT(NBC)); 4910 macb_writel(bp, TSR, -1); 4911 macb_writel(bp, RSR, -1); 4912 macb_readl(bp, ISR); 4913 if (bp->caps & MACB_CAPS_ISR_CLEAR_ON_WRITE) 4914 macb_writel(bp, ISR, -1); 4915 4916 /* Enable WOL (Q0 only) and disable all other interrupts */ 4917 macb_writel(bp, IER, MACB_BIT(WOL)); 4918 for (q = 1, queue = bp->queues; q < bp->num_queues; 4919 ++q, ++queue) { 4920 queue_writel(queue, IDR, bp->rx_intr_mask | 4921 MACB_TX_INT_FLAGS | 4922 MACB_BIT(HRESP)); 4923 } 4924 > 4925 arpipmask = cpu_to_be32p(&bp->dev->ip_ptr->ifa_list->ifa_local) 4926 & 0xFFFF; 4927 gem_writel(bp, WOL, MACB_BIT(ARP) | arpipmask); 4928 spin_unlock_irqrestore(&bp->lock, flags); 4929 enable_irq_wake(bp->queues[0].irq); 4930 } 4931 4932 netif_device_detach(netdev); 4933 for (q = 0, queue = bp->queues; q < bp->num_queues; 4934 ++q, ++queue) 4935 napi_disable(&queue->napi); 4936 4937 if (!device_may_wakeup(&bp->dev->dev)) { 4938 rtnl_lock(); 4939 phylink_stop(bp->phylink); 4940 rtnl_unlock(); 4941 spin_lock_irqsave(&bp->lock, flags); 4942 macb_reset_hw(bp); 4943 spin_unlock_irqrestore(&bp->lock, flags); 4944 } 4945 4946 if (!(bp->caps & MACB_CAPS_USRIO_DISABLED)) 4947 bp->pm_data.usrio = macb_or_gem_readl(bp, USRIO); 4948 4949 if (netdev->hw_features & NETIF_F_NTUPLE) 4950 bp->pm_data.scrt2 = gem_readl_n(bp, ETHT, SCRT2_ETHT); 4951 4952 if (bp->ptp_info) 4953 bp->ptp_info->ptp_remove(netdev); 4954 if (!device_may_wakeup(&bp->dev->dev)) 4955 pm_runtime_force_suspend(dev); 4956 4957 return 0; 4958 } 4959 -- 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