Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2109046rwb; Thu, 17 Nov 2022 06:41:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EUdPlb8iF5Jcp6RuM9JC29bE/Ef4yw8nWkOIgHip/cpmIY+NKz5Yc620d7IVWnH6hz6ZG X-Received: by 2002:a17:907:270e:b0:78d:3c82:a875 with SMTP id w14-20020a170907270e00b0078d3c82a875mr2449992ejk.465.1668696098538; Thu, 17 Nov 2022 06:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668696098; cv=none; d=google.com; s=arc-20160816; b=jcj+bwtIZsSuqVex/kFwXkjEsZ2mkpTsNad+1L4hsH3pH+PX38bCSmEdegv0ROtl5U FV/dWJGN6DblqOLXmdgLK+Xoh87GL2+FFh1xRsALD8oL8TvpGFvwJrMmAJxJbnuq1bgV L5PiLXxcYdmfSqeCBSyWofZe8gjmKvjMtMRC2FswD8RytVc3NEYsa8GDskzatShCSe7p M03CmsWLtjfzsGKIlCiI5Y2QGQ/F9LP2mzx9hzrLlrM0+B9mp3wd8a/7PBY1UgIqH4c5 6FHNBmZJSPxklxHxb6lR/FEG1aZVLMo/yxxlNgoJ6JWJOsyr5UTC7Wx8EcxS8yYfuCFh Gr+w== 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=bkweVlMZ0g0+u7fAZmYu/Pqe+/vJOvCRgkDADGgIA2s=; b=C+h8IKf1qpJT+xHbHd4Vq53p2F4hmSwgUpBfBV0ILDGnVFHvOmg9xOV3Eup5ZC4rxv +7u38UFEsLfO1LrBAMTSHB9HGMpSA0NXjg8XiHxepuMxMTgDk7d0gpyINxESLY6ruZWz 8ynK7GHIVyIDZiLEibNB5QHfTzr+STB/9URXdVgl/hUj2qzHjqQSmM5kJS02Axeb/uAH UKoORkhHbP/XQj4egC8FZi+2bTztE+kWYlHBqLevhZJO+x1coAvwuW9SgVsT+jMNIR/1 X3e6GavhTp/pmL6UBH+CphRiXTu1D5aoQ8uHQTybfaTLtQgAszb6zn1MyY8UKevButYH YBCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iJErqAPL; 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 qb35-20020a1709077ea300b0078d9f1f72bcsi773552ejc.726.2022.11.17.06.41.15; Thu, 17 Nov 2022 06:41:38 -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=iJErqAPL; 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 S239947AbiKQNuf (ORCPT + 92 others); Thu, 17 Nov 2022 08:50:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239841AbiKQNuc (ORCPT ); Thu, 17 Nov 2022 08:50:32 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0499165FE for ; Thu, 17 Nov 2022 05:50:31 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id c65-20020a1c3544000000b003cfffd00fc0so1169936wma.1 for ; Thu, 17 Nov 2022 05:50:30 -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=bkweVlMZ0g0+u7fAZmYu/Pqe+/vJOvCRgkDADGgIA2s=; b=iJErqAPL10YQES5nboDu00n0QHsr9m4pN7t6xt4KI04Mz+DP7wuasgAh2j2ltzCP7P fbniCxcdL0NkfwMQoE99Pj9zmUXLDPDT3R6K6p13KyhzVYaKQwJpMWrpG3yn0nxVIsPO hICRLxHlr/hxX/h9x9nxYuVzsZI+aUqWWOhIem0U/TeB8i7xrljLnMRdnsxMVn+rAC+6 i2QyMpIte+Tdfes76l9WVet1zrSFBmN+ibKexVtjOdfBhthB5FtSSHDD2t4+OFCMJNr7 27HUbFg9xFyyN7mlaz0e39o+8rNa/0vDhU9BgUsDllr+H49glFZ+Jx4zyZWdz7d2e/gB zaoQ== 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=bkweVlMZ0g0+u7fAZmYu/Pqe+/vJOvCRgkDADGgIA2s=; b=Jd7Fm93V3Y8NHq5wtg5fIf0NXGwYrxIr4x2glegh2txnrS7PiQTJJGlQYeslrqJmM8 863VZAQMR+FkESNAOEW/S4Nh+VIPV0T8fgG/lJXcv3y6PPceYPkD0gDo197fkTmtNf/G tArnbKgy533EGKZVdS8Q99/8bPl1mREpDDSEjHul8BTq8JS9e4ligC2/pe3zaxIoSBXP +E05n97hX7+WA+boqtWkgFt3mdzkUayNlAgk0yMjUcZzjJNtMDKdGPZ0q0foiW3JhOTX oW4hXakxJAWvoQDiGfEHT6dIgMDQ2wbaoeL6tsWrR8ICioRfvFpVryUcP/U9YFuLvvHT 1IoQ== X-Gm-Message-State: ANoB5pk9MACuYKK4kTFd/vUR6Uc4eBT1Gdd8yTIF8JPkemlT5Skv5v2n lrIhdXS0YBqB0JyvjVtfQaQ= X-Received: by 2002:a05:600c:188a:b0:3cf:8e62:f769 with SMTP id x10-20020a05600c188a00b003cf8e62f769mr5426381wmp.52.1668693029460; Thu, 17 Nov 2022 05:50:29 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id p11-20020a05600c468b00b003c65c9a36dfsm1369329wmo.48.2022.11.17.05.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 05:50:29 -0800 (PST) Date: Thu, 17 Nov 2022 16:50:24 +0300 From: Dan Carpenter To: Umang Jain Cc: Greg Kroah-Hartman , Florian Fainelli , Broadcom internal kernel review list , Stefan Wahren , Hans Verkuil , Dave Stevenson , Mauro Carvalho Chehab , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kieran.bingham@ideasonboard.com Subject: Re: [PATCH 1/2] staging: vc04_services: mmal-vchiq: Do not assign bool to u32 Message-ID: References: <20221117125953.88441-1-umang.jain@ideasonboard.com> <20221117125953.88441-2-umang.jain@ideasonboard.com> <5f139eeb-24cc-85c1-34b6-f1334313839f@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f139eeb-24cc-85c1-34b6-f1334313839f@ideasonboard.com> 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 Thu, Nov 17, 2022 at 06:57:07PM +0530, Umang Jain wrote: > Hi Greg, > > Thanks for the comment, > > On 11/17/22 6:43 PM, Greg Kroah-Hartman wrote: > > On Thu, Nov 17, 2022 at 06:29:52PM +0530, Umang Jain wrote: > > > From: Dave Stevenson > > > > > > struct vchiq_mmal_component.enabled is a u32 type. Do not assign > > > it a bool. > > > > > > Fixes: 640e77466e69 ("staging: mmal-vchiq: Avoid use of bool in structures") > > > Signed-off-by: Dave Stevenson > > > Signed-off-by: Umang Jain > > > --- > > > drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c b/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c > > > index cb921c94996a..17f8ceda87ca 100644 > > > --- a/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c > > > +++ b/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c > > > @@ -1773,7 +1773,7 @@ int vchiq_mmal_component_enable(struct vchiq_mmal_instance *instance, > > > ret = enable_component(instance, component); > > > if (ret == 0) > > > - component->enabled = true; > > > + component->enabled = 1; > > Why not make enabled a bool instead? > > Makes sense. It would probably require reverting the 640e77466e69 ("staging: > mmal-vchiq: Avoid use of bool in structures") > Reverting that patch seems like a good idea. regards, dan carpenter