Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4671670rdh; Wed, 29 Nov 2023 07:38:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsEnLdwTI/mxYivetG+doG3oXguyHkCOOLSBPWM2WekkvvTkB+WCYJGE35knHW8Iopq4U9 X-Received: by 2002:a05:6a20:6a0e:b0:18a:7498:de11 with SMTP id p14-20020a056a206a0e00b0018a7498de11mr21778558pzk.4.1701272320772; Wed, 29 Nov 2023 07:38:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701272320; cv=pass; d=google.com; s=arc-20160816; b=nEDbEuj+TjzPcTZgAtrdiedP0Ixt2Y4D4S91aVqfbv5eBSd2DrjuaMXRkH5T1HKfXe 7TI1JJJLwwQLLhnhypq5NF8WDEyaoUqj32pP947mqv0Efh89lI9Jt3COGXPCYHb9f+sq 9/1UDjMlDj7RxaSa1EvJsF8rpF25alMDdyYqzFAW+Ucw0fC/AE5l3QER4/WjP362BMS2 wT8sgLpLhqNsGsRSHPXjhzaFn+bjuYywoYXUoqRYrlQFGRbvDK0ePdDITTizbAW7D4n4 yz8od5V2o1LlkWG122bUlTX5EB9Mgv8vxS8Ar2DLzKAXRdJyCj5o7O2zKsLwEEN2w2F6 SJlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=Uq97Nb36DTRat9pQJC1Rc/jGgOz6aZ5vOUzPnebwjAs=; fh=UISz/XkZNRDuQEBOO4YJ/Zy+kg+Wqhfs7pV1wGKr6aQ=; b=RxLyoLAUOrQPnncHicctuRN/F8Epr7fcqEM84pbgsMwyDKSy8E6WLj0bnOzAQ4y36u OBSbfokcvTKCZYeu1zNdUEPqKRWiZMHdi4diQjJG3XQPWvXceaMaxLVLphAcFCcAZR+A QukYixCkLkG788vgniaTiBBb3Bph2BT90lIOEgilp96ShuUZxKKbUxAzVCBKwzmhr/xh HUZQv9X/gxHEhRJvtS8i4tWNIeRvj9IH+3M7kszPOAuyx/rWr2Ze2YPcR2HQFCMeeDx5 ICtxFYQy5WTWP0voL14FfRRjQhHkkqAKx5hQT41xj9IMNzXzBwOkxTctrA+ALwQbJQVO u5eQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@imgtec.com header.s=dk201812 header.b=Y3WtAedz; dkim=pass header.i=@IMGTecCRM.onmicrosoft.com header.s=selector2-IMGTecCRM-onmicrosoft-com header.b=MiOh7jo5; arc=pass (i=1 spf=pass spfdomain=imgtec.com dkim=pass dkdomain=imgtec.com dmarc=pass fromdomain=imgtec.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 10-20020a63144a000000b00584b6af3b9fsi14536876pgu.524.2023.11.29.07.38.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 07:38:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@imgtec.com header.s=dk201812 header.b=Y3WtAedz; dkim=pass header.i=@IMGTecCRM.onmicrosoft.com header.s=selector2-IMGTecCRM-onmicrosoft-com header.b=MiOh7jo5; arc=pass (i=1 spf=pass spfdomain=imgtec.com dkim=pass dkdomain=imgtec.com dmarc=pass fromdomain=imgtec.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B704E80BB22C; Wed, 29 Nov 2023 07:38:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343526AbjK2Ph6 (ORCPT + 99 others); Wed, 29 Nov 2023 10:37:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234907AbjK2Ph5 (ORCPT ); Wed, 29 Nov 2023 10:37:57 -0500 Received: from mx07-00376f01.pphosted.com (mx07-00376f01.pphosted.com [185.132.180.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4CFAD46 for ; Wed, 29 Nov 2023 07:38:03 -0800 (PST) Received: from pps.filterd (m0168889.ppops.net [127.0.0.1]) by mx07-00376f01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3AT8LshI017229; Wed, 29 Nov 2023 15:37:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imgtec.com; h= from:to:cc:subject:date:message-id:content-transfer-encoding :content-type:mime-version; s=dk201812; bh=Uq97Nb36DTRat9pQJC1Rc /jGgOz6aZ5vOUzPnebwjAs=; b=Y3WtAedzksknfG0ZJE0A1VZVmTWttyouJoa7N 7ndEeuK9TExOo7O5c6XPrL0e8LPWriG0AK/y7s1bVUOCryGGSQaLWOcbv6q1pn+e 00gF0tZ1UvZEa2KIzfQuACjFPTG6kB030mRIkBtHPpi/qYwMw9xS3F/NcXpjbq+Y 3+xZi/fSzjCNAzwFMiTxASMTVbZhK1i8yuTSo2nGP9DF1aFnwLItAK7ATdEpUu3u ZThud50FaubZ4TDn0lU0BkaCUzuKFXUEJzdd5SHPYa3LiOJ252Vh4msL7eShJCb8 Szd9cIV4QZgV5DRAoQDwYqapOD1iIDY/af+mZDoBl5NbXyZVQ== Received: from hhmail04.hh.imgtec.org ([217.156.249.195]) by mx07-00376f01.pphosted.com (PPS) with ESMTPS id 3unvcq8fge-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 29 Nov 2023 15:37:45 +0000 (GMT) Received: from HHMAIL05.hh.imgtec.org (10.100.10.120) by HHMAIL04.hh.imgtec.org (10.100.10.119) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 29 Nov 2023 15:37:45 +0000 Received: from GBR01-CWX-obe.outbound.protection.outlook.com (104.47.85.41) by email.imgtec.com (10.100.10.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Wed, 29 Nov 2023 15:37:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D/MeLLQ4iOfZKmOJJH//ET3iWt1GzWR8u9stm5YCzO3M1xeZHWcJ8/5CiUpC+2Ev81SQ/lXwNC5EYhe995hvpS6FjjJ4B7dpGFOSuW8R42WZ+uFSDVjJrjvUkvsToZuxjRT65w0Y/1pWF7Np2NL+Gtr1p0b+Q0imtxaqVUjJaVKO9KuYkKKlOcIoIkILaIK4VikFaW1hdyszJi5lSULPLqF2Tsm+9bTE1Kt7sQ3ar/QV2CVOGeG95O0Cg0Wlno724HQJ1HApELg8oT4zUaSGIXir8VYF9FXVmKzdggQ7JcZekr8FHqNRFlw7LEd10xNzHeNWHe6v5QXVlRRjOt5E7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Uq97Nb36DTRat9pQJC1Rc/jGgOz6aZ5vOUzPnebwjAs=; b=HDeWUl01MhD03tF7ALY5Ep/6CFaGib60gujcuVz95gjH0bHthUVmVpy3qvjP37GDKp0S6iIPerYRLgEAaxDfBOIuBHGiQFBtpzf905I/EFno08gMJnG4h769FIZrgQBCuhph6J2zRpH5VXnOLVaMOMPJL2BGaKdkan3+E8hUWWv5olKoqCnTKxiyDQ/zpZFZNxiewhIIo+uo+JLQj0trLBFXVH7+pCAgahyylWnouAuyw+2AjMK1yXnS1kdJY0d6En0Z9n9WjfvDzl9O3Q4pyF2xLWmOkMw9mQ6fXXxGu1JVsdcIK53nFTnHfN0nPFQIX288z0OFZ7TR0wfTGPknLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=imgtec.com; dmarc=pass action=none header.from=imgtec.com; dkim=pass header.d=imgtec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=IMGTecCRM.onmicrosoft.com; s=selector2-IMGTecCRM-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Uq97Nb36DTRat9pQJC1Rc/jGgOz6aZ5vOUzPnebwjAs=; b=MiOh7jo5/HpcJzEe713HtM07G50EXgqtaxApvnOp8Yq90x1CG8AdEZOL95gNB27GS54oH52MDgXVUxkvHx5kXTjAVrnqxZxqdtMXiSoAYbJUoGBaKK2x8KBiXenbFGU0pTadYvaBYyiDkNb//QQsS9mhq+Q0o9jjdPYAkbXRSbU= Received: from CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:1a0::8) by LO6P265MB5951.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2a0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.28; Wed, 29 Nov 2023 15:37:43 +0000 Received: from CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM ([fe80::a85a:76f7:c085:2b34]) by CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM ([fe80::a85a:76f7:c085:2b34%3]) with mapi id 15.20.7025.022; Wed, 29 Nov 2023 15:37:43 +0000 From: Donald Robson To: , CC: , , , , , , , , , kernel test robot Subject: [PATCH 1/5] drm/imagination: Fixed warning due to implicit cast to bool Date: Wed, 29 Nov 2023 15:36:59 +0000 Message-Id: <20231129153703.162642-1-donald.robson@imgtec.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P123CA0541.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:319::12) To CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:1a0::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CWLP265MB5770:EE_|LO6P265MB5951:EE_ X-MS-Office365-Filtering-Correlation-Id: 35a3a702-d468-422f-2481-08dbf0f12104 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8XqD+Qj8A6ERLha2WcYaRbOfH1WGb5Wl5rSHLFoVelXhPvjr9ZoynjE6GoMB3r9JjAYcaZ6C/bKaeC/e2OEBABsCSlERgeebXRGUIHgPJfP4H7a1iaRnnBtrnMfvIYFSpB9sogZanWNqx2H+PUowLQg7cuHJ9T8cz2cm2u9HC+vf9YahCDI5NuRlvJ7yNv8FlO/mWEoyoZp0bZwO1LiP3SqLztUehMWDefiw3iucFMM8sEQQtM7X3KAPczdoEGX4toAYw2BN/G2bij8BgJlyy/OdDntPff1f9e0W05KYujU/Fguu1RE8iy/DJ7M65N8CBFz5+lrPzc6HfUz2EonvMzSx5Tpgf8lZZDfwbLvcEpPWSSJJ+H1PLh79KtCjP0p9InopYTXaz8gZ8O1pXrn748pEci2MMq0NUkogn+F3HYq7Am27rrdNrE5AaLErxQgOm+4NhlEwx1VaAQSGv5rj9EbaBxy6vlcchaB5Ob57sfYKTw914EOTZnH53BDnpIPCm7iBN745uFyEXTmJcsmHGhAbbRlFm2Rp3Fs9b1sez/7+TkWJqSQkcBraGsaz4hbiqvPPPcXleX/E++6bRBpfhpgKOYr6UJ2NBNrb6Z0gKPI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(39850400004)(346002)(366004)(376002)(396003)(136003)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(2616005)(1076003)(26005)(8936002)(8676002)(4326008)(6486002)(478600001)(44832011)(86362001)(966005)(66946007)(66476007)(66556008)(38100700002)(83380400001)(316002)(5660300002)(6506007)(6666004)(6512007)(38350700005)(41300700001)(2906002)(36756003)(52116002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7gWrdpXnY9QgCnYRAQ6a3TaN3/JiEzxLoC3a/NR0QFefya93MOKempgPylhG?= =?us-ascii?Q?6qR+4lxP3zs1QOEYcem9pPw73HY9aK40hCVOjQMaFxVrNiDZQoPLP+aXo6gQ?= =?us-ascii?Q?0D4Jx3h85ML9Vmlb7WgrynVqFY+r402mxx4f0CVcMxtclgdTnRb8qY7TQHai?= =?us-ascii?Q?/Jat3CT7+Y4gzyxEod27VY+fWA/DjrAO2bw15oc8q6NLRq72MrwSu6pxFnn3?= =?us-ascii?Q?X4oAKJ9lvnnzswwOsRQeO3x3oqWyksgNFpM2OOHPlDS4Zg/aMLlsy/wrzlMu?= =?us-ascii?Q?9aT8whAIXwlabb3h6pu1LZbc1QwKxIHqwzb8p8FBgAwA9Je19sNLIp3AiYVs?= =?us-ascii?Q?EHJn4XmURiqTTVyJ059t7XzB1XtxAuTFtaniqREVsMjYE4cKNXJ1mbVJ1fzf?= =?us-ascii?Q?qQ4lL0jNq3Jp5ASYh1UqsFWBWOpFZu9dhZHTZkKwPXNClMrbbUZAmtLSX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nwRhFmRiA6fd8r3vet1vgPDwvjO+tFFWYq?= =?us-ascii?Q?6vmJdx0tEd4ma5WcEi/cem1WB72WiBpE2pRXmBqVhj1XcesQmX0e9uT3f5iW?= =?us-ascii?Q?tcfTFHaH+0EAEjV+z3QM0nqpDsw6Ey2bLaZui9De9Fee4WZd7G19vLqtdnDs?= =?us-ascii?Q?dShEQLGsDYv6ZubBRsnaGTuZQ4um/7Gg27Xjqa3U+dItMD03wzfbZ4EGdCvJ?= =?us-ascii?Q?bWQb+Swa8/D6gO/+kCBwtD78lMo8gTqdou1EB+/wlDq1y53neyI24xfBDSGn?= =?us-ascii?Q?0w=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 35a3a702-d468-422f-2481-08dbf0f12104 X-MS-Exchange-CrossTenant-AuthSource: CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2023 15:37:43.6036 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0d5fd8bb-e8c2-4e0a-8dd5-2c264f7140fe X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EnEgOIqWovKG7tDIMUmqfLDJStUXNd2k0pV4hOOVSLQWq2NnZ6OL/hp8+N0j7bO4+qW2xBItapPfhbTfbC6fsOgnK4XTU5bkKCGqxKVfnzE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO6P265MB5951 X-OriginatorOrg: imgtec.com X-EXCLAIMER-MD-CONFIG: 15a78312-3e47-46eb-9010-2e54d84a9631 X-Proofpoint-GUID: kgNLhVG93MXvx-Bi5FvEkGBt16PFNhDe X-Proofpoint-ORIG-GUID: kgNLhVG93MXvx-Bi5FvEkGBt16PFNhDe X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 29 Nov 2023 07:38:34 -0800 (PST) Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202311241752.3iLyyFcA-lkp@intel.com/ Fixes: 1ff76f7a5b45 ("drm/imagination: Add GPU ID parsing and firmware loading") Signed-off-by: Donald Robson --- drivers/gpu/drm/imagination/pvr_device_info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imagination/pvr_device_info.c b/drivers/gpu/drm/imagination/pvr_device_info.c index 11e6bef52ecd..d3301cde7d11 100644 --- a/drivers/gpu/drm/imagination/pvr_device_info.c +++ b/drivers/gpu/drm/imagination/pvr_device_info.c @@ -227,7 +227,8 @@ int pvr_device_info_set_features(struct pvr_device *pvr_dev, const u64 *features /* Verify no unsupported values in the bitmask. */ if (features_size > mapping_max_size) { drm_warn(from_pvr_device(pvr_dev), "Unsupported features in firmware image"); - } else if (features_size == mapping_max_size && (mapping_max & 63)) { + } else if (features_size == mapping_max_size && + ((mapping_max & 63) != 0)) { u64 invalid_mask = ~0ull << (mapping_max & 63); if (features[features_size - 1] & invalid_mask) -- 2.25.1