Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2033370rwb; Thu, 17 Nov 2022 05:47:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6G/pKvFNtwgyZ9jzkpd2y33bewK5vFTK3skwatNcEBLAE0vewFFzkZKqssUJikzM46RzU1 X-Received: by 2002:a17:906:a418:b0:7a5:e944:9e48 with SMTP id l24-20020a170906a41800b007a5e9449e48mr2326085ejz.109.1668692876226; Thu, 17 Nov 2022 05:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668692876; cv=none; d=google.com; s=arc-20160816; b=LW0dnYLlTtVM4cbok1+P8X89XP6XZ+XnUL0xJodl2nwrsZMaEW6QJphWK5VjT13XNy XEUFRdh2ykftsOf5EbEbY79g8D4wIGwAuLTe2wCbdphHp4p7/KDzWsG9eQkJRXIak6CF xdN1t+j/WfIC647zR0CtX8EP5obqDTEM4DenIQ8ZlUwAgphsHrs0WSuL38IJdB+2Jf8H OLVSQXadDG4EmE5xXt/wrOIKuVgjTQILWMI2fy3hwcNdL+Y5q9qDnAocuoJN7r9GgXMu tq7hrrjw1EOhRL2cW17PqVrmRhuZf6qai8AhWCvW18bvIVMBMts5KcvOiwo+d3v0jsqu HP3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EEc4TFSpAV8DaGqz7fhbWJzRKaK3w8NhUIMwwBiUaOo=; b=n9+ET4b8z9lMFLz7lG32kQfJ7L7qe4q7DRvUQY+95gCAAWXc3xYkJuJzUxdoCxgLUE mwrcsE4fwXBca4/Eo+PjjpBzV39K063C8CS7M3XOpxH+7TLjoxiuEtQqpwiGlNCR5h+5 OHBVR853IzfG+BJaSZlzKWmePJ4lFSDQ1YQPHvVwIC1PatyetCELN1AKxfuIsMwdrKh+ 23AUW+J9N1/dz30fJ0cdujR/9vXiFhe7M23jbMz5HohTj9/aJO5F6EdJzKxzvkvhpaiz Pio0Q5XCugJiI1YZk+6L7pZ+7KRrT6fC4ySRevoH321u3Xv2mMJ9WK1Ti8aNf02EzvF5 5qNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="Fh/yu3+P"; 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 m3-20020a056402430300b004637e16cfa3si835160edc.598.2022.11.17.05.47.34; Thu, 17 Nov 2022 05:47:56 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b="Fh/yu3+P"; 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 S239608AbiKQN1V (ORCPT + 92 others); Thu, 17 Nov 2022 08:27:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234551AbiKQN1U (ORCPT ); Thu, 17 Nov 2022 08:27:20 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C892C18B1E for ; Thu, 17 Nov 2022 05:27:19 -0800 (PST) Received: from [192.168.1.104] (unknown [103.251.226.79]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E6365929; Thu, 17 Nov 2022 14:27:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1668691636; bh=ksqVn1M+K1UPnIgTVAJW3Motav4KyH3E0VO3VHEyo3I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Fh/yu3+PaERnKVO0zP0zvkr7mnGBIfr3P1363lnM+XTNh9X+U/4XhSVu1t/Vp8TCR zoLLxelzj00eMk5CGkZ1yGFVSGXDwiEvNgUl+sr0i0q5CUNwrHd/C1WuyQLaUv6IVq LUrocBTf+aCZVJaHICZEJYR+P8eDfA791DSqcAbk= Message-ID: <5f139eeb-24cc-85c1-34b6-f1334313839f@ideasonboard.com> Date: Thu, 17 Nov 2022 18:57:07 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 1/2] staging: vc04_services: mmal-vchiq: Do not assign bool to u32 Content-Language: en-US To: Greg Kroah-Hartman 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 References: <20221117125953.88441-1-umang.jain@ideasonboard.com> <20221117125953.88441-2-umang.jain@ideasonboard.com> From: Umang Jain In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, 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 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") I'll also find other occurances in vchiq-mmal (if any). Also for other reviewers, I found the context at: 7967656ffbfa ("coding-style: Clarify the expectations around bool") Thanks, uajain > > thanks, > > greg k-h