Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp274615rwb; Fri, 18 Nov 2022 01:00:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dWIGqrrNB9jVLmFz9kkEgTA9JREaMbaxvJo4pzeSYWsB+vmL1Y9k2n6d9vry5TvmnBzcI X-Received: by 2002:a17:90a:6904:b0:208:4bfa:51e1 with SMTP id r4-20020a17090a690400b002084bfa51e1mr12459220pjj.228.1668762009318; Fri, 18 Nov 2022 01:00:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668762009; cv=none; d=google.com; s=arc-20160816; b=nAbQMO7XG7W9tiJY6dYqvVIZOai2VvJ05xRfOIk45cR7VaJ9T2T9YN1l5HImO5p1Af Nc1INhE1AlBZnKfCv/rhqzpNCCmQU3Vw/tnuZPhEvJ84DnJ29AdOtKkpJRweDr3Oal2z Dj6u+M0zychQremvlcRB1n9cNaNTZ0aFwoHdHDjq1FcElTbmErZCBh7nMK4YSZY1sfZF zyykDPjAleI2nXL5y1jRJ8uX7xIZacoY0+N8ev2byAmCcCzxFVQa+LxNCSoP25YI2opu To1FM245ob8MtP4vtFuGolkwiYTVfDVsiF2YYN3KUyXHRN19IaHNdezo3W39aFpH89QP MqZg== 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=sZBJWsvuPM4N2XNgGuD0Fakzbbh9G5ci/DsGRyhIEdY=; b=Sh5gcac9fgF3O2vsCcE7wftRo3lgK9BruphKD6ff9Yywd6ptq/wgj964mkHXoyxsDW hMbvFWPCW9rynrvfkCAuHVmqeyKb3m20wxUMZcmneGpYM2bVq8KCKhVCSQ1GIKyvoLyy ovEwJbUupj8Q/zjigzuy9sxv2hrjdz8+AgxD1+EHVDUUQgSpN9uKI9dmxynKE86xC0UA t1aExs/DBIXPFyH7H4osbIZVqHJxhDz5Ijg+KW7yA6pp5MlD/7udZrlcxQUxlmPaNNus GvolLmQRf5rRKWmHgga6rkexNwRewCkh8naO1MRxxGP+9GAfGW31zU/cX6A9LNicO6wq 0jbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bHGQfWHm; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t67-20020a635f46000000b00476e7bc209esi3363585pgb.641.2022.11.18.00.59.56; Fri, 18 Nov 2022 01:00:09 -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=bHGQfWHm; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241499AbiKRIgw (ORCPT + 90 others); Fri, 18 Nov 2022 03:36:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241182AbiKRIgf (ORCPT ); Fri, 18 Nov 2022 03:36:35 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 155262BE4 for ; Fri, 18 Nov 2022 00:35:58 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id i186-20020a1c3bc3000000b003cfe29a5733so6995891wma.3 for ; Fri, 18 Nov 2022 00:35: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:from:to:cc:subject:date:message-id:reply-to; bh=sZBJWsvuPM4N2XNgGuD0Fakzbbh9G5ci/DsGRyhIEdY=; b=bHGQfWHm3z3WfK33pmq9dlJOKNe03OeJp8opslres0KGRyyM4Da5kMG28KGUnBQdZC l9FVIn02fotJTFGEW2mp0UPJY0Dv22nW97wBkpIpwq/YTlrcrE4pTMWxw5Mn9XEsl//H tVot2J6vWtg2iBpIfPhruW8kaSBPK8jbKxDD0anU1IRwyhAoUpvO2s4jQIMRMjRVlutx g7qfLtgVN/iTTZCLePMtmadGA9ELPDI52fAfZWoKncymcDepeYnqU+3oM5p66eqMCvXy mxfQA4WVE9x0zlv8M619hy96MSUGohRBf9xHo5uUWp9nrXmObbgv8a2RpP97HybC/Awx bXKQ== 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:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sZBJWsvuPM4N2XNgGuD0Fakzbbh9G5ci/DsGRyhIEdY=; b=Au80yWct+AWstNp8tQDj3B4cA5Z084oWCYZNdjY6OJc3tZfVYzxdE8SBcUtJI8iYQU 1i4N7RlNfIlceT5zXPKIRS8z9SfhFuwdMzythRW/tpny7sDbt6nxJCBUE89/neMAFY9n SO6RFqe/qy7dVjWQa1Oo8tq09rV3wQ+JvKmuTfSU4JcHN6iZsXv8Wuy3vVSiUNQLGxps szrUYKvjvTNEteY9EXsTkRSfI4NZBZq4z4RrXCJfrFVHBD6tv4xDCiZ9FfckV9F/pDAP TW558CbO17O2UcCuF3Dszuu20Pd3GrCHo8h+KE3i8HRjPHqh43Bin4xBpBjG+hvgroyb Qrzw== X-Gm-Message-State: ANoB5plwJkOUHf5pGV10MHAXy98Kb1vHYGbQdFKXPomsZO9EYrnP88WM 20jYWM9flwmlw0JV1/ce0XGt3kUQSBMY3w== X-Received: by 2002:a05:600c:4f12:b0:3cf:e7bd:303a with SMTP id l18-20020a05600c4f1200b003cfe7bd303amr7953544wmq.151.1668760556423; Fri, 18 Nov 2022 00:35:56 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id v3-20020a1cf703000000b003cf774c31a0sm7538328wmh.16.2022.11.18.00.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 00:35:55 -0800 (PST) Date: Fri, 18 Nov 2022 11:35:52 +0300 From: Dan Carpenter To: Andrew Lunn Cc: Umang Jain , Greg Kroah-Hartman , Kieran Bingham , Broadcom internal kernel review list , Dave Stevenson , Florian Fainelli , Hans Verkuil , Mauro Carvalho Chehab , Ray Jui , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-staging@lists.linux.dev Subject: Re: [PATCH 1/3] Revert "staging: mmal-vchiq: Avoid use of bool in structures" Message-ID: References: <20221117160015.344528-1-umang.jain@ideasonboard.com> <20221117160015.344528-2-umang.jain@ideasonboard.com> <166870135963.50677.14827688186331561108@Monstersaurus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Fri, Nov 18, 2022 at 01:12:32AM +0100, Andrew Lunn wrote: > > Does :1 really initialise the variable? Obviously not. > In "u32 enabled:1" it means > this is a 1 bit wide bit field. It seems odd that bool is somehow > special and :1 means something else. If you have a bunch of consecutive bool a:1; bool b:1; then GCC will squeeze them into the same byte. But if you have bool a; bool b; then they each take a byte with GCC. I have specified GCC because the size of bool types are a bit vague in the C standard. regards, dan carpenter