From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 80E3F1DDA24; Sun, 12 Apr 2026 10:11:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775988701; cv=none; b=Uxrpf/E3ekoIEJbbxHaP3Sgo7RIOeLm3/8V6jEPi+9s1V/IwRk6UiCpA7aVMypoJHUlIZTwQTLsdsSJyCd1GCZqEypQMVmvMxqpNGTJdmcrRFm7oAae6UyG5PpQQGtOkVZGjeiud3d1YBv2EXqYHqZXQRam8k1giIBEHC/NSA3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775988701; c=relaxed/simple; bh=DIvaEeyTjZfZLI73CYPn2B0AK2KOY6Bx4vTfj0Dg8Wg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qusBF2/szc549AQy7Y3LEwd91CYG2dnPB2kMuRmRvgUVQ2oC/Xj2/KoBlNdD/ExaPuVRWtJd36uenUmPPUan1yGN2Qna3PpIx+4OeeIOrXnWieUq8xRwmh1gPxYqBEDxOZ1TB/e+1No6jtd3q87Nyy2E2Amqq/fGOYZztEY13Pc= 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=fIERItXu; arc=none smtp.client-ip=198.175.65.17 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="fIERItXu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1775988700; x=1807524700; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=DIvaEeyTjZfZLI73CYPn2B0AK2KOY6Bx4vTfj0Dg8Wg=; b=fIERItXuUnVNTBPDoZ9fjszGxJyCJZd9eMJqVnW25JsgzAeikVnCVHoA uzH+6ux7feABTsYwQv3LL6biUHIhefHn1LOtjg29h4rs8zdTu7sAoZE76 uCHcDuQP1MWbK/P5p1jt4KvS8gcaGyiobtcMEY3zXQyf+bfXE59x7YpH7 d6sPXXjhaxPn3axGVcHXzAm26sB6ymdUrVCm0QqkCbAIkdOHOl0ePlofs 9mkL0uFnr99F3p6Jb5ErSeaRLl2GFUlfuUWPzWuMoGbnG5gefQs3Rfr2p c/0RqSaVAKoJdU/KDvHK5AwA9f9u+vWB+U9C3VEc7suLk31ZQtfHiWy1j w==; X-CSE-ConnectionGUID: FVX8caSdTrq4sH4RPKhxpw== X-CSE-MsgGUID: oCiQmE3mTbSdZX0hlUKG+w== X-IronPort-AV: E=McAfee;i="6800,10657,11755"; a="76907758" X-IronPort-AV: E=Sophos;i="6.23,175,1770624000"; d="scan'208";a="76907758" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2026 03:11:39 -0700 X-CSE-ConnectionGUID: Yp/Xgy+STs29wxNAab042A== X-CSE-MsgGUID: cILXlW5yS06G+o4JNklbxA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,175,1770624000"; d="scan'208";a="234446674" Received: from lkp-server01.sh.intel.com (HELO 3eaaf1a74b89) ([10.239.97.150]) by fmviesa005.fm.intel.com with ESMTP; 12 Apr 2026 03:11:36 -0700 Received: from kbuild by 3eaaf1a74b89 with local (Exim 4.98.2) (envelope-from ) id 1wBrmv-0000000026L-0ddU; Sun, 12 Apr 2026 10:11:33 +0000 Date: Sun, 12 Apr 2026 18:10:36 +0800 From: kernel test robot To: Tim Bird , pmladek@suse.com, rostedt@goodmis.org, john.ogness@linutronix.de, senozhatsky@chromium.org Cc: oe-kbuild-all@lists.linux.dev, francesco@valla.it, geert@linux-m68k.org, tglx@kernel.org, shashankbalaji02@gmail.com, linux-embedded@vger.kernel.org, linux-kernel@vger.kernel.org, Tim Bird Subject: Re: [PATCH v4 1/1] printk: fix zero-valued printk timestamps in early boot Message-ID: <202604121822.OvOLcTnO-lkp@intel.com> References: <20260410203741.997410-2-tim.bird@sony.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20260410203741.997410-2-tim.bird@sony.com> Hi Tim, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v7.0-rc7 next-20260410] [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/Tim-Bird/printk-fix-zero-valued-printk-timestamps-in-early-boot/20260412-134726 base: linus/master patch link: https://lore.kernel.org/r/20260410203741.997410-2-tim.bird%40sony.com patch subject: [PATCH v4 1/1] printk: fix zero-valued printk timestamps in early boot config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20260412/202604121822.OvOLcTnO-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260412/202604121822.OvOLcTnO-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/202604121822.OvOLcTnO-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from kernel/printk/printk.c:49: include/linux/early_times.h: In function 'early_times_ns': >> include/linux/early_times.h:45:61: warning: division by zero [-Wdiv-by-zero] 45 | return (early_unsafe_cycles() * NS_PER_KHZ) / CONFIG_EARLY_CYCLES_KHZ; | ^ vim +45 include/linux/early_times.h 34 35 /* returns a nanosecond value based on early cycles */ 36 static inline u64 early_times_ns(void) 37 { 38 if (CONFIG_EARLY_CYCLES_KHZ) 39 /* 40 * Note: the multiply must precede the division to avoid 41 * truncation and loss of resolution 42 * Don't use fancier MULT/SHIFT math here. Since this is 43 * static, the compiler can optimize the math operations. 44 */ > 45 return (early_unsafe_cycles() * NS_PER_KHZ) / CONFIG_EARLY_CYCLES_KHZ; 46 return 0; 47 } 48 #else 49 static inline u64 early_times_ns(void) 50 { 51 return 0; 52 } 53 #endif 54 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki