Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp962693pxm; Thu, 3 Mar 2022 07:54:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfb26j7bMRm0g1uXWjR2fjVpt0jFXX2+Wcy92mf0oZcAAgAEiOe28l27UlOAfz3l9x5bh0 X-Received: by 2002:a17:906:32cf:b0:6d5:83bc:e962 with SMTP id k15-20020a17090632cf00b006d583bce962mr28356954ejk.108.1646322867233; Thu, 03 Mar 2022 07:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646322867; cv=none; d=google.com; s=arc-20160816; b=OViZowrbmwSiuyRcyijnIjK5p+Zb73IIF5i3ULgk81g/F5hEJVB2A0SIpoJRBojlLY 8fNPRhKTn09wzVqYFyGF+kjT6Vm0J0ivTMIhhiEHnyMRVt4kHt2cMhQi3IyOkk+y6zS0 DJZBN7doWH6Zo1500rWUE8oTyvH9S966vZgkwV9hhmL0uLfFu0A2VG8oZJ+hEYEJIaGn D2a9X5abBS1KWZlq9OjydWnGjtQMClWXLeTLYv8q65IpQloKCFjmhdYVHgodXD5nVRXk XzyZVDb2aiFpVXgMLyrYNGmK3vHe17P2fWsDmvdrj5lSMbWDv5s0VUfhqvXBH3EtfB3I Ka9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cQHaqhmP9ELk1rrMqp1bFibVMWfUsHwgBI4NNpzdv0I=; b=TxHa3hFwqkQHffD+xOzU3BS2yi17H3Bofe07an4Iy/1KftgKH9KKvhnvitfmtXQ8Ir 6liLpB5FUazQ8H1U7k6uBGZPDSC59MDVAqG81yRrayKxi/5TyzBzov1d0+/bTGN6gNWL iakdDI+1qlSGZETNfrM22/pYZA1cztMyi7xkbGXiA3M9OOk1gW04ygpWTe4xKHsxlF93 qV7AxYDFDNt/wM896UVC/8qiuWAGxXrrNY7+Xf8zAueffPclNZuxSW/HLF+5XLGI6m12 L6YX56njQmMP739ddYwKQOGpcAKGbTcRWaT2tBZs2Kwi1q3YwDXVVwtqU82lXHFSQ2nd M5qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j4aLbsPx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb20-20020a1709077e9400b006da8f2ab6c5si1445228ejc.937.2022.03.03.07.54.03; Thu, 03 Mar 2022 07:54:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j4aLbsPx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233897AbiCCORp (ORCPT + 99 others); Thu, 3 Mar 2022 09:17:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbiCCORo (ORCPT ); Thu, 3 Mar 2022 09:17:44 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EAFE18CC31; Thu, 3 Mar 2022 06:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646317019; x=1677853019; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yN2G/1s3nnRhWNWBfpygstYHT/OoQNrY04dyYU6iFzI=; b=j4aLbsPxrfe2dsafGwICVLSD/0b26+YscArYa7x9FsVamQj4WQHN0xAG mTs8jdogXYBtLvyMzcVZuavrOAqItbsASlRpfYIKMp9PE2fcurX9FZven asYmxHl6j1aOXbyHyYpvPU1vwvAxX5auD1uSIW6Ijo8N4tUf47vPmY6C8 LPk2tjM77wg+IJG4y9grKhvZEqNDKjxjjKOHK6ZPanOkoQEMTLI0bWp4T kyj1C/bhjdWQRxGrsFj2L35iJBtfU11akM43sirYoCHi6EpvgziOMBvC7 g6/uJD9OrXL3do60fcZwDJGDbSrXcMQ5I2R6fWQpE+KABmRI+/9susWeS g==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="233648377" X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="233648377" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 06:16:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="576499289" Received: from lkp-server01.sh.intel.com (HELO ccb16ba0ecc3) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 03 Mar 2022 06:16:55 -0800 Received: from kbuild by ccb16ba0ecc3 with local (Exim 4.92) (envelope-from ) id 1nPmGF-0000bs-39; Thu, 03 Mar 2022 14:16:55 +0000 Date: Thu, 3 Mar 2022 22:16:01 +0800 From: kernel test robot To: Sven Peter , Srinivas Kandagatla , Rob Herring Cc: kbuild-all@lists.01.org, Sven Peter , Hector Martin , Alyssa Rosenzweig , Mark Kettenis , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] nvmem: Add Apple eFuse driver Message-ID: <202203032219.gDn8cX7m-lkp@intel.com> References: <20220227115743.69059-2-sven@svenpeter.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220227115743.69059-2-sven@svenpeter.dev> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sven, I love your patch! Perhaps something to improve: [auto build test WARNING on soc/for-next] [also build test WARNING on linus/master v5.17-rc6] [cannot apply to robh/for-next next-20220303] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sven-Peter/dt-bindings-nvmem-Add-apple-efuses/20220227-195847 base: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next config: ia64-randconfig-s031-20220302 (https://download.01.org/0day-ci/archive/20220303/202203032219.gDn8cX7m-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.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-dirty # https://github.com/0day-ci/linux/commit/e47f957c24fcbc9f99a972b1b7c802eec04ed40a git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Sven-Peter/dt-bindings-nvmem-Add-apple-efuses/20220227-195847 git checkout e47f957c24fcbc9f99a972b1b7c802eec04ed40a # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/nvmem/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/nvmem/apple-efuses.c:17:31: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void [noderef] __iomem *fuses @@ got void *context @@ drivers/nvmem/apple-efuses.c:17:31: sparse: expected void [noderef] __iomem *fuses drivers/nvmem/apple-efuses.c:17:31: sparse: got void *context >> drivers/nvmem/apple-efuses.c:42:21: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *priv @@ got void [noderef] __iomem * @@ drivers/nvmem/apple-efuses.c:42:21: sparse: expected void *priv drivers/nvmem/apple-efuses.c:42:21: sparse: got void [noderef] __iomem * drivers/nvmem/apple-efuses.c: note: in included file (through arch/ia64/include/asm/io.h, include/linux/io.h): include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32 vim +17 drivers/nvmem/apple-efuses.c 13 14 static int apple_efuses_read(void *context, unsigned int offset, void *val, 15 size_t bytes) 16 { > 17 void __iomem *fuses = context; 18 u32 *dst = val; 19 20 while (bytes >= sizeof(u32)) { 21 *dst++ = readl_relaxed(fuses + offset); 22 bytes -= sizeof(u32); 23 offset += sizeof(u32); 24 } 25 26 return 0; 27 } 28 29 static int apple_efuses_probe(struct platform_device *pdev) 30 { 31 struct resource *res; 32 struct nvmem_config config = { 33 .dev = &pdev->dev, 34 .read_only = true, 35 .reg_read = apple_efuses_read, 36 .stride = sizeof(u32), 37 .word_size = sizeof(u32), 38 .name = "apple_efuses_nvmem", 39 .id = NVMEM_DEVID_AUTO, 40 }; 41 > 42 config.priv = devm_platform_get_and_ioremap_resource(pdev, 0, &res); 43 if (IS_ERR(config.priv)) 44 return PTR_ERR(config.priv); 45 46 config.size = resource_size(res); 47 48 return PTR_ERR_OR_ZERO(devm_nvmem_register(config.dev, &config)); 49 } 50 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org