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 51C5DC433EF for ; Sat, 18 Dec 2021 03:02:00 +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=K6X4/YI1fWHHH4faweT00gTrVQDDuIF1+wd+LkdXzEE=; b=hWbbSaoJOzDHaO 0OsB6uTbRr1jqIbUDNOwCgAuPdjiI7CpYibmUWe3DloBW6XQ8/CgEabV4Z4Ve4a9db/HocgRBbqhY JZ37SGjryJTWG2e/WFxvJx0+etQmRgZih8irgpfmqMCM8Fi1+9i8+zmsAy/yVG5Izzf48kqxLlN21 bffOQafkt30Jz/kghzO2z5pfPQdfUZ7mXrsVQ9NQ2VGUDoG+V+qEVZE9tKd1uBqJbRGsS7s6icmEr IrwbFLjyiy9Zg5kjiaLwoaydX+UqPWtmo52teXwpN/RQSJ0jYb/1sHktsSgadYLualLfJkEQQU1kt siZfdtgsvyKhnKCADctA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1myPxe-00CtLv-1D; Sat, 18 Dec 2021 03:00:38 +0000 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1myPxZ-00CtKg-L3 for linux-arm-kernel@lists.infradead.org; Sat, 18 Dec 2021 03:00:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639796433; x=1671332433; h=date:from:to:cc:subject:message-id:mime-version; bh=R9Ij+5T6TMtiflwn0orWEsCPqR+HTLSkaUHstDOvCd8=; b=dxvK2YbR54PFuqjAsk4f5xBaiLKwIpafIhPQSUD4YGvFQFC2RnFrnRx8 xNtWwt+j/CItEIBN2WwG/ZFLOTN3zUR3Iw9YIj/AgD+63sCTGmrVaL2+z 3Dk5qjYhWOy/nWvjJTuHzI8EltleVddPF4GejRyVWjgdIy5DeZdzgZo9g x6hjvEPLhDoqqv6Qa+vNjFN80GNy/KDKI9jdMh3ddFnpGTuWlwnt1mDzy PHHAx2rjq8/eaPBC/43Swg8ZoAFI7wY74emSKMbARlBEaXhEjGn3GCj9O miXkpw/VOifZcffIsxkoi/uxQtc5lXlnizXTRisUE58bUpvYFijC+Vir/ g==; X-IronPort-AV: E=McAfee;i="6200,9189,10201"; a="240101128" X-IronPort-AV: E=Sophos;i="5.88,215,1635231600"; d="scan'208";a="240101128" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Dec 2021 19:00:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,215,1635231600"; d="scan'208";a="683598516" Received: from lkp-server02.sh.intel.com (HELO 9f38c0981d9f) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 17 Dec 2021 19:00:29 -0800 Received: from kbuild by 9f38c0981d9f with local (Exim 4.92) (envelope-from ) id 1myPxU-0005UC-IX; Sat, 18 Dec 2021 03:00:28 +0000 Date: Sat, 18 Dec 2021 10:59:55 +0800 From: kernel test robot To: Amit Kumar Mahapatra Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Michal Simek , Naga Sureshkumar Relli Subject: [xilinx-xlnx:xlnx_rebase_v5.4 942/1768] drivers/mtd/spi-nor/spi-nor.c:5196:14: error: implicit declaration of function 'of_get_next_parent' Message-ID: <202112181002.zy1XXyLw-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline 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-20211217_190034_014228_4A1EF63C X-CRM114-Status: GOOD ( 12.49 ) 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.4 head: abafefebd1f1e040eef74e4ab571ea08bf745641 commit: 24bcc7359bdd609cedf0a715d77dc39e4ad782db [942/1768] mtd: spi-nor: Added axi-qspi support in spi-nor framework config: x86_64-randconfig-r013-20211214 (https://download.01.org/0day-ci/archive/20211218/202112181002.zy1XXyLw-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c) 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/24bcc7359bdd609cedf0a715d77dc39e4ad782db git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.4 git checkout 24bcc7359bdd609cedf0a715d77dc39e4ad782db # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/mtd/spi-nor/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): drivers/mtd/spi-nor/spi-nor.c:691:5: warning: variable 'code' set but not used [-Wunused-but-set-variable] u8 code; ^ drivers/mtd/spi-nor/spi-nor.c:2741:9: warning: variable 'addr' set but not used [-Wunused-but-set-variable] loff_t addr = 0; ^ >> drivers/mtd/spi-nor/spi-nor.c:5196:14: error: implicit declaration of function 'of_get_next_parent' [-Werror,-Wimplicit-function-declaration] np_spi = of_get_next_parent(np); ^ >> drivers/mtd/spi-nor/spi-nor.c:5196:12: warning: incompatible integer to pointer conversion assigning to 'struct device_node *' from 'int' [-Wint-conversion] np_spi = of_get_next_parent(np); ^ ~~~~~~~~~~~~~~~~~~~~~~ drivers/mtd/spi-nor/spi-nor.c:5266:11: error: returning 'const struct flash_info *' from a function with result type 'struct flash_info *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] return jinfo; ^~~~~ drivers/mtd/spi-nor/spi-nor.c:5281:9: error: returning 'const struct flash_info *' from a function with result type 'struct flash_info *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] return info; ^~~~ drivers/mtd/spi-nor/spi-nor.c:5295:6: warning: unused variable 'is_dual' [-Wunused-variable] u32 is_dual; ^ drivers/mtd/spi-nor/spi-nor.c:5294:22: warning: unused variable 'np_spi' [-Wunused-variable] struct device_node *np_spi; ^ 5 warnings and 3 errors generated. vim +/of_get_next_parent +5196 drivers/mtd/spi-nor/spi-nor.c 5162 5163 static int spi_nor_set_addr_width(struct spi_nor *nor) 5164 { 5165 struct device_node *np = spi_nor_get_flash_node(nor); 5166 struct device_node *np_spi; 5167 if (nor->addr_width) { 5168 /* already configured from SFDP */ 5169 } else if (nor->info->addr_width) { 5170 nor->addr_width = nor->info->addr_width; 5171 } else if (nor->mtd.size > 0x1000000) { 5172 #ifdef CONFIG_OF 5173 np_spi = of_get_next_parent(np); 5174 if (of_property_match_string(np_spi, "compatible", 5175 "xlnx,zynq-qspi-1.0") >= 0) { 5176 int status; 5177 5178 nor->addr_width = 3; 5179 nor->params.set_4byte(nor, false); 5180 status = read_ear(nor, (struct flash_info *)nor->info); 5181 if (status < 0) 5182 dev_warn(nor->dev, "failed to read ear reg\n"); 5183 else 5184 nor->curbank = status & EAR_SEGMENT_MASK; 5185 } else { 5186 #endif 5187 /* 5188 * enable 4-byte addressing if the 5189 * device exceeds 16MiB 5190 */ 5191 nor->addr_width = 4; 5192 if (JEDEC_MFR(nor->info) == SNOR_MFR_SPANSION || 5193 nor->info->flags & SPI_NOR_4B_OPCODES) { 5194 spi_nor_set_4byte_opcodes(nor); 5195 } else { > 5196 np_spi = of_get_next_parent(np); 5197 if (of_property_match_string(np_spi, 5198 "compatible", 5199 "xlnx,xps-spi-2.00.a") >= 0) { 5200 nor->addr_width = 3; 5201 nor->params.set_4byte(nor, false); 5202 } else { 5203 nor->params.set_4byte(nor, true); 5204 if (nor->isstacked) { 5205 nor->spi->master->flags |= 5206 SPI_MASTER_U_PAGE; 5207 nor->params.set_4byte(nor, true); 5208 nor->spi->master->flags &= 5209 ~SPI_MASTER_U_PAGE; 5210 } 5211 } 5212 } 5213 #ifdef CONFIG_OF 5214 } 5215 #endif 5216 } else { 5217 nor->addr_width = 3; 5218 } 5219 5220 if (nor->addr_width > SPI_NOR_MAX_ADDR_WIDTH) { 5221 dev_err(nor->dev, "address width is too large: %u\n", 5222 nor->addr_width); 5223 return -EINVAL; 5224 } 5225 5226 /* Set 4byte opcodes when possible. */ 5227 if (nor->addr_width == 4 && nor->flags & SNOR_F_4B_OPCODES && 5228 !(nor->flags & SNOR_F_HAS_4BAIT)) 5229 spi_nor_set_4byte_opcodes(nor); 5230 5231 return 0; 5232 } 5233 --- 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