Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6673062rwr; Tue, 25 Apr 2023 01:50:53 -0700 (PDT) X-Google-Smtp-Source: AKy350bywPmmC7JoxbMQq0yvg6m/JcTymekT0MWF4Luv82ayHpmYWrlmGOCwU9LeyS9twY16W9zJ X-Received: by 2002:a17:90a:98e:b0:247:26da:5de2 with SMTP id 14-20020a17090a098e00b0024726da5de2mr16814643pjo.20.1682412652777; Tue, 25 Apr 2023 01:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682412652; cv=none; d=google.com; s=arc-20160816; b=ZN5gsCD+KlH36Ldr4qVVUteKiR06tRrm1gttZIfy1WeP757rYeBSAy+AOGORyarCOS NZ1dfrIPBMU8REmud0VOs35Egd4wZNTrU8nLSIpTPfvnO9xN0AVKkp/YYNDJ8XcGVbph /22XzVva4wEkGPYm5RJS5mkZ9bWqwQq0RsYNFSYxdShoFCjbZXln9HOAGvZhi2nNWYHq qAPwrBPzlC2U/XJeUG/L+2AwSNyxwSKGVwxy/8ZDB8ELK5hDcgscLxqa5bNf100VZ+p9 rGfzozNOkdOjUOAdanyjCg4Ti5rZg0fW48i12aAy5akNjz7fXYvSBtKftkXw4cvAsUTb qrbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2eLcdrphU5tbicCBlUM/1bmqE5Jl43jsurlaKdnxKR8=; b=oN+lAQ+FC50Mw9yKiStvhonl8ZImqnXxslbiMKvtCWqK1tVozeH48AAGn91+0wraB5 GASIrOteHBRWVaO1evbSGfjMo0meDld0HQ5pMZhkLZm8MISFLWtsWPdXTdH3yaaoTB/5 CShk9xOOpWIf2JtMDL2+OQUrdCbfPn48KlKSov0EBu2+mqniZ9xzUoN/Q6kFCWUK5uAL Y4fZ3SN38J6aX4+PhJquFSy91ZHnl+OSSB1PTVQSDLA1yLaiiQ4cIsHRewR4VRkj420S byGskHJzc0GBvUleCkz0uY2QObw5m5B+pJJyWLeiV8b0fCIBRNbtn2mia5Y1vTroHrvZ 59HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GSBfWGFe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gf18-20020a17090ac7d200b0024722375960si12925205pjb.36.2023.04.25.01.50.41; Tue, 25 Apr 2023 01:50:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GSBfWGFe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233763AbjDYIsD (ORCPT + 99 others); Tue, 25 Apr 2023 04:48:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231189AbjDYIro (ORCPT ); Tue, 25 Apr 2023 04:47:44 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36F9F13FAB for ; Tue, 25 Apr 2023 01:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682412380; x=1713948380; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FsXK0pVsiKRVSRpZSn2/rIa4Ll3HrIxEMFe6k8mBodE=; b=GSBfWGFeDMBcaMa4hMfLoeDF1DKuFpPkAIGKXkV31N4oX8FyD1MrxWTW oisSyrCeakwX6zU7IDk8n8BHZJufTlFWUwqEp3OZsYyF+7pdZf8/IrUfV eI/Z0ysgmQ8tr56nrqvP9lqH0+CtYj5fXSudZFIxCVQElctq1sRnow9JZ gMMzZef1dVyMSPqR8Mr24NIOlOvgyjhnMTz1sShxCw2qHkgME/ZV6a8YP io2oyvDnR3P7PCH+yDxulXKJb7NmUwWIc6Xx7H0BC18Oqmc5z2hz241h1 +e5vn0uW/Cp1O6ypfkVotOWpa7Z/wuRuIL2qWTkNg7U20seGBzDdGD3MW Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="409642934" X-IronPort-AV: E=Sophos;i="5.99,225,1677571200"; d="scan'208";a="409642934" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2023 01:45:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="693415315" X-IronPort-AV: E=Sophos;i="5.99,225,1677571200"; d="scan'208";a="693415315" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 25 Apr 2023 01:45:27 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1prEIg-000jEJ-2E; Tue, 25 Apr 2023 08:45:26 +0000 Date: Tue, 25 Apr 2023 16:45:19 +0800 From: kernel test robot To: Heiko Stuebner , palmer@dabbelt.com, linux-riscv@lists.infradead.org, paul.walmsley@sifive.com Cc: oe-kbuild-all@lists.linux.dev, heiko@sntech.de, kito.cheng@sifive.com, jrtc27@jrtc27.com, conor.dooley@microchip.com, matthias.bgg@gmail.com, heinrich.schuchardt@canonical.com, greentime.hu@sifive.com, nick.knight@sifive.com, christoph.muellner@vrull.eu, philipp.tomsich@vrull.eu, richard.henderson@linaro.org, arnd@arndb.de, linux-kernel@vger.kernel.org, Heiko Stuebner Subject: Re: [PATCH 1/4] RISC-V: create ISA string separately - not as part of cpuinfo Message-ID: <202304251640.IVxoyd0v-lkp@intel.com> References: <20230424194911.264850-2-heiko.stuebner@vrull.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230424194911.264850-2-heiko.stuebner@vrull.eu> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko, kernel test robot noticed the following build warnings: [auto build test WARNING on next-20230424] [also build test WARNING on v6.3] [cannot apply to soc/for-next linus/master kees/for-next/execve v6.3 v6.3-rc7 v6.3-rc6] [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/Heiko-Stuebner/RISC-V-create-ISA-string-separately-not-as-part-of-cpuinfo/20230425-035214 base: next-20230424 patch link: https://lore.kernel.org/r/20230424194911.264850-2-heiko.stuebner%40vrull.eu patch subject: [PATCH 1/4] RISC-V: create ISA string separately - not as part of cpuinfo config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20230425/202304251640.IVxoyd0v-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/8f1a5a16616d673f2c82cdc54ff845fd8b125a21 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Heiko-Stuebner/RISC-V-create-ISA-string-separately-not-as-part-of-cpuinfo/20230425-035214 git checkout 8f1a5a16616d673f2c82cdc54ff845fd8b125a21 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304251640.IVxoyd0v-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/riscv/kernel/cpu.c: In function 'riscv_create_isa_string': >> arch/riscv/kernel/cpu.c:269:25: warning: 'strncat' output may be truncated copying 1 byte from a string of length 13 [-Wstringop-truncation] 269 | strncat(isa_str, &base_riscv_exts[i], 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/strncat +269 arch/riscv/kernel/cpu.c 246 247 static char *riscv_create_isa_string(const char *isa) 248 { 249 int maxlen = 4; 250 char *isa_str; 251 int i; 252 253 /* calculate the needed string length */ 254 for (i = 0; i < sizeof(base_riscv_exts); i++) 255 if (__riscv_isa_extension_available(NULL, base_riscv_exts[i] - 'a')) 256 maxlen++; 257 maxlen += strlen_isa_ext(); 258 259 isa_str = kzalloc(maxlen, GFP_KERNEL); 260 if (!isa_str) 261 return ERR_PTR(-ENOMEM); 262 263 /* Print the rv[64/32] part */ 264 strncat(isa_str, isa, 4); 265 266 for (i = 0; i < sizeof(base_riscv_exts); i++) { 267 if (__riscv_isa_extension_available(NULL, base_riscv_exts[i] - 'a')) 268 /* Print only enabled the base ISA extensions */ > 269 strncat(isa_str, &base_riscv_exts[i], 1); 270 } 271 272 strcat_isa_ext(isa_str); 273 274 return isa_str; 275 } 276 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests