Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp318177rwb; Wed, 18 Jan 2023 18:18:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6amEklq4e0N7PjN9b89RAhWJ2LQAEbxChqjMInx8xdamacd4eIX8XoRIpaH/IBwxehlnv X-Received: by 2002:a17:907:2a8c:b0:870:8e22:1433 with SMTP id fl12-20020a1709072a8c00b008708e221433mr4587040ejc.16.1674094708459; Wed, 18 Jan 2023 18:18:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674094708; cv=none; d=google.com; s=arc-20160816; b=d0XQB/dqQcC70XM9h0BmCZCK2UeM1h1IjHTABTglYYE1+aqP8ttEZCh2qp1D3PYiLm pgr8G6O/QcNkfqEAvSwXm3afONyUGP7Co4U7TO2j/omm0OgmsmXLrhAPJCMo7pROX6PU xwZMxc4+TA7XlFhtFI2q/SGM9vDbZGLjhnTbdqHnIoPTV22iD0smAV2UmkT0bIaMOVYu aAiqeg8ifvCz2IRbyW4VUt3LyZGhIVYr7ZKiYjUpE/a5VPKv1+DEhI1FsBsrMW86EoFP 3HMmkuX9b6deGjD9QUhrCKmYOH1tcVkluFFYWR2M2M4xFLr0PrBGW+xVAhy81ykccj1p ohQw== 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:sender:dkim-signature; bh=zADmnpsuNtIYVpwfxpwV4/VpUfEveCJ2KWctJtlT7fU=; b=0bgEiH+huC5sl8Mh3NmfPZAPL7g83IS/G1PXGJciz8OCivrPpqvhrASWF3suv0Tyrx q3cv5oBO84DzPCFcsr9ci+Ovf5NmL5DCv80XBBha/mVR9mXlX6mC7q7fCNlJVilOK28W hCHdfywF5dbIvxt+NAjcOLiQGEgfGyZfUCCZYADusHrG7iSTw1h/egIIzkAua79IfqBy J/S8q//dLFxERg0ipzJ1DtyMGe7CRxrlBbpBAub9hHx4eBkfwnOScSWsVUQ1ZQKfOqvh 3QK6gknuIavyaKMjbB+vEZGmlaswNM/j9jjd/fbjO+VJ8iOuFofml+ibVdPuWU0k5URS ZybQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LNTqwVnp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds7-20020a170907724700b008775d59ce67si3519132ejc.217.2023.01.18.18.18.18; Wed, 18 Jan 2023 18:18:28 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LNTqwVnp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbjASBtN (ORCPT + 44 others); Wed, 18 Jan 2023 20:49:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjASBps (ORCPT ); Wed, 18 Jan 2023 20:45:48 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 103CD5528C for ; Wed, 18 Jan 2023 17:41:58 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id v3so367116pgh.4 for ; Wed, 18 Jan 2023 17:41:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=zADmnpsuNtIYVpwfxpwV4/VpUfEveCJ2KWctJtlT7fU=; b=LNTqwVnpccT/EMOVWj9IzyZDxA243X49Lg53XS5JGSwSOVlY1TF6Ueh1mG55Zkz6HX zN84OJXLd79el+ZxutRyA1u5W4r9t8AHUdVbUNDiZ7aukBwVxKdkD8UWLlDsf8V0ghgT MVkK+a9wTqXvSYCuH8pVRXpckyOdKKUihZdHl2qnBdyQOnux9Ng0zF3mEqweDoNPU3z4 d+zEUdTMLGBNrTZ0Wu+qiVDIwrUoxBpLH5PS0Z63wdEUtBPK6qOF/u+JX7oStXcJr004 etlr7ksTagfF9SG64GMnKx0Zv5Vs9IJANlpokxWE+ju5PdCOU4W69KeOVWt2oI3dW1Aw jsRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zADmnpsuNtIYVpwfxpwV4/VpUfEveCJ2KWctJtlT7fU=; b=Fd8SXKSgUaF7x/uCVdu5b7xIeRWzcARFcRzXumIDeljnghI39XEmEZDuNyaKRBeDG1 qjSqrd/YnyCGoY6W/BOlxS/BQC2C0ZxxpJwCPzEBAJKQ97gLFoDpRyAudVO8lWUPkuQj BZhyei6TyGM74GPrsohA7c5hsKg1n3ssIB/yjiqD137SAkMBoMcLZuBDn+/PJySsF+T2 JdeREQknJrPfNoPY6nQH964EeKWNO2+Uyg+Q5ClR4On/GM/bLCh81UKb4WHI6bB2emNT gBNigqCqNY6BIidvKHAZiObxZNfyARfzORkd6c+OOJNqAAMwgb0pqzj9o/4/KyIjyyTz 1mXw== X-Gm-Message-State: AFqh2kquRw6pSHUE882ACEkduvpNShf5OPMZFIKeMB9e5TWPIIalIN3T vjx1jWsheHU69beCIymCGQI= X-Received: by 2002:a05:6a00:10:b0:576:a74a:13c3 with SMTP id h16-20020a056a00001000b00576a74a13c3mr11296420pfk.1.1674092517155; Wed, 18 Jan 2023 17:41:57 -0800 (PST) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id z20-20020aa79594000000b0058de2c315e6sm2348593pfj.158.2023.01.18.17.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 17:41:56 -0800 (PST) Sender: Tejun Heo Date: Wed, 18 Jan 2023 15:41:55 -1000 From: Tejun Heo To: Arnd Bergmann Cc: Arnd Bergmann , Lai Jiangshan , Richard Clark , Jonathan =?iso-8859-1?Q?Neusch=E4fer?= , Andrey Grodzovsky , Tetsuo Handa , "linux-kernel@vger.kernel.org," , David Laight Subject: Re: [PATCH] workqueue: fix enum type for gcc-13 Message-ID: References: <20230117164041.1207412-1-arnd@kernel.org> <99ea6e86d2594b40a6de96cc821c447b@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS 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 On Wed, Jan 18, 2023 at 09:32:45PM +0100, Arnd Bergmann wrote: > the enum type has to be compatible with 'long long' because > anything shorter would not fit both -1 and -1u (UINT_MAX). > A and B were both signed types to match the signedness of the > enum type, but A was actually a 32-bit integer since that is > sufficient, while B was also a 64-bit type since it exceeds > INT_MAX. Now they are both the same type. Yeah, the new behavior makes total sense. > I don't think there is a chance they will revert to the old behavior, > though we could try asking for an command line flag to warn about > cases where this changes code generation. but the way that it's transitioning doesn't really make sense to me. We do phase out support for old compilers, so it isn't that difficult to manage this transition smoothly - add a compat option in the new versions, switch code later once old compilers are phased out and drop the compat flag. The way it's currently done causes situations which can't be handled logically - we end up having to regroup enums based on their value range rather than the logical type they need to be because there's no way to override the enum type on older compilers. Thanks. -- tejun