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 45349E77180 for ; Thu, 12 Dec 2024 09:40:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C60CE6B0083; Thu, 12 Dec 2024 04:40:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C10556B0085; Thu, 12 Dec 2024 04:40:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AD8256B0089; Thu, 12 Dec 2024 04:40:25 -0500 (EST) 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 8F3376B0083 for ; Thu, 12 Dec 2024 04:40:25 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2BC07141765 for ; Thu, 12 Dec 2024 09:40:25 +0000 (UTC) X-FDA: 82885810896.24.B333846 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by imf07.hostedemail.com (Postfix) with ESMTP id 42CC94000A for ; Thu, 12 Dec 2024 09:39:53 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=aculab.com; spf=pass (imf07.hostedemail.com: domain of david.laight@aculab.com designates 185.58.85.151 as permitted sender) smtp.mailfrom=david.laight@aculab.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733996397; 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=UB7LrjqYxUg0HG6eOv2p3mE3eXHhxJUnYUWygvpfJyM=; b=mkMLqWKouwH5zZzFL1V4EEXLXJON8ZDVADXco/f0KJbc8yOQI8hEM6Xj/XYezjud1x8d3e hhDBT4f8dLYd6KJ2OX+FQ7mCkr0z6AhapQf6vj4yQfbrMFFFtwr5xRAeT7O4SbsNWNXngT rNBwN3GrO1UDmGLgnT+y+o+Vl7SSFPw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733996397; a=rsa-sha256; cv=none; b=JPTYtBmusZx5BVX745ieD1wmKHEglLRwW9+ry1MpLoKMpz4Y77X6xCe+nI9LhJw1DoBVve P9fS2kMii3nXU+Gl+GnPjPiQyKIHK3hwcsGtPFwlPyMRT6kRJKVyFf3vWg7I1iqFJBmy+O u4Xh5LJYkG7q8WDQ7r0cOZEHw4jA7gY= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=aculab.com; spf=pass (imf07.hostedemail.com: domain of david.laight@aculab.com designates 185.58.85.151 as permitted sender) smtp.mailfrom=david.laight@aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-148-GZbhliAwNcyb9MfIhgZ_9w-1; Thu, 12 Dec 2024 09:40:18 +0000 X-MC-Unique: GZbhliAwNcyb9MfIhgZ_9w-1 X-Mimecast-MFC-AGG-ID: GZbhliAwNcyb9MfIhgZ_9w Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 12 Dec 2024 09:39:22 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Thu, 12 Dec 2024 09:39:22 +0000 From: David Laight To: 'kernel test robot' CC: "llvm@lists.linux.dev" , "oe-kbuild-all@lists.linux.dev" , "Andrew Morton" , Linux Memory Management List Subject: RE: [linux-next:master 1948/2656] block/blk-iocost.c:1101:11: error: call to __compiletime_assert_560 declared with 'error' attribute: clamp() low limit 1 greater than high limit active Thread-Topic: [linux-next:master 1948/2656] block/blk-iocost.c:1101:11: error: call to __compiletime_assert_560 declared with 'error' attribute: clamp() low limit 1 greater than high limit active Thread-Index: AQHbTAO/LBVwjhcfokKsJgYDzh99oLLiWwfQ Date: Thu, 12 Dec 2024 09:39:22 +0000 Message-ID: References: <202412120322.3GfVe3vF-lkp@intel.com> In-Reply-To: <202412120322.3GfVe3vF-lkp@intel.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: vgcwKM8nFwpBYWQ_wamQPVEV4G9XANAztSOzX6dzDa0_1733996417 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 42CC94000A X-Rspam-User: X-Rspamd-Server: rspam07 X-Stat-Signature: ricd7wmmhrfk1cze33bonenjtnikhx8n X-HE-Tag: 1733996393-534149 X-HE-Meta: U2FsdGVkX1+txFe3SXz6/6c7Oz2ZIvd6fpRkkHlyj8cBtiMW1SrLxGxOT9ipdIIkNDV5rlKzKq4DVUaQf3Sxttu9eSF24tf77YHlZHpYUUMjEzu7U2Edd9KxEkyHU68Wx0e/b/rwTZGr2PZmiFLFwfvwGzMCvT6P7wSkLM6D1jvmnvy63ftKe343lxhhP4sI4sCtugVM1TmbuzIhfEcrES21RkZMkdna5eooft1F3LBxBkOg+lzMCH59cWMIXPsIGjHzExkdafg5shxLJx/NZqcXTbWyEHtnMGJDW1rfaDCuyq9ZTLfRTLNtG+jQ51mhiVUrjfxZYHqxzPfi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AhpUo/TtY+vGof3zHUT8qKCXZbiov4o9yCjcVOmWDiEcenKu5JDWPDZnsx2WaoEMB3JAQAS1vp8= 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: From: kernel test robot > Sent: 11 December 2024 19:35 >=20 > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it master > head: 91e71d606356e50f238d7a87aacdee4abc427f07 > commit: 212fe932ee57ec4a0f41bdc42b58c64fe3062147 [1948/2656] minmax.h: si= mplify the variants of > clamp() > config: s390-defconfig (https://download.01.org/0day-ci/archive/20241212/= 202412120322.3GfVe3vF- > lkp@intel.com/config) > compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project > 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) > reproduce (this is a W=3D1 build): (https://download.01.org/0day- > ci/archive/20241212/202412120322.3GfVe3vF-lkp@intel.com/reproduce) >=20 > If you fix the issue in a separate patch/commit (i.e. not just a new vers= ion of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202412120322.3GfVe3vF-lkp= @intel.com/ >=20 ... > b0853ab4a238c54 Tejun Heo 2020-09-01 1084 static void __propagate_wei= ghts(struct ioc_gq *iocg, u32 > active, u32 inuse, > b0853ab4a238c54 Tejun Heo 2020-09-01 1085 =09=09=09=09bool save, stru= ct ioc_now *now) > 7caa47151ab2e64 Tejun Heo 2019-08-28 1086 { > 7caa47151ab2e64 Tejun Heo 2019-08-28 1087 =09struct ioc *ioc =3D iocg= ->ioc; > 7caa47151ab2e64 Tejun Heo 2019-08-28 1088 =09int lvl; > 7caa47151ab2e64 Tejun Heo 2019-08-28 1089 > 7caa47151ab2e64 Tejun Heo 2019-08-28 1090 =09lockdep_assert_held(&ioc= ->lock); > 7caa47151ab2e64 Tejun Heo 2019-08-28 1091 > e9f4eee9a0023ba Tejun Heo 2021-05-11 1092 =09/* > e9f4eee9a0023ba Tejun Heo 2021-05-11 1093 =09 * For an active leaf no= de, its inuse shouldn't be > zero or exceed > e9f4eee9a0023ba Tejun Heo 2021-05-11 1094 =09 * @active. An active in= ternal node's inuse is solely > determined by the > e9f4eee9a0023ba Tejun Heo 2021-05-11 1095 =09 * inuse to active ratio= of its children regardless of > @inuse. > e9f4eee9a0023ba Tejun Heo 2021-05-11 1096 =09 */ > e9f4eee9a0023ba Tejun Heo 2021-05-11 1097 =09if (list_empty(&iocg->ac= tive_list) && iocg- > >child_active_sum) { > e9f4eee9a0023ba Tejun Heo 2021-05-11 1098 =09=09inuse =3D DIV64_U64_R= OUND_UP(active * iocg- > >child_inuse_sum, > e9f4eee9a0023ba Tejun Heo 2021-05-11 1099 =09=09=09=09=09 iocg->chi= ld_active_sum); > e9f4eee9a0023ba Tejun Heo 2021-05-11 1100 =09} else { > db84a72af6be422 Tejun Heo 2020-09-01 @1101 =09=09inuse =3D clamp_t(u32= , inuse, 1, active); ... Duplicate - there is an inlined call that passes 'active =3D 0'. IIRC the clamp() is there to avoid a divide by zero later. The code is buggy and I think there is a fix pending. =09David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1= PT, UK Registration No: 1397386 (Wales)