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 E0E40C433F5 for ; Thu, 3 Mar 2022 14:17:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233969AbiCCORq (ORCPT ); Thu, 3 Mar 2022 09:17:46 -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) 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 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 E3AFDC433F5 for ; Thu, 3 Mar 2022 14:18:40 +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:In-Reply-To:MIME-Version:References: 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: List-Owner; bh=uP7KAfkTx3wEXwZiLtkdeIr80vIU11aui4kr8dDRqFA=; b=qfATS4JmwbCF/4 +o6qMYwS+iXyT0uR3mKj4Va68xVbAOiXnUMRXgDhUZjTwH/HFumBQXASIa7uZVU2Q8JV6rTmc1AmS qgzmUCGAAFSE/CYu0yvAuxpAH6zxZt8f1uJ+9ZjM0y7zMqaW7zecMZNjIM2RYBF3E6+0GERxRuXpx gsq1BmsUwHiHrjCzSHdc3uIiC7zxiH3e6emugzy+RXSIRUc8zKr0uKYUZh8U6tWQjGOIjbi63/Iqp NSWhk1itrgtsbEtPXAK2UGeeI4hFXFGK1vj4u2pdrcYHVtHrysqssrQ7E8ft10qOuiV2BKoA7zfF1 7HcC4uBPiU+T6qT7n2PQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmGk-006bZy-VH; Thu, 03 Mar 2022 14:17:27 +0000 Received: from mga06.intel.com ([134.134.136.31]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmGe-006bWq-DZ for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 14:17:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646317040; x=1677853040; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yN2G/1s3nnRhWNWBfpygstYHT/OoQNrY04dyYU6iFzI=; b=C2DOgbd11eMuoixhlkottuoo3srxActIQbXJD+Fgja+Cj5rFoB54cjCf xWIyXMN63Yi+otYsoPmkyaPUMZ38YWR0kPQFfT2YIfCTNqMZh61gI5D4q pF1u6AyRMNNs/WRP/zZ9Z4kRjCWPOoFl+XlIsGaeZcubZT4FE75M4W3ob BqhzGez1Fl4vrQ548XkiV+BVDd+gMrine8goi5O1Rqod5G7Z1bRpRLVPZ 9PmxXdFbFBYT9rfOuND1Tfp0WMXpP23+UJ67jbIDPfJV1jbkyDAqgzEU7 1SG/18DPMsrPwnP+0wSOy9VHnYbIOz9UtA+I4so0YpbwkJ8J7M73KgBG5 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="314400071" X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="314400071" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.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-Disposition: inline In-Reply-To: <20220227115743.69059-2-sven@svenpeter.dev> 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-20220303_061720_554963_236321B0 X-CRM114-Status: GOOD ( 16.33 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel