Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp76069rdb; Mon, 14 Aug 2023 09:55:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHi1PTtwnFqlzVPYDhwpAVD88dhxDRFk10wZ2Mmwx8HVVM1Y6QopS+LWyyd+4MGGFuSC9XW X-Received: by 2002:a05:6a20:3d28:b0:134:1011:8582 with SMTP id y40-20020a056a203d2800b0013410118582mr14153878pzi.47.1692032120311; Mon, 14 Aug 2023 09:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692032120; cv=none; d=google.com; s=arc-20160816; b=M5FgJ40/eaKuwuOzBXBwQ+dUL6DoJoKDoTo6hAxTe892EjTma3ycwescS68hl2HJHi LRnmaOQxI8YEoAJqLq692yv7gWM/QpJEcC40MaCW3RvFTMATCmqMHWmPiJ7xoKVz0wLW 3EUPgJOOQ/TroINpJvKIvC/bkqghm9pFsTIsIpjs2zNn9oYUVMODwXp5geRfvNmHbIZ8 7ieEi2pBmqqhB0uit/K+vpjEGfZELykQrXDc1qD3is7sMIjjnD5mxf8IN8gRDzjyI7Pu E+Rr6bsCyZvzs0bVlBRcXbiFgjO1XDRV8Kr4cIQgulA4VSYeTkQO/W8ngGsb0gG7gRRk nptw== 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=5ZlYrAxQdIWNTLWDoR3scIP32dgh6yR7lttAHNPduCk=; fh=Gxu2uXYHnsgn/eeWV+3uCXsljYGi7DwySD9PSizbO2M=; b=l1juqSoR9K/5G3JGR/5XY7xziCWLT8DIVxl4dzP/Rmg6BBjg2BeH9pgX2QY/6Y3eTu h/JhlLuIZi/F1dkkSAYFqTuXNKzRrnuUlyf2O1DyGVAx835paJGknEw0Il9p0t/KEbr7 GB6Le9yt2mnAeFC4pj8eJrvDewTSGFX11Ppvjt27/M/SQS8a7osAkIkFUIx8+hPp7BX8 9hOwDI/N0GBeKCxT9VEzgsn75ySeFskHtUt1nUNEBDhXN9VdlximlEH/+d394xH024sw N9swUVojeRI4ToclLZJXma6qlx79qgaNHFD0pbcRe3sdLRu1StU9o8Ctu4RKXyv5a5kW zWIQ== 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 s7-20020a634507000000b00564ac34c272si8354770pga.558.2023.08.14.09.55.07; Mon, 14 Aug 2023 09:55:20 -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 S231466AbjHNPaH (ORCPT + 99 others); Mon, 14 Aug 2023 11:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230356AbjHNPaE (ORCPT ); Mon, 14 Aug 2023 11:30:04 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17EE510F0 for ; Mon, 14 Aug 2023 08:30:00 -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-229-x3MjH5ZfOW6T0TEKdzKQeQ-1; Mon, 14 Aug 2023 16:29:58 +0100 X-MC-Unique: x3MjH5ZfOW6T0TEKdzKQeQ-1 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; Mon, 14 Aug 2023 16:29:46 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 14 Aug 2023 16:29:46 +0100 From: David Laight To: David Laight , '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+AAITzIRAADNjaAACIoXRgABaQVAAAwNZ4AAABUbYA Date: Mon, 14 Aug 2023 15:29:46 +0000 Message-ID: <2b39a714cdcd4299be8c404ae699a4d3@AcuMS.aculab.com> 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_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogRGF2aWQgTGFpZ2h0DQo+IFNlbnQ6IDE0IEF1Z3VzdCAyMDIzIDE1OjUxDQo+DQo+IEZy b206IExpbnVzIFRvcnZhbGRzIDx0b3J2YWxkc0BsaW51eC1mb3VuZGF0aW9uLm9yZz4NCj4gPiBT ZW50OiAxMCBBdWd1c3QgMjAyMyAyMDo0Nw0KPiAuLi4NCj4gPiBCdXQgdXNpbmcgYW4gKnVuc2ln bmVkKiBjb25zdGFudCAyMCB3aGVuIHRoZSBvdGhlciBzaWRlIGlzIHNpZ25lZA0KPiA+IG1lYW5z IHRoYXQgbm93IHNvbWVib2R5IGlzIGNvbmZ1c2VkLiBXZSBzaG91bGQgd2Fybi4NCj4gDQo+IFRo ZW4geW91IGdldCAnZml4ZXMnIGxpa2U6DQo+IA0KPiBpbnQgZG9fdGNwX2dldHNvY2tvcHQoc3Ry dWN0IHNvY2sgKnNrLCBpbnQgbGV2ZWwsDQo+IAkJICAgICAgaW50IG9wdG5hbWUsIHNvY2twdHJf dCBvcHR2YWwsIHNvY2twdHJfdCBvcHRsZW4pDQo+IHsNCj4gCXN0cnVjdCBpbmV0X2Nvbm5lY3Rp b25fc29jayAqaWNzayA9IGluZXRfY3NrKHNrKTsNCj4gCXN0cnVjdCB0Y3Bfc29jayAqdHAgPSB0 Y3Bfc2soc2spOw0KPiAJc3RydWN0IG5ldCAqbmV0ID0gc29ja19uZXQoc2spOw0KPiAJaW50IHZh bCwgbGVuOw0KPiANCj4gCWlmIChjb3B5X2Zyb21fc29ja3B0cigmbGVuLCBvcHRsZW4sIHNpemVv ZihpbnQpKSkNCj4gCQlyZXR1cm4gLUVGQVVMVDsNCj4gDQo+IAlsZW4gPSBtaW5fdCh1bnNpZ25l ZCBpbnQsIGxlbiwgc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