Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5869091ioo; Wed, 1 Jun 2022 14:31:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoV8B5Nc09+o2irb0Wb+WgByDqUJIw5cIWZ+aL6F1e3OOoPQkJkKjVaLJ35hH3ttJyekTW X-Received: by 2002:a17:902:e745:b0:163:5074:6c2f with SMTP id p5-20020a170902e74500b0016350746c2fmr1478253plf.140.1654119082516; Wed, 01 Jun 2022 14:31:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654119082; cv=pass; d=google.com; s=arc-20160816; b=gQRyjdEZY9F1GGyDq9z9SG23Hbo8ssQnyE5tu2NS1Ab0H9jkeT2B/rI29awZW9hW6K cVBmGDEH4J49cXFKLZKYXOhbi00f/JLdxE7TfaHWuIARhnmYMpXW5h6uz/9RXnJQOK+X H6ILnOvew1nBPq5g9VwJ2PvUOFdysNcxDERUNmBA1JwA38772COobCy1ZxGw80y70xDg hXYjy0xlTDMQHTCl0nV4DVGXbxBkc0Bx5h3Bp1lghUUwv8gDr1GeGJjLPhNIX2v2eVTY Qa6m9T1S5y/iNP7fzmXqXy65QllXmg43F+FyIZGk0RMWpa5IdZfH8SC4Ei69UkhxZlVV 4viA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=Eh3hGqTPE9V1zQbdUok+0KSvn0gc1dE2U1PNkR2Qn+8=; b=FPUh1RA7lPpJo0I5Nlu8Hjao+fhcq9O8sigyzwXloRIF7HGnuzfNttQWyII0zULpRQ +KKcfK9UPEXI9kdRhd03pqGnkJQImZRTmlQLQRlTjwvoHBCitG+wnDBX+9dLw9DY0LPx M2QPiHIi84m86odF+wl3lYT3wRmkvJ+rPQAaezDjfnv356noMe3np9VaWmUUtsgokQ4h ReKsoGLYgkFvpVPz6DxkX9mCXu1AQQdYnCqqNKQMcvAh1T+M0pzX3b5dO8mv/4Xvl06S DP5YNuIeiHRoAiysNGDWAUeTJiHE7U4sEg1w3d14jMXOyLBQ/DlzcohZ7spgNJOvW4Nw sEiA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=TMJUrwRX; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=SPt3bsY8; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c5-20020a170902aa4500b001624b71eab1si3346289plr.460.2022.06.01.14.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:31:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=TMJUrwRX; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=SPt3bsY8; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4D2782C06AF; Wed, 1 Jun 2022 13:19:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238224AbiE3Pb3 (ORCPT + 99 others); Mon, 30 May 2022 11:31:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237141AbiE3PZs (ORCPT ); Mon, 30 May 2022 11:25:48 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2EA3147834; Mon, 30 May 2022 07:28:25 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24UBbrif003335; Mon, 30 May 2022 14:27:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2021-07-09; bh=Eh3hGqTPE9V1zQbdUok+0KSvn0gc1dE2U1PNkR2Qn+8=; b=TMJUrwRXftidZszM2xqW/WeGNELv7yNZNNPm5sGVbbuQNCax/Ux50DnmnnpVR5sI2uK7 UFg3Mggd8XnTYCxtDlIC51GTD4wJjRef7ULnMwMQlZxtmeK3BfRle4VW2DZwbEvm1OrK ngMfrVW4E5Co50YRhIu1fRzC9dsZI/dmgVBiQsT1MGV40KDO5ZJj1Zj7lRRiB2p0udAA v+MJsovUrNvv1JTve7S/MFtjYuMapEqQedX3/VwlcQ12eizLLYNNWxqDusvuSdSYIfKl SxVUa2WUui/L0MkRFbHNw64o7wxaWRkCiYZrpkipVN+yqb1ZHDHWIbYvibU6E2D3uBKW SQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3gbc6x35g5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 May 2022 14:27:59 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 24UEFN25006668; Mon, 30 May 2022 14:27:58 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2042.outbound.protection.outlook.com [104.47.66.42]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3gc8jw7x3y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 May 2022 14:27:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i9cVizEbGI95XmzCG3GY1SwAGSfUrtEiWjCJKZhB2ppVMQJpZLZe9BMMAGVkTnejaz7PAHO2ugnp0rnb69oxputlzfpVXRdP1bApkRAC01V013LQ/L6U71q63y2A3swo9lXijiBQkteudXzP2h6bDffwDGzDWCKcZt7S7DSYS0A9KHQkfkDmlvpqsm/FF8pwtLA3FpHB7pMhGtdruFbDNR2lO18xSFXmmPEUszegOxCOcq0DwPguOPvqnzX3Umk3FAochSXdpH898+qxqCtTXVkaQeaNhFa0wLxJIgmX5i2TjPShVGOq9Kyi1gxuVyCoS2CHHolIfx4l6DBnRvBIeg== 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=Eh3hGqTPE9V1zQbdUok+0KSvn0gc1dE2U1PNkR2Qn+8=; b=d+TZw+Zn6C52vMtfQe+ISebfYcth00Ove6xuS5ooLxVM5WjismpHFtBb1ZcxwsJnOLZQQsrG3Q8xwOFPw3oIW0pn/EVYczzUnK+43eN8YQUw2gO6FFLPlRs0c4g7MC2d3P7NMQlp8w9fkhEl0HL+xKWtY8c+qDRQhFTq8Si66+Ha+yNMeFA7YxYEBqxdJn8oKRw3J3EmwYCGfO8pcaL2Q3jLis8r7ebjyirK2hpLsNdI0Lz0I3g8iMwBsN8I2Y/Y1OvuFNRxKK38zYWIqQ1sxb3EXoLuxPdjbC8vHEciN5IsR8V/3sIdOiL0KHR/CB/WUL6UbsrA7zYbG2c7a2CkJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Eh3hGqTPE9V1zQbdUok+0KSvn0gc1dE2U1PNkR2Qn+8=; b=SPt3bsY8HGwyTRPd2ZlxoP4+qBf3/zWSC8njWCdBq9sRENJYQuewJV03PR/kezcSv2Ihb1PQoOyPLnuszIVs+szRKMUe7auHwHKHGtDNLo6EvPbeSCJSiNiQU46unqU9Z0MQDej1q+25aPbzqdTe6t4cJga4/d4UNlc4N/sYoAw= Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by BN0PR10MB5272.namprd10.prod.outlook.com (2603:10b6:408:124::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.15; Mon, 30 May 2022 14:27:55 +0000 Received: from MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::86f:81ba:9951:5a7e]) by MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::86f:81ba:9951:5a7e%2]) with mapi id 15.20.5293.019; Mon, 30 May 2022 14:27:55 +0000 Date: Mon, 30 May 2022 17:27:25 +0300 From: Dan Carpenter To: Eugenio Perez Martin Cc: Stefano Garzarella , "Dawar, Gautam" , "Michael S. Tsirkin" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , Jason Wang , Zhu Lingshan , "martinh@xilinx.com" , "ecree.xilinx@gmail.com" , Eli Cohen , Parav Pandit , Wu Zongyong , "dinang@xilinx.com" , Christophe JAILLET , Xie Yongji , "lulu@redhat.com" , "martinpo@xilinx.com" , "pabloc@xilinx.com" , Longpeng , "Piotr.Uminski@intel.com" , "Kamde, Tanuj" , Si-Wei Liu , "habetsm.xilinx@gmail.com" , "lvivier@redhat.com" , Zhang Min , "hanand@xilinx.com" Subject: Re: [PATCH v3 2/4] vhost-vdpa: introduce STOP backend feature bit Message-ID: <20220530142725.GU2168@kadam> References: <20220525105922.2413991-3-eperezma@redhat.com> <20220526090706.maf645wayelb7mcp@sgarzare-redhat> <20220526132038.GF2168@kadam> <20220526190630.GJ2168@kadam> <20220527073654.GM2168@kadam> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220527073654.GM2168@kadam> User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: JNXP275CA0002.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:19::14) To MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 37d887e0-721e-4e7c-ccb7-08da4248962c X-MS-TrafficTypeDiagnostic: BN0PR10MB5272: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: 4RZouvnY2sUyuwmW12sTcBuUrkRtxnR1I9bEXO6dSySKmBytYC5H/jAtT5sL8Gv8bjkT4oZOAxPDvHLQvijO38WrMekS0uyqulYvhfaJsZNZvD68+H67+furGn8e8FTdqWbVYYecBlzIJL1zV5S2W9qYm0eRsjY9N2liWBuzju5qaDSUq2vFZtD14GNIrS6SLsBnZwngMLjHqyCGEGRQx157FD3Q4b5pugnTZ0xyP2ac2KXkt/FFlR8Ji0xAtF/RdYavIymRH0t+C41CyjzvwWxTBK3tbdIR7OW4vDXoRoehyVcKEYPQJIzrY9uoU3woC7sl6VkIetCJ9AdKYxAwzY+KKBKiC6+RslXVB78Knxh3UCzNXFj6dEY1qb8HlJv0UcfIwmDxFl1FR9vnE52ZJSnyWi2Nnwj+VDz3cYoJSeg4Asp2x/z9qpL84SYV2WBJecEvymR00LsFoCopWfSgNbZjLk370zuNZNY3IDCe7ZGHc4qqJTwQi2eMgpJX2FKvNbf5gGJePsGnRhUy0yQGbm8BdNHXuOdlLmrMgsoRhtXVVKtXg9x4hyqDJ2/boE3Rs4+7K2mbloALsDUffi9ETp3CDyYpOqOBTW1BN4C6KbFnw75WZJKJCgJyIMyt0sri0W4FjdJFJsDGe6pft+OQM331IGALJh7gTqQ0jVPMbDHTvGpsG9AWPhRLZ/mRGCoH9T4Kn+ouhCMtyTKOiivh+Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2365.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(366004)(2906002)(6666004)(8676002)(6486002)(44832011)(66556008)(4326008)(66476007)(7416002)(33716001)(66946007)(54906003)(316002)(5660300002)(52116002)(508600001)(6916009)(26005)(6506007)(6512007)(9686003)(33656002)(38350700002)(1076003)(38100700002)(86362001)(83380400001)(8936002)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ZJvOYFFyqFnRaQ+Hc4n3Da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rd7IVCtCXo=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37d887e0-721e-4e7c-ccb7-08da4248962c X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2022 14:27:55.3911 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IOODWtycYq4ULsympuCZ38MSIsYG20ThJidYWJKaRy2yRbbX1lWXJM9/lhdq4jQCAzUVy5RCZps5/oSTQAh6UWxwWpM4GDuaakkZwZwVvdo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5272 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486,18.0.874 definitions=2022-05-30_05:2022-05-30,2022-05-30 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 suspectscore=0 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2205300075 X-Proofpoint-GUID: daDRscZ9FCioRZekyb3L16boc0TI3vrc X-Proofpoint-ORIG-GUID: daDRscZ9FCioRZekyb3L16boc0TI3vrc X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, May 27, 2022 at 10:36:55AM +0300, Dan Carpenter wrote: > static void match_pointer(struct expression *ret_value) > { > struct symbol *type; > char *name; > > type = cur_func_return_type(); > if (!type || sval_type_max(type).value != 1) > return; > > if (!is_pointer(ret_value)) > return; > > name = expr_to_str(ret_value); > sm_msg("'%s' return pointer cast to bool", name); > free_string(name); > } I found a bug in Smatch with this check. With the Smatch bug fixed then there is only only place which does a legitimate implied pointer to bool cast. A different function returns NULL on error instead of false. drivers/gpu/drm/i915/display/intel_dmc.c:249 intel_dmc_has_payload() 'i915->dmc.dmc_info[0]->payload' return pointer cast to bool drivers/net/wireless/rndis_wlan.c:1980 rndis_bss_info_update() '(0)' return pointer cast to bool drivers/net/wireless/rndis_wlan.c:1989 rndis_bss_info_update() '(0)' return pointer cast to bool drivers/net/wireless/rndis_wlan.c:1995 rndis_bss_info_update() '(0)' return pointer cast to bool regards, dan carpenter