Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756417AbcJGIyE (ORCPT ); Fri, 7 Oct 2016 04:54:04 -0400 Received: from mout.web.de ([212.227.15.4]:63010 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751608AbcJGIxz (ORCPT ); Fri, 7 Oct 2016 04:53:55 -0400 Subject: Re: md/raid1: Improve another size determination in setup_conf() To: Dan Carpenter , Richard Weinberger References: <566ABCD9.1060404@users.sourceforge.net> <786843ef-4b6f-eb04-7326-2f6f5b408826@users.sourceforge.net> <9831fce9-d689-89e4-dec8-50cadcd13fdd@users.sourceforge.net> <20161007075345.GB6039@mwanda> Cc: "linux-raid@vger.kernel.org" , Christoph Hellwig , Guoqing Jiang , Jens Axboe , Mike Christie , Neil Brown , Shaohua Li , Tomasz Majchrzak , LKML , "kernel-janitors@vger.kernel.org" , Julia Lawall From: SF Markus Elfring Message-ID: <77d68bcd-1ae4-4808-fc0b-6183ae5fb6c4@users.sourceforge.net> Date: Fri, 7 Oct 2016 10:53:15 +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: <20161007075345.GB6039@mwanda> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:0OPEaD0FSjEeoXqz5UKqUuw4iSnDdy0EqMhAWSOsj4Zv2iRF8P9 obYtQtAHYPPGu19WYXhh+RwUPA6eL76hoz148AxPrcHNwtNT+HT6PWMlvmRgHkzwL1NGe8+ /0SE4a8ZOby5JLoXQQJcqu5lS+dKkaqt10vt/ik+bip/lZhDlnIV+JOEBp/lAjh6qI/EY0F O3JYbBPsZQ3FDcPh+t0IA== X-UI-Out-Filterresults: notjunk:1;V01:K0:mVTb3bKkibo=:UFCrlNyjcoJVaAwqMolD3B QSqC6v/2EASNROebrsZ1BCSS7b9wluu1qKd4MNHPALcwedddECiD9NYQ1Yqmo3YinGWhhJtLq 3f/UEhOrwTLpVmg+fQDQYdHtPwBsJ+ENLg+2EbyKrWziu4TAuGVW+fG08fkcTTYE2IkPqvExl KxZnu0/Mfp3s0Phvpa5Kf2/bL9oEsx69WddaUUsDSf+3XLsaIXsUmFxHPKgzUyCAiB6AdMCAO 4PJx3Ffhx5h/EoRoHbgCXc/whsaa7H83DS/VLNu04K7g1VEKv9vax9P++rGJyPdQTvwUZq4Fb OLh8Xxrr0AlhKYCg333sCahU0X7kE6DdVrOYMsSSx4bp+H0Td0vBhtWUPljEDMNWZgY+15APK 0Ud8B7MqAN4OmlDYCDRrvSqQ5a1gX4/S0sql58VSpMVBwIH5B08GTXznG5mxjI2yVE82QtweG bcDFw1NjwlMeLREtMuN7JKnD17FDXMIyQugK34W6q9fJdjGRu6CjtW2GIBVdrDDnklVftoWPe onbVDbMhacc1+vkPz7mPvQ9HC6DmtCkGymxRwDQxoI+r4xi6HApye6EGswMROGxHPtCY4PQ2G uMJCgq1RImvi4poMfDdq/7B575uXJMufeoTp+7Ndpxn6tFis6J2+FU3uGblNlDZRVOsqO03Za RmE7jHksKejYPttA0kxsX8TJJPtzQBC6+ogzngOQL4gxiDnJTvL+WXpSoO4gSWW+NaqDcoNRd mQve/3L41R3h52Wzfds24id4+IrrVgCUr/AKeVXKFV79zgl7/li2kD2VlcXUOKNzemdxG9Q92 LQa6nts Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1006 Lines: 35 >>> Replace the specification of a data structure by a pointer dereference >>> as the parameter for the operator "sizeof" to make the corresponding size >>> determination a bit safer. >> >> Isn't this pure matter of taste? >> Some developers prefer sizeof(*ptr) because it is easier to type, other >> developers prefer sizeof(struct foo) because you can determine the type >> at first sight and makes review more easy. > > sizeof(*ptr) is more future proof and normally more obvious and easier > to review. Is it interesting to see how different the software development opinions can be for such an implementation detail? > That said, I've tried to tell Markus to only send bugfix patches Can any deviations from the Linux coding style become "bugs" also in your view of the software situation? > because these are a waste of time How do you value compliance with coding styles? > and regularly introduce bugs. Really? Would you like to discuss concrete incidents any further? Regards, Markus