Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7CB2C433EF for ; Mon, 13 Dec 2021 14:43:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239718AbhLMOnx (ORCPT ); Mon, 13 Dec 2021 09:43:53 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]:41373 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234143AbhLMOnw (ORCPT ); Mon, 13 Dec 2021 09:43:52 -0500 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-54-zFq3ZrzlNPa02HnbPWuBlQ-1; Mon, 13 Dec 2021 14:43:50 +0000 X-MC-Unique: zFq3ZrzlNPa02HnbPWuBlQ-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 13 Dec 2021 14:43:48 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.026; Mon, 13 Dec 2021 14:43:48 +0000 From: David Laight To: David Laight , 'Noah Goldstein' , Eric Dumazet CC: "tglx@linutronix.de" , "mingo@redhat.com" , Borislav Petkov , "dave.hansen@linux.intel.com" , X86 ML , "hpa@zytor.com" , "peterz@infradead.org" , "alexanderduyck@fb.com" , open list , netdev Subject: [PATCH] x86/lib: Remove the special case for odd-aligned buffers in csum_partial.c Thread-Topic: [PATCH] x86/lib: Remove the special case for odd-aligned buffers in csum_partial.c Thread-Index: AdfwL8CqMU0zbyVyQYmiKOZRxmZfsg== Date: Mon, 13 Dec 2021 14:43:48 +0000 Message-ID: <45d12aa0c95049a392d52ff239d42d83@AcuMS.aculab.com> 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 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlcmUgaXMgbm8gbmVlZCB0byBzcGVjaWFsIGNhc2UgdGhlIHZlcnkgdW51c3VhbCBvZGQtYWxp Z25lZCBidWZmZXJzLg0KVGhleSBhcmUgbm8gd29yc2UgdGhhbiA0bisyIGFsaWduZWQgYnVmZmVy cy4NCg0KU2lnbmVkLW9mZi1ieTogRGF2aWQgTGFpZ2h0IDxkYXZpZC5sYWlnaHRAYWN1bGFiLmNv bT4NCi0tLQ0KDQpPbiBhbiBpNy03NzAwIG1pc2FsaWduZWQgYnVmZmVycyBhZGQgMiBvciAzIGNs b2NrcyAoaW4gMTE1KSB0byBhIDUxMiBieXRlDQogIGNoZWNrc3VtLg0KVGhhdCBpcyBqdXN0IG1l YXN1cmluZyB0aGUgbWFpbiBsb29wIHdpdGggYW4gbGZlbmNlIHByaW9yIHRvIHJkcG1jIHRvDQpy ZWFkIFBFUkZfQ09VTlRfSFdfQ1BVX0NZQ0xFUy4NCg0KIGFyY2gveDg2L2xpYi9jc3VtLXBhcnRp YWxfNjQuYyB8IDE2ICstLS0tLS0tLS0tLS0tLS0NCiAxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRp b24oKyksIDE1IGRlbGV0aW9uc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