Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1004982rwd; Thu, 15 Jun 2023 05:16:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xpvIz+pVwsl9a7E9OdDdmlh6eemYUx6omre8aMmqbH+6SJq/ULUMmEmG/Eb2Kp9o2IXQ2 X-Received: by 2002:a17:902:cec5:b0:1aa:ef83:34be with SMTP id d5-20020a170902cec500b001aaef8334bemr14736321plg.47.1686831381647; Thu, 15 Jun 2023 05:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686831381; cv=none; d=google.com; s=arc-20160816; b=z6/1NJSydO4SrM22cXCpXTEuUI7OU05scrE2aE+wY58mkQibszCO/0xaSlrf13q4G0 x3qryEsDbdv01/Fww51Pl5eEwof0LOCHHNGMbaW8itVDwfVP62USDyMELrepk4oB9tdn xzMU5DiQnB9Q67W4EMMlGgZJOypy7U3JJadRNfNVdFvfIsSJ/YTMvQeFqWq2SU6qVdzY NJr4LX5w2kzdqXlEuB19gc3OpMrJuLa6kmbw66UDm3HAmknyjZYFGaxFwgb2f96v8mGZ JChnImtJiMc94NBU/4qLuw9Apq9aNghk26sdomRYD+5NFiEPo2r/HQ4gc5vngB5nWVcx t8+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PGFk0oTVl3om8Qx+6btpPDMzSBOZp0keC30yhQYGAuk=; b=px7+8LIw5l7wh3iJGq+gOEtKfQEL9Swxda0Rh6/hI5pGfqFSbjNMhOBPCgNoi2b5Nl 4CxLJLHQ8ti52gj9Dz3ZJmBjgFjJjlhrk1S2F8k2rgXkKLMWoTp4uz05TuyPJQL6fcpV pKr3NQhMRiEBd99LVQw2Hdvr1V9TyT0qSqwHiyf9j848Um7mHJXGZBuxCdqnz7cIHv+d jkJObrCTcRo5brTNdlF6jEU6wkdDFB1yhvhHyzM5NgM35/g1n7WQp57vqFrpVLld/XFH n7XdNEvY/qp5YFVFcj0ukNGo7MklU2lB5kngIpXiEP7PRXLGnWiM2PDcc/gf5xPw6iGP Pq5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RdtncISh; 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 q20-20020a170902e31400b001a9f42553dasi12307958plc.614.2023.06.15.05.16.08; Thu, 15 Jun 2023 05:16:21 -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=RdtncISh; 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 S1343827AbjFOLXA (ORCPT + 99 others); Thu, 15 Jun 2023 07:23:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240382AbjFOLWu (ORCPT ); Thu, 15 Jun 2023 07:22:50 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25361271F for ; Thu, 15 Jun 2023 04:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686828169; x=1718364169; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=116F3/yC9e2Y/2nrti3FoTM8GkLnOVOOFoERu342pTk=; b=RdtncISh6vK3wv2lL3aykrh4Hn6tjFlYOPv6L1in/0cmA5MQP1jnXFKC UOQbkUrQVHO0W1vY8n3cCjA3y/1JSjJq8LVb1QJz93jND31I8yHx+6L4Q /t9v2OKwpYR5ethezs02e9SFs0d9KghHX4CR8FXR4dIy6RZCqD2c6luYK 6Zi95giN9TipW0eDt+spMrYBOB+ILRBQgIoSXHMnWmCPL2/1Nqw/b+gZw Fp/Qe3Sc78MLNwe4i0YuBEt+Ivm85ByfdVBeKLb3mpsm6TJDVdzVHfMOc XKP0VnCHUYmR6F04MsIGhwXaYl+I4/0HouaIRx91ccaQapLrEEiHApPZ4 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="358875416" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="358875416" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 04:22:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="802300149" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="802300149" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP; 15 Jun 2023 04:22:47 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1q9l3t-003vZ9-2r; Thu, 15 Jun 2023 14:22:45 +0300 Date: Thu, 15 Jun 2023 14:22:45 +0300 From: Andy Shevchenko To: kernel test robot Cc: Alexander Lobakin , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Yury Norov Subject: Re: lib/test_bitmap.c:920:2: error: call to '__compiletime_assert_239' declared with 'error' attribute: BUILD_BUG_ON failed: !__builtin_constant_p(res) Message-ID: References: <202306151433.QKcn7ZNn-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202306151433.QKcn7ZNn-lkp@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On Thu, Jun 15, 2023 at 02:32:02PM +0800, kernel test robot wrote: > Hi Alexander, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: b6dad5178ceaf23f369c3711062ce1f2afc33644 > commit: dc34d5036692c614eef23c1130ee42a201c316bf lib: test_bitmap: add compile-time optimization/evaluations assertions > date: 12 months ago > config: arm64-randconfig-r025-20230615 (https://download.01.org/0day-ci/archive/20230615/202306151433.QKcn7ZNn-lkp@intel.com/config) > compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) > reproduce (this is a W=1 build): > mkdir -p ~/bin > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install arm64 cross compiling tool for clang build > # apt-get install binutils-aarch64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dc34d5036692c614eef23c1130ee42a201c316bf > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout dc34d5036692c614eef23c1130ee42a201c316bf > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=arm64 olddefconfig > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash lib/ > > 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/202306151433.QKcn7ZNn-lkp@intel.com/ > > All errors (new ones prefixed by >>): > 888 /* > 889 * Equals to `unsigned long bitmap[1] = { GENMASK(6, 5), }`. > 890 * Clang on s390 optimizes bitops at compile-time as intended, but at > 891 * the same time stops treating @bitmap and @bitopvar as compile-time > 892 * constants after regular test_bit() is executed, thus triggering the > 893 * build bugs below. So, call const_test_bit() there directly until > 894 * the compiler is fixed. > 895 */ > 896 bitmap_clear(bitmap, 0, BITS_PER_LONG); > 897 #if defined(__s390__) && defined(__clang__) > 898 if (!const_test_bit(7, bitmap)) > 899 #else > 900 if (!test_bit(7, bitmap)) > 901 #endif Hmm... Reveals the bug in clang/arm64? > 919 res = !test_bit(18, &bitopvar); > > 920 BUILD_BUG_ON(!__builtin_constant_p(res)); > 921 BUILD_BUG_ON(!res); -- With Best Regards, Andy Shevchenko