Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp463932rdb; Thu, 30 Nov 2023 09:11:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFynaptsDD4fHe+VKcFcKY/o1Ud7tPZYVjgc50rphO04s4QnHgcxJgGPExT4NS3s25HdT6I X-Received: by 2002:a17:902:b905:b0:1cf:b964:5e5a with SMTP id bf5-20020a170902b90500b001cfb9645e5amr14752917plb.17.1701364275977; Thu, 30 Nov 2023 09:11:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701364275; cv=none; d=google.com; s=arc-20160816; b=d7CwQ2HJ8VDNgEy8r6+Fsv3Qdh51lO9INir84B68ExQPTCvEXyzSxosm0CqBAWPkEd 8AuDc7aFQ72uzyIyPjutj68hEBLlWCSxCWHb0OdZhwDZFzPOXqnhzl5ztly3q/b3UnEJ Wz3Sz0zZg5EkTWGxCzJNo0EOF/95xNNgoVnzA8pHdBASMLTKvp4ZvwlQ+arbwPNMbicp 9IjA26XXo4di1zo8ZgEedkNjhhKgDVFe5UqScQx/cSjUWZXX9QHI3fjoij7W/O0Rtf26 vZJFHBaYB19wKwSRDwwOTpjH8GKET3iCb4yN/4GR1JAUovXtxhpwN3XD24VZn1sKdVCk UM4g== 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=T4PNqpVUFCEoFMyhCPOY1m1xexyIaOO0USzthPp9GMo=; fh=7uxK26h9dtrNWrbh7Yt2LEkH30F7m1/pfdTWquE4tMU=; b=gb1W3RHC3QYS0bCdVFLJaeUcHnHVZUEvfs8gt4M18HotQ7+SiKWhx90GCI23f1IBPS 1lqMNlKUh4ykDZdGjYoTu64T7CBTyqg22P8kpejMoHu/EkTCMPWnMS0Nt2tsA0F8Epil I+giGHpvxPULtq4/0RyJNMxf5IzvDlWRDXaoYyzOj0/o2LS9ig+xCDICumiP5lWzPXtI e50RF1qvXBu5IdANPZ+wJZcylpJcVMgAjTEmVskU71cWSKGiJ8nGmY0sfRcYhds4Rrov RvslljfjsV8IgcciBbw3PyLU9hcngTbazsusT5FwNS0GLuyMUDhK0ETtoe0oQ1TAb4/Q qfPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YzrScC9O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h10-20020a170902f54a00b001cfdf121cf8si1609849plf.283.2023.11.30.09.11.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:11:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YzrScC9O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 7F8698028B4E; Thu, 30 Nov 2023 09:11:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345808AbjK3RK6 (ORCPT + 99 others); Thu, 30 Nov 2023 12:10:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232211AbjK3QZl (ORCPT ); Thu, 30 Nov 2023 11:25:41 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0AC1196 for ; Thu, 30 Nov 2023 08:25:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701361547; x=1732897547; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=x5pgsWdGiD6G7Jv0D2O1jlpnGGKqT8tM3G7Vdqr2uac=; b=YzrScC9OZitQGn+1Z9O23wZxEFlD1iC9I9NFLS1dCcnzQ4kmzILrDseT HA43fAZhcB/CMJeN84azTGbG7JPUDbm9UtZIHpj1cviGZhGSi7XnborWz zbqTj6xnd0uQSJ0v32lfDZJ4mg4y8Ww7JhknSy8x19cpWCEyfNXKy2tnQ gUj0UHRfXpF0xz4aV+EWRW02YujM/uv1rz7PBXXi6apYRvLZJtuKo50m9 /+rMP9furAiquW4v4tG5+hJuwb3RBjWwSzapoONMbAHMho6arpOf2Jvzd HXanBWsdMuvuc3y7PlHdr0ugjSlAcqqD0Cjz/lvifNI32LDwBIcIQ9et/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="378377028" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="378377028" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2023 08:25:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="745692557" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="745692557" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 30 Nov 2023 08:25:43 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r8jrA-0002LX-2V; Thu, 30 Nov 2023 16:25:40 +0000 Date: Fri, 1 Dec 2023 00:25:10 +0800 From: kernel test robot To: Vincent Mailhol , Andrew Morton , linux-kernel@vger.kernel.org, Yury Norov Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Vincent Mailhol , Nick Desaulniers , Douglas Anderson , Kees Cook , Petr Mladek , Randy Dunlap , Zhaoyang Huang , Geert Uytterhoeven , Marco Elver Subject: Re: [PATCH v2] lib: test_bitops: add compile-time optimization/evaluations assertions Message-ID: <202312010058.JJKeeqvE-lkp@intel.com> References: <20231130102717.1297492-1-mailhol.vincent@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231130102717.1297492-1-mailhol.vincent@wanadoo.fr> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 30 Nov 2023 09:11:12 -0800 (PST) Hi Vincent, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on linus/master v6.7-rc3 next-20231130] [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/Vincent-Mailhol/lib-test_bitops-add-compile-time-optimization-evaluations-assertions/20231130-182837 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20231130102717.1297492-1-mailhol.vincent%40wanadoo.fr patch subject: [PATCH v2] lib: test_bitops: add compile-time optimization/evaluations assertions config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20231201/202312010058.JJKeeqvE-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231201/202312010058.JJKeeqvE-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/202312010058.JJKeeqvE-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from : In function 'test_bitops_const_eval', inlined from 'test_bitops_startup' at lib/test_bitops.c:126:2: >> include/linux/compiler_types.h:435:45: error: call to '__compiletime_assert_183' declared with attribute error: BUILD_BUG_ON failed: !__builtin_constant_p(__test_expr) 435 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:416:25: note: in definition of macro '__compiletime_assert' 416 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:435:9: note: in expansion of macro '_compiletime_assert' 435 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ lib/test_bitops.c:59:9: note: in expansion of macro 'BUILD_BUG_ON' 59 | BUILD_BUG_ON(!__builtin_constant_p(__test_expr)); \ | ^~~~~~~~~~~~ lib/test_bitops.c:74:9: note: in expansion of macro 'test_const_eval' 74 | test_const_eval(__ffs(BIT(n)) == n); | ^~~~~~~~~~~~~~~ vim +/__compiletime_assert_183 +435 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 421 eb5c2d4b45e3d2 Will Deacon 2020-07-21 422 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 423 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 424 eb5c2d4b45e3d2 Will Deacon 2020-07-21 425 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 426 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 427 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 428 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 429 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 430 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 431 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 432 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 433 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 434 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @435 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 436 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki