Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2407086ioo; Sat, 28 May 2022 12:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMqtOjayXokgBfdOeciqSaPmEbOEsmjdeB+7qncqE2/oZpMC/Jl5yMmYwT2btS2XG2vCqB X-Received: by 2002:a63:ea4b:0:b0:3db:5325:d55a with SMTP id l11-20020a63ea4b000000b003db5325d55amr42233163pgk.588.1653766694010; Sat, 28 May 2022 12:38:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653766694; cv=pass; d=google.com; s=arc-20160816; b=kqZ+2BDk7LdylCgtGuabOZChIc/xlvTqjl0PxL4ETwS4vo7VG6CQZVxNNTcCimwVnZ oVzFNmPZmcrCtOMa84V1j1HcHeQPaIOZiQwnIyu+MgJZRIlUnVE/lF7FF0yKeedF1eD+ H74Ytf1S2mWuDB3/2B4sM83FpgolbkSmNChHzndldwa9W5Z15ByQ6peaxOzxCuzFbzyG mloNPtPrJHN7XhXqC4eqerHUvkvI2RJDvzzZa7MjjARLhxqJmSfsBzE6V4lLzDaV+gF1 iP7Ux8RimQ20LDtPVNcC1Qci1t+IXoRJcL01VJsI5dwDjonKmkH2v976rdbGUPAHgcYw NP3w== 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=aZbr2/SKig1qq8wfFYACdrO7dNZw5Kwx4Qk/0WiuV0Y=; b=vAZShj9MK++KmLiUtLhMCOVKBmHH0UMw2NwKTaNnPO1eo1e9VIhWS6z+Kb9jhVJs6c j4HsGmlkUcb25Lhpp2rZpiHSmMiBFafeKZNLzSUhf/rlDrb63ujtQjHcU51Irtv1MkEf Awul2kogy4WbRSrSFHOkRjmQwPiNeAEWllZPOeBOSvZgaYF+eDHAtHyvOBqSgUO2DDvp fN4AO9Cj1pR3lGGTjCEecgu8Q8E9scFBSK3nx99075EynBOMbLz6k06nPQcryQzvVBrp irkT1fp1HruPRrQgpWfrNSBfzjfuktZyJaKJoTOHKeoQIBpYUqbOHT0ia6xoaeO9RBtH I0yg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=O7QgI4LY; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=URoocOD6; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y23-20020a1709027c9700b0016361175b8fsi8928100pll.339.2022.05.28.12.38.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:38:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=O7QgI4LY; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=URoocOD6; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 D93B85D191; Sat, 28 May 2022 12:03:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348688AbiEZTHK (ORCPT + 99 others); Thu, 26 May 2022 15:07:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbiEZTHI (ORCPT ); Thu, 26 May 2022 15:07:08 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5CA2B8BCF; Thu, 26 May 2022 12:07:06 -0700 (PDT) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24QHMpTP013206; Thu, 26 May 2022 19:06:51 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=aZbr2/SKig1qq8wfFYACdrO7dNZw5Kwx4Qk/0WiuV0Y=; b=O7QgI4LYjpRqjjOi0KP8ZCxEcfpUVIMVHAq+hDhCPDU+eDAmhiatdsv8NHwlZ/p5gXOY LgeVr7nqD+ORkXITL8wQK6z6wDJ6J3H3jnPU2s8psz43FISbqivhAoWaq05de2KdbTuS YZUzRxvdKe2E4pXaC6+kkT1d2PXV1vzOyC2pho68qm4JZucjujxwCyqXsMCiqa+Ix2Bm 4YD4+d6VImVEPKgbT94tjGpknRDkBZrnsAJMZi2LQqOFnHmw//sED0GYtDbz4tMFaari SQfYMZYsBzvgi2K3L5XfenQudokDeJWNpPE8buRPWXZrqjMWjGUUAsEvaKpLl80OX/qZ nA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3g93tdwh7q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 May 2022 19:06:51 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 24QJ01Rc027662; Thu, 26 May 2022 19:06:49 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam08lp2041.outbound.protection.outlook.com [104.47.74.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3g93x12bag-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 May 2022 19:06:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wa6V3InbwPt9isMkdDk2SdBpkjHGGDz/04h30rE8XsvNGJasQObL3ZEwgYfTRvJsnQtDT0lQ2kjeNiG7YXTcnMH5KKTba1Ucbt4ND6WWv/vhN3OGw41SY/FNqAtdXbrh+hYQuFVdtDeNafMa72VMzpkpxhl4kOW+STSsEcuER6B53dcAX9Fg+aYoED6WLxBuQQk1vTSIH9kR/o+AVCbG49at8BfLfp6sBtgpX5p+ff3YO+roRrW+JTgTa6ISS2lMu6oOuze7M1vMg1E/mMmfYvANRgxrjYeFymUMiRUR0pgl0lO4NnDhZGLgZCI6w/4Qyo3kkP/UuIfQFbSLzMpjdg== 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=aZbr2/SKig1qq8wfFYACdrO7dNZw5Kwx4Qk/0WiuV0Y=; b=XekQ7NpHKXTBX/CQpqMOfSas8Np71S2a4ZMdkSBMHot0YyLHDNMxk0mHq5n16HurGdSnxEQVska4pGkQBk1t5lxb2juFUW0+rj4jBnj+Nkh8HYcAlIriVcBPI83n/Re/zH2CmHc3lG0lM7hxCopiCZu9e42iCj9W/yIiIJHxq6glB5GcTxVIJ9ctajkWN7XvKgXVA0i78/ksq9QlkheXX1yIvjvR/sHM9NbaKjz8jRejnPZghJHJK7w4dCgmsT1l76Jws7Zd7/9kkSdSh4dtlY6QptbcGGAQcmvgO2tAyTkSJZ+Es978e1cCSdQRDkfMc2uiBAh0Z3SHXiZA6zbL3w== 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=aZbr2/SKig1qq8wfFYACdrO7dNZw5Kwx4Qk/0WiuV0Y=; b=URoocOD6Q31txTN14yjA55lgNHrPQvtnMlg/Oc9iDduxQu0slaOe6IRluQkng2ACZwWjTks2y2IVSABwbDPfQdVytzAZw3wYhInBfTDFsHNosYYCuCs0AOOGl6+Em0ssm7Y7Aj97EhxymHdAXokW0Lb6EdbYOzaJHcRUQK3ulfs= Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by BYAPR10MB3413.namprd10.prod.outlook.com (2603:10b6:a03:150::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Thu, 26 May 2022 19:06:48 +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.013; Thu, 26 May 2022 19:06:47 +0000 Date: Thu, 26 May 2022 22:06:30 +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: <20220526190630.GJ2168@kadam> References: <20220525105922.2413991-1-eperezma@redhat.com> <20220525105922.2413991-3-eperezma@redhat.com> <20220526090706.maf645wayelb7mcp@sgarzare-redhat> <20220526132038.GF2168@kadam> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: MR1P264CA0053.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:3e::13) 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: ff934427-5ba4-4b13-c402-08da3f4ae19b X-MS-TrafficTypeDiagnostic: BYAPR10MB3413: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: ArWKyKT+HVnJFbT/vb1yRv4FupOT9VRPUSQYsyk7FI66mnvIuTTggwzocvO9C+xztnbv0NAZc3EW6vCvBj0vxqh3iy2G4GjH9UAgt9eO6L04zALn9FqY9gGfAmc2krgGF1MaLPnzT9Jh5W3uwIlNEgOj7mYA2puWZkMVxjfPgufTqfWraR9F7KDru8svHVezz6V9RRtPz7SLToNWen9WyMBgWMrbhSpEjV15pZc+Nx2MhYBAnIzDVAXElH8BLoSNeFqpvoGsfo20VPp2axOWrYyPUWu1lZn/hgxC5Ex+x5yL8MVgEMkAS+UHnB14Svc1KLR1K1wgQq9NuUV+XNBWGmqx8WA1Ki6UpmnKROc9mTzsuQsvXnTn5OtiuTJENT2yDLIJ9XuyeQ/oG0W2+t2swMPeQoMZ9fD4UlYdyCOmCVsPVOZNF0dwvtOEZDQ4GBVZv7D3hTI4061IEKuertU8eOPxoFBm5IxkFPEvmL+nvG0ZZXkiUkzWg6eWNWRRxHv5uQObkSd9BDKPWj8Rl/nAMmpKZkvDBc09fc+QHgUEeYE9gHDrimgOMg8QiixkYNbbJ9FFnGkEWd0zkhRl8Uz8Oi7Km3gvk6Sx7fPEDax7VfNGnzEtJDwTimaJnwjXqbkgmzmw+r7T/LOrCs5xTcn9tWv2u/Rnwdv1tfH2n4+DTmiiam1zg2vFrRkSxYV7o56+5BsXTmlzgQpMKB3EvSMmqg== 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)(38350700002)(6666004)(66556008)(6506007)(66476007)(38100700002)(52116002)(8936002)(6486002)(7416002)(44832011)(86362001)(2906002)(5660300002)(33656002)(508600001)(33716001)(54906003)(83380400001)(6916009)(8676002)(316002)(1076003)(6512007)(26005)(9686003)(4326008)(186003)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?SMPPplp/Bt3i9CSZA69jD79qjyi4n6nlYCEhBtdnucXPvqJrRpArimAfZUbb?= =?us-ascii?Q?62K8A628fcmF9qqs7s0iVegH+e8cPdm9AWcFulQVk07G2V1mL4fCNn2+uwIS?= =?us-ascii?Q?lDRErg8WiwRWnxCupcHR3LB8O44VpV3iAQJVpziycDb3KccNrKB2MKhrU1bk?= =?us-ascii?Q?PaoHCsvPe7om3MaJzHmMK1+JuOYcFXmq0SGjYb8FIf5509TvA+O60vQJ15rY?= =?us-ascii?Q?3ZhseM+CK8+H6/nmemjm70Xd7NG36NXovdr9w4G/0OBY44NBCbzVb924PRjL?= =?us-ascii?Q?vWrr7t/hW/JkxL3JSt1phO9FnvfBAN1RBUHYWurkSNXbWdGz3krqqpQYO+vg?= =?us-ascii?Q?nU4wU+OSX33zyJ4hQu9DyVSldJF/58aKfbCA8QNlrDylmVKtS+k9iAi7mRf3?= =?us-ascii?Q?FlcHLzgt9qZw/Lnk4me65ET7f1Do+gOzrJaEcDEPqcIVZWNmKYCk/iRdLTvW?= =?us-ascii?Q?5q0FpZdWOTLckMbx4OkPcKgo+Rj6/ib4hm4Yq70S0d0hDh8wivHSP+0/uz+l?= =?us-ascii?Q?mkW1S5x23z93yQQbBQ/7lFpanNFKmFhTZ11/eDBEwPfAwfG+rukpfzs+aBoU?= =?us-ascii?Q?V9yjwXT/sm6vNBcJwDQUD6H1iEKc4XgkC4/hPJzyh9lqVkVXMyI+v2douCC5?= =?us-ascii?Q?whxE7yIDY+gGVWhm/pb4MURX1V5gkJsc/XiKhKDNwxsOjAKJq8yzyLvBG/gu?= =?us-ascii?Q?I7nsSC6X/Yj4ugOtVmmkTw/+1ANJvFli0sPup647mp0bMHn2UkEXItmChuEl?= =?us-ascii?Q?FaLY0mjb9dp3bYgejIoI6dvdw1qktYIxLwWfYikxAvpPOlk1yMgGSULy/569?= =?us-ascii?Q?m1JwfheS0MBs29luyECT0vU+ZKvfUmZtK4/ozMdDvSZ8F++6jBB/64AeX0tQ?= =?us-ascii?Q?QpxNuaS6bA6gxwfysTe8e6dkWYq+8tiJyZAeJ9kTJ4BBZHywL8K6T3WmzCoz?= =?us-ascii?Q?8kKVQIXf0PoThObs+LLFax7fFSjPQDmlhX88svj8WdD73tbFAfPmQMeX5VMy?= =?us-ascii?Q?vHv8HK39HffGUtEIknuaiqsIV3oR66yqxkfvj3rrG/ISqzqjIBRysQyjTUbU?= =?us-ascii?Q?UfBoChreRXNpsMQJTY+17J0Fh+xDRBC80DMDVJEnK4BYepZQRJtn+hlQqw4z?= =?us-ascii?Q?fnusq0vf8o5DJQbEDtXDzsnAUJ1aNuWNsgGfQB5a3uln4WrtTM1NFf0eh+wQ?= =?us-ascii?Q?cJ7n+N7eP5k7vW3/VF2a/gRH3Q0IfKiP4ZL3GOlwJZANmoI5fveHHfvrLCMl?= =?us-ascii?Q?gxLrVFhjGhJAwquBNZOXiHkEg9Jgziq3ZeyYGF4W4BeGhHa5YaHoBwL5qVze?= =?us-ascii?Q?+yETalVXtEOeBcLGKuRHHhJUbjpqlWeI930PBZJOw4ZBi2Ng4tk8TscrFLg3?= =?us-ascii?Q?sDwlmAT5MslsVd6aObJ3Vr4eDYigfBOToH6LItvfcD2AEzCe4XHQ2spTJXyA?= =?us-ascii?Q?iLkywyvxKXEKO+PEmbZhnG8Sbl48/uhZHzchsZf8E05aiExTluFVD+s2GM/+?= =?us-ascii?Q?QrKKeApc0v1ct6SEyEuIOBSnUIyyfOytG0hSbvNSHIZCPh5XWOiOeOoGyxtC?= =?us-ascii?Q?MsDklNjrC7Too1AA9f4lsQpx6He28kJNue9lNxgPSSrnO5qUQh7umCqusPvQ?= =?us-ascii?Q?Z0MNsPTuxImG4jazNJDE+iliTIvz2Bp3ox7opN0SIBed4mlx4gZdVTl83Rxv?= =?us-ascii?Q?XZv083rAfLC9sqbiVgxa7JaFknSEJLOQwqMA4UX76PHULEybEHgxAlNLbiSC?= =?us-ascii?Q?kYER5RwhNwTBe2MAajHsIWfDnfMFDMU=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff934427-5ba4-4b13-c402-08da3f4ae19b X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2022 19:06:47.4526 (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: F2HfYmbMKwGF6x86xjgRjvlECno2aAgEQ3ztLCOORn2TsGoBvUQxRaI8Fu8Yo4Fl9793ti+iRHKV5XyfalN7Hv/mENmGkkL2BBWBZccjidg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3413 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486,18.0.874 definitions=2022-05-26_08:2022-05-25,2022-05-26 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 bulkscore=0 suspectscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2205260090 X-Proofpoint-GUID: hgG2c01FVMfAQBkFLyQ9j2HPoQPSQd-T X-Proofpoint-ORIG-GUID: hgG2c01FVMfAQBkFLyQ9j2HPoQPSQd-T 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 Thu, May 26, 2022 at 07:00:06PM +0200, Eugenio Perez Martin wrote: > > It feels like returning any literal that isn't 1 or 0 should trigger a > > warning... I've written that and will check it out tonight. > > > > I'm not sure this should be so strict, or "literal" does not include pointers? > What I mean in exact terms, is that if you're returning a known value and the function returns bool then the known value should be 0 or 1. Don't "return 3;". This new warning will complain if you return a known pointer as in "return &a;". It won't complain if you return an unknown pointer "return p;". > As an experiment, can Smatch be used to count how many times a > returned pointer is converted to int / bool before returning vs not > converted? I'm not super excited to write that code... :/ > > I find Smatch interesting, especially when switching between projects > frequently. Does it support changing the code like clang-format? To > offload cognitive load to tools is usually good :). No. Coccinelle does that really well though. regards, dan carpenter