Received: by 10.223.176.5 with SMTP id f5csp719690wra; Fri, 9 Feb 2018 06:11:37 -0800 (PST) X-Google-Smtp-Source: AH8x2261c1U5QF5vIWlpbbzHg0Gkno8H5tccruIV/fImK39UFWpsaMUN0xp1n1N4xrmTaK/g7rmO X-Received: by 2002:a17:902:bf0a:: with SMTP id bi10-v6mr2713254plb.181.1518185497870; Fri, 09 Feb 2018 06:11:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518185497; cv=none; d=google.com; s=arc-20160816; b=i2TJ3jLmmTYdA3YD+MP8VEoEK+Sw9DlOC4EuPDWiYU+Du19fhHipBKlbJVM58RdO5K OJ+HExYy+l8yfVKFk4OHuDheLNzbtR1Ckw+2EjgA0LhWTreVH/+KOznJEVFlp3X8Ryac IuC1FlUQ4DjPOHewfv6dp36NsKDljH57LAx2KE5JYYGp8xqPfy2lZ7Qiw0/T6Dw+xpcu xCuRvNm3Jq2lbfHnh1bZJqP/WPQSdquI+pcdQC9XbCWWaYtZu+RCs1DCHqud8BlTos+2 xpqif70VdKrWxbgApVSb+PIsMcvcE8leqcVMK567V0iJCYcSH/r/2q8M1diugkd53gcv ZCYA== 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:cc:subject:references:to:arc-authentication-results; bh=aeUQHz63hi8RZNcAn0dAxp51ZAhnr1Mss9r1BzasFso=; b=DzWYiJveKrPNMVzSCGOJzhgXnTxQ6yfi1Y/0hdRD690bq0Fdz8Jf0lBFrJFpM+lYwH W8QQVUKNf+FvFQPljtGYYonhlTB58y5rBVpwBwu0u/Lcrig5H/ObNyjjoQcH0sJpMtEw gluUiy5eC2g3Qcl/iTNjIVgLVB7d/8Umq36DYtPQM+B1UDHFQPNAAHxEZirKKoKnF+Jw sWQ9VfcAfuF6ZMVG7Gm2CaBBr2S9sqQJdNKDLcJB4hUtrCCPB91EQA609KSZ8cZ9CUei Q+nefOtrNS1LQH0RIaSF/8c/UF/tjp6FQuJHaPlpfmj6ampn3pT8yPCr60gjsNzetmNq 7NbQ== 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m186si1761210pfm.25.2018.02.09.06.11.23; Fri, 09 Feb 2018 06:11:37 -0800 (PST) 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753074AbeBIOKs (ORCPT + 99 others); Fri, 9 Feb 2018 09:10:48 -0500 Received: from mout.web.de ([212.227.17.11]:52719 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752086AbeBIOKp (ORCPT ); Fri, 9 Feb 2018 09:10:45 -0500 Received: from [192.168.1.2] ([77.181.239.77]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MQNma-1eGTxM3lNs-00TpMx; Fri, 09 Feb 2018 15:10:33 +0100 To: cocci@systeme.lip6.fr, Julia Lawall References: <1518094434-12852-1-git-send-email-Julia.Lawall@lip6.fr> Subject: Re: scripts/coccinelle/misc/shift.cocci: Refactoring? Cc: LKML , kernel-janitors@vger.kernel.org, Dan Carpenter , Masahiro Yamada , Wolfram Sang From: SF Markus Elfring Message-ID: Date: Fri, 9 Feb 2018 15:10:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1518094434-12852-1-git-send-email-Julia.Lawall@lip6.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:XQwnOoYNdXPOiyuhX3h1nZPTruHR8EdBXD9zt7D0qrSS2Zdvi+k KIOkrnarafSFVu3vKJ5jv+b0pjakyzBQ83we150G7qbi8E7Ni8MmTBIZfi2re/RmZW4iZ5M srTvV2pbOjyBiLETFsXpvGyvKSBhh1Z/VL8GnWjrwL9qzegjtp00P+tI5/C/Y2e1kxACYYB yZ9TCFFs6VEQDsI4+dI9g== X-UI-Out-Filterresults: notjunk:1;V01:K0:s0xL8Ohyb4c=:cyFMSnSfkW+WUhSZ/nxfT8 VijayZNpC1wFU+2cIPPUbGFJvr7thBqPwy/XNeYG3OscfkvzL/0Y68rGcO4J0bP0IHVLI2Yiy vt1SY8zAybQjJeQDxckrtkyc2W9dX7DIyDnqHQDUA/JWu4sq7EylsgtUTiqapfgLKa7PVibEp IzvyKpyriIf08rKFcwEZZLrfHJFacCAtGxG02+HrEttDPYfju7w97TSNjAZ9NVdhpbBpKH4rl ThFvWw/D86ViJOJuqr585vTPeEBDk0CI6+ev3dTP4MC9aYXm8WgxRtpKtLTmWj1yRfVs/h86W bRhVtiN+IpfXvHc1lQCVBWZ5ecOjxKCyenq67RhB4ZHTS1fvEVu9OePspcEKwxBNUoex1EARE 8z4C/XdEFubiW/I0Qm5F1x1VaAIYO/f+TMVTAAOzlihkHRBaFSatknEE7JIsXX8JxfBhtjRN1 TyNMeVYstxDIjI6ZnsG4I4q1JHhaPKwr9J3TISQ4VPB6Kf0kqBUpVZvk9cmeLG4H2uOnyhP0R q1lpwj8dSUQO0YGUbstjjbdw+9b3Gc0yZs6ebW5Qbs+66rSNh6nt3rbc3lD25YUyerMpqGcTa D8ns6yquVmmpR34VgErci8wC11HNCY3tJz3oh/3tc+Pqfpi/tPYi6Nc1+gRk3YRN1EF5NUwWf hH8YSb44Soo4HDuX1m3i68+NYAiptWRIJppDEq1/nz9lvVi6JIOrl8sRsEr+vNAav2eBOhBWS cMDGl/Qv4BYZhb1KbOf9t19lDDJoFkPq4wNvoYImMRr/RQwIM+7CHpFSrr5tj5h9eP8PWk5C/ PTJPYsvoxgFet+3BKxegTwNvvuJrJGW7sh8H1i0vgbltOU4V4M= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +| > +WARN_ON(x op@p y) > +| > +WARN_ON_ONCE(x op@p y) > +| Can it be nice to work with nested SmPL disjunctions so that a bit of duplicate SmPL code will be reduced? > +coccilib.org.print_todo(j0[0], msg) Will it be nicer to pass a string literal instead of a variable for the message as a method parameter? Regards, Markus