Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp385982iog; Fri, 24 Jun 2022 06:05:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v5BtyGAQf8obv6avEyJtQOfTRrzw3cawxuwNh8GxtJUb3t5cJDvTs2bY0XC0y3BnfIK15V X-Received: by 2002:a05:6402:5309:b0:435:6431:f9dc with SMTP id eo9-20020a056402530900b004356431f9dcmr17258766edb.14.1656075950095; Fri, 24 Jun 2022 06:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656075950; cv=none; d=google.com; s=arc-20160816; b=eHGaNg79dnENT3wovhMbgG/jlOgYCH4YNCMhHrPuTAyLsm4moa5ao/Z/+kOGCjbWUP GOmbI+pd0O+F3Wa7tCYYbGVwKWQH1qM+z8d7lh3FJzGqlmXr6imwjrGlgj86k38mHwD5 NCgxjrvwASmC0v1lPqzXqF4WNt0zxZ7noAhzGJQOHuby2HUZn9uhTWve3RLU2Fo416l/ qk3E5xjDmFxj/Ybwvq20E+RukyBTbfQl3JNjsnpeXdBe7fCjO9WkdyMMY2dchg7mcp/2 kQadD4qmaY93Hfcvp3e3z6p8a+Y2OOJBXck5ifQntCaIyVy11Rl5J2Vg8fmHtsFRzNBE U63Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=vGgrs5taXVEnty9A23U9K1hp+QwRoGkOpiWyTJNSvZs=; b=IqQ28NBkXqY5cFz2K9P+ArJlstFG74FVcOlY77L11Uc0JxHNXTsLjswZU0vGQVH9+0 DmH0BkvXWpwb7+++a6NT0kIVCAZ4P4UpQnMm5teBt4EpJDiaDxPrsvZvt6qy+6dyDimB 1PKrxWoW8dKN3n832Xzbs/qGHAgztXzzaCkVD4QpHq/4pia/LHsI6Mur97FQJ/Gos5fk LfjY92U+Q10XJFG5M1+qbBJ6pawDq4g+BxuD5c/ohrJEAHVu8pL6cs3vA8PQ1OacFwIM sW56bxx2gdvrK5VUFCqU3bkr5IX+gz8nxArn4Du4/XuEoHAsY3AhRsM3RVabv6aMQd42 +yyA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn9-20020a1709070d0900b007235473b2fbsi3056878ejc.680.2022.06.24.06.05.13; Fri, 24 Jun 2022 06:05:50 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231615AbiFXMqQ convert rfc822-to-8bit (ORCPT + 99 others); Fri, 24 Jun 2022 08:46:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231538AbiFXMqP (ORCPT ); Fri, 24 Jun 2022 08:46:15 -0400 Received: from relay3.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 573BC4AE24 for ; Fri, 24 Jun 2022 05:46:14 -0700 (PDT) Received: from omf15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id C52B7354B6; Fri, 24 Jun 2022 12:46:12 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA id 6DF7122; Fri, 24 Jun 2022 12:46:11 +0000 (UTC) Message-ID: <4937c0cc9dbc9d06cb626465bd37cbcf76c80a0b.camel@perches.com> Subject: Re: [PATCH v2 01/12] regmap-irq: Convert bool bitfields to unsigned int From: Joe Perches To: Mark Brown , Andy Shevchenko Cc: Aidan MacDonald , Greg Kroah-Hartman , "Rafael J. Wysocki" , Matti Vaittinen , Linux Kernel Mailing List Date: Fri, 24 Jun 2022 05:46:10 -0700 In-Reply-To: References: <20220623211420.918875-1-aidanmacdonald.0x0@gmail.com> <20220623211420.918875-2-aidanmacdonald.0x0@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, KHOP_HELO_FCRDNS,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Stat-Signature: 3fhsotgben4sb6kxn8deyzo7yy1z9z1f X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: 6DF7122 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX197b3iLlRuxa/RwFhaA89b8kqG9qhlhNus= X-HE-Tag: 1656074771-969869 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 Fri, 2022-06-24 at 13:11 +0100, Mark Brown wrote: > On Thu, Jun 23, 2022 at 11:26:10PM +0200, Andy Shevchenko wrote: > > On Thu, Jun 23, 2022 at 11:13 PM Aidan MacDonald > > > > Use 'unsigned int' for bitfields for consistency with most other > > > kernel code. > > > There is no point to convert the fields you are about to remove. > > > So, either don't touch them or make this patch closer to the end of the series. > > It costs us nothing to convert them, this isn't a difficult or hard to > understand refactoring - the patch is fine the way it is. Modulo the defects that might be introduced if an overflow occurs. struct foo { unsigned int a:1; bool b:1; } Assign a non-zero int without bit 0 set to each and see if a and b differ.