Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1189813iol; Fri, 10 Jun 2022 02:09:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcNx/Xxr1fj6cEeRUK/kwlGEbc8TWVek31X1gG3TN37y9PjZARvFs3Om5XnQ2zKEbqVX0y X-Received: by 2002:a17:906:b816:b0:708:2e56:97d7 with SMTP id dv22-20020a170906b81600b007082e5697d7mr39222439ejb.502.1654852143241; Fri, 10 Jun 2022 02:09:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654852143; cv=pass; d=google.com; s=arc-20160816; b=sHXkY7oKO6u1x9vXRCbJznIaZS74OmdBfWI+UD+T3xvcdSuf+wocl0MWiqDv8GcLAu 3vgBzGxuLtXPiIZ63xAH/neUfBDCNVtm0ICPi7XUA85McuHsCn7Ln1xbsI+sZxTVIjpi G3rFPTZ5fjtcd4N3K9HP3oakqD4vDhGwh4nCHkwCpTdTnSx+kPyABC+93SGMp0KbUEi/ 2YyLINMQ/OzHAOSzHhS+liRsfQkgJJ+tmgu98Ka+QLuZXbwHKXqf69cSS+oPGiU8muSt wL1hrvuYXUCgLofUBXxpZVfsO8ZzNLaQoTW2CkYlzTRaAIvz7ubODgMkOwzsKN+k32aD CZFA== 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 :in-reply-to:from:references:to:content-language:subject:user-agent :date:message-id:dkim-signature; bh=oQqB3hSmmvM/nSx0QFf6VMxeRm+PoWFfJTZAJ5R/mRw=; b=EU80ohOm1ZKjPAXj1iwcC8jv65F0HDSe0autPuoZ9cqxubBidith+hl3KiaIXocJ7z lu6vS59/JOeBGNl2J2oTKmbyTNTabzJUEPqEedZn/VbtNvuisNvxflTrdsVzA9TYp20U SshntrtfA5JOkQ4p2zY9m+lcaH2z3mn3sZJTtMnz+vb1rvN/I3HrIAO2vdUgUu1Ywum9 BBnZ48dwjexKX/0ziA9bu8GyWwskRsRxy/i3Rgj3QGyztQUr9MMIP5vgRgUUx/wPmj6j WAE0Tkog8i+SRY8pBb5tJinaM5v4vRD39DBw6rSh/fy7Y/1gpTcfJvyVnmbSrVA9yfyC a/Ig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=rhKgMR8h; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du8-20020a17090772c800b007115a93d536si9127476ejc.598.2022.06.10.02.08.36; Fri, 10 Jun 2022 02:09:03 -0700 (PDT) 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=@amd.com header.s=selector1 header.b=rhKgMR8h; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347096AbiFJIAQ (ORCPT + 99 others); Fri, 10 Jun 2022 04:00:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347085AbiFJIAL (ORCPT ); Fri, 10 Jun 2022 04:00:11 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2056.outbound.protection.outlook.com [40.107.95.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E68FA2065F9; Fri, 10 Jun 2022 01:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W6fr+IeA4R0JGT0maH6xahzHEvERRRC9f2/2nKoYfwjR2ZjbgsDh/K1Oef/07d4/TnhxQDY3TXg7L8QqyiczO+uiWVbm/i/SEYnye7khKGMBqVVrR7gFb6mjtj50B+2z7zsBfsnlF0ThHR2CPiS2smwI1sCg1DKUXQo4ImCnuloA86vrF8vvU69C9j+S4Vg5G8PxzR3K0+ZcRz1uyZZgmga+ulDeumL12B+fatosN9OGEDba2DPbEv8SYz+LUFWPwB79dKGD34c/CRLzQowvMk1nygqzCDw9Lq/ptSqMOLcy34iX6dbG053J7koeA25Yi7lvt0Uw1xjeu8YR928q1A== 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=oQqB3hSmmvM/nSx0QFf6VMxeRm+PoWFfJTZAJ5R/mRw=; b=Zrka/HYipOtV3YKPujprhgbsDtoJhojrkylAEHS443tcDAsqMjS7GVhMNNEhrf4N8ynphslXMqGfG3B30P6DujVBxGXXHOBEHIcJr8tWfXohPZxmmzLkIf7P/qSMgSkmiuRWru/XRVusjIz+R2ZAr/UncVZv0rc+aibskJowTT9y2Bnb55N1rHGnLCAzipn4FWMbGDeaY0WVKpc3wvJXiuh3U6SUzDEd8ifNfZS17WkJNHDZEhpUEEyM1IPEobaQeMFWuC2icBCkJMjbd/w/NfM7SshSLyc5NlGt4gTautIOnF5NWE0VnMvs55sB0ZedUWBzW5FWzpv/kQbLfA/tdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oQqB3hSmmvM/nSx0QFf6VMxeRm+PoWFfJTZAJ5R/mRw=; b=rhKgMR8h1bLD6+86bc3LyIdUbu3TZp+LzVnCbrh7O4u9tz/IGnf5xSuiBOwbq0CofJOAmfAlSEjstwFKCLrMh2ol7xV8rlKhxvwXeJJbODFCrxV17KAGxREAg1NFUSJYMCLdXua57VeDI4tOAKuFCzjJcU4x6UUE7Pu8MZdEvOA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by DM6PR12MB4433.namprd12.prod.outlook.com (2603:10b6:5:2a1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Fri, 10 Jun 2022 08:00:05 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::e0fd:45cf:c701:2731]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::e0fd:45cf:c701:2731%6]) with mapi id 15.20.5332.013; Fri, 10 Jun 2022 08:00:05 +0000 Message-ID: <9122ec2e-8729-0542-22e1-98a81fe3f3f2@amd.com> Date: Fri, 10 Jun 2022 10:00:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] dma-buf: Don't use typeof in va_arg Content-Language: en-US To: Jiabing Wan , Sumit Semwal , Daniel Vetter , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org References: <20220610072019.3075023-1-wanjiabing@vivo.com> <7a689b6c-31b7-61d2-7bf4-6fdf49bb4ae4@vivo.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <7a689b6c-31b7-61d2-7bf4-6fdf49bb4ae4@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR0P281CA0086.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1e::22) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ed65c17f-5a01-43ac-f174-08da4ab73ab5 X-MS-TrafficTypeDiagnostic: DM6PR12MB4433:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m0s2vRWqYID4lslURdjbQAFtpFXCbRslHngPVC3XKkhQND9VCvktL0Fjk4gQ4++lGG9XTN7FIJrDNTVKIpa6k/ZmRHViTZQ44fwrTayvyX+9LiRLa62UsMO7vjYGirxqdLHLDceBYZoO/nzV8HMncIw1zxfv4ED3Pb0jNWYgv+Y2GU6m2OuBi3hAZXLq4UBKve9zqoftDgW7GMzVOUAYY1FcTzxbXSW1oCVdWuVZsRqqbBe1DbEks/Avvs/rFRQMyIebfK7TWjNUVGRBxp2otHbi2VS+XLTEwHHfMPOV9hw8/73Z6SYXFtXyGCUjT8UHDHuy23meFCgBdpJcNTU0ECkpVaABl13rw2WReQeCIW9dNrvVeDvDmLeIWc1qngGrYQO7tGC7jzg4x1Xhtv0GAIwIZbOqDr2kQobfNfaEufR4vJ02phIMlkK9okDgrS639Kgr3MZKFHnbAEtwBCZjH49drNqxcKDqLWPAAt3CBA7u5ILxazsLVtXqrq1jg2dx3qOtWytZZ7G1ew0I2MH6tUKV5VsStv0aK06r1b3bE83ybHbh9wQscw4M7NkSeNMafqjM1afmKhszCWh509vyCVDHSnOLfAbCn6av9LEJBhvK3+Gc9XPxHM6ZiqeznEM/WW/aCUEa/2zJRLuFTXgCsMzkKIzKQ3j+fqf8slxbbdvubgKJjq5pD4Hxyogg9GY3rOGIPdUndpmjCtGYUPzPgqPbgNelifvvaHpjxan0QntBQ+KiHMWvz2+KlSuyW2v/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(26005)(66574015)(53546011)(6506007)(5660300002)(66476007)(8676002)(31686004)(66946007)(66556008)(186003)(38100700002)(8936002)(36756003)(2616005)(2906002)(31696002)(83380400001)(6512007)(6486002)(6666004)(316002)(86362001)(110136005)(508600001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b2tIbXh1a1gxeHhDOW9DMG1NVzc4N1BOcHdjd0p1RzRJTWJ3M09SMGxxSVlj?= =?utf-8?B?T3ZuVjJ4SzFPRGhTcStadEN0WGdoTjgyMFpvZHA4WU96ZzVmdnI2RC83Q0tG?= =?utf-8?B?NjRhVFRoR3BxTm12cGtxU1ZaMlUwd09lU29TNDRnU2FGZnhrUEtCVWFndjVD?= =?utf-8?B?VjI5L1laYjJHVlhQbVdrTjV3UDhTWGZQVU9ucnh6T2RkRGRKV1dTRXduY1BG?= =?utf-8?B?ZjN6VUYyTExIVlpta1A4bzFqZVNNWFlzNENZb2R1T0ZlOEV5TjhWbGY0a2dt?= =?utf-8?B?K2NST2lKczhxYmdVWDhxWUhrazlHUXkxT1M4d2xqakJoYXYrRnNhZVVkZlVp?= =?utf-8?B?UUVSWWtqdDBXdmluUVRSd3RnRStNdHlJdnh0emVMVXdpL3E4MmVaVFVrdTlG?= =?utf-8?B?V2xIU0E0MlFPbDlOVFFHSlFsR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nVVeUtD?= =?utf-8?B?OFRBNHlKNFRHWVNEVnUzbVR0UWptMWtYVC9pRWE1NklWY28zVHZTU2liaWNB?= =?utf-8?B?cGkwYXB5VTRGbXVaaHRGWWJJR1R0UUtSaVVGejY4TVQ4UUgyUk44Zz09?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed65c17f-5a01-43ac-f174-08da4ab73ab5 X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2022 08:00:05.1913 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: neXRs6nsBLbccWu/zUGzDTCQXJjAfOX/4Wsmc3makQo+pnSt14Tghpd50QdOpxH+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4433 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Am 10.06.22 um 09:52 schrieb Jiabing Wan: > > > On 2022/6/10 15:24, Christian König wrote: >> Am 10.06.22 um 09:20 schrieb Wan Jiabing: >>> Fix following coccicheck warning: >>> ./drivers/dma-buf/st-dma-fence-unwrap.c:75:39-45: ERROR: reference >>> preceded by free on line 70 >>> >>> Use 'struct dma_fence *' instead of 'typeof(*fences)' to avoid this >>> warning and also fix other 'typeof(*fences)' to make them consistent. >> >> Well that doesn't looks correct to me. >> >> *fence should be valid at this point, why does coccicheck things it >> is freed? > > *fence is valid. Coccicheck reports this because fence is freed. > But use 'struct dma_fence *' can avoid this wrong report. Well in this case that's just a clear NAK. Using typeof(*var) is perfectly valid and preferred should the type change at some point. As far as I can see your cocci script is somehow reporting a false warning. Regards, Christian. > > I also grep all code and find it's unusual to use 'typeof' in va_arg, > only two files. > > grep -R "va_arg("  . | grep 'typeof' > ./drivers/dma-buf/st-dma-fence-unwrap.c:                fences[i] = > va_arg(valist, typeof(*fences)); > ./drivers/dma-buf/st-dma-fence-unwrap.c: dma_fence_put(va_arg(valist, > typeof(*fences))); > ./lib/test_scanf.c:             typeof(*expect) got = *va_arg(ap, > typeof(expect));              \ > > And other files all use declaration name directly. > So I send this patch makes code clearer and fix the wrong warning by > the way. > > Thanks, > Wan Jiabing > >> >> Regards, >> Christian. >> >>> >>> Fixes: 0c5064fa8d5a ("dma-buf: cleanup dma_fence_unwrap selftest v2") >>> Signed-off-by: Wan Jiabing >>> --- >>>   drivers/dma-buf/st-dma-fence-unwrap.c | 4 ++-- >>>   1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/drivers/dma-buf/st-dma-fence-unwrap.c >>> b/drivers/dma-buf/st-dma-fence-unwrap.c >>> index 4105d5ea8dde..1137a6d90b32 100644 >>> --- a/drivers/dma-buf/st-dma-fence-unwrap.c >>> +++ b/drivers/dma-buf/st-dma-fence-unwrap.c >>> @@ -56,7 +56,7 @@ static struct dma_fence *mock_array(unsigned int >>> num_fences, ...) >>>         va_start(valist, num_fences); >>>       for (i = 0; i < num_fences; ++i) >>> -        fences[i] = va_arg(valist, typeof(*fences)); >>> +        fences[i] = va_arg(valist, struct dma_fence *); >>>       va_end(valist); >>>         array = dma_fence_array_create(num_fences, fences, >>> @@ -72,7 +72,7 @@ static struct dma_fence *mock_array(unsigned int >>> num_fences, ...) >>>   error_put: >>>       va_start(valist, num_fences); >>>       for (i = 0; i < num_fences; ++i) >>> -        dma_fence_put(va_arg(valist, typeof(*fences))); >>> +        dma_fence_put(va_arg(valist, struct dma_fence *)); >>>       va_end(valist); >>>       return NULL; >>>   } >> >