Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2050693rwb; Thu, 17 Nov 2022 06:02:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6HMcJQVfMk9GUESigALLi6otFtiF35RX4GRMqNQcWT06a/MviQw9NRxHeFZFcG2XwN/1Q3 X-Received: by 2002:a17:906:2810:b0:7b2:7b45:2bf6 with SMTP id r16-20020a170906281000b007b27b452bf6mr2197234ejc.467.1668693726958; Thu, 17 Nov 2022 06:02:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668693726; cv=none; d=google.com; s=arc-20160816; b=wR6Z6V3pO+4DI5wANMC2M989MXEENBG0qHkbSf9LNNbMm1bTj5wadWzRg7uurtsLqy ag1nOyN/qrtDREX4qnP0n9GAHPbThqPLVokNXNB2Dd/OCOyP5i2S8Fokq5iSqouoTG78 tFL5pXFiYAteDoBzobr7uFrC/LJQvRzu2aBcDwBlU4flO98zyupr8UuTNps0vXsHHoe0 ieGrXwYhnskJOCtlTgL1FFcQohMZWOrkE23oUvBSQYEp+6Jb2ZiPeREsQ4Bv7FzBaV5F VRhoszxxr9qp74JQDRzEZ9SYqiHXSloZGzZKoUgsYSjnrrPAHMXvEa/p2T3d7O+v7rsB hSsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cBTJd/asrMqglNZhkyOkAFFH8Uxx5JWi142mqrSHyDk=; b=rEeDhg9lwvC3c/r1vEIFd3NAy0B2b2PHqe5mdIa0kQLdUs4iHDMXxjqn6vh7uztDdr Gi4yGojcSgIxS3ARQvktbq+SlEV0KIAAmmPewOyCbaaYaLr3LrfL1oZmZ5Wxbc6Jy3Tk ka/vgnWRvxluapPFDx9AxXLlzfGUaX8Gy6DfuPnq1oRpqsYt9+igq/IGLDZqx3BRBrp0 TL9kym/drnZKtEnDfcOVp/ph6GTxFEOZeDdFC0IaJEwYn4RP9RsMBTRsoha/lXCejq7A 4TAIeMNGoR7ul0SCm7ehpEnwqcTzbDOiamz9BfJ9HFesx3CJs2Vsyc+xnOa3XvvSG2jL Ku3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=gOVzyTbY; 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 js7-20020a17090797c700b007ae75e99fffsi699272ejc.487.2022.11.17.06.01.42; Thu, 17 Nov 2022 06:02:06 -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=gOVzyTbY; 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 S239583AbiKQNAU (ORCPT + 92 others); Thu, 17 Nov 2022 08:00:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239475AbiKQNAP (ORCPT ); Thu, 17 Nov 2022 08:00:15 -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 2BF3E6456D for ; Thu, 17 Nov 2022 05:00:15 -0800 (PST) Received: from ideasonboard.com (unknown [103.251.226.79]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7A522105A; Thu, 17 Nov 2022 14:00:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1668690013; bh=7I4XZur3XWHa7tenurKlkHinu6BspwE8Zh84rEdNBW0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gOVzyTbYqueSEsWntTvaBO27iXxe2XQdULeguVvImsXSsUJAoDKgYtDJzaxC7m+0p 7JSC//J7tMX+ZBhtW5uBcyU13nByQQ/W/6J2OCImq91vJb3ax7RtE3Ym5MYDYZLTfH z9lHV0fUeg16Sd1FL0SghuUZDsRviYYLuGlJnzxY= From: Umang Jain To: 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 Cc: kieran.bingham@ideasonboard.com, Umang Jain Subject: [PATCH 2/2] staging: vc04_services: mmal-common: Do not use bool in structures Date: Thu, 17 Nov 2022 18:29:53 +0530 Message-Id: <20221117125953.88441-3-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221117125953.88441-1-umang.jain@ideasonboard.com> References: <20221117125953.88441-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Do not use bool in structures, it already gets flagged by checkpatch: "Avoid using bool structure members because of possible alignment issues" Hence, modify struct mmal_fmt.remove_padding to use u32. No change in assignments as 0/1 are already being used with mmal_fmt.remove_padding. Signed-off-by: Umang Jain --- drivers/staging/vc04_services/vchiq-mmal/mmal-common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/vc04_services/vchiq-mmal/mmal-common.h b/drivers/staging/vc04_services/vchiq-mmal/mmal-common.h index b33129403a30..fd02440f41b2 100644 --- a/drivers/staging/vc04_services/vchiq-mmal/mmal-common.h +++ b/drivers/staging/vc04_services/vchiq-mmal/mmal-common.h @@ -32,9 +32,9 @@ struct mmal_fmt { int depth; u32 mmal_component; /* MMAL component index to be used to encode */ u32 ybbp; /* depth of first Y plane for planar formats */ - bool remove_padding; /* Does the GPU have to remove padding, - * or can we do hide padding via bytesperline. - */ + u32 remove_padding; /* Does the GPU have to remove padding, + * or can we do hide padding via bytesperline. + */ }; /* buffer for one video frame */ -- 2.38.1