From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 D067D28EB; Sat, 17 Aug 2024 18:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723918076; cv=none; b=PADJH5CoWSwpfYFvDYO5SlwjWIat8MF4Ki324zI7CEebaJSIZENWGFpPb7j1J04Ro97o1vMFePNdNy3fTuvDeNFtVwvT/tCUn3GZuf+H6s5tDSScK7yNaFglLcLR+woxyEZ5voNolKllYSfMykaHRCQ1qPsDY7m9K1enUdRcpdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723918076; c=relaxed/simple; bh=Zh55/aHTFzFdC9YDeM4w2rjg1Nsri0R2Wv/Y3M/FWQ4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i3ISODonP9ECxMh+VDl3+vSgKOTZFeB6mf7YQGLW1ojAhjvIpX2Vf/0NzX90qg8Ayv4/MPwggX5iDihOa6oCTr+ix5Vqm+anZ2V0hjacMoaPO69t351Qbpm2S+lphPDVz5+U4b12wcn1Ws2XvqCfWsaO933tr+bAuNp1TqCR+m4= 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=R10uPqLS; arc=none smtp.client-ip=198.175.65.9 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="R10uPqLS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723918074; x=1755454074; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Zh55/aHTFzFdC9YDeM4w2rjg1Nsri0R2Wv/Y3M/FWQ4=; b=R10uPqLSel9mV4anmbWLA6fs9CiH4FyyuceysrofhLVi7wT29SBXgYEt TwvpJcCTAC2t4gKBz+GNJJl494gwVyyEFQYE2vzLis5K9VikcyPS3CD32 bkZ1X7mYBOknWX2U636F83htmShvk8A4ewmBtHSg6w0M1gebU9aRlOZcJ OoI+Hrh96KVKdJYZXxpfNvu+b6/qgJYz8x1ZNzy3XAlS6k22gTRuV7Cfw C3d/42liUSj4y7pqXzKc6lcHie0/ZHJKP9ICRofgcbdzouhNJmRDcQjVq u/gRJ4NnNCqN/NAtz6SWPrWNMqmlLgwWamZuIAQbBS4D/Vo+HxyNk8crr g==; X-CSE-ConnectionGUID: //ZOSCJWSMyESdqXpgYrmA== X-CSE-MsgGUID: krpPkcWoSKWLJqcqNRc7tw== X-IronPort-AV: E=McAfee;i="6700,10204,11167"; a="44717719" X-IronPort-AV: E=Sophos;i="6.10,155,1719903600"; d="scan'208";a="44717719" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2024 11:07:53 -0700 X-CSE-ConnectionGUID: oJQxy6IfT9GuFe5nH9Mf+Q== X-CSE-MsgGUID: 6Q5k/NVOQ4i19saRocygOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,155,1719903600"; d="scan'208";a="83176055" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 17 Aug 2024 11:07:49 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1sfNq6-0007iU-2F; Sat, 17 Aug 2024 18:07:46 +0000 Date: Sun, 18 Aug 2024 02:07:08 +0800 From: kernel test robot To: Christophe Leroy , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Theodore Ts'o , "Jason A. Donenfeld" , Andy Lutomirski , Vincenzo Frascino , Arnd Bergmann Cc: oe-kbuild-all@lists.linux.dev, Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 9/9] selftests: [NOT TO BE MERGED] Modifications for testing VDSO getrandom implementation on PPC32 Message-ID: <202408180121.HB9iN2PQ-lkp@intel.com> References: <376843e024ffa73793e8ed99b72d299c6b239799.1723817900.git.christophe.leroy@csgroup.eu> 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: <376843e024ffa73793e8ed99b72d299c6b239799.1723817900.git.christophe.leroy@csgroup.eu> Hi Christophe, kernel test robot noticed the following build warnings: [auto build test WARNING on powerpc/next] [also build test WARNING on powerpc/fixes shuah-kselftest/next shuah-kselftest/fixes linus/master v6.11-rc3] [cannot apply to crng-random/master next-20240816] [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/Christophe-Leroy/powerpc-vdso-Don-t-discard-rela-sections/20240816-223917 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next patch link: https://lore.kernel.org/r/376843e024ffa73793e8ed99b72d299c6b239799.1723817900.git.christophe.leroy%40csgroup.eu patch subject: [PATCH 9/9] selftests: [NOT TO BE MERGED] Modifications for testing VDSO getrandom implementation on PPC32 config: x86_64-randconfig-161-20240817 (https://download.01.org/0day-ci/archive/20240818/202408180121.HB9iN2PQ-lkp@intel.com/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) 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/202408180121.HB9iN2PQ-lkp@intel.com/ smatch warnings: kernel/time/time.c:622 timespec64_to_jiffies() warn: always true condition '(sec >= ((((((((2147483647 >> 1) - 1) >> (32 - 10)) * ((1000000000 + 1000 / 2) / 1000)) / (1000000000)) << (1)) + (((((((2147483647 >> 1) - 1) >> (32 - 10)) * ((1000000000 + 1000 / 2) / 1000)) % (1000000000)) << (1)) + (1000000000) / 2) / (1000000000)) - 1)) => (0-u64max >= 0)' vim +622 kernel/time/time.c 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 595 67b3f564cb1e769 kernel/time/time.c Randy Dunlap 2023-07-03 596 /** 67b3f564cb1e769 kernel/time/time.c Randy Dunlap 2023-07-03 597 * timespec64_to_jiffies - convert a timespec64 value to jiffies 67b3f564cb1e769 kernel/time/time.c Randy Dunlap 2023-07-03 598 * @value: pointer to &struct timespec64 67b3f564cb1e769 kernel/time/time.c Randy Dunlap 2023-07-03 599 * 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 600 * The TICK_NSEC - 1 rounds up the value to the next resolution. Note 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 601 * that a remainder subtract here would not do the right thing as the 4bf07f6562a01a4 kernel/time/time.c Ingo Molnar 2021-03-22 602 * resolution values don't fall on second boundaries. I.e. the line: 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 603 * nsec -= nsec % TICK_NSEC; is NOT a correct resolution rounding. d78c9300c51d6ce kernel/time/time.c Andrew Hunter 2014-09-04 604 * Note that due to the small error in the multiplier here, this d78c9300c51d6ce kernel/time/time.c Andrew Hunter 2014-09-04 605 * rounding is incorrect for sufficiently large values of tv_nsec, but d78c9300c51d6ce kernel/time/time.c Andrew Hunter 2014-09-04 606 * well formed timespecs should have tv_nsec < NSEC_PER_SEC, so we're d78c9300c51d6ce kernel/time/time.c Andrew Hunter 2014-09-04 607 * OK. 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 608 * 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 609 * Rather, we just shift the bits off the right. 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 610 * 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 611 * The >> (NSEC_JIFFIE_SC - SEC_JIFFIE_SC) converts the scaled nsec 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 612 * value to a scaled second value. 67b3f564cb1e769 kernel/time/time.c Randy Dunlap 2023-07-03 613 * 67b3f564cb1e769 kernel/time/time.c Randy Dunlap 2023-07-03 614 * Return: jiffies value 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 615 */ 751addac78b6f20 kernel/time/time.c Arnd Bergmann 2019-10-24 616 unsigned long 751addac78b6f20 kernel/time/time.c Arnd Bergmann 2019-10-24 617 timespec64_to_jiffies(const struct timespec64 *value) 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 618 { 751addac78b6f20 kernel/time/time.c Arnd Bergmann 2019-10-24 619 u64 sec = value->tv_sec; 751addac78b6f20 kernel/time/time.c Arnd Bergmann 2019-10-24 620 long nsec = value->tv_nsec + TICK_NSEC - 1; 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 621 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 @622 if (sec >= MAX_SEC_IN_JIFFIES){ 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 623 sec = MAX_SEC_IN_JIFFIES; 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 624 nsec = 0; 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 625 } 9ca308506062fc4 kernel/time/time.c Baolin Wang 2015-07-29 626 return ((sec * SEC_CONVERSION) + 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 627 (((u64)nsec * NSEC_CONVERSION) >> 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 628 (NSEC_JIFFIE_SC - SEC_JIFFIE_SC))) >> SEC_JIFFIE_SC; 8b9365d753d9870 kernel/time.c Ingo Molnar 2007-02-16 629 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki