Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4472008rwb; Mon, 31 Jul 2023 07:24:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2Q8KCrk0VyYfmAOFEzUe5KMROdQrbW9m95BRNhj74/X28eTm0bMrQzzLLlAtnQ+DHQFjI X-Received: by 2002:a17:902:d2d2:b0:1b8:a234:7617 with SMTP id n18-20020a170902d2d200b001b8a2347617mr11039374plc.5.1690813476705; Mon, 31 Jul 2023 07:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690813476; cv=none; d=google.com; s=arc-20160816; b=EP2ow8KifS3JAIkmr2Ln0FfsYZy+bpb5lvXe0eAZwsyUGXVCnQF31a2ReF0FidVYKJ ObXxDI9Vj45WQ1Z5VN0CIqclMTSF2UFCh2jeg6amsnKAsMakuMWgb4/NbbcNNQjU2XFV htC5k3tq1ewsMPw7sMlR3pZoVbFzwYfDRN97JqoSfQ+3OBWmfVL65GbMF20XnuAOpogH wbOtNks8+nFVsb8NCryn38+xrcVvgXZcluuBXQtumBCosoA/WsTVG5XjBpAe0Vix51uU py4ThPYKDDQibnkkqrmeUvCxWbwRLDZkTkyXwVns12tPDyCU9KG3TmX+q7kQq9abVSTM AN9A== 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=z50eXfdtfmXq0n4EHil/6vzFwL4LKlfC2WCcaxBY4Y0=; fh=GbgbUxdI6+VvPeHSHlD0KCoKJfuEmNL7MYgsrD9ljVQ=; b=gZ7oW1aV5+mTzuZDkcxNvEg6SGUPDI3Rs9eawhBA5Feu2hbNq4IMIZEA8jWY3H77nU 8cAs4MZ5+ipYe6kJRqc8TlpU0K/DiDYNhgPG0OPNZOpEhtJevpR6dOx98gGD8mRa+8bG DCArDC0Yg0kSx4sHV3v+XaGy7qbg0KCJAb0JpOEkB8c2AUnt+cwS1CaIiSuDjKAoSHtc WoPfdTZDiZWTURsnHXVIO1N6YPdlbhuFTkGtmdmwHJMtKBK+++JemhKK9ujZulCYYuYB CoN8v9hqdMv4N//IEnOg96Vfl3wnWK4iq1CcEc/H2ZDc7fXmGJOqI7yMTCEbx80mw/kZ sCsg== 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 q3-20020a17090311c300b001b045d65aedsi7542681plh.228.2023.07.31.07.24.21; Mon, 31 Jul 2023 07:24:36 -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 S229871AbjGaN1u (ORCPT + 99 others); Mon, 31 Jul 2023 09:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232575AbjGaN1q (ORCPT ); Mon, 31 Jul 2023 09:27:46 -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 2FD3319A3 for ; Mon, 31 Jul 2023 06:27:24 -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-29-J0C5Am00Mue96-CayWZXzA-1; Mon, 31 Jul 2023 14:26:55 +0100 X-MC-Unique: J0C5Am00Mue96-CayWZXzA-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, 31 Jul 2023 14:26:54 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 31 Jul 2023 14:26:54 +0100 From: David Laight To: "'linux-kernel@vger.kernel.org'" , "'Andy Shevchenko'" , 'Andrew Morton' , "'Matthew Wilcox (Oracle)'" , 'Christoph Hellwig' , "'Jason A. Donenfeld'" CC: 'Nathan Chancellor' , "llvm@lists.linux.dev" Subject: RE: [PATCH next v2 5/5] minmax: Relax check to allow comparison between int and small unsigned constants. Thread-Topic: [PATCH next v2 5/5] minmax: Relax check to allow comparison between int and small unsigned constants. Thread-Index: AQHZwWNPMLQeS+3oD0yU5qzbmq+nnq/T3YRw Date: Mon, 31 Jul 2023 13:26:54 +0000 Message-ID: <9c14002108ff49e1a54819133fe9e2a3@AcuMS.aculab.com> References: 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=-2.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 QnkgdGhlIHRpbWUgSSd2ZSBkb25lOg0KDQojZGVmaW5lIF9faXNfbm9uZWdfaW50KHgpCQkJCQlc DQoJX19idWlsdGluX2Nob29zZV9leHByKCFfX2lzX2NvbnN0ZXhwcih4KSwgZmFsc2UsIAlcDQoJ CSgoeCkgPj0gKHR5cGVvZih4KSkwICYmICh4KSA8PSAodHlwZW9mKCh4KSArIDApKShsb25nKV9f SU5UX01BWF9fKSkNCg0KI2RlZmluZSBfX2lzX3NpZ25lZCh4KSAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwNCiAgICAgICBfX2J1aWx0aW5f Y2hvb3NlX2V4cHIoX19pc19jb25zdGV4cHIoaXNfc2lnbmVkX3R5cGUodHlwZW9mKHgpKSksICAg ICAgICBcDQogICAgICAgICAgICAgICBpc19zaWduZWRfdHlwZSh0eXBlb2YoeCkpLCAwKQ0KDQoj ZGVmaW5lIF9fdHlwZXNfb2soeCwgeSkgCQkJCQlcDQoJKF9faXNfc2lnbmVkKHgpID09IF9faXNf c2lnbmVkKHkpIHx8CQkJXA0KCQlfX2lzX3NpZ25lZCgoeCkgKyAwKSA9PSBfX2lzX3NpZ25lZCgo eSkgKyAwKSB8fAlcDQoJCV9faXNfbm9uZWdfaW50KHgpIHx8IF9faXNfbm9uZWdfaW50KHkpKQ0K DQp0aGUgZXJyb3IgbWVzc2FnZSBmb3INCg0KPiAgCXN0YXRpY19hc3NlcnQoX190eXBlc19vayh4 LCB5KSwJCQlcDQo+ICAJCSNvcCAiKCIgI3ggIiwgIiAjeSAiKSBzaWduZWRuZXNzIGVycm9yLCBm aXggdHlwZXMgb3IgY29uc2lkZXIgIiAjb3AgIl91bnNpZ25lZCgpIGJlZm9yZSAiICNvcCAiX3Qo KSIpOyBcDQoNCmdlbmVyYXRlZCBieSBjbGFuZyA4LjAuMCBhbmQgbGF0ZXIgaXMgc2ltaWxhciB0 byAoc2VlIGh0dHBzOi8vZ29kYm9sdC5vcmcvei9qcTYxM0duc2EpOg0KDQo8c291cmNlPjo0OTox MjogZXJyb3I6IHN0YXRpYyBhc3NlcnRpb24gZmFpbGVkIGR1ZSB0byByZXF1aXJlbWVudCAnX19i dWlsdGluX2Nob29zZV9leHByKChzaXplb2YoaW50KSA9PSBzaXplb2YgKCooOCA/ICgodm9pZCAq KSgobG9uZykoKCgoaW50KSgtMSkpIDwgKGludCkxKSkgKiAwTCkpIDogKGludCAqKTgpKSksICgo KGludCkoLTEpKSA8IChpbnQpMSksIDApID09IF9fYnVpbHRpbl9jaG9vc2VfZXhwcigoc2l6ZW9m KGludCkgPT0gc2l6ZW9mICgqKDggPyAoKHZvaWQgKikoKGxvbmcpKCgoKHVuc2lnbmVkIGludCko LTEpKSA8ICh1bnNpZ25lZCBpbnQpMSkpICogMEwpKSA6IChpbnQgKik4KSkpLCAoKCh1bnNpZ25l ZCBpbnQpKC0xKSkgPCAodW5zaWduZWQgaW50KTEpLCAwKSB8fCBfX2J1aWx0aW5fY2hvb3NlX2V4 cHIoKHNpemVvZihpbnQpID09IHNpemVvZiAoKig4ID8gKCh2b2lkICopKChsb25nKSgoKChpbnQp KC0xKSkgPCAoaW50KTEpKSAqIDBMKSkgOiAoaW50ICopOCkpKSwgKCgoaW50KSgtMSkpIDwgKGlu dCkxKSwgMCkgPT0gX19idWlsdGluX2Nob29zZV9leHByKChzaXplb2YoaW50KSA9PSBzaXplb2Yg KCooOCA/ICgodm9pZCAqKSgobG9uZykoKCgodW5zaWduZWQgaW50KSgtMSkpIDwgKHVuc2lnbmVk IGludCkxKSkgKiAwTCkpIDogKGludCAqKTgpKSksICgoKHVuc2lnbmVkIGludCkoLTEpKSA8ICh1 bnNpZ25lZCBpbnQpMSksIDApIHx8IChfX2J1aWx0aW5fY2hvb3NlX2V4cHIoIShzaXplb2YoaW50 KSA9PSBzaXplb2YgKCooO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