Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2047986rwb; Thu, 17 Nov 2022 06:00:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7TUmuPoWDQCXvv6X94weD9LRS317AwLvoByQxlvSAkSlSx/dzUASm4LCd9ss/jw0avbu9V X-Received: by 2002:a17:906:8d86:b0:78d:4742:bb62 with SMTP id ry6-20020a1709068d8600b0078d4742bb62mr2260085ejc.43.1668693650087; Thu, 17 Nov 2022 06:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668693650; cv=none; d=google.com; s=arc-20160816; b=HhnpgqjV77k4I9frb0Pz3OqWVf7sFgccDTldAvviIXLZrvOALU3YaplvB4ue60fPZW wnaJTzhZyVKUigGYyHVcJdebgvYZDjETY3f69bubvVjo+PozCsaLhMkoMp/oKdaF27DP 37AZUgd1i0OL40iENGeXc362aBELJvqE4SjT20lCdyE1h2/Ma+vviyqc52f6pZhN66bi oNaJ0ag+6ytCAmNjyt1CFahMssWx07u359tchnL/u/b1jdCkM0CIQjciiMH0xOGGJ8a5 mEcQjuInXMJqHYd1gf5PEAEA+po0M7qxqMqqmQ/Q338R3COcfzGX4P6AO7gUNTzkx38O rHNg== 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=Q15eRX4FWOYUxSV85NFtVX98j/neBgs8ZQD6VVqu1B8=; b=fD2vSRBnGEvEbVKDFDCD98wHEceDpeUNYCpI25F9r6GqJnfdVVaR0kXroIjPKv5lSU YONr2egeWLsncMCpoWmSaf1LMzMhQ3UJ8Vt0jlMS4AmUUut8njHPlZiSk2Zt4ZqBuNsx PTWz7p8ch0auT8xKbG3ygF2tW+NzV6EgFmtGQQomlrJOT8w46AVkcagbL+9XghcJDWLX g7QymJ6WW52H8/5vYuHAzaq1rSRf1vNv0poek13JJqhR3rYiRG4AhQ+u7OFeOopDb0nx aeRJjk2BSigwr1JqoA3IYmpLexj5vedbDX2f0fGfIaTu6QY1B0ymiOtzDMwYsAmot7tG h1Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B1VKBD4u; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a0564020f0f00b00458d94f1a45si838491eda.413.2022.11.17.06.00.01; Thu, 17 Nov 2022 06:00:50 -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=@linuxfoundation.org header.s=korg header.b=B1VKBD4u; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239801AbiKQNOC (ORCPT + 92 others); Thu, 17 Nov 2022 08:14:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234917AbiKQNOA (ORCPT ); Thu, 17 Nov 2022 08:14:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BCB8CE0C for ; Thu, 17 Nov 2022 05:13:53 -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 DC95761E0A for ; Thu, 17 Nov 2022 13:13:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2314FC433C1; Thu, 17 Nov 2022 13:13:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668690832; bh=8/wv6QDY2hSZTUr8xypWmCWEqdTGGHFAJ/VXIdpEZSc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B1VKBD4uF4pb0NzSYTn7Q16gq7Hm7S+f5YcWkipELr0PetzS/U0eGOntQ1FX9fnC2 b4mHTcqdMlHLPiDMaauEYQ5EnBlORdt4R4QHnJ7JiReoYqJrutOWKktUKZo7UVmS6g lxSbuiWx0L8/4uPZ7h1JBfMDGfgxQEuFXV+Hh1ns= Date: Thu, 17 Nov 2022 14:13:46 +0100 From: Greg Kroah-Hartman To: Umang Jain Cc: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221117125953.88441-2-umang.jain@ideasonboard.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: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? thanks, greg k-h