From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E00F620A5C6 for ; Wed, 4 Dec 2024 14:39:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733323176; cv=none; b=SjdGefPR3b3vLId05Ec+rLNlDW8zxEi1NhLstxhqKbxuTQn1yQD10g6MJt6OwYZRYkxTJ3EhRDMpPHypWDqSPXMA6knORNoaYAbH5GwvpZmgKKyUoTLStqa64R9/exTwcPi1SsCvfIJaWb/Bs3OAWVVTc9g83X1/WAIhJ8pd+NU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733323176; c=relaxed/simple; bh=7vm+GgU7IzYoJVoPQmQEkbgSGw3DdebIEtgOIlj7sr4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TIxAOg3tTV4HXzli3C3M+cNcsFl+4GhFdzFZKOqmR0kWzYJBBzL3w1HLW1Eddc+3NIfxtrcM7oS6aRYZ/tE6kTMx5pqMgmXjziPd4u/jcB5WsVazbsZPpL14LHhUKiY7ppMgKgPfJO+7hDcOMInFPB9S0neq2/Pnkmzls3lk6Zo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=q6l0doVf; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="q6l0doVf" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-434a8b94fb5so6281235e9.0 for ; Wed, 04 Dec 2024 06:39:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733323173; x=1733927973; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=u7Deb6ozPBCd5HaUFhdz6hCVVIOvpic/u3v2HTGhW9U=; b=q6l0doVfthszIGrrzjjOf+4PrPTNF2YKj8VPyhcjxIkXjY2BXcpn+1zK4No3MOd7DE eA6Urr0lz9isJYDloS+E71oJYyULmvpICeKNH/pmS8GfhZI7k9DVznEWnRWELKjHDEFF lGLrfp6RYfo9oFyacfthTbLHHhHshRSMmGmeyPKU4MoDCt9YGRe4sHjML9r1ypD/9dwa +mfOO1wJn3P5F1dBe6J7M7MUAdNJ3zlLuF9nA+wMs5ds9+rNeIHQ65ppKteUSsWxrymP 5Ap3/aYcLbM7HK/E+aYtteo+fikcxVyWJOBkHUm274EhKrLNty3y430RgFNMRyJjKD4p e1/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733323173; x=1733927973; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=u7Deb6ozPBCd5HaUFhdz6hCVVIOvpic/u3v2HTGhW9U=; b=CEDEaTQCoiPq8ZRJxvIvaAzf6y0s4wzLqjyVgG3KVFfnAeBN13IRL+EpUegZdTPgT5 gNYj0kchPSiHDIsI0w3XUYjYQATF1a9xdw62TrX+1olz3UI250u4VzzuRPv0PCI2hVfj j5r1R1ztFdee+Fk06bCTnNE5524FynA38jKEQE3JaEKtWFfziJ/35LBlOW6mgKC4a9Dg XsEv0qoVxB51UVRNL+aIJecsifji7k0Qxg+smfXBx52Y3EUk7jyXsu0MMCJsPNCxaZJl UsLesnZT+vXnqyxAClXhm6fzv0imYuWR0uhAdoUpczAFUUbJ5iA6nmpNCqqWOGQ0dVsL iYzA== X-Forwarded-Encrypted: i=1; AJvYcCVXebs8/9guTnI66srERJCUdZ/WP17eiJCh85jpdFKV/PKnq1vc1chTI1ZHlC5eDu5uJealIB4i8yz5NQ==@vger.kernel.org X-Gm-Message-State: AOJu0YwXeD4qB2tPHYRltQWeQYUZgcPlSfTLLvoNIRA6I/M4HvM0BFWB nLDl5ui28ATacc117C+l7iXfP+vyEPneRgIalCGu7P1jSNIpMGU/n+HjiHTYbyQ= X-Gm-Gg: ASbGncu4skMcJiKh6kg6Wga5q/9tII0jNPcmoC2hd813bbKVyrJqfgF01HGiKQ/4sdD RJkTFuIoAnQrfKMWjO7fYwKNnSmLSBg5Y0iRT8h6T9UNdsa7jItozpyWzYuoq/ZwmC2Fv6oBmM3 I5WbWx2a/LIdsf4O/0SxPE4zChBVLJB5puYxFnAonB6dmNACTgcUt9O6UpoImOIQTmRN1vd7cBQ rQTUuhq+p254cPbpbZkXYBtOtuNF9dput/fxbwipf/V4WT2zWAl218= X-Google-Smtp-Source: AGHT+IFgNAhlHmTZM9dIRgErvl8+0lGzD3UNMNEnIcEA1d5Rnbb0Ap2o8TKx3zX6wtjKyR3FwkoocA== X-Received: by 2002:a05:600c:198e:b0:434:9cf6:a2a5 with SMTP id 5b1f17b1804b1-434afb9ecc7mr229792735e9.8.1733323173202; Wed, 04 Dec 2024 06:39:33 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434d528ab4esm26074105e9.26.2024.12.04.06.39.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 06:39:32 -0800 (PST) Date: Wed, 4 Dec 2024 17:39:29 +0300 From: Dan Carpenter To: Naresh Kamboju , David Laight Cc: linux-s390@vger.kernel.org, clang-built-linux , linux-block , open list , lkft-triage@lists.linaro.org, Linux Regressions , Anders Roxell , Arnd Bergmann , Nathan Chancellor , Jens Axboe Subject: Re: s390: block/blk-iocost.c:1101:11: error: call to '__compiletime_assert_557' declared with 'error' attribute: clamp() low limit 1 greater than high limit active Message-ID: <5ffa868f-cbf0-42ae-ae10-5c39b0de05e7@stanley.mountain> References: Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Let's add David to the Cc list because he's the expert on clamp(). regards, dan carpenter On Wed, Dec 04, 2024 at 04:01:09PM +0530, Naresh Kamboju wrote: > The s390 builds failed with clang-19 with defconfig on the > Linux next-20241203 tag due to following build warnings / errors. > Build pass with gcc-13 defconfig for s390. > > First seen on Linux next-20241203 tag > GOOD: Linux next-20241128 tag > BAD: Linux next-20241203 tag > > List of arch and toolchains : > s390 defconfig with clang-19 > > s390: > build: > * clang-19-defconfig > * korg-clang-19-lkftconfig-lto-full > * korg-clang-19-lkftconfig-hardening > * korg-clang-19-lkftconfig-lto-thing > > Reported-by: Linux Kernel Functional Testing > > Build log: > =========== > block/blk-iocost.c:1101:11: error: call to '__compiletime_assert_557' > declared with 'error' attribute: clamp() low limit 1 greater than high > limit active > 1101 | inuse = clamp_t(u32, inuse, 1, active); > | ^ > include/linux/minmax.h:218:36: note: expanded from macro 'clamp_t' > 218 | #define clamp_t(type, val, lo, hi) __careful_clamp(type, val, lo, hi) > | ^ > include/linux/minmax.h:195:2: note: expanded from macro '__careful_clamp' > 195 | __clamp_once(type, val, lo, hi, __UNIQUE_ID(v_), > __UNIQUE_ID(l_), __UNIQUE_ID(h_)) > | ^ > include/linux/minmax.h:188:2: note: expanded from macro '__clamp_once' > 188 | BUILD_BUG_ON_MSG(statically_true(ulo > uhi), > \ > | ^ > note: (skipping 2 expansions in backtrace; use > -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:530:2: note: expanded from macro > '_compiletime_assert' > 530 | __compiletime_assert(condition, msg, prefix, suffix) > | ^ > include/linux/compiler_types.h:523:4: note: expanded from macro > '__compiletime_assert' > 523 | prefix ## suffix(); > \ > | ^ > :38:1: note: expanded from here > 38 | __compiletime_assert_557 > | ^ > block/blk-iocost.c:1101:11: error: call to '__compiletime_assert_557' > declared with 'error' attribute: clamp() low limit 1 greater than high > limit active > include/linux/minmax.h:218:36: note: expanded from macro 'clamp_t' > 218 | #define clamp_t(type, val, lo, hi) __careful_clamp(type, val, lo, hi) > | ^ > include/linux/minmax.h:195:2: note: expanded from macro '__careful_clamp' > 195 | __clamp_once(type, val, lo, hi, __UNIQUE_ID(v_), > __UNIQUE_ID(l_), __UNIQUE_ID(h_)) > | ^ > include/linux/minmax.h:188:2: note: expanded from macro '__clamp_once' > 188 | BUILD_BUG_ON_MSG(statically_true(ulo > uhi), > \ > | ^ > note: (skipping 2 expansions in backtrace; use > -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:530:2: note: expanded from macro > '_compiletime_assert' > 530 | __compiletime_assert(condition, msg, prefix, suffix) > | ^ > include/linux/compiler_types.h:523:4: note: expanded from macro > '__compiletime_assert' > 523 | prefix ## suffix(); > \ > | ^ > :38:1: note: expanded from here > 38 | __compiletime_assert_557 > | ^ > 2 errors generated. > > Links: > --- > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241203/testrun/26188938/suite/build/test/clang-19-defconfig/log > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241203/testrun/26188938/suite/build/test/clang-19-defconfig/history/ > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241203/testrun/26188938/suite/build/test/clang-19-defconfig/details/ > > Steps to reproduce: > ------------ > # tuxmake --runtime podman --target-arch s390 --toolchain clang-19 > --kconfig defconfig LLVM_IAS=1 > > metadata: > ---- > git describe: next-20241203 > git repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git sha: c245a7a79602ccbee780c004c1e4abcda66aec32 > kernel config: > https://storage.tuxsuite.com/public/linaro/lkft/builds/2pjAPS9UrJkbAKFHktQei7eqW4Y/config > build url: https://storage.tuxsuite.com/public/linaro/lkft/builds/2pjAPS9UrJkbAKFHktQei7eqW4Y/ > toolchain: clang-19 > config: clang-19-defconfig > arch: s390 > > -- > Linaro LKFT > https://lkft.linaro.org