Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2596005ybl; Thu, 29 Aug 2019 10:14:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyP4bdam12HQiiWXdsJsCn4sM7xe1d78BDDUQbADflbs03cel8p1AJ7rk3QBwkp+C1hC6z3 X-Received: by 2002:a17:902:a706:: with SMTP id w6mr11576562plq.166.1567098860740; Thu, 29 Aug 2019 10:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567098860; cv=none; d=google.com; s=arc-20160816; b=fWtDHFdeTmAEe8sKnCpPRBPUQiIzKGQyUipLLcNAYTuRhLuu3cbNAryiZUm1m124tl wqIHEjox73rqGBiOz/l53ZfKKjb5ONYJ8FgQRXqSInPIVt74EwpjHXF0iqw7E1ixo48x m2fS5HVQo7KjQXH+yThmGihkcWKrgN0ndKPcAteRNUX26evYtxehGKigicyNd1iyyKWf KuTimUUCHPY00PQtYfFug5VCJhMVU+rgrdkOYzmbJpFfR0eeAv/SaKPpWlzqMOCcArL4 z3yKZpB2wVJoTbS3u4Go8jXZVyhYNNQPnvb2eQDUe16icgCO2gUdrbWq8fhtro9oSOki +tqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to; bh=di8LUDxG63XQ7Xvb3E8hcpbi4JeDENkx37r4x30557s=; b=tBVdXzioKulJ1yKALucy6hsylzvfb7uHqE1VH8bInEqijykfdGJtv+H+3OOgs9Zw7O vn8++WI3JiyuwUV1JDde/aTlR5AWxJv+LiEPJfDFAr7Omlc2qo/wc3j5lhopxHqVzX3s YSFUIVfooUVplGaYp7gCk23ZCCtCduz9vP08VJ7Fa/AMpdXRApXHxU0YxO1vc1JAjLF9 M7XHoRTjQaLBtGTbLh5hRKHfcUKKUhF3az0+z/LFIkPUXkXjrmj7xx+qwwJgFnIKlaNj LRSqXI8FHrGvM80dpWPSEOJF9Fk4Y9jjAfQpli3cpfdt2Mk5c+5n0v3OM3y8YsOyzQ63 670A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si2550185plb.20.2019.08.29.10.14.05; Thu, 29 Aug 2019 10:14:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727675AbfH2RNI (ORCPT + 99 others); Thu, 29 Aug 2019 13:13:08 -0400 Received: from mail-ed1-f46.google.com ([209.85.208.46]:41621 "EHLO mail-ed1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727403AbfH2RNI (ORCPT ); Thu, 29 Aug 2019 13:13:08 -0400 Received: by mail-ed1-f46.google.com with SMTP id w5so4840811edl.8 for ; Thu, 29 Aug 2019 10:13:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=di8LUDxG63XQ7Xvb3E8hcpbi4JeDENkx37r4x30557s=; b=TvajHxpM4pEHZp1Al7YdL8SwjMfU8qeKP1V7BmwYWDzNRpEsTwhRLTAXcS4kqdZ3dG Agenlv0QJuMOKOYP1ywuwFFkPH0neIE0Yz5khkTodGG83MnkLK9vGgEKvj8grsohRZJR QxTefSlE9XsICKR110Ob4n9HEqEH6G7PkGXe1rF5T2mr5F4RgWEK0qtDtInstazCG6uc UYYo2/vKjHOVGdET/j6bw9SE9FIha7b/JuiCHGzkoeEzEFNy9mFl0xC/H8fve99jxm7b pPm7qbNu8W8GqiQ2+MXt1nHI3HqH9na3gHfiU1/r+L0f9V1OYNMmLrHi5Okj7cPxzreb ZZYA== X-Gm-Message-State: APjAAAVs80ERP2zINlA2mu4ySTbWIp5rhoHIXkztZF1GGHqDfJF62azh L+z1+XyVHbNEDYMMW/gxCKE= X-Received: by 2002:aa7:c498:: with SMTP id m24mr11109283edq.277.1567098786810; Thu, 29 Aug 2019 10:13:06 -0700 (PDT) Received: from [10.10.2.174] (bran.ispras.ru. [83.149.199.196]) by smtp.gmail.com with ESMTPSA id l9sm534513eds.96.2019.08.29.10.13.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Aug 2019 10:13:06 -0700 (PDT) Reply-To: efremov@linux.com Subject: Re: [PATCH v2] scripts: coccinelle: check for !(un)?likely usage To: linux-kernel@vger.kernel.org, cocci@systeme.lip6.fr Cc: Julia Lawall , Gilles Muller , Nicolas Palix , Michal Marek , Markus Elfring , Joe Perches , Rasmus Villemoes References: <20190825130536.14683-1-efremov@linux.com> <20190829171013.22956-1-efremov@linux.com> From: Denis Efremov Message-ID: Date: Thu, 29 Aug 2019 20:13:05 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190829171013.22956-1-efremov@linux.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/29/19 8:10 PM, Denis Efremov wrote: > This patch adds coccinelle script for detecting !likely and > !unlikely usage. These notations are confusing. It's better > to replace !likely(x) with unlikely(!x) and !unlikely(x) with > likely(!x) for readability. I'm not sure that this rule deserves the acceptance. Just to want to be sure that "!unlikely(x)" and "!likely(x)" are hard-readable is not only my perception and that they become more clear in form "likely(!x)" and "unlikely(!x)" too. Thanks, Denis