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 E4928D6101F for ; Thu, 29 Jan 2026 14:41:29 +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=wRjSdVauLA99wC5eerJ/4sxN8VwA1KbiAREQTAQ9AEk=; b=n86Bw2W3dRtkXG SR4aPulHCa/tFgcmh/6EtdVm4TCa+gVG8YBNPGLnnzkmxqUT8sgvom2VzODmd+/xJ4VQC7khcyjJT odDAReWcYOB7UCd+4xeRV0Juc7bxRZ++jIFImmaXP1F6J2pcpKmM/818VQfSmlxoWiXpvp5jG5HMG 3eCHQR3lXlozQVlPbasByayTH5sCdYTNZCjjcjprj46sK11qbgMSn+XCApmQT6tjmR1UYvYxi44Hx 1ISQJxhCsJhjUBGLSyUPhFB5zOvlRax7tKv2TK4bVUAB/1Hva3F6rgT789F0K4Zs6s0sBEmVJ5JLE teS/UePmMusamvHl4pIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vlTCm-00000000Ey0-1bhs; Thu, 29 Jan 2026 14:41:08 +0000 Received: from mgamail.intel.com ([198.175.65.17]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vlTCj-00000000Exf-15lt for linux-riscv@lists.infradead.org; Thu, 29 Jan 2026 14:41:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769697666; x=1801233666; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=D6Irzj87/GiSgJK3voystE+jXtAPmSkx3H3hxWfzNkM=; b=Nw/D+i5AVKZ3dOsShLwPG+GC2BisGKwZ4UcQaaTxY9vhGAEjQ5KRcswC 2OI0VtbqtjwLeTiFo1Fjxrt17fT980bf/vJNLYXdDpmTKs6FrLGjTsL2Y geWlY1BTSIr+LAYoTNlNSjUESdp4uTBG/Hp+IdPjybxJyQ3buEfp7894c z8Tj5fJOirjHt6EEQHfm8jHlhWiHIzfFZ7W+tctPKCZkCyoBlg5E9grav s/HCFymnZoH33xxOR8DWh1HjJer0hS/c+QxfoarTKAk8aZ+ecxncd7zjU GlTgxVjsHiNl6GvzesvrylgmFGc9o7FbaPaXthxlSNR2SeprcxObZsW98 Q==; X-CSE-ConnectionGUID: akdXXKd5SS+QCrj35D32Qw== X-CSE-MsgGUID: K49Jky5aSOyMTUphvwewIQ== X-IronPort-AV: E=McAfee;i="6800,10657,11686"; a="70912020" X-IronPort-AV: E=Sophos;i="6.21,261,1763452800"; d="scan'208";a="70912020" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2026 06:41:04 -0800 X-CSE-ConnectionGUID: TCJTVxH0Qbmg4ffpW5B+tg== X-CSE-MsgGUID: iL68MgQTSImlJcoBkfPtoA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,261,1763452800"; d="scan'208";a="239845322" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by fmviesa001.fm.intel.com with ESMTP; 29 Jan 2026 06:40:58 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vlTCa-00000000bYK-0N8O; Thu, 29 Jan 2026 14:40:56 +0000 Date: Thu, 29 Jan 2026 22:40:09 +0800 From: kernel test robot To: Feng Jiang , pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, akpm@linux-foundation.org, kees@kernel.org, andy@kernel.org, ebiggers@kernel.org, martin.petersen@oracle.com, herbert@gondor.apana.org.au, samuel.holland@sifive.com, ajones@ventanamicro.com, charlie@rivosinc.com, conor.dooley@microchip.com, linus.walleij@linaro.org, nathan@kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v6 1/8] lib/string_kunit: add correctness test for strlen() Message-ID: <202601292204.xA8dUDti-lkp@intel.com> References: <20260129070227.220866-2-jiangfeng@kylinos.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260129070227.220866-2-jiangfeng@kylinos.cn> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260129_064106_376962_84A6B6B9 X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Hi Feng, kernel test robot noticed the following build errors: [auto build test ERROR on kees/for-next/hardening] [also build test ERROR on akpm-mm/mm-nonmm-unstable akpm-mm/mm-everything linus/master v6.19-rc7 next-20260128] [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/Feng-Jiang/lib-string_kunit-add-correctness-test-for-strlen/20260129-151036 base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/hardening patch link: https://lore.kernel.org/r/20260129070227.220866-2-jiangfeng%40kylinos.cn patch subject: [PATCH v6 1/8] lib/string_kunit: add correctness test for strlen() config: m68k-defconfig (https://download.01.org/0day-ci/archive/20260129/202601292204.xA8dUDti-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260129/202601292204.xA8dUDti-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/202601292204.xA8dUDti-lkp@intel.com/ All errors (new ones prefixed by >>): lib/tests/string_kunit.c: In function 'string_test_strlen': >> lib/tests/string_kunit.c:116:20: error: implicit declaration of function 'PAGE_ALIGN'; did you mean 'PTR_ALIGN'? [-Wimplicit-function-declaration] 116 | buf_size = PAGE_ALIGN(STRING_TEST_MAX_LEN + STRING_TEST_MAX_OFFSET + 1); | ^~~~~~~~~~ | PTR_ALIGN vim +116 lib/tests/string_kunit.c 110 111 static void string_test_strlen(struct kunit *test) 112 { 113 size_t buf_size; 114 char *buf, *s; 115 > 116 buf_size = PAGE_ALIGN(STRING_TEST_MAX_LEN + STRING_TEST_MAX_OFFSET + 1); 117 buf = vmalloc(buf_size); 118 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, buf); 119 120 memset(buf, 'A', buf_size); 121 122 for (size_t offset = 0; offset < STRING_TEST_MAX_OFFSET; offset++) { 123 for (size_t len = 0; len <= STRING_TEST_MAX_LEN; len++) { 124 s = buf + buf_size - 1 - offset - len; 125 s[len] = '\0'; 126 KUNIT_EXPECT_EQ_MSG(test, strlen(s), len, 127 "offset:%zu len:%zu", offset, len); 128 s[len] = 'A'; 129 } 130 } 131 132 vfree(buf); 133 } 134 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv