From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05B8B2C2353; Tue, 19 Aug 2025 04:38:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755578315; cv=none; b=n4vMZgXOe28JbME7AxxjvPWzZmqowwsCHgCqH5ySILXrILYt+03NFVY4ChvjWkS3UUcj0s52WRZ7P8dyKe6s3IVW3jdGVQO+GYGijl/MQYvYsTDemrtim8KRrF+wPnP/pXqJQTWV/1Nq/NDQqXTeBB9JXHiCXZSZtYBGE7GkB1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755578315; c=relaxed/simple; bh=fX1fDtkJlgXe21ThnDLJ12QhRuLIMPpV4e+3sPurSW0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fBi6o/rARITolNbFJ30MmXINvaAYeo12oV0gkLA9C9qn3fvB7wL4twb++A4e8JdoHaThOTeHuHYJK4QwIdCr8ts3+mhEOqCwBoWHspQw0pzFoaa0URXdvSSKnCGnNW0XHeP3Uz2YW+B4avNJgDr57t1GvsPKf8V+IVMajpg8dNs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=UxwsOZ1u; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UxwsOZ1u" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1755578314; x=1787114314; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fX1fDtkJlgXe21ThnDLJ12QhRuLIMPpV4e+3sPurSW0=; b=UxwsOZ1ulEZYVQIiVzewu33WAQcTwICFFB9AIRLG/YjXQDXUlLqRGFzC Ie1ADYwBltMu2Nhr5WXpxhFSiUSG0/ph77cS8I524/5XK6VcnKKreHoDS yvRtg0F9KxzQH1U3jlaD9GVZLy2DgS/mGcoWZ6vUdtAesYCxCtGKvna/d DaUpiy86JDdcfsl2vEG0Xrsr6iwNG3V5fUPRNIMi01gIYrVlDTNoP06Q9 EdKL660xpWOgJhjyE97URmsqTVa/aiv/2+QvNvhXcqzD3d6Lcb60imyVv QL+Yx3MLsU78U3XpMhTvpUXWYgIFYV3pwgXzTWzfLsjyeTOe7/WkOTHof g==; X-CSE-ConnectionGUID: StzCEnImQ4aCfx9Sx1qRwQ== X-CSE-MsgGUID: k+zCROydT3iF6bKsW6qkVA== X-IronPort-AV: E=McAfee;i="6800,10657,11526"; a="57882452" X-IronPort-AV: E=Sophos;i="6.17,300,1747724400"; d="scan'208";a="57882452" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2025 21:38:33 -0700 X-CSE-ConnectionGUID: xr1bnbrgSICKne4JN1ZibA== X-CSE-MsgGUID: Zwnm0lBgRl6z9KTr/9UVMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,300,1747724400"; d="scan'208";a="166981588" Received: from lkp-server02.sh.intel.com (HELO 4ea60e6ab079) ([10.239.97.151]) by orviesa010.jf.intel.com with ESMTP; 18 Aug 2025 21:38:29 -0700 Received: from kbuild by 4ea60e6ab079 with local (Exim 4.96) (envelope-from ) id 1uoE78-000GVn-2D; Tue, 19 Aug 2025 04:38:26 +0000 Date: Tue, 19 Aug 2025 12:38:16 +0800 From: kernel test robot To: Jacky Bai , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Pengutronix Kernel Team Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Jacky Bai Subject: Re: [PATCH v3 3/4] thermal: qoriq: workaround unexpected temperature readings from tmu Message-ID: <202508191258.tYXB63eu-lkp@intel.com> References: <20250818-imx93_tmu-v3-3-35f79a86c072@nxp.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250818-imx93_tmu-v3-3-35f79a86c072@nxp.com> Hi Jacky, kernel test robot noticed the following build errors: [auto build test ERROR on b9ddaa95fd283bce7041550ddbbe7e764c477110] url: https://github.com/intel-lab-lkp/linux/commits/Jacky-Bai/dt-bindings-thermal-qoriq-Add-compatible-string-for-imx93/20250818-173822 base: b9ddaa95fd283bce7041550ddbbe7e764c477110 patch link: https://lore.kernel.org/r/20250818-imx93_tmu-v3-3-35f79a86c072%40nxp.com patch subject: [PATCH v3 3/4] thermal: qoriq: workaround unexpected temperature readings from tmu config: riscv-randconfig-001-20250819 (https://download.01.org/0day-ci/archive/20250819/202508191258.tYXB63eu-lkp@intel.com/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 93d24b6b7b148c47a2fa228a4ef31524fa1d9f3f) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250819/202508191258.tYXB63eu-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/202508191258.tYXB63eu-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/thermal/qoriq_thermal.c:8: In file included from include/linux/io.h:12: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:804:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 804 | insb(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' 104 | #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/thermal/qoriq_thermal.c:8: In file included from include/linux/io.h:12: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:812:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 812 | insw(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' 105 | #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/thermal/qoriq_thermal.c:8: In file included from include/linux/io.h:12: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:820:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 820 | insl(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' 106 | #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/thermal/qoriq_thermal.c:8: In file included from include/linux/io.h:12: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:829:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 829 | outsb(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' 118 | #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/thermal/qoriq_thermal.c:8: In file included from include/linux/io.h:12: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:838:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 838 | outsw(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' 119 | #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/thermal/qoriq_thermal.c:8: In file included from include/linux/io.h:12: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:847:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 847 | outsl(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' 120 | #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/thermal/qoriq_thermal.c:8: In file included from include/linux/io.h:12: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 1175 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; | ~~~~~~~~~~ ^ >> drivers/thermal/qoriq_thermal.c:281:9: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 281 | FIELD_PREP(TMRTRCTR_TEMP_MASK, 0x7)); | ^ 7 warnings and 1 error generated. vim +/FIELD_PREP +281 drivers/thermal/qoriq_thermal.c 264 265 static void qoriq_tmu_init_device(struct qoriq_tmu_data *data) 266 { 267 /* Disable interrupt, using polling instead */ 268 regmap_write(data->regmap, REGS_TIER, TIER_DISABLE); 269 270 /* Set update_interval */ 271 if (data->ver == TMU_VER1) { 272 regmap_write(data->regmap, REGS_TMTMIR, TMTMIR_DEFAULT); 273 } else { 274 regmap_write(data->regmap, REGS_V2_TMTMIR, TMTMIR_DEFAULT); 275 regmap_write(data->regmap, REGS_V2_TEUMR(0), GET_TEUMR0(data->drvdata)); 276 } 277 278 /* ERR052243: Set the raising & falling edge monitor */ 279 if (CHECK_ERRATA_FLAG(data->drvdata, TMU_ERR052243)) { 280 regmap_write(data->regmap, TMRTRCTR, TMRTRCTR_EN | > 281 FIELD_PREP(TMRTRCTR_TEMP_MASK, 0x7)); 282 regmap_write(data->regmap, TMFTRCTR, TMFTRCTR_EN | 283 FIELD_PREP(TMFTRCTR_TEMP_MASK, 0x7)); 284 285 } 286 /* Disable monitoring */ 287 regmap_write(data->regmap, REGS_TMR, TMR_DISABLE); 288 } 289 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki