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 1C103C10F16 for ; Sat, 27 Apr 2024 21:22:24 +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=3SBCQHNUV7fcfol/Hjl30rOxzDbsQ6zO6D/01p1ObOU=; b=D1hbPeAKtYC+S3 8p/woByhG2VIytV8Ubr9JqgJLDWySVjmxp++VDjYwb/FSfdsQpb+cwMI1StbzwlBX/5JwEfGQD6ZS c2g7XZH9+DzaHZF3ec6UV9hp1qPNU6aHus0tillYB0ca3PhM2x6MLiqgEQ6UXd5epMOnFCZsYDVZa zijmEuxKbJ20Thef729B7SvrvCtxfitfReg4wHQOgVNtFxxtK+41R15SWZgzUpLKrMHhJfxPM6E+0 zBxkccLykkmfs5uo2lraniWm1/W3vGmYzb3MEO6rjfrzl1NMA0POJPYYmvnWQsB6GAvJuUN9meDLf 4MKq8vMYyX2l9Had/NuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0pUl-0000000GEhH-1CCe; Sat, 27 Apr 2024 21:22:07 +0000 Received: from mgamail.intel.com ([192.198.163.14]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0pUi-0000000GEfK-1WfB for linux-arm-kernel@lists.infradead.org; Sat, 27 Apr 2024 21:22:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714252924; x=1745788924; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Ezl9Swg664hzpWpvtY+dYpBr+BE5q5VXZq9LQDanAuQ=; b=FsR9xIW/QEKMa6/L1EootfGUSoVcLg0czCawaZPku/5mlPc3EEfE5eKS iU7Of3Nx+eZybZemLwYd6rCbq7E4DeZ3NXhA0FU96GUjobexDwlHE35tM MLOZF14Nioa29wlFaEbUJtr9MbnBYRNVq0GY5NtQUzyUeRc037ygLcBRk f844L/G9l/ViX3wTRSh4sWqFrnKxNfKQBX2Xg9Tdk5F78sRv5IkeToC+f USb+ohQPkxuIHPqv8q7SqRslKt3NAnNN0LptXTNdpLa0gptVWY4Z1bxNl O5+OO7Bq69PwldQgrq21qnMCJTIOV0WXIsYUvij0CbSxAy50qJQQuLdoP A==; X-CSE-ConnectionGUID: etgs14/qT1C0bpZysy1bzg== X-CSE-MsgGUID: YFq80+1qRn2zzalcm2e3gQ== X-IronPort-AV: E=McAfee;i="6600,9927,11057"; a="10175084" X-IronPort-AV: E=Sophos;i="6.07,236,1708416000"; d="scan'208";a="10175084" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2024 14:21:58 -0700 X-CSE-ConnectionGUID: 8XMMka/ITnuBRZJMLmKujA== X-CSE-MsgGUID: P0x56TpiRn+L7nokncEcPQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,236,1708416000"; d="scan'208";a="26152199" Received: from lkp-server01.sh.intel.com (HELO e434dd42e5a1) ([10.239.97.150]) by orviesa006.jf.intel.com with ESMTP; 27 Apr 2024 14:21:53 -0700 Received: from kbuild by e434dd42e5a1 with local (Exim 4.96) (envelope-from ) id 1s0pUU-0005VW-0i; Sat, 27 Apr 2024 21:21:50 +0000 Date: Sun, 28 Apr 2024 05:20:52 +0800 From: kernel test robot To: Lorenzo Bianconi , linux-spi@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, conor@kernel.org, broonie@kernel.org, lorenzo.bianconi83@gmail.com, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, nbd@nbd.name, john@phrozen.org, dd@embedd.com, catalin.marinas@arm.com, will@kernel.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com, andy.shevchenko@gmail.com Subject: Re: [PATCH v4 3/3] spi: airoha: add SPI-NAND Flash controller driver Message-ID: <202404280541.VkXyenQ3-lkp@intel.com> References: <2047e9c8372b51dc263178a12e194b8826f1abe7.1714119615.git.lorenzo@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2047e9c8372b51dc263178a12e194b8826f1abe7.1714119615.git.lorenzo@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240427_142204_478371_8E030E83 X-CRM114-Status: GOOD ( 12.82 ) 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 Lorenzo, kernel test robot noticed the following build warnings: [auto build test WARNING on next-20240424] [cannot apply to broonie-spi/for-next robh/for-next linus/master v6.9-rc5 v6.9-rc4 v6.9-rc3 v6.9-rc5] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Lorenzo-Bianconi/dt-bindings-spi-airoha-Add-YAML-schema-for-SNFI-controller/20240426-164345 base: next-20240424 patch link: https://lore.kernel.org/r/2047e9c8372b51dc263178a12e194b8826f1abe7.1714119615.git.lorenzo%40kernel.org patch subject: [PATCH v4 3/3] spi: airoha: add SPI-NAND Flash controller driver config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20240428/202404280541.VkXyenQ3-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 5ef5eb66fb428aaf61fb51b709f065c069c11242) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240428/202404280541.VkXyenQ3-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/202404280541.VkXyenQ3-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/spi/spi-airoha-snfi.c:12: In file included from include/linux/dma-mapping.h:11: In file included from include/linux/scatterlist.h:8: In file included from include/linux/mm.h:2254: include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from drivers/spi/spi-airoha-snfi.c:12: In file included from include/linux/dma-mapping.h:11: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 548 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 561 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from drivers/spi/spi-airoha-snfi.c:12: In file included from include/linux/dma-mapping.h:11: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 574 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from drivers/spi/spi-airoha-snfi.c:12: In file included from include/linux/dma-mapping.h:11: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 585 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 595 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 605 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> drivers/spi/spi-airoha-snfi.c:581:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] 581 | default: | ^ drivers/spi/spi-airoha-snfi.c:581:2: note: insert 'break;' to avoid fall-through 581 | default: | ^ | break; 8 warnings generated. vim +581 drivers/spi/spi-airoha-snfi.c 539 540 static bool airoha_snand_is_page_ops(const struct spi_mem_op *op) 541 { 542 if (op->addr.nbytes != 2) 543 return false; 544 545 if (op->addr.buswidth != 1 && op->addr.buswidth != 2 && 546 op->addr.buswidth != 4) 547 return false; 548 549 switch (op->data.dir) { 550 case SPI_MEM_DATA_IN: 551 /* check dummy cycle first */ 552 if (op->dummy.nbytes * BITS_PER_BYTE / op->dummy.buswidth > 0xf) 553 return false; 554 555 /* quad io / quad out */ 556 if ((op->addr.buswidth == 4 || op->addr.buswidth == 1) && 557 op->data.buswidth == 4) 558 return true; 559 560 /* dual io / dual out */ 561 if ((op->addr.buswidth == 2 || op->addr.buswidth == 1) && 562 op->data.buswidth == 2) 563 return true; 564 565 /* standard spi */ 566 if (op->addr.buswidth == 1 && op->data.buswidth == 1) 567 return true; 568 break; 569 case SPI_MEM_DATA_OUT: 570 /* check dummy cycle first */ 571 if (op->dummy.nbytes) 572 return false; 573 574 /* program load quad out */ 575 if (op->addr.buswidth == 1 && op->data.buswidth == 4) 576 return true; 577 578 /* standard spi */ 579 if (op->addr.buswidth == 1 && op->data.buswidth == 1) 580 return true; > 581 default: 582 break; 583 } 584 585 return false; 586 } 587 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel