Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751957AbcJWGTq (ORCPT ); Sun, 23 Oct 2016 02:19:46 -0400 Received: from mout.web.de ([212.227.15.14]:60676 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750934AbcJWGTn (ORCPT ); Sun, 23 Oct 2016 02:19:43 -0400 Subject: Re: Hexagon-setup: Combine four seq_printf() calls into one call in show_cpuinfo() To: "Theodore Ts'o" , Julia Lawall References: <20161021154624.maiwbgjmzlzhin2l@thunk.org> <48d54097-6be3-d39d-2af9-d4ad90c3c417@users.sourceforge.net> <20161021175317.nnb2keq7m3phwgbv@thunk.org> Cc: linux-hexagon@vger.kernel.org, Richard Kuo , LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <4263abec-0a2c-d37d-7a35-47648ae0dcac@users.sourceforge.net> Date: Fri, 21 Oct 2016 20:28:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161021175317.nnb2keq7m3phwgbv@thunk.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:R91CU3H3b2R9Mcr28dZDa5TpjfNWkez3c4QCySYNrz10dpXYaGr YJekzQPJSoAkBzveiVcbIZJWSLG27dwFUXfcPnzOsG599AZFhkxVuhEazhjdLgOHOiYo75E fmq7VEJjaMdcqM2ymA3JmX6oQczC/GiUt9MNL+MyY6thecD1ms+nD8gbPCfXCFrbZuaE12Y iMRfnlEm45aOqcZNwRdqA== X-UI-Out-Filterresults: notjunk:1;V01:K0:zpnfCKopOs8=:QmZHP92dSbmoACBB2ns97P 3KhAOEaEXg+vpbhgb8N7KPUaSmQANLUZG4h/2nTqXkGX8nSH+dJ33miwxBYEYys1jZvOaP1es Uq5gh/UCRNA8il/aHcYoHWi+OMXfXx5vhAOo4kEvE6+w1uqSH6CWDhy4yrxoGrOIew7X7lEf8 ecCAwLmb9iRVCXlGunTQGcRtuwVU0arNOG/nqtAsU/YvNps3ZzHWFd6EPwAs7FPAeBxCajqKO IMQwCbkQzDt/QrMMuxuNZIyy8sK7aTskVidBwGaX4RiFlT30IXic/iFVFeSf3r1X1k+gC9bf6 KoIDxg9OmKYOZhTXTMhuAcOFiDPRyiKWpKUoQnKU3R1BgYkv7m3Qsjr2ObL5LCpUpf8gQFmFp cS8B+fzSLqys2i4oTFRSum7xsUryFyaxAJEGLOTzq1NpREk5W6mmDP4G/XlhFxMYw9OAS2pfx 9v+7enC9bx+IOC0B9IodagifbrfGoM6HekRLxyP5L4i4XAz4T9LOhKLKfZliEH9fQYZpCjddI JfmhxJvf2XnD9c/ZqYrw4zzlHWOMQ0b5xW42MPEm4CU1Vv3waNa+loYeqe3yG0R/7sxyiIRy2 bPbQkLvBTQQVuWpnhpIPoymM22HvTeDZRnfyXGgEui88ISHqQ+EtrjxKkROJXRJoBR3pP7MuC pTNsGjA+sq5kWZP4LduWVMVJH4G1L1pUmRzWuDUekV60+WwomjvD7j4uEfx0f30OT4omcddXO +TNZZvCy4C7oGnzDBuiWlukM1o+5D8EFz3u9Gbsy2YgvHp05wHxzx+1mIE320oZolYzq6p4wI YSTNbll Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1859 Lines: 50 Am 21.10.2016 um 19:53 schrieb Theodore Ts'o: > On Fri, Oct 21, 2016 at 07:33:30PM +0200, SF Markus Elfring wrote: >> >>> but (a) this isn't performance critical, >> >> This can be. > > In this case, no, it really can't possibly be performance critical. > If you can't see why, you have no business trying to send patches. > >>> and (b) the number of bytes saved is really tiny. >> >> I imagine that the corresponding code and data size reduction could >> be occasionally useful, couldn't it? > > Note that in some cases, attempts to shirnk the code by tiny amounts > can actually, paradoxically, cause the code to actually *expand*. In > any case, shrinking the kernel by 0.00015% really won't matter, since > for no other reason, we round memory used to 4k pages. > > So keeping the code easily readible is aslo a consideration that needs > to be taken into acconut. > >>> But at least if the compiler was doing the work, it would at least deal with >>> it everywhere. >> >> I would find such an optimisation possibility also nice. >> >> Can it become acceptable to achieve a similar effect by the application >> of scripts for the semantic patch language in the meantime? > > The problem with scripts like this is that they very clearly don't > have any human judgement. And when the person using the scripts also > doesn't seem to have good judgement, it's a real problem. > > When the author of the semantic patch language is telling you to stand down, A collaboration evolved between Julia and me during the years where different software development opinions can be usual. There are eventually further opinions from Linux contributors like you. > and you still want to try to argue for blind application of patches, > we have a really big problem. > Especially when some of your patches have actually introduced bugs. > > - Ted >