Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2409157rda; Wed, 25 Oct 2023 01:39:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgyxmTxXIAV0WtBurlbGv2yhAzT6dkK/cBYFPpq71VLgtQz5lic6xQHebyv0gk8iQtoESM X-Received: by 2002:a0d:dd15:0:b0:59b:ca2f:6eff with SMTP id g21-20020a0ddd15000000b0059bca2f6effmr14064110ywe.40.1698223154696; Wed, 25 Oct 2023 01:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698223154; cv=none; d=google.com; s=arc-20160816; b=dJu4TfTw4XhKxwr2oO+57w8Hoqbfn/XcoKr0pSTnA/8k7aYV2Be2r/gaS/QjeWUKSP WzmGddSFIwpOvmHT5YsXaayvNGK+9xAkR259qIJ9cW9gAol5haF5hC3fl/BxPCu/GVMn Fga+j6A1Kqb2YYRlph6bi2toI3CFjGr+R27kbP/+A9PrB63OuGUEdatWxnN6Js8qlapV oomj+II3Pj+yXai8bfZnN/psN4pHZa7lKuJS6w4fWH12ULGysDy6sAM4adYaU8iTMLA3 x2lezuUUwWrwauC8gVydwOvRIXsR4V0/o9CxwCU1K8U22pfdchKAZ9kMf8huDfOoQKRW m90w== 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=6jY10IH7a0E/6Y4XCYTMZXPZieFLRGO3TMQXHRKR34A=; fh=vOiKbTCaC7NodQlw7+yBpOw8WAosNeDjSi0zZxCDiLM=; b=cFhNv6YtKQSl6/kJQ1fCwBardTYi2ezOpU0MTs4pukznaUorPlp+uPML/PRD1ox3CQ p/2W4BpY+LCSO9f6xb0j7pQRawwSSLfoIy0HlVDN9k8cnzG9feeh0xnZEA4OfANmtsgs RFBK8nKfx39NsjcsKk9dgnSrmeuVCsQ78tvt2Q9tKyMHpxdBaUOpF00LzdsUSxndNFSP P0xAoqFl/R5YcKnK0Q/lXfEx8C3LbWgofwgvkHLsYmw4+7X8jtsx9CWJsYPNexBAYRNn 8PT2NuX16TqC0pxlhIDZgXuRlnWvB8XxCtvdxrxZq7267O2JhmZZDgTFCxbCo0KcS5qM hBoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id k7-20020a816f07000000b00589902d1885si10645803ywc.469.2023.10.25.01.39.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 01:39:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 565688020933; Wed, 25 Oct 2023 01:39:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232879AbjJYIis (ORCPT + 99 others); Wed, 25 Oct 2023 04:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232720AbjJYIir (ORCPT ); Wed, 25 Oct 2023 04:38:47 -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 54746181 for ; Wed, 25 Oct 2023 01:38:44 -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-117-IHdEVsP-No-ljDSTXp_RpQ-1; Wed, 25 Oct 2023 09:38:41 +0100 X-MC-Unique: IHdEVsP-No-ljDSTXp_RpQ-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; Wed, 25 Oct 2023 09:38:39 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Wed, 25 Oct 2023 09:38:39 +0100 From: David Laight To: 'Linus Torvalds' , Sebastian Reichel CC: Andy Shevchenko , Michael Turquette , Stephen Boyd , "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Vasily Gorbik , Niklas Schnelle , "kernel@collabora.com" Subject: RE: [PATCH v4 1/3] math.h: add DIV_ROUND_UP_NO_OVERFLOW Thread-Topic: [PATCH v4 1/3] math.h: add DIV_ROUND_UP_NO_OVERFLOW Thread-Index: AQHaBszYM+Cp9N+qfkK9yv140Cm+RbBaJ2TA Date: Wed, 25 Oct 2023 08:38:39 +0000 Message-ID: <4c2d36375bd74d94a2e6ef5d2fa0df99@AcuMS.aculab.com> References: <20231024161931.78567-1-sebastian.reichel@collabora.com> <20231024161931.78567-2-sebastian.reichel@collabora.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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 25 Oct 2023 01:39:12 -0700 (PDT) RnJvbTogTGludXMgVG9ydmFsZHMNCj4gU2VudDogMjQgT2N0b2JlciAyMDIzIDIzOjUzDQo+IA0K PiBPbiBUdWUsIDI0IE9jdCAyMDIzIGF0IDA5OjMyLCBMaW51cyBUb3J2YWxkcw0KPiA8dG9ydmFs ZHNAbGludXgtZm91bmRhdGlvbi5vcmc+IHdyb3RlOg0KPiA+DQo+ID4gSSB3b3VsZCByZWFsbHkg cHJlZmVyIHRvIGp1c3QgbWFrZSBvdXIgcmVndWxhciBESVZfUk9VTkRfVVAoKSBEVFJULiAgQnV0 Og0KPiA+DQo+ID4gIC0gcGVvcGxlIGRvIHVzZSBpdCB3aXRoIGNvbXBsZXggZmlyc3QgYXJndW1l bnRzIChpZSBmdW5jdGlvbiBjYWxscw0KPiA+IGV0YykgdGhhdCB3ZSBkb24ndCB3YW50IHRvIGV2 YWx1YXRlIHR3aWNlDQo+ID4NCj4gPiAgLSB3ZSBjYW4ndCBtYWtlIGl0IGFuIGlubGluZSBmdW5j dGlvbiwgYmVjYXVzZSB0aGUgdHlwZXMgYXJlbid0IGZpeGVkDQo+ID4NCj4gPiAgLSB3ZSBjYW4n dCBldmVuIHVzZSBhIHN0YXRlbWVudCBleHByZXNzaW9uIGFuZCBfX2F1dG9fdHlwZSwgYmVjYXVz ZQ0KPiA+IHRoZXNlIHRoaW5ncyBhcmUgdXNlZCBpbiB0eXBlIG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