Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1753196pxm; Thu, 24 Feb 2022 08:44:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4FBg4MHC68z7gPFp0CN3FVcZ0MwHE6+VEgpmkS/M6XcJiEPZkWwBgZhIqQK9ydAfZYZve X-Received: by 2002:a63:155b:0:b0:374:3af8:3200 with SMTP id 27-20020a63155b000000b003743af83200mr2858967pgv.610.1645721068366; Thu, 24 Feb 2022 08:44:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645721068; cv=none; d=google.com; s=arc-20160816; b=Ie6GoEfo+Jc+37kHMGFxrFpnRbQSLF05AGVzBu5RRUPqmJ6nPuPIhEPte56qYH0rU4 Z6ENEw1VY/N9t2AyDzf2PPcqUO9pUaemC8H1xeGLRxiM0AsaA6T9rutR+heXe2fbtQzn vINyDoHCx21Urn8LPYSFuwksXFf9xLA9pnD3JpYOVQ8V5w62kY0r+uYQAIei/Apyn9Nq kneO1/SiNnLaI8VbK1Cc3L1u1tegoxFgbgdxlE0A/xoOxbl/LRRJsDnYTKf1cdsqr3ON NpPeFiy7ZbLRataJ0ATc26VqLFV4L4tFv7ao8wRmVspw/ZsFzmGh7qe8k45HkyG8G7U5 rLyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=H2OJ3duaFu+y3vv/7Qzu3jhREPvHe17CD2WrlMa94Ns=; b=XOEOcDmglQt5vjd4VbJ21xhlRfoJGnUURqYm9WWZWwijWs+k2Osok2Of7ZFsfJh4qT 2PT3DHQrv/3avCc+aqy/q4Lpiv+bhJCsy2du1wppPvaF6t2CaMk5kwnA7LDz0/sCqTmz YCeGUquyoZDGqbgeNtFh0+aKlXreE2AIDVX256iDy2+vNMgjeWeV2YcTJZmrTnk+Entr vY0qLF+9qFqcVSmDq5A/MAqTZTBDPL1q7VWdKFoXStayJUhyTEyAD1gEyL5RSUug5r3C S6b/+kHit0KGGVRAZfTs5/OvyU8ZmdqgG5sWd3v1bWAoLlEc66SqkAnYxkyaZcAPwg7q RoLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VabpdoNH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q205si2820568pgq.11.2022.02.24.08.44.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:44:28 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VabpdoNH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9488B2275B0; Thu, 24 Feb 2022 08:23:47 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbiBXQIj (ORCPT + 99 others); Thu, 24 Feb 2022 11:08:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230382AbiBXQId (ORCPT ); Thu, 24 Feb 2022 11:08:33 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12E6E17EDA1; Thu, 24 Feb 2022 08:07:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 329D76179C; Thu, 24 Feb 2022 16:04:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87D2AC340EC; Thu, 24 Feb 2022 16:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645718654; bh=jWymqgAfcR3qfS82nYoUUc+s4THWcAw77Lv/fLqZeHs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VabpdoNHIcm5/kDkYE0JsGzkAuL1Vu3lh9leQX9oYtKdf1JOHFzhmjAHgUrLuH+pa pE8tAwzkQ3Mfe/q0S1NpFUDifbW3oA9eosOKPtqHxhm2VxX4MA79dbR4JGTzG+Kmqa 56eTw1xPUqlWsvKSMgpE9LMQ7kKsYS3gBpaJ2CRAgNnQFz6tIAwBenWIdSPGHbv0em rc+plY3fkKWk/6EcaT9eOxEgzSimHWjGKgGIfRjoBJ5fpLJ1KsJJHjOTQvQSB8V9cs LDulc5OVBeKGu+zXjQw75iauwMAwvQUEy/E/94fNp8HvQCYgbQW/io6nXvDGtR+sJa dOA6jaultOxgg== Date: Thu, 24 Feb 2022 09:04:08 -0700 From: Nathan Chancellor To: Linus Torvalds Cc: Arnd Bergmann , 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." , llvm@lists.linux.dev Subject: Re: [RFC PATCH 03/13] usb: remove the usage of the list iterator after the loop Message-ID: References: <20220217184829.1991035-1-jakobkoschel@gmail.com> <20220217184829.1991035-4-jakobkoschel@gmail.com> <6DFD3D91-B82C-469C-8771-860C09BD8623@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Wed, Feb 23, 2022 at 01:53:39PM -0800, Linus Torvalds wrote: > On Wed, Feb 23, 2022 at 1:46 PM Arnd Bergmann wrote: > > > > > Ok, so we should be able to basically convert '--std=gnu89' into > > > '--std=gnu11 -Wno-shift-negative-value' with no expected change of > > > behavior. > > > > Yes, I think that is correct. > > Ok, somebody please remind me, and let's just try this early in the > 5.18 merge window. > > Because at least for me, doing > > - -std=gnu89 > + -std=gnu11 -Wno-shift-negative-value > > for KBUILD_CFLAGS works fine both in my gcc and clang builds. But > that's obviously just one version of each. I ran that diff through my set of clang builds on v5.17-rc5-21-g23d04328444a and only found one issue: https://github.com/ClangBuiltLinux/linux/issues/1603 I think that should be fixed on the clang side. Once it is, I think we could just disable that warning in those translation units for older versions of clang to keep the status quo. Cheers, Nathan