Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1681371pxm; Sat, 26 Feb 2022 23:38:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5nTY9j9dc8UBIsclHN3LMgyqw/OHO84O/TdP2SGNKVa6nenTJ4LSm3PDb1oRu59nDJbkJ X-Received: by 2002:a05:6402:5191:b0:40f:b9e0:4d1b with SMTP id q17-20020a056402519100b0040fb9e04d1bmr14403184edd.149.1645947487819; Sat, 26 Feb 2022 23:38:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645947487; cv=none; d=google.com; s=arc-20160816; b=RqQZ/+YApgVJD8mPZpSulTCCZ4jJLYkLG2UrYanjDoPqohH0a8f18CiXerN3RnQpPo WzDchuGcOrE4CBw5JzHcZA/fqsGLgrZ7RQgPLFOMpVOd9he1ayEViJkbwiR37+Z1FmSz iX0bpTLbDXKqZzaQ2RVkT2pvvkIPNnb247LK9fcwf8dnuGI/eyq9HTukFdrhfiUeA5Vp Hn9OdGbxD/Ck9G0gEoN0ypykteQ/fRD2DDgd+ivUPgN+NtEIh3gUzlWu+gZUQpgvnH0N JJTyJTgDzMZ5d63pqbPf7l45bx7ElyUvHP+Tf0onuIzfAaKEkArBRNMNPcIMJfvRrqTX I9Jg== 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=VNtwNRgnz1zS4b9wNgxzNTiWTBmN3QNpYJuTFs484bY=; b=ejbJJvmtorprqYQEZOZixo48nlJWx+52TaW4m4WMLqRzVswJPTQ+LnoAT6wK2vmLS6 E/ynkXBaSkih4C6qmj6o8uX3EnuLMUsop+7v+Tq+GYnGQW3NtgXXZUwwiqOqOCeMcrzD ktgYWLyIdcEPysfo92y+vm6wZyOGJR0PEyhB4cKWAXB/e7dE1xzDaBPrusxIdP14asKK NP/yh4iMF6Aw5cGRYJE3E/qqz6ORzaE49Z/+oq0eUeIUxaSwIqo8xgmip2Pjc2R3uKuY qnOlRN7vYQXf4s/r0sEgLl/G945s1DAXgmuRp0UIRgyf0LdvUvV5cJPxbFXnzokd38bk +O7g== 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 w21-20020a50d795000000b004109070a8e6si4351118edi.0.2022.02.26.23.37.46; Sat, 26 Feb 2022 23:38:07 -0800 (PST) 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 S230059AbiB0HL2 convert rfc822-to-8bit (ORCPT + 99 others); Sun, 27 Feb 2022 02:11:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229984AbiB0HL1 (ORCPT ); Sun, 27 Feb 2022 02:11:27 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A49AB403F9 for ; Sat, 26 Feb 2022 23:10:50 -0800 (PST) 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-286-9XdmrcSQOhGG3MJ0OheetQ-1; Sun, 27 Feb 2022 07:10:47 +0000 X-MC-Unique: 9XdmrcSQOhGG3MJ0OheetQ-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.28; Sun, 27 Feb 2022 07:10:45 +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.028; Sun, 27 Feb 2022 07:10:45 +0000 From: David Laight To: 'Segher Boessenkool' , Arnd Bergmann CC: Linus Torvalds , Jakob , Linux Kernel Mailing List , linux-arch , Greg Kroah-Hartman , Thomas Gleixner , Andy Shevchenko , Andrew Morton , Kees Cook , Mike Rapoport , "Gustavo A. R. Silva" , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." Subject: RE: [RFC PATCH 03/13] usb: remove the usage of the list iterator after the loop Thread-Topic: [RFC PATCH 03/13] usb: remove the usage of the list iterator after the loop Thread-Index: AQHYK3er/AEA45TQBUCd0AhQFcgB96ym+KOQ Date: Sun, 27 Feb 2022 07:10:45 +0000 Message-ID: <7abf3406919b4f0c828dacea6ce97ce8@AcuMS.aculab.com> References: <20220217184829.1991035-1-jakobkoschel@gmail.com> <20220217184829.1991035-4-jakobkoschel@gmail.com> <6DFD3D91-B82C-469C-8771-860C09BD8623@gmail.com> <20220226124249.GU614@gate.crashing.org> <20220227010956.GW614@gate.crashing.org> In-Reply-To: <20220227010956.GW614@gate.crashing.org> 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: 8BIT X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,FROM_FMBLA_NEWDOM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Segher Boessenkool > Sent: 27 February 2022 01:10 > > On Sat, Feb 26, 2022 at 11:14:15PM +0100, Arnd Bergmann wrote: > > On Sat, Feb 26, 2022 at 1:42 PM Segher Boessenkool > > wrote: > > > On Wed, Feb 23, 2022 at 11:23:39AM -0800, Linus Torvalds wrote: > > > > > > > > The only reason the warning exists is because it is undefined behaviour > > > (not implementation-defined or anything). The reason it is that in the > > > standard is that it is hard to implement and even describe for machines > > > that are not two's complement. However relevant that is today :-) I thought only right shifts of negative values were 'undefined'. And that was to allow cpu that only had logical shift right (ie ones that didn't propagate the sign) to be conformant. I wonder when the last cpu like that was? Quite why the standards keeps using the term 'undefined behaviour' beats me - there ought to be something for 'undefined value'. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)