Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp827153rwl; Thu, 10 Aug 2023 02:07:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBvDfX9+bqxsntAYzqlPEKNU5YJMzzvAwvWR1KNwxBkcw1VD9GCWErKnsa054nbw8DCFAw X-Received: by 2002:a05:6a00:2396:b0:684:6bd8:4e3b with SMTP id f22-20020a056a00239600b006846bd84e3bmr2079936pfc.19.1691658457914; Thu, 10 Aug 2023 02:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691658457; cv=none; d=google.com; s=arc-20160816; b=OHdFzsTc+fulv70UFp1p7wiDXK9rcKCFmNG/6P42okTO505XpGIyjITkjXhxSH2h34 AQF5TYirQGWEQOVLIDhIie/yWyfz2iI3vkQhXu2mabbxjjNbwZ/tsCjr8V2WBRgjyvIi 7E5g612vevo83aa8TnVdDG9q+fQ10ljl+5gEgldawrXGd63q5H8814ripnTUpZSaPWfT aLe3SPPiFemNuSeUt6oOKFVuy8zPgn0KcK+boDMCSeVVD6jbH1IMDl5nSJ/HED1effal WHpoXuejifxX8Mr/Rs5qjlzKXgtxAhkBnjxzxYsvQl+3Q7t5aZ/v5cIsfksc98NhHxbP FwGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=gaIoy26FCQrr2M2126BFjR/JAb/I7QKBLi14OQWgywk=; fh=OwC+gY//LAN7Ri7O6iZa4KMeljxrw01pBcx2fvYPBA8=; b=eFq3dLt2MpoUy2wvIjcB5AnksT52/gM9I3G2bKFiIxLs3pxP0SCb0jsaRGYCFXA8lN +NcWZcy79ryPiKjcFl0d+5W5hK7bepP9+TkSUcgVfWWNhPF+vxCxUJhIsD1g5ZbKFnSP MP7zWbjExLOfZv9Mhv5Iq6bWKLMDK/sJmbXt023sCHU35xZKk66NWs4D297rUaJ/5e+M ohQzomPrREJfNZkbwCJH7Dw3LIPpqjZ4qsE65FJuXUU8UTd9VCfZ//sxtdxFAVpaWM9R y0VXqkzN8ysU1kBwwdZyRyahgWArYtOOzkJbzrglFNPnph1Tsxt0tOHUM9KhbXJ+Zlhd OX+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fa40-20020a056a002d2800b00652c20d3522si1206931pfb.303.2023.08.10.02.07.25; Thu, 10 Aug 2023 02:07:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233647AbjHJI3t (ORCPT + 99 others); Thu, 10 Aug 2023 04:29:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233139AbjHJI3f (ORCPT ); Thu, 10 Aug 2023 04:29:35 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98402ED for ; Thu, 10 Aug 2023 01:29:32 -0700 (PDT) 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-214-I3eaVDq4MvG0XZR_8-ylxQ-1; Thu, 10 Aug 2023 09:29:30 +0100 X-MC-Unique: I3eaVDq4MvG0XZR_8-ylxQ-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 10 Aug 2023 09:29:27 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Thu, 10 Aug 2023 09:29:27 +0100 From: David Laight To: 'Linus Torvalds' CC: "linux-kernel@vger.kernel.org" , "Andy Shevchenko" , Andrew Morton , "Matthew Wilcox (Oracle)" , Christoph Hellwig , "Jason A. Donenfeld" Subject: RE: [PATCH v3 5/5] minmax: Relax check to allow comparison between int and small unsigned constants. Thread-Topic: [PATCH v3 5/5] minmax: Relax check to allow comparison between int and small unsigned constants. Thread-Index: AdnGwkt6hGqNS4p3Ts2CQBK2yLMoFAANMf+AAITzIRAADNjaAACIoXRg Date: Thu, 10 Aug 2023 08:29:27 +0000 Message-ID: References: <01e3e09005e9434b8f558a893a47c053@AcuMS.aculab.com> <82fc9f39e3914a74abc7f968b1abba68@AcuMS.aculab.com> In-Reply-To: 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-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on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