Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2049064rwb; Thu, 17 Nov 2022 06:01:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6K7c+6sXTkrqmHi15er0m+atadigxF60sz0hUwU33NOL+VGYEs+UoeMS/00oAkgzXVKrpT X-Received: by 2002:a17:906:3385:b0:7a2:b352:a0d3 with SMTP id v5-20020a170906338500b007a2b352a0d3mr2166469eja.399.1668693680718; Thu, 17 Nov 2022 06:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668693680; cv=none; d=google.com; s=arc-20160816; b=nG6OBg/9vd7aDRnXCp1Ik6wFxyouz/6ZTISn8VnzgYjI1NW5AlIAfqpPuziuhH+Kyt pGIVA2BcK89+ZRSef9bpxC7+7PvZwp+IgLAWefPi95dUWwkapUFMpmzOpLgGu9Gdqw4u Kvl3Msb/mhFtfd9NuZLRCUZpC9bgpFCsdzd8SceujXBJgSOQ91XdfzkohwYGeLdWsNqN 8n1UjajcIWtIQzmvNKFsHIiu8TFa6ypkjXOfSOtFpNpy6kblttYdySNsZtQF+ZBqb3O+ npm1Z6t/mMbXN09Bo83kn2sUpWpv/B5IOi9ank9CpDtDgvmghUjj92iLGkS0bPtVfZNX k4MA== 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=jEKlc7EVkMTyYRdqj3rbiRpltknwQ/iRQcgvilfGEVk=; b=flUiHvsZV67Bt27t00ZW4VQnym5xbIGkKjDwlG44YIzeAsrhbuxr1UxAEtMiy4zyNB i54Uk21Plz+n1aKCxtNvoUDLpwAD19R0DcQbC6vuWZ3FVMUSkbd22E+00+Y//vya9Acs geDvG6oW6Yes6swZFIheorQFm2fC2l35uAt0U0lSEXZTuxeE/RArU7PNjJ64wr8/u3R7 GmfZkJQ4KWOp8hJQ3iiFQ/oM0ZxfOoEZZm2u0gxUUPVaL16zrksOo+LI/fvpKkDSHN2+ r9FMpKsEf1EUOEMCrALC345RQMxUveA10nA7F9QDnHNLa6f7J0irAQfHYOcZhx8wgIxg vcrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xnbv9Get; 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 dz13-20020a0564021d4d00b00467238595easi1071839edb.369.2022.11.17.06.00.58; Thu, 17 Nov 2022 06:01:20 -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=Xnbv9Get; 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 S240166AbiKQNnU (ORCPT + 93 others); Thu, 17 Nov 2022 08:43:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239887AbiKQNnO (ORCPT ); Thu, 17 Nov 2022 08:43:14 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95DB3742F6 for ; Thu, 17 Nov 2022 05:43:13 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id ja4-20020a05600c556400b003cf6e77f89cso4693713wmb.0 for ; Thu, 17 Nov 2022 05:43:13 -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=jEKlc7EVkMTyYRdqj3rbiRpltknwQ/iRQcgvilfGEVk=; b=Xnbv9GetmPU3k7D9txxrfvm6RhKW2pA0FRS9yIaKTAA5NEzAa5qLiDTCE7qVfPDhvd ixxgqIaqgEOIDFshihrfKp4H0h0Nj9Duh+rmGF6epE3RKJx5+GUbdelPuY30PSN4VnZQ agXN1OYcLFY+WY0T32+EO57VZc8hAAv+nAnAvxi6GNuWz9CAtUJhHJpdWqH+RRs6eMFN hjSdKsCRsoH4+PDVRI7NjrAyVHTt0Qi+4LWeVa8WcAgAgtOV5k7VAQz73m2s1lNAvPrO g3D1VQqOUaw+PDu39giScWT37vv+WTkWGJ9yrWLQZIY+MbHaFiQLrYYeHtTd0LLPmH42 Alwg== 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=jEKlc7EVkMTyYRdqj3rbiRpltknwQ/iRQcgvilfGEVk=; b=cEWZVNUVqYKqa+8zuaRoom+/iDlFviqyOH2JBvZqoQFs3PvpAvrtz7td8jYmwdxQTe t5OAWJ50cyomuqeZxF9qGA8zUXsTiHaHZCFCWBQsXv8seWSKsgdTPxKISLJ1TNOzZuom ienvmw7FoEAC7sGGxfF9RiHpaUd6JVKp39XAoeL66crJyclX0QO2S/6zjIkr8pKQ8jWf QRiDE/nmwlbDD2RI1a34nowrTp82N9jwFmvKOfmolEJMl8QVlhTI7JuOVzcbbidE84DB JVRHTIGB7TMj7wcApPqYPLolHUMQHZ+2eaxNEqqsCQ9DwWIFtNwYygqRQ8yzIra7LRpi X5fA== X-Gm-Message-State: ANoB5pnW9/Ao2LNHw7Ty2yngfuaNHNfdshlcBz4l4Y7hzVO2V5LH2fvL YaatM4A8Us9H6EduJUImReI= X-Received: by 2002:a05:600c:314f:b0:3cf:9efc:a9b7 with SMTP id h15-20020a05600c314f00b003cf9efca9b7mr1824559wmo.10.1668692592112; Thu, 17 Nov 2022 05:43:12 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id l29-20020a05600c1d1d00b003c6d21a19a0sm1514748wms.29.2022.11.17.05.43.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 05:43:11 -0800 (PST) Date: Thu, 17 Nov 2022 16:43:08 +0300 From: Dan Carpenter To: Umang Jain Cc: Florian Fainelli , Broadcom internal kernel review list , Greg Kroah-Hartman , 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=-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:29:52PM +0530, Umang Jain wrote: > From: Dave Stevenson > > struct vchiq_mmal_component.enabled is a u32 type. Do not assign > it a bool. It's not a u32 type so this is wrong. u32 enabled:1; But also "true" is better than "1" in terms of a human reading the code. Perhaps this is from a static checker? I am also the author of a checker tool so I know how stupid they can be. When the checker says something dumb, then the correct response is to be be briefly amused and not to slavishly obey it. regards, dan