From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 D5AB6327C05; Thu, 15 Jan 2026 14:22:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768486933; cv=none; b=j/2lqzZtOormtxVYNzS8TamZVoENdXj0m7sv8JAXC7ufCo0mhTFamGUAL83/EZnQrKENyMM7rrv+DrcZEB/7E9wKfTq2DRWV1dMs19wIx9dCsNhEqtEJ1urit1NiJ4f8F667stK7+vt/OY/zALc+bqqwuVW9GlCS5hWC+GM3Kss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768486933; c=relaxed/simple; bh=VaahnzZz83uGRiasMP6wLuszVvlY8iVa+7dR+DbPbJY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oxUkuGxbJho0JuXLd9fSsKd9cfcFag3l7Z/BgyiqcC76DZ+Qf8/eHqGLZ8LAtZaVUBH2JFR0o1eXCMKQ+rZF6TUv1KVBfhffIUEGHlYUe8T3YhlYVgk/mZvwOsQE3aJk4nSulWCQdUhJ59EygOPZ/1Lx1dBmgV/tuarh4ArN1p4= 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=h0pT1eXK; arc=none smtp.client-ip=192.198.163.19 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="h0pT1eXK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1768486932; x=1800022932; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=VaahnzZz83uGRiasMP6wLuszVvlY8iVa+7dR+DbPbJY=; b=h0pT1eXKxCShxmyWKjMj9aOwVQ0nYPwaw/k6y+MrCnLok572BfwwsvED R7q82iWNgk+DuY7osGnZZiRIuGMculqbVo6UqE+AnAlSsD3Ajm6/sB/ir SBm0C7msnz7EaFsUiwLS0C7pVyoxJc36ANKPTOfMJ+FBNpaJYcKIxfOK6 chLb1jepF3UTfprs71lktS1WjL7ZtvrmlZUo43HtlRIOfECqZXXNoI53j IoqP+F+ANAdCSplpFfoq+ie1tAx3UFe0f0yQkb0zTO/vtgS1E059KriIX N3A+hYe+6vaShJPpuQ0LNvMie3gARHW1iWAsq99nAchdqpWN/xDki1oqa g==; X-CSE-ConnectionGUID: DauMSQXkSEqyPTR7YIRU/w== X-CSE-MsgGUID: zsW9SRuFQ4SMeDsEljOKXA== X-IronPort-AV: E=McAfee;i="6800,10657,11672"; a="68804183" X-IronPort-AV: E=Sophos;i="6.21,228,1763452800"; d="scan'208";a="68804183" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2026 06:22:11 -0800 X-CSE-ConnectionGUID: LZovwVRjROalIhGdNaIzWg== X-CSE-MsgGUID: J5TnfJRWRl+tyyKtJwuncQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,228,1763452800"; d="scan'208";a="204169860" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 15 Jan 2026 06:22:08 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vgOEf-00000000I3I-3bYn; Thu, 15 Jan 2026 14:22:05 +0000 Date: Thu, 15 Jan 2026 22:22:00 +0800 From: kernel test robot To: Mayank Mahajan , linux@roeck-us.net, corbet@lwn.net, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, priyanka.jain@nxp.com, vikash.bansal@nxp.com, Mayank Mahajan Subject: Re: [PATCH v2 1/3] hwmon: (tmp108) Add support for P3T1035 and P3T2030 Message-ID: <202601152241.dTXwVh7v-lkp@intel.com> References: <20260115065757.35-1-mayankmahajan.x@nxp.com> Precedence: bulk X-Mailing-List: linux-doc@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: <20260115065757.35-1-mayankmahajan.x@nxp.com> Hi Mayank, kernel test robot noticed the following build errors: [auto build test ERROR on groeck-staging/hwmon-next] [also build test ERROR on linus/master v6.19-rc5 next-20260115] [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/Mayank-Mahajan/dt-bindings-hwmon-ti-tmp108-Add-P3T1035-P3T2030/20260115-145945 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next patch link: https://lore.kernel.org/r/20260115065757.35-1-mayankmahajan.x%40nxp.com patch subject: [PATCH v2 1/3] hwmon: (tmp108) Add support for P3T1035 and P3T2030 config: sparc-randconfig-001-20260115 (https://download.01.org/0day-ci/archive/20260115/202601152241.dTXwVh7v-lkp@intel.com/config) compiler: sparc-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260115/202601152241.dTXwVh7v-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/202601152241.dTXwVh7v-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/hwmon/tmp108.c: In function 'tmp108_common_probe': drivers/hwmon/tmp108.c:457:52: error: macro 'memcpy' passed 6 arguments, but takes just 3 457 | sizeof(tmp108->sample_times)); | ^ In file included from include/linux/string.h:65, from include/linux/bitmap.h:13, from include/linux/cpumask.h:11, from arch/sparc/include/asm/smp_32.h:15, from arch/sparc/include/asm/smp.h:7, from arch/sparc/include/asm/switch_to_32.h:5, from arch/sparc/include/asm/switch_to.h:7, from arch/sparc/include/asm/ptrace.h:120, from arch/sparc/include/asm/thread_info_32.h:19, from arch/sparc/include/asm/thread_info.h:7, from include/linux/thread_info.h:60, from arch/sparc/include/asm/current.h:15, from include/linux/sched.h:12, from include/linux/delay.h:13, from drivers/hwmon/tmp108.c:7: arch/sparc/include/asm/string.h:15:9: note: macro 'memcpy' defined here 15 | #define memcpy(t, f, n) __builtin_memcpy(t, f, n) | ^~~~~~ >> drivers/hwmon/tmp108.c:456:17: error: 'memcpy' undeclared (first use in this function) 456 | memcpy(tmp108->sample_times, (unsigned int[]){ 125, 250, 1000, 4000 }, | ^~~~~~ drivers/hwmon/tmp108.c:19:1: note: 'memcpy' is defined in header ''; this is probably fixable by adding '#include ' 18 | #include +++ |+#include 19 | #include drivers/hwmon/tmp108.c:456:17: note: each undeclared identifier is reported only once for each function it appears in 456 | memcpy(tmp108->sample_times, (unsigned int[]){ 125, 250, 1000, 4000 }, | ^~~~~~ drivers/hwmon/tmp108.c:460:52: error: macro 'memcpy' passed 6 arguments, but takes just 3 460 | sizeof(tmp108->sample_times)); | ^ arch/sparc/include/asm/string.h:15:9: note: macro 'memcpy' defined here 15 | #define memcpy(t, f, n) __builtin_memcpy(t, f, n) | ^~~~~~ vim +/memcpy +456 drivers/hwmon/tmp108.c 434 435 static int tmp108_common_probe(struct device *dev, struct regmap *regmap, char *name, 436 enum tmp108_hw_id hw_id) 437 { 438 struct device *hwmon_dev; 439 struct tmp108 *tmp108; 440 u32 config; 441 int err; 442 443 err = devm_regulator_get_enable(dev, "vcc"); 444 if (err) 445 return dev_err_probe(dev, err, "Failed to enable regulator\n"); 446 447 tmp108 = devm_kzalloc(dev, sizeof(*tmp108), GFP_KERNEL); 448 if (!tmp108) 449 return -ENOMEM; 450 451 dev_set_drvdata(dev, tmp108); 452 tmp108->regmap = regmap; 453 tmp108->hw_id = hw_id; 454 tmp108->config_reg_16bits = (hw_id == P3T1035_ID) ? false : true; 455 if (hw_id == P3T1035_ID) > 456 memcpy(tmp108->sample_times, (unsigned int[]){ 125, 250, 1000, 4000 }, 457 sizeof(tmp108->sample_times)); 458 else 459 memcpy(tmp108->sample_times, (unsigned int[]){ 63, 250, 1000, 4000 }, 460 sizeof(tmp108->sample_times)); 461 462 err = regmap_read(tmp108->regmap, TMP108_REG_CONF, &config); 463 if (err < 0) { 464 dev_err_probe(dev, err, "Error reading config register"); 465 return err; 466 } 467 tmp108->orig_config = config; 468 469 /* Only continuous mode is supported. */ 470 config &= ~TMP108_CONF_MODE_MASK; 471 config |= TMP108_MODE_CONTINUOUS; 472 /* Only comparator mode is supported. */ 473 config &= ~TMP108_CONF_TM; 474 475 err = regmap_write(tmp108->regmap, TMP108_REG_CONF, config); 476 if (err < 0) { 477 dev_err_probe(dev, err, "Error writing config register"); 478 return err; 479 } 480 481 tmp108->ready_time = jiffies; 482 if ((tmp108->orig_config & TMP108_CONF_MODE_MASK) == 483 TMP108_MODE_SHUTDOWN) 484 tmp108->ready_time += 485 msecs_to_jiffies(TMP108_CONVERSION_TIME_MS); 486 487 err = devm_add_action_or_reset(dev, tmp108_restore_config, tmp108); 488 if (err) { 489 dev_err_probe(dev, err, "Add action or reset failed"); 490 return err; 491 } 492 493 hwmon_dev = devm_hwmon_device_register_with_info(dev, name, 494 tmp108, 495 &tmp108_chip_info, 496 NULL); 497 return PTR_ERR_OR_ZERO(hwmon_dev); 498 } 499 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki