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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DB9FC433EF for ; Tue, 1 Feb 2022 10:32:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 56F766B018E; Tue, 1 Feb 2022 05:32:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 51EDC6B018F; Tue, 1 Feb 2022 05:32:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 40DAC6B0190; Tue, 1 Feb 2022 05:32:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0186.hostedemail.com [216.40.44.186]) by kanga.kvack.org (Postfix) with ESMTP id 2DAB06B018E for ; Tue, 1 Feb 2022 05:32:39 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id E6BEC95B06 for ; Tue, 1 Feb 2022 10:32:38 +0000 (UTC) X-FDA: 79093847196.26.8E2A10A Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf31.hostedemail.com (Postfix) with ESMTP id 50B0F20002 for ; Tue, 1 Feb 2022 10:32:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643711558; x=1675247558; h=date:from:to:cc:subject:message-id:mime-version; bh=O+ah6ZvrJhajAxWVyZg0CQ8gmK81vXiJAct41Moo7cc=; b=a3HY3CrNzv4KMIxfCEuHSzJIMvmpUBVr61RFxmUlihYvocpdlFpObjQW pxmuCsWIQKdBz/GtPXQwVwC0zIn+LgsuZ6f2y/Fu1u4uPwbOw8cqThmvf umYqf3TPOfISvKXhRddZ/nNb7BHoU/zITXfxPHjECTATs2TFKxQuH4biC HrcwqTNU4qFCT4UHFvmlIxcX3nqrMN4Z1JrZmZXCKuETAtdRAfdvjjWK1 vUoTf+i8b3XrsRH+55bVCoRrT7Xqoq252Ls/0oLGyCaCokkRhOAd5QPVh scWcpjpeqS9C60TOTrpOjPxlhTSGjrbGJDgy+5d0SoZujZOdEx4i0P26G w==; X-IronPort-AV: E=McAfee;i="6200,9189,10244"; a="231235162" X-IronPort-AV: E=Sophos;i="5.88,333,1635231600"; d="scan'208";a="231235162" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2022 02:32:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,333,1635231600"; d="scan'208";a="768889617" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 01 Feb 2022 02:32:30 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nEqSc-000T7F-7V; Tue, 01 Feb 2022 10:32:30 +0000 Date: Tue, 1 Feb 2022 18:31:59 +0800 From: kernel test robot To: Kees Cook Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 2792/2969] lib/test_string.c:188:30: error: initializer element is not a compile-time constant Message-ID: <202202011846.EbcxQdke-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 50B0F20002 X-Stat-Signature: 1h738bd7ktrpnxbh3pxbkxt8out7pige Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=a3HY3CrN; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf31.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com X-Rspam-User: nil X-HE-Tag: 1643711558-91398 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000008, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 887a333c44eb67973622e530e43cd5e4cf9af927 commit: 05a5ff1e0c9581e4ceb8cdc2cbcce5ed0e9fa2b7 [2792/2969] lib/test_string.c: Add test for strlen() config: mips-randconfig-r025-20220130 (https://download.01.org/0day-ci/archive/20220201/202202011846.EbcxQdke-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6b1e844b69f15bb7dffaf9365cd2b355d2eb7579) 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 # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=05a5ff1e0c9581e4ceb8cdc2cbcce5ed0e9fa2b7 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 05a5ff1e0c9581e4ceb8cdc2cbcce5ed0e9fa2b7 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash lib/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> lib/test_string.c:188:30: error: initializer element is not a compile-time constant static const int strlen_ce = strlen("tada, a constant expression"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. vim +188 lib/test_string.c 181 182 /* 183 * Unlike many other string functions, strlen() can be used in 184 * static initializers when string lengths are known at compile 185 * time. (i.e. Under these conditions, strlen() is a constant 186 * expression.) Make sure it can be used this way. 187 */ > 188 static const int strlen_ce = strlen("tada, a constant expression"); 189 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org