From: Wolfgang Denk Date: Wed, 25 Feb 2009 08:48:32 +0100 Subject: [U-Boot] [PATCH 06/11] actuax/B2: fix coding style In-Reply-To: <1235542278-21451-6-git-send-email-plagnioj@jcrosoft.com> References: <20090225060934.GB26416@game.jcrosoft.org> <1235542278-21451-1-git-send-email-plagnioj@jcrosoft.com> <1235542278-21451-2-git-send-email-plagnioj@jcrosoft.com> <1235542278-21451-3-git-send-email-plagnioj@jcrosoft.com> <1235542278-21451-4-git-send-email-plagnioj@jcrosoft.com> <1235542278-21451-5-git-send-email-plagnioj@jcrosoft.com> <1235542278-21451-6-git-send-email-plagnioj@jcrosoft.com> Message-ID: <20090225074832.89951832E43F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Jean-Christophe PLAGNIOL-VILLARD, In message <1235542278-21451-6-git-send-email-plagnioj@jcrosoft.com> you wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD there is no Coding Style specification for loader scripts - at least I am not aware of one. > - . = ALIGN (4); > - .text : { > - cpu/ixp/start.o(.text) > - lib_generic/string.o(.text) > - lib_generic/vsprintf.o(.text) > - lib_arm/board.o(.text) > - common/dlmalloc.o(.text) > - cpu/ixp/cpu.o(.text) > + . = ALIGN(4); > + .text : > + { If we assime C rules, then this change is to the worse. ... > - . = ALIGN (4); > - .rodata : { > - *(.rodata) > - } > - . = ALIGN (4); > - .data : { > - *(.data) > - } > - . = ALIGN (4); > - .got : { > - *(.got) > - } > - . =.; > - __u_boot_cmd_start =.; > - .u_boot_cmd : { > - *(.u_boot_cmd) > - } > - __u_boot_cmd_end =.; > + . = ALIGN(4); > + .rodata : { *(.rodata) } > > - . = ALIGN (4); > - __bss_start =.; > - .bss (NOLOAD): { > - *(.bss) > - . = ALIGN(4); > - } > - _end =.; > + . = ALIGN(4); > + .data : { *(.data) } > + > + . = ALIGN(4); > + .got : { *(.got) } > + > + . = .; You are making the code just harder to read, and more difficult to maintain as adding new lines will now be harder than it was before. The whole change does not improve anything. NAK. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The price one pays for pursuing any profession, or calling, is an intimate knowledge of its ugly side. - James Baldwin