Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp32622rdb; Sun, 28 Jan 2024 12:07:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8MlHBpTOjmVY19nEqM2EIIPXzxeQhy/XBuT6DcBQ6/QkJvkKw3M9BRLdRpA1B0fV7qLvW X-Received: by 2002:aa7:c382:0:b0:55f:3db:2985 with SMTP id k2-20020aa7c382000000b0055f03db2985mr209443edq.12.1706472427376; Sun, 28 Jan 2024 12:07:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706472427; cv=pass; d=google.com; s=arc-20160816; b=xFDsinwzksujkuvMNNVdM/cfRzpbYQYt3w/qYIpyTtVE8HgI30rAQkDSKVsmccrIwV 6vhCqjj9o4VJX+uj51EozSBzNl6tqxgY8dAcAGAqCGT9Kn2Nu/qDkAqkgEyao43iFGVG Bm85TgelHJI1AnkzWyJLLBYTGn4k4Dd+XI7ZIRFiVunh8INyFVOwM/SxrqmDEZc34goq vunGNQvHeU+TaSVMOiHfSI7QfzQyb8iLnp2ybEsd6yRGixLglyDw+TEhbavvhXoS0BtW x2mxG4GaN73H1S85GZr2ARI+9utZkH2RocYZEZ4xb6iI9SlAPto6KNnkf0i9+OA3JOfs dvTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Jvgl07qLmO97AnDOonOYaDY55AuzJRLfRUuCExUHbJw=; fh=07ZM0/6MF7f8hQFeFHT2JxBXRQnvh8CSyx+F3PKdSaI=; b=gLaCkxRCk7xpe4tRWrkhzJC6JAs3HsH22bi7ZegbpCq5aS57FB7/64SSV0lKh+Zrq+ mTtY8/DQ+KmT0a5k8Impd1n8bIRxGUA/kh33d9825RL6XnupDiLWnsJQVQMQJPzLbCqt 0k/f0w2UnTny9HrQew6RukOIDiGJCMfdOKmy0n4CM14M+DdZkpCMUHxiCTS3Smor7LlY WgxtUbCnZsP/gi8Y/yx2HoELIK8zFI/Q+dmI9W1B/8QnZCJL74umD2flv3QXrO9Aq2IV NmehWFObRfkzfxXcGoCDegjGlMg8+x4iY+h7Hkpgs61LdFJJvtMH8ZqZxJV2cPYu56fi 4RRw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=HLbacQqc; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-41924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41924-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ew11-20020a056402538b00b005588b35087asi2880729edb.307.2024.01.28.12.07.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 12:07:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=HLbacQqc; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-41924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41924-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C331A1F238B5 for ; Sun, 28 Jan 2024 20:00:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25EA73C466; Sun, 28 Jan 2024 19:59:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="HLbacQqc" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 0BD844C3A9 for ; Sun, 28 Jan 2024 19:59:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706471991; cv=none; b=SLMcgqhzb7Eq7aytSYcEty9SsRlj8l2Mvi9Uj5H9zwauHwV16PkXuUrX3lEcIfuZnra0b3NL61iWuS5DBGnJWXy+OHTO6ZsYCOXyX/4p6o4bENe9mqkda/vTxV9lFrWvcpqGkXFu87jlhTFG+9RGdIiBEe202YbsAFtoyIaSZcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706471991; c=relaxed/simple; bh=RQPBgjqLxVYa9z7DAN4AMZv6aMuk7G/qW9fdGyDL5MM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nP97WNbhafldrAV6zFf6XkgmEsKJUo0zXFIKG2iUvexYR2MNuaaQOWgFLhccgC74GVhz3MZ8rw8WXy42edESQ52B3QzDPcGkFfWqc67iUQdY0kXCN3Nqmv8nxSKD8Y3X5MvQORfzbc/4INJW1jI34J1r+MnDLNF9irCWTfmqhgU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=HLbacQqc; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-510f37d673aso819725e87.0 for ; Sun, 28 Jan 2024 11:59:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1706471987; x=1707076787; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Jvgl07qLmO97AnDOonOYaDY55AuzJRLfRUuCExUHbJw=; b=HLbacQqcZ10CSzcNoAQ72MHpzZ8XS+RKCzZCY0k1uvjX4dMlOAAtiq8bBaGjJ3myvZ Ae7OoytbX0x9shmBgYS0M0+eUvd5VhZwS+Y6nJeh0UE35ciQiouWptiORbIJ4b3JE+fM tceLZ7v3lg3u3vDzHODtdrEJz5lZ0d+BqpZd4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706471987; x=1707076787; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jvgl07qLmO97AnDOonOYaDY55AuzJRLfRUuCExUHbJw=; b=pJ7GIV1l3RKLrJUSKdmRcigsqbQp73mHv6euRislNxclBunNCvAEFoG+OnsyBtf0Fv IU+N3V4WEpgmvontIVd1P+UvHcER64caqNX7FuHYkABYo53Qd/RL8xTMYTXOH+jFKW8N EzogX8uaJEYE5qS19wh8Umlp4neTD1LShzgpST9WSgi0NTgtU6P7LncUPJW7YQwJeCud Y6X3jk46n8tjO1ugVj1QafxhgoYu2XYlyfY2DKGY6hyTl/nBjnJF9nOWkm1+dspi6apt bZGG3kY6dlFouDsCx7ZsHETndjZggTKWzpRjjHoanNo4SCbtJYqRatvF+aOi7lHvqjM9 1dfg== X-Gm-Message-State: AOJu0Yxk16V40cohd6ycZzDPtApnMUNSr+c9/xnNK+z/g4bw8NWeQGut ujNBhMIfxsbwnxqFi2arvepG3q/Q/pMcI7EJSpj+xqAxdQa0hM0I473LGRD1hJj4SK6V1kVOd1f JSAk= X-Received: by 2002:a19:7003:0:b0:510:c63:5621 with SMTP id h3-20020a197003000000b005100c635621mr3297572lfc.17.1706471986939; Sun, 28 Jan 2024 11:59:46 -0800 (PST) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id m12-20020a056512114c00b005101bd871e9sm887599lfg.154.2024.01.28.11.59.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Jan 2024 11:59:46 -0800 (PST) Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2cf588c4dbcso12617231fa.1 for ; Sun, 28 Jan 2024 11:59:45 -0800 (PST) X-Received: by 2002:a2e:994e:0:b0:2cf:1a11:ea87 with SMTP id r14-20020a2e994e000000b002cf1a11ea87mr3234050ljj.39.1706471985664; Sun, 28 Jan 2024 11:59:45 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <0ca26166dd2a4ff5a674b84704ff1517@AcuMS.aculab.com> In-Reply-To: From: Linus Torvalds Date: Sun, 28 Jan 2024 11:59:29 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH next 10/11] block: Use a boolean expression instead of max() on booleans To: David Laight Cc: "linux-kernel@vger.kernel.org" , Netdev , "dri-devel@lists.freedesktop.org" , Andy Shevchenko , Andrew Morton , "Matthew Wilcox (Oracle)" , Christoph Hellwig , Dan Carpenter , Linus Walleij , "David S . Miller" , "linux-btrfs@vger.kernel.org" , Jens Axboe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 28 Jan 2024 at 11:36, David Laight wrote: > > However it generates: > error: comparison of constant =C3=A2=E2=82=AC=CB=9C0=C3=A2=E2=82=AC=E2=84= =A2 with boolean expression is always true [-Werror=3Dbool-compare] > inside the signedness check that max() does unless a '+ 0' is added. Please fix your locale. You have random garbage characters there, presumably because you have some incorrect locale setting somewhere in your toolchain. Linus