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 B9500C4167B for ; Thu, 30 Nov 2023 16:25:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C06366B043F; Thu, 30 Nov 2023 11:25:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BB5D36B0442; Thu, 30 Nov 2023 11:25:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AA4966B0443; Thu, 30 Nov 2023 11:25:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 9C11F6B043F for ; Thu, 30 Nov 2023 11:25:52 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7A1FDA0209 for ; Thu, 30 Nov 2023 16:25:52 +0000 (UTC) X-FDA: 81515146944.12.532B0EF Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by imf18.hostedemail.com (Postfix) with ESMTP id D90021C0012 for ; Thu, 30 Nov 2023 16:25:48 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=b39PFiEV; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701361549; a=rsa-sha256; cv=none; b=I60JsvP1BxTwE/Yx7SwxygmDGqsA5uGqqdsDIzuMwkdIcHbRGz2tEftAvDxG5I+7rvMoi8 1QvnJd39Vf4mPw5OwNqU56F/QuW9CGQ0i2DM636CJ6/PnfLZPotzdSae6QI+AdA+HZ1ix9 I4nosksj0LD3lGM9xAMEWA9R7A4AP7A= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=b39PFiEV; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701361549; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=T4PNqpVUFCEoFMyhCPOY1m1xexyIaOO0USzthPp9GMo=; b=jLdgVvC9LUZEOmxtwIE0+/HGb8E5XAWsl62KEkkKDD7nV7kNm5Dt663fgF2rSyOL1REXJz GL+rMIxQ6lP49sHfb9Gus3S588YVeZSL5biEhqhnx8Skjn47tfOh/uVLObMMNsyQNoHJEY UPBrj67Cg1iqUggkRQ3I8RmMqfYV82M= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701361548; x=1732897548; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=x5pgsWdGiD6G7Jv0D2O1jlpnGGKqT8tM3G7Vdqr2uac=; b=b39PFiEVv5v4xIFtWvX1UNzffnX79eyU/gV+F/duFdsO2ybRcEdviYoG oh6vHJLyklhOgNS74Sk8b5UT5PkJIofvgOX/0UpzIzbBzVhyBky9uHXvu OkrwQLo174HtjY3rcet8r8thQb131BdF59QNq30n101nqgoZ5JHsA5OVa gFZjJsuHE9NS9JTmHePG46SzSZeT+yD5hsh33a0qQjiUVC6VG5H5+uh4A 6wUbSekONbEzIfTaFuIY07DdRTmRp0Bnzkiyy3BriOH1McNvOof76NDZS q9GqFAgTmfNV/Mtx1uJRAfYrRzc/DISQC8ATbUD8dRPAoF6W1bhl0W2b1 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="378377031" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="378377031" 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-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: D90021C0012 X-Stat-Signature: h7yjf4i5i8a47r6cpio9519id75oj37o X-Rspam-User: X-HE-Tag: 1701361548-506712 X-HE-Meta: U2FsdGVkX19y1rz1icu+xW/8EoO2M119pjyimIN9Bput5A4jWE14coLFm/Zkf41330yh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WqOFuMbDBPR0L+Jq+dkeWaMMyHOFEC5LgApfL+ocTvCqr46Di756xJmzHukP7MDpiqOAC9aoBkRVUTNYqoOlzkqea5EfWS+pziRFmXt5B/agb5sxx0W4aOHYxUsjsSQzLQ4yjUHOR5QQAQOIahxBedw/AfD4lE5MD798+u+2kJZROHBY+1orURuhhPRM/dJpRJPpimPeCLwZn90CSHD8Vfc1NN0dTw3Y6V4wCe2Nnv72O6VlUxYbtPLDvc7M5Yg8zvGZTSRcZiE9mrJ4nB38PLpidZZVYoUVZ4lwxgw/iabyQtejXxrFEqunzOuM1/QAtddSrr+PdBOt0M0/nBoY3720fXO5yAw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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