Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp328129ybz; Fri, 24 Apr 2020 00:51:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJxRHas/zpVX7cUqnH+pvnVqoWLLmpeg+3NMFObBGpBYcitvVd+duRBMVXsbWkZGyNi7j2U X-Received: by 2002:a05:6402:1611:: with SMTP id f17mr5636843edv.352.1587714695612; Fri, 24 Apr 2020 00:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587714695; cv=none; d=google.com; s=arc-20160816; b=yhcy7Itj39V53xUc/KLOdZxg1GjK6fGegU4t49MFl6eWNAiBV16qh97PSNYDeqoHCe is1wkO4UGLyc/Whk4UXSZ8WcZyeM4sZDnK9Uaylg9dIJGJoxS8X8akf036Efu3CBl3q9 fdeU4b/1kfPKxLeuNwLFvZMzwUxw0kUpF8sdqyVzB1NBBSokyn1CblqYQfFTT7L2WG3g xTlO/qL9sOmSX7CCN22ZmNcjzwBDgIKxXaq97IlkTS0vE2i9nT0342TdFebgxCpt+6Ox Sr6XXm1HP5biJrOnxoi9Y7Ltmvw98tyiD41TIyIxNzp4Lz5FjyH5lDmhzM1fwzN/l1zC Uf+w== 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:autocrypt:from:references:cc:to:subject:dkim-signature; bh=FqNGUo0hYPE6J2gQnjQjCL0uHjZ57gcrnw1LR/u8qGk=; b=TVoz3Z7XFgml4aIIBPSm7xrgYAHIuM7sOKLVoEIpP2QMJoO36NPjgUSeL5rqlrIBFk 39SuiiDxUKeqcD5ybLrE+zyiN3rnDdDm/6dCAWMO9BbDwaaGlu8KkCwSlx8VjnsBXCHd kZf+mY9lQQIDLvxfuQ8AhCQUGHCXMqKuZ5HBo2mSgCyPrlTKfbDvoxSihzZiJSV1HU27 6g9qdliOHfpn0jT+fvrgF02M2vc0oplv3SMN0WlRKEpWAkrXVJd2QsLkvAuqCH5ON7Oh Fr8AUKd25C9uWU0eJFEwwdpGqg7yNsgSOYEzqfRXzZnlqudkdDHtgRwhMorh0fbUBnsB M09Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=QXTjb2m0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si2624882ejb.405.2020.04.24.00.51.12; Fri, 24 Apr 2020 00:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=QXTjb2m0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbgDXHrQ (ORCPT + 99 others); Fri, 24 Apr 2020 03:47:16 -0400 Received: from mout.web.de ([212.227.15.4]:43881 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbgDXHrO (ORCPT ); Fri, 24 Apr 2020 03:47:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1587714414; bh=xMCKGIWSWfZDkzyNaAqTW8yUMH7LZKEPhEgmsf9ck/Y=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=QXTjb2m0xdxAYX9eu3Galz/MTQkGEO6bmMiYS3pbobkOBO1Twi1f54BWJ2HLAUknf Mqzn9a6VB1yRr6i8DW/tHgv/2wyBZKeya1Z7gM9xnLMbyEll1zD+pzkUxksRTgZ9so KyYe5JthYbBAC8kx274rI/mDFpEwqR7gOOvVC5lE= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.2] ([78.48.129.82]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MKr7w-1jRt3009WS-0002Bf; Fri, 24 Apr 2020 09:46:54 +0200 Subject: Re: console: Complete exception handling in newport_probe() To: Dejin Zheng , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Coccinelle Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Andy Shevchenko , Bartlomiej Zolnierkiewicz , Florian Tobias Schandinat , Greg Kroah-Hartman , =?UTF-8?Q?Ralf_B=c3=a4chle?= , =?UTF-8?Q?Thomas_Bogend=c3=b6rfer?= , Thomas Gleixner References: <20200423142909.GB1562@nuc8i5> <20200423170245.GA3417@nuc8i5> From: Markus Elfring Autocrypt: addr=Markus.Elfring@web.de; prefer-encrypt=mutual; keydata= mQINBFg2+xABEADBJW2hoUoFXVFWTeKbqqif8VjszdMkriilx90WB5c0ddWQX14h6w5bT/A8 +v43YoGpDNyhgA0w9CEhuwfZrE91GocMtjLO67TAc2i2nxMc/FJRDI0OemO4VJ9RwID6ltwt mpVJgXGKkNJ1ey+QOXouzlErVvE2fRh+KXXN1Q7fSmTJlAW9XJYHS3BDHb0uRpymRSX3O+E2 lA87C7R8qAigPDZi6Z7UmwIA83ZMKXQ5stA0lhPyYgQcM7fh7V4ZYhnR0I5/qkUoxKpqaYLp YHBczVP+Zx/zHOM0KQphOMbU7X3c1pmMruoe6ti9uZzqZSLsF+NKXFEPBS665tQr66HJvZvY GMDlntZFAZ6xQvCC1r3MGoxEC1tuEa24vPCC9RZ9wk2sY5Csbva0WwYv3WKRZZBv8eIhGMxs rcpeGShRFyZ/0BYO53wZAPV1pEhGLLxd8eLN/nEWjJE0ejakPC1H/mt5F+yQBJAzz9JzbToU 5jKLu0SugNI18MspJut8AiA1M44CIWrNHXvWsQ+nn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0pUnW3AwtiMYngT96BevfA qlwaymjPTvH+cTXScnbydfOQW8220JQwykUe+sHRZfAF5TS2YCkQvsyf7vIpSqo/ttDk4+xc Z/wsLiWTgKlih2QYULvW61XU+mWsK8+ZlYUrRMpkauN4CJ5yTpvp+Orcz5KixHQmc5tbkLWf x0n1QFc1xxJhbzN+r9djSGGN/5IBDfUqSANC8cWzHpWaHmSuU3JSAMB/N+yQjIad2ztTckZY pwT6oxng29LzZspTYUEzMz3wK2jQHw+U66qBFk8whA7B2uAU1QdGyPgahLYSOa4XAEGb6wbI FEE= Message-ID: Date: Fri, 24 Apr 2020 09:46:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200423170245.GA3417@nuc8i5> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Ff0orYrWO/G7vUnpE7QCfce/w01wByslkpPcrPrWkiDMpjXAbz9 qgKmu/4GRKvxhETQ/A1BZsm+7OfvCytJ6Sb/eJZXcnp+iPO9E1voPdLfUuG8UVRZDMhVBd5 diucdn0b4QbNb0ZTvMirvrsgIbSEJxEIL5lQUXCM5m1VmZoY1Akde182rL1zVEA4rXDYqD8 apIuShZ9RJpY9cVQlL7HQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:J/+QIqeL3YE=:6lDLKSVKrIEOPNGdSfZgda FHPC/UFeCrD4kyHj/h0FGXXfNWNWhDn+yEeVqfop7VlNsRfkIfZ00VUa6Iya71XN03+54RsQa uKBW+rWqP12RG6DusANz8zXvtLHR7V4zP69RjYCs8o6YnUCUlHXpowcXDcyt2WP6LnkqH/D6A kkOI5GfNzZN/CqGJ7F8kANpQeo9k1cs3g+bEuSTxiZJSB3QwpKCTjZNsY50LrrLgoS4Hd/yjk 8zTACZ6HuXJT1iYRI5xhw74OsPC3z3zXlTjG11VmshP1uPDaWeE3LN+lLVDMP8BaHhK5h9Ry3 CaBk5xftjl033jr/QhTZ2ob4yxTaBJzeRhg9bfwqTZipBSOBK3109r9WvcT02daAVJka8nrzc KRMUa0htK6W7ZFc7KGP4ey1rOn5BbosRRuu3O9ebhQFOOKUxZhVQuVTHc1FxaOywsv7eo9jFf dDnRyWnUB7DIkwHpx2gqIJqqguN1MrHXbI69TP6YVo8QnqTAsLHroLcn3TJBkf6l2irU7p4Js 9YqfhmI7Um47f4glaIdj7C2h67KWX0U72cgePbCuY+eQj09a8PmjDs+vmRMLitfiBRbYTMyak J6r9euiaq4BIz06+T5RSreCPc5fyN3h/bgxTKQIFzaJpU9b6Q4Dpxc6Vks2ooftQM1uhRHq0k DzK0Uu6jVkh025AoJLeyVl978NCcRxmJmiZUdtXdObnaBcZPmb601HHK5h7svT0wLohUjjPq1 nwwBb/TXrojSH1LfvUGwnYw7uRLyIRrvUBUKo0/64tnxhew88XKFD2paqoGTxp7HrCFHxBxnP mFmjx77gQTKCEtx5VMhnTKeEnIgYZK9ezLey9vPTSZAHvLlBHQ0rQISU2Oyra8WOWmqYnpXFF bWczvn5ybf4Xii2lvDMN7U89VSHSF4d7byRJv5IcPBNwjIPfsNOUo37Z6UDFh4zK+nvl9Us3O 1TvGgQ/noqqp62pZKDiQYAAVHczhsbFBOAWZgH7n42cbCf0I2HAWR2v9JWmMk3fqGtYJlesJ7 8vBrAYwIOPhxyyeqG2S5SeGZqihkkaRqxx5HGRCes88Mph9KUzLGu2rZkWn/ensUcQS+A3Q3u PbtvEH5ytknb6UT2BdXQawL/k9blP6P/52padooVatmgEcnhvWy7uzc8o3RW4+gIFC8U/ghmP Vfirbswt2rNST+U8AdzbW23XxXioxdjXYg07fitM77Hgi2N76z4AC45QBN3Cr7i/F7woHZv0X Um9HtbwcALfuCxbI7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Sorry, I do not know how to use the SmPL script. I would like to try again to make you more familiar with applications of the Coccinelle software. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Do= cumentation/dev-tools/coccinelle.rst?id=3Db4f633221f0aeac102e463a4be46a643= b2e3b819#n9 Another small example according to a script for the semantic patch languag= e: @display@ expression e, x; statement is, es; type t; @@ *e =3D (t) ioremap(...) ... when !=3D if( \( !e \| e =3D=3D NULL \| unlikely( \( !e \| e =3D=3D N= ULL \) ) \| WARN_ON( \( !e \| e =3D=3D NULL \) ) \) ) is else es when !=3D iounmap(e) return x; >> Would you like to let any more source code analysis tools help you >> to find remaining update candidates? >> > yes, but I think the source code analysis tools only can found the simpl= e > repetitive issue. The shown analysis approach can point 127 source files out from the software =E2=80=9CLinux next-20200423=E2=80=9D. These files contain fu= nction implementations which might need further development considerations. > and need spend some time learning to use it. You came along a few files where you noticed questionable source code. Would you become interested to find similar places for another check? elfring@Sonne:~/Projekte/Linux/next-patched> XX=3D$(date) && spatch --no-l= oops --timeout 12 -j 4 --chunksize 1 -dir ~/Projekte/Linux/next-patched ~/= Projekte/Coccinelle/janitor/show_questionable_ioremap_usage3.cocci > ~/Pro= jekte/Bau/Linux/scripts/Coccinelle/ioremap/20200423/show_questionable_iore= map_usage3.diff 2> ~/Projekte/Bau/Linux/scripts/Coccinelle/ioremap/2020042= 3/show_questionable_ioremap_usage3-errors.txt; YY=3D$(date) && echo "$XX |= $YY" Fr 24. Apr 09:08:44 CEST 2020 | Fr 24. Apr 09:10:37 CEST 2020 Would you like to extend your learning experiences accordingly? > now, I think the best for me may be that read and check the source code. How do you think about to reduce efforts for manual code inspection? Regards, Markus