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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A5EEC4167B for ; Sat, 9 Dec 2023 06:24:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234317AbjLIGYg (ORCPT ); Sat, 9 Dec 2023 01:24:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjLIGYe (ORCPT ); Sat, 9 Dec 2023 01:24:34 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 392C2B5 for ; Fri, 8 Dec 2023 22:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702103081; x=1733639081; h=date:from:to:cc:subject:message-id:mime-version; bh=zNB6b/M57px8o5ziP42gtE2rU7ZpP+HT0VHm/EYm4ZI=; b=gAIZVTe/f7WjadGGKz7xqFXk0ftbTkuWorGpUcBPXIFZtJeQbA3M5eXK hGfiaDJMpH0/QJfH1agsxXKStqm9K3OXAbLEfsD+XUkNYqXxJIGuZc5EU /e8CdHZB02E1OVk+4wYWUgOCd4X/ovDQMKcBGvRTTemBtNZgeMs4hWted fOpmFaD9HBd4wZYmKGDiv54hyFWynTecU3MKu9jaMN9tTxtmDejcyr8fT Bm7EtV56AOzEHhO3CH0TAhfmDfk8PuwA+Rb0iclPyIBDiRSXs75yBed6M NGUo32iJUJeSRItIo71H0v4PXxTj6QbPe4/WLcghKHJK2g2D/fXmVjqfE w==; X-IronPort-AV: E=McAfee;i="6600,9927,10918"; a="1371175" X-IronPort-AV: E=Sophos;i="6.04,262,1695711600"; d="scan'208";a="1371175" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2023 22:24:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10918"; a="765728238" X-IronPort-AV: E=Sophos;i="6.04,262,1695711600"; d="scan'208";a="765728238" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 08 Dec 2023 22:24:39 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rBqjn-000EvN-0F; Sat, 09 Dec 2023 06:24:02 +0000 Date: Sat, 9 Dec 2023 14:22:06 +0800 From: kernel test robot To: Lubomir Rintel Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Vinod Koul Subject: drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression Message-ID: <202312091417.wmY8IiVm-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f2e8a57ee9036c7d5443382b6c3c09b51a92ec7e commit: 0347c69214f4b600f40c0dc58945dc2798e2b3d9 phy: Add USB HSIC PHY driver for Marvell MMP3 SoC date: 3 years, 1 month ago config: openrisc-randconfig-r131-20231102 (https://download.01.org/0day-ci/archive/20231209/202312091417.wmY8IiVm-lkp@intel.com/config) compiler: or1k-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231209/202312091417.wmY8IiVm-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202312091417.wmY8IiVm-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression drivers/phy/marvell/phy-mmp3-hsic.c: note: in included file (through arch/openrisc/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 include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype] vim +/__iomem +61 drivers/phy/marvell/phy-mmp3-hsic.c 39 40 static int mmp3_hsic_phy_probe(struct platform_device *pdev) 41 { 42 struct device *dev = &pdev->dev; 43 struct phy_provider *provider; 44 struct resource *resource; 45 void __iomem *base; 46 struct phy *phy; 47 48 resource = platform_get_resource(pdev, IORESOURCE_MEM, 0); 49 base = devm_ioremap_resource(dev, resource); 50 if (IS_ERR(base)) { 51 dev_err(dev, "failed to remap PHY regs\n"); 52 return PTR_ERR(base); 53 } 54 55 phy = devm_phy_create(dev, NULL, &mmp3_hsic_phy_ops); 56 if (IS_ERR(phy)) { 57 dev_err(dev, "failed to create PHY\n"); 58 return PTR_ERR(phy); 59 } 60 > 61 phy_set_drvdata(phy, (void *)base); 62 provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); 63 if (IS_ERR(provider)) { 64 dev_err(dev, "failed to register PHY provider\n"); 65 return PTR_ERR(provider); 66 } 67 68 return 0; 69 } 70 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki