Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1154115iol; Fri, 10 Jun 2022 01:09:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyUz0sxQgLFtkBVKhuWd7lreOUUoAQ2jJS8w92PZD/gWgqk8YFPtgTuuFgl4T5nG3+jqBS X-Received: by 2002:a05:6402:3482:b0:42d:e063:7c1d with SMTP id v2-20020a056402348200b0042de0637c1dmr49746313edc.40.1654848567539; Fri, 10 Jun 2022 01:09:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654848567; cv=pass; d=google.com; s=arc-20160816; b=iLRS9mpNYPA2xgJishIKuMhuRO/Pa9Ic1AMhNfW7i6CgFcOKAaoXGmTXkewVM5AsM7 UUalAJ1+/pvc3SfGYcQuIu71AtGgKETAbYk0b6i8r+Vqdle9RSzLWoQ3z0rDmIfv2PJ/ tmKncH0iMFUXgDRrPmyB9fnHAQy54WA4gYdqTW29Ckq+MUHiF2S+X6YjKgmcGjSQGogh yIMIjYE5Z5fOh+IUTs3KzoScLhb4ikD0CaER7wRRHNYSvp4g7AWbbDUwcz3VxyehElxs 8CURvmYNPK/6DVUEuwVhEM3jaEhH4Vgdic4U3bjyVjVcmjMEUFMImu+P9Xa2aTyzRFJ2 IbNw== 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:organization:from:references:to:content-language :subject:user-agent:date:message-id:dkim-signature; bh=EKZoOldyoVb419C3vi8I1N+6etu14Vr1vxkkcwjqACg=; b=iQb0irFJ27j6GSkcocP6c/xHRXoMyAsjA5WK5CEurwMRf5Mn6G+5naQ/p8GfaeuSE6 L5SWseLqauptao0nxGdFMAqAlNBUCUhciAl1jidTW+7Ej1Z99PBLqqyO4FbYy7tQ8kiU lRWiXawLK+ptHATZqPVOhwq3vjgVDBoL0qKffNvxSQct3jxATRLoVCwkcttJBiTphVIA dn3SlR7loIwzD7r1NDYxtXGKAvJdspsku3op2S1MwWP8fy6jkMFeOdV1KD3VdbN1NCvh 8qA9TOZNLdMz2/3hns4P2qSNZ6SAnw7JWHRL/s2XCMrfY9v3sX0GoUoAF9rh4NGN3taN nZcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo0.onmicrosoft.com header.s=selector2-vivo0-onmicrosoft-com header.b=V0BXpiB+; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa12-20020a1709076d0c00b006ec0c7be701si758612ejc.650.2022.06.10.01.08.59; Fri, 10 Jun 2022 01:09:27 -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=@vivo0.onmicrosoft.com header.s=selector2-vivo0-onmicrosoft-com header.b=V0BXpiB+; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347024AbiFJHw4 (ORCPT + 99 others); Fri, 10 Jun 2022 03:52:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346600AbiFJHww (ORCPT ); Fri, 10 Jun 2022 03:52:52 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2108.outbound.protection.outlook.com [40.107.215.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C0B41E4B5B; Fri, 10 Jun 2022 00:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N5h4D6opVLtSGne5yC0db7N8DZNU7yju62VIC5EHM9XXJloZ5K37t/CLYtnBUSNNkyjL8oc1Duuu73fRTu3Pwvo2ZDvOYoOzXSC8zzG5WAaw0dY5qENROEBSgeZp0yMPiTV+HT250w1V/jkkB5is5aAUTr6C3H1GGHrezvCX1lmErs+vGiwN5Nio8EpowFAda2P2IiSbDK8NUTw2+x8K+kE4tkiVyyWTSFaLMOYZ9VtjUahc6ltYOquT8gOQ4iQg/XWDVJ5O1P4q1r5/lGndRLd4OPQYLuk6hgsFUkZyBTc92K0pM6tAnubgyzTAslyQbWd91jZ96pjRZbGtIATgzg== 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=EKZoOldyoVb419C3vi8I1N+6etu14Vr1vxkkcwjqACg=; b=DWof5XhU8QZ6kzsI/Kl0s0sKkzKVgYxuzVXZ9Pgxe/NnycvEqbXF4XhCim3Xhp2hS5hrr+MREBIRBy4QP4hc4zvrjyAivS1nlId5SSNOuKZ6SZ9F1ZRQMwCvWFwpDKUDCs8HrrShFFhWmWqP4BSTp4m/I82GvwfRZsRPPnbeCZV75IWjLY5YIhY80q+/SSMf0/XXJZw3z+WY4Tj3Lnfax/76VCGWlRS7sV1wWJBol1sSYpaKojKcgkHJgwSHwSlO4q13eVL0ZxWOu9YawrPNIbhB18KPdjJvAjbk5GOrPNx7KZNlatVoCK2j+rOrpAgqOb/BaOyPzFvcVly3ESlGeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo0.onmicrosoft.com; s=selector2-vivo0-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EKZoOldyoVb419C3vi8I1N+6etu14Vr1vxkkcwjqACg=; b=V0BXpiB+uyql0gyQtvog99p/0nm2wz8DMrDCQSR2AjBv4IkU9FnQeXa6eO6RMFVcZrXVfw7my1xc1my82d/90Thjuxm5jS1SrkS/X+5mgHVU0JKDhxoRawlQOOhssfJWcip657Meu1SKeb3SHkOeKto3hi+knpJLHgAfF7xlrqM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SG2PR06MB3367.apcprd06.prod.outlook.com (2603:1096:4:78::19) by PS1PR0601MB3689.apcprd06.prod.outlook.com (2603:1096:300:78::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.18; Fri, 10 Jun 2022 07:52:48 +0000 Received: from SG2PR06MB3367.apcprd06.prod.outlook.com ([fe80::ccb7:f612:80b2:64d5]) by SG2PR06MB3367.apcprd06.prod.outlook.com ([fe80::ccb7:f612:80b2:64d5%4]) with mapi id 15.20.5314.019; Fri, 10 Jun 2022 07:52:48 +0000 Message-ID: <7a689b6c-31b7-61d2-7bf4-6fdf49bb4ae4@vivo.com> Date: Fri, 10 Jun 2022 15:52:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] dma-buf: Don't use typeof in va_arg Content-Language: en-US To: =?UTF-8?Q?Christian_K=c3=b6nig?= , 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> From: Jiabing Wan Organization: vivo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: ME2PR01CA0062.ausprd01.prod.outlook.com (2603:10c6:201:2b::26) To SG2PR06MB3367.apcprd06.prod.outlook.com (2603:1096:4:78::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f30d2bf0-464e-4186-6fcf-08da4ab63635 X-MS-TrafficTypeDiagnostic: PS1PR0601MB3689: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: aQxy22c684aAePEda9FhYGeW26AqIMhTTwT6/H5qissipU4/QmU4wat+Sy6ZFYe6MZUWnrYXo6/XqFxl598LZ2ICTOPT/0HhjpvPfp4jpAqLD01Kbg8saDl1hiHWDLGqkICnZ+T8F0KlRZ6FSEo78wu/o+5YRT6hWM+plMmZEuzvPsr3jdfUp4VVFD5Hw8pQnwwhKFznhUEgdPBsxcSTF4ZBXSXzITPROahfQyysfwVzUoCqvni+4vO/at02yif0jAzJekvuqgUyZr10b/P6Afd8h3A1Stgzv16kzJ6/WUbrMXzxfRZK5jk/621BD08vOkV4s859wuq26oFgOta0fOOZixBAUkDY/BMcJZ4uaGndvPXbaIOWWOg8kbmvymbyg/8o1mPFXQk7yphi8jde39M8zsykN73T92aDts8aSi5jISDBf2DXRELo4PBN83VChhdBzYBMVeq3FCg7IiJ5cO7rxwoxhG8N+FGk8RC2qeRMgKXyaGUfXlYK2s3F55bkNd9OMY/mqIa8MZn662CLOpCTGwo6AwosS/miEFA4xvYHWH+SwAOTPyUsiIIVL3V9K8VB8LNKuo46jNPJVDwfOCE6yvxBe4RF11dXLgHf73IysH73LT3ryIF1nYAn0MlQde5Y2Z5m+lTQOZ81/1yAqU8uJnmLTUofT8jbdM+9LaX2ru3BgqmVvMVTKEATOdY4glz269HnLpnye7EDRgdtIg6aH6IVCCG+7CPbUxOj++pIXzIa6k9Ll478MWfZc4EvA5vC2OKZqGTTEmqYaqbLNrdedJgbgmaCkO3GZNTRQyM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR06MB3367.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(66946007)(66556008)(31686004)(8676002)(31696002)(86362001)(8936002)(5660300002)(316002)(49246003)(66476007)(110136005)(6666004)(2906002)(53546011)(6506007)(508600001)(26005)(6512007)(83380400001)(36756003)(186003)(38100700002)(2616005)(66574015)(38350700002)(6486002)(36916002)(52116002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V3JITEFlZGg2bG9VL3l6RXFUVDRKQ2VCTmt0T0VpQy9OS1gzai9QQTBKdEIz?= =?utf-8?B?bkl4RnZ2aFpYKzczREtzbStOTnUyWnRWemdoK0xtM0dsUzVvN3ptMFRvYzRh?= =?utf-8?B?Y1J3djMwb09lNzlUUXZlNDQ5MlRiTDFTZmRzQy8vRC93Y05uemhvdStMcVlz?= =?utf-8?B?VjVJU3NNNWc4MXlFNVBlVE1NK0w2OGg3ZnRiZUhxY3ZJTVdoMjZlTEJ1STgr?= =?utf-8?B?a3RxeEJVQ0JtVndkNW5lN20wVUFGRmwwVCtkTHBZSmFTM1ZBMTk5d25sb0Ri?= =?utf-8?B?RWZ3ekZMK3U2N1lVbEdHWVR5bHo0SkZnUWltM3Y4ZVJuSEt3bnVNMXlxZ3hC?= =?utf-8?B?MXl6VDB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?utf-8?B?U2JqVU54RmVCV3VNVEx3YThsL3kxZmRGYm4xM1Noa2YxK0ZDV0lxUWJBUWlS?= =?utf-8?B?VHRKVXZUL1JRUmpvbWxvdjVSVHY1SXBkdVBvVzY5NXQ4V3g0ZWRQRHF1ejJi?= =?utf-8?B?bEw3VUpSeFFFeHpOVFM3Rll1R3ZaVGZ4WGIxS1FoSEY2NG1XWmthUT09?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f30d2bf0-464e-4186-6fcf-08da4ab63635 X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3367.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2022 07:52:48.2665 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uN1Mhff/SJ13m9dHkLnDnoCiuIJv8dCTCycrihbWROPmr1F752SQrILwssUEQ+uRUfv0NYVG1uM8y9ba1Ccy+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB3689 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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. 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; >>   } >