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 C9149C3DA49 for ; Thu, 25 Jul 2024 04:19:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 449A26B0082; Thu, 25 Jul 2024 00:19:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3F9406B0085; Thu, 25 Jul 2024 00:19:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2C1046B0088; Thu, 25 Jul 2024 00:19:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 0BBFF6B0082 for ; Thu, 25 Jul 2024 00:19:39 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id A7492120DF8 for ; Thu, 25 Jul 2024 04:19:38 +0000 (UTC) X-FDA: 82376971236.05.C3CE049 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf20.hostedemail.com (Postfix) with ESMTP id 7960C1C0003 for ; Thu, 25 Jul 2024 04:19:36 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf20.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721881141; a=rsa-sha256; cv=none; b=dOVThU1yEA2866DHRf1baksT1M/zBchhKMUH3A2raW64jUYo981sWoi13XUqmxxtUf/ni6 fVjcAos0c2QFpDbnXy1XIQ9eFvOglRhOrCpEfWb/KJ1hnZUXZBgXwir6cji1ELPZv5FY9q 1HpG5Dr4eK98U4o6HJ6GfhXhXDJhTC0= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf20.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721881141; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=72nac375M+5AGAFrtn0qd+2RRALavHwV3rSc65KRe4E=; b=8jQC6iZUW7HZWxCS4oZKWn+PwwVqKn7NWlsa26DTcK+rD4rNMAiZfJr7kwf8MBhRcT3Ojx lERir1NjThkOyrMbDHd+LC1Tg7jNlW1rwvXmxtOLkXbySi/bnNq34b0Cuv0f/DJvj7ixJR nGruyWqWhHnCf+sEMHiUuJ9P/9O7gbE= Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F14FD1007; Wed, 24 Jul 2024 21:20:00 -0700 (PDT) Received: from [10.162.40.19] (a077893.blr.arm.com [10.162.40.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 248C23F73F; Wed, 24 Jul 2024 21:19:31 -0700 (PDT) Message-ID: Date: Thu, 25 Jul 2024 09:49:28 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] lib/test_bits.c: Add tests for GENMASK_U128() To: kernel test robot , linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List , Yury Norov , Rasmus Villemoes , Arnd Bergmann , linux-arch@vger.kernel.org References: <20240724103142.165693-3-anshuman.khandual@arm.com> <202407250853.f3pSzob6-lkp@intel.com> Content-Language: en-US From: Anshuman Khandual In-Reply-To: <202407250853.f3pSzob6-lkp@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 7960C1C0003 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: eush6wux4srujw8ssybd1ygomcoib3xh X-HE-Tag: 1721881176-7311 X-HE-Meta: U2FsdGVkX1/mQT3buqeK3ncS+8xWUoBDKq8neuL0qKzsXWeyG9aBmEDaPTzX6svsB8x4T5CAS8VhEYpE4AbsCDGaIb7TSbo7W2w20N23GCBkL9nliNWuQ0M7XL3JY81q78DYX1m5/ggMpEOEq4O8Etmexo1oiG+Hgpq3Dppu5q1Bpn95FhwRB6azMOZ6wgohM5p+A6/FPjMnTAWjK8hXqJgsUgAbryvFPyQqyiUXTzAOLHX+rqKMMo9sMloxqVvV2LTrg/n5AbRmv5OPGAZObpwbAgts023VClDYYNic1CCwWA4lkHjQtQlIeDr4JQ2JZlheZwyMlv/kJHrbPZvfUwSYLaYJ8b1t2kq4pnFYkXMsLHPkBYExtGL9pGpKZbWfe8CREBaJ0xZNrYIS7uufIDvHHs3vFd28CrnHTKE5OpnfZAsZiQNF3S5Jg5gVfgU49m+WFKILgZ5Exntfy7f0uprZ2uHVVDgEd/BUiWNPi/ldrPPQreG6ecqyQCEA0cGo/g06NIEU6BkirCMVwCCJTi64xx0SmB2DsX4OYYpQTXRP3VJKsee+m8VXyrGZHudW8DhvHqnlXsPngBvgYWhe36KMe9MGjQJCGqhMZMUfmoHz+YjQNz+cs3Mc2fUUxnG8gxJ41ocP32IaYV/o0RZAk0V42jvJ1dyzbuHoKJjsUhQH4Mv1HXMcx6N6Y9wdj7/EgLC0+CHLbKDfHhJBjPPZz1h45y0rKQ807Cbw5+TRw0WxDPT2oy4H66ILccNyNlXJLENjzYe5WZzjI1T0FNFbBGdtXCetY4qc5szbtzsiWmzp6II9dL0p1Ce4SKPFsJJlLhKb6CSTWHFPdS43WpIbfdn9SpOlnG6ifrzdmhdxw+ghmOo0MBnxlpP9FmlvRSsiEWr1hN1q19BXPrBQoUmrELbf80Wouez26mDA9pthriVcWjkpQ1PaFMmbDGT56IULEStaILutZ4uC7mD/jYQ Sun6DzlD Sf1Cc4qPcdlNq6ViAgN2jV0K408ngyM1Fl6eU9cW5jGPiJ5uE1oSOnGguy9pViiSczTZ9Sw+89jSAIXPDZaZQfulHBpx1LSod/MCMhqxCQMViDlgm0uFbEOhSqXQz3R+CVCkdeUwYiP9GZmwtbqAqbDdENMwEDcqTuT9IquNZq+1sWEevB9Rz2QP8QkyJk1R7sL9w45u/hN5OhlUpy8u0LFv0YQKUg+89QRopRLZANF2TBsBU2EVOGs+z4rqjY2Ae5aNtnURqFOWkzvI/+fPAT+dngHXqAkwVUhAXHMTAtkmt5uHHzycFGfJpEIhaTuKQr+rZEMcbq6vxqqhAUHzXHv1VKUtBx/puFkisnqmdCtL4EMC9mPE/RLhebbad+Z97YhJ+hOr94ynP9XZNaJ2T26NiCkpDaRvAacKp/DyQb5KqmCYOeQnwks5ZermlYRer8Gidyfru5dAe0GNUacly0/O6tX9MWMY/iSxwjT9suVoB/RkzZE2yHTc3MfMqmRkEr4zCmhgOpKZU6AqeVEGBlBMzYEpalvShJ13FZD69jo48jxA= 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: On 7/25/24 06:34, kernel test robot wrote: > Hi Anshuman, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on arnd-asm-generic/master] > [also build test ERROR on akpm-mm/mm-nonmm-unstable akpm-mm/mm-everything linus/master v6.10 next-20240724] > [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/Anshuman-Khandual/uapi-Define-GENMASK_U128/20240724-184809 > base: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master > patch link: https://lore.kernel.org/r/20240724103142.165693-3-anshuman.khandual%40arm.com > patch subject: [PATCH 2/2] lib/test_bits.c: Add tests for GENMASK_U128() > config: m68k-sun3x_defconfig (https://download.01.org/0day-ci/archive/20240725/202407250853.f3pSzob6-lkp@intel.com/config) > compiler: m68k-linux-gcc (GCC) 14.1.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240725/202407250853.f3pSzob6-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/202407250853.f3pSzob6-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > In file included from lib/test_bits.c:6: > lib/test_bits.c: In function 'genmask_u128_test': >>> include/uapi/linux/const.h:24:36: error: '__int128' is not supported on this target > 24 | #define _AC128(X) ((unsigned __int128)(X)) > | ^~~~~~~~ > include/kunit/test.h:708:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION' > 708 | const typeof(right) __right = (right); \ > | ^~~~~ > include/kunit/test.h:903:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION' > 903 | KUNIT_BINARY_INT_ASSERTION(test, \ > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > include/kunit/test.h:900:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG' > 900 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL) > | ^~~~~~~~~~~~~~~~~~~ > lib/test_bits.c:45:9: note: in expansion of macro 'KUNIT_EXPECT_EQ' > 45 | KUNIT_EXPECT_EQ(test, 0x0000000000ff0000ULL, GENMASK_U128(87, 80) >> 64); > | ^~~~~~~~~~~~~~~ > include/uapi/linux/const.h:29:26: note: in expansion of macro '_AC128' > 29 | #define _U128(x) (_AC128(x)) > | ^~~~~~ > include/uapi/linux/bits.h:16:13: note: in expansion of macro '_U128' > 16 | (((~_U128(0)) - (_U128(1) << (l)) + 1) & \ > | ^~~~~ > include/linux/bits.h:39:38: note: in expansion of macro '__GENMASK_U128' > 39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK_U128(h, l)) > | ^~~~~~~~~~~~~~ > lib/test_bits.c:45:54: note: in expansion of macro 'GENMASK_U128' > 45 | KUNIT_EXPECT_EQ(test, 0x0000000000ff0000ULL, GENMASK_U128(87, 80) >> 64); This is probably triggered with GENMASK_U128() usage which is not protected with ARCH_SUPPORTS_INT128. Will respin the series with required fixes.