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 74AA0FA3741 for ; Mon, 31 Oct 2022 23:10:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 019BD6B0072; Mon, 31 Oct 2022 19:10:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F0C156B0073; Mon, 31 Oct 2022 19:10:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DFAFF6B0074; Mon, 31 Oct 2022 19:10:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id D15FB6B0072 for ; Mon, 31 Oct 2022 19:10:52 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 9F415C0ED1 for ; Mon, 31 Oct 2022 23:10:52 +0000 (UTC) X-FDA: 80082791544.10.6BA8765 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf09.hostedemail.com (Postfix) with ESMTP id 0404314001D for ; Mon, 31 Oct 2022 23:10:51 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6705DB81ADB; Mon, 31 Oct 2022 23:10:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C582BC433C1; Mon, 31 Oct 2022 23:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1667257849; bh=oea+DfSn2PZjsarkz1aPAd8kSD63FeuVEhn2xKVR+hE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LDPDYGRhcY0D8cYiAhlQo0Fkj9je1Vk1UG9GS3xOvoNNscyPkjNTLlyfKPyynNb80 5VPNUurpmyeMkbJw43/YMY5GCTrtafcU7PFQBZZXMmcA1Kn3kFG41/9DU7l7fHI7ZK +UQFHtLXWWDBLqsfYnd9BklfamuUZunE21rihuzw= Date: Mon, 31 Oct 2022 16:10:48 -0700 From: Andrew Morton To: kernel test robot Cc: Liam Howlett , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Ammar Faizi , GNU/Weeb Mailing List , Linux Memory Management List , "Liam R. Howlett" Subject: Re: [ammarfaizi2-block:akpm/mm/mm-unstable 46/244] lib/test_maple_tree.c:453:12: warning: result of comparison of constant 4398046511104 with expression of type 'unsigned long' is always false Message-Id: <20221031161048.a2fd2ce1c210b9cd1a499cb4@linux-foundation.org> In-Reply-To: <202210301224.r9RDzf4K-lkp@intel.com> References: <202210301224.r9RDzf4K-lkp@intel.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1667257852; a=rsa-sha256; cv=none; b=3zPX06Zl2ajH5ZhEgpWP12Z/0zWnET2RMKikBFUoCtNVm4yAbH+kP5/FyS7Su/lLgX+Isx 0IKBQmNz3nmZnQzIOdgZB0UoB3YWC2N//gIou1f8Ux9OQbjO5ffcJKnOPH1EaOrtTlzjEK 5OdCooTB2ZjCAnUuYWBWSIs+YUrcu0s= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=LDPDYGRh; dmarc=none; spf=pass (imf09.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1667257852; 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:dkim-signature; bh=j66VLS+ijdbzDHh8OrGrH7FgJlvZRqQjfqfwxsoF7fw=; b=jjpGHmBBjgFmhsL2hThVTM+B6qxfcDomFIspm3fkpYt03jsBYmluyIOkNHNjuz7f1kYqJF GNPUlKpEKDeMxcNrCqL/qczlYNRYbudvX99BTUU6E0G1PIMAM27rKMS2rwhfbEM6+PqZI7 aH9lYBcIHlNpwakofUY3gakNzb5+7aU= X-Rspam-User: Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=LDPDYGRh; dmarc=none; spf=pass (imf09.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Stat-Signature: muc7qbpsct3g8we97b6oued5sgnnih6o X-Rspamd-Queue-Id: 0404314001D X-Rspamd-Server: rspam06 X-HE-Tag: 1667257851-130610 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, 30 Oct 2022 13:04:16 +0800 kernel test robot wrote: > tree: https://github.com/ammarfaizi2/linux-block akpm/mm/mm-unstable > head: eecc1f68b7ae1e677dd01b728e58de61a2f8ae71 > commit: d9c0ca7c6a02830de65fbc684cf0be7e6510737c [46/244] maple_tree: reorganize testing to restore module testing > config: hexagon-allmodconfig > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) > 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 > # https://github.com/ammarfaizi2/linux-block/commit/d9c0ca7c6a02830de65fbc684cf0be7e6510737c > git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block > git fetch --no-tags ammarfaizi2-block akpm/mm/mm-unstable > git checkout d9c0ca7c6a02830de65fbc684cf0be7e6510737c > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash lib/ > > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> lib/test_maple_tree.c:453:12: warning: result of comparison of constant 4398046511104 with expression of type 'unsigned long' is always false [-Wtautological-constant-out-of-range-compare] > if ((val == 4398046511104) || (val == ULONG_MAX)) > ~~~ ^ ~~~~~~~~~~~~~ > lib/test_maple_tree.c:496:17: warning: result of comparison of constant 4398046511104 with expression of type 'unsigned long' is always false [-Wtautological-constant-out-of-range-compare] > else if ((val == 4398046511104) || (val == ULONG_MAX)) > ~~~ ^ ~~~~~~~~~~~~~ > lib/test_maple_tree.c:182:19: warning: unused function 'not_empty' [-Wunused-function] > static inline int not_empty(struct maple_node *node) Thanks. A 32-bit build, I assume. Liam, what's with that 4398046511104? Wouldn't 0x40000000000 be clearer?