From: Tom Rini Date: Thu, 6 Feb 2014 08:37:22 -0500 Subject: [U-Boot] [PATCH v3 2/2] ventana: Add Gateworks Ventana family support In-Reply-To: <20140206120744.69C39380761@gemini.denx.de> References: <1391642553-25778-1-git-send-email-tharvey@gateworks.com> <20140205234307.DCD82382202@gemini.denx.de> <20140206120744.69C39380761@gemini.denx.de> Message-ID: <20140206133722.GE7049@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Feb 06, 2014 at 01:07:44PM +0100, Wolfgang Denk wrote: > Dear Tim, > > In message you wrote: [snip] > > > This causes a checkpatch error: > > > > > > ERROR: Macros with complex values should be enclosed in parenthesis > > > > > > Please fix! > > > > what args do you run checkpatch.pl with? The default args does not > > check COMPLEX_MACRO it would seem which is why I missed that. > > It appears I happen to run an older version of checkpatch.pl; I have > no idea why COMPLEX_MACRO (and MULTISTATEMENT_MACRO_USE_DO_WHILE) are > disabled in the current code. > > > Tom, what do you think? Should we not activate the COMPLEX_MACRO and > MULTISTATEMENT_MACRO_USE_DO_WHILE checks? So, checking .checkpatch.conf: # Temporary for false positive in checkpatch --ignore COMPLEX_MACRO # For CONFIG_SYS_I2C_NOPROBES --ignore MULTISTATEMENT_MACRO_USE_DO_WHILE Yanking these out, and running checkpatch on this patch. It complains about CONFIG_SERVERIP/CONFIG_IPADDR, uselessly. It complains about CONFIG_SPI_FLASH_WINBOND_ERASESIZE which is unused anywhere (which is the real problem with it). It also complains about MINMAX, which is a funny one. I think the warning is a correct one. In sum, I think our comment about leaving COMPLEX_MACRO out due to false positive is correct for now at least, we can revisit as part of Kconfig later when I think we'll be removing the cases where we add things like CONFIG_SERVERIP/etc. And unrelated to Wolfgang's question, Tim, please make sure your code doesn't add new warnings: gw_ventana.c: In function ?read_eeprom?: gw_ventana.c:396:3: warning: ?return? with no value, in function returning non-void [-Wreturn-type] gw_ventana.c:403:3: warning: ?return? with no value, in function returning non-void [-Wreturn-type] gw_ventana.c:413:3: warning: ?return? with no value, in function returning non-void [-Wreturn-type] gw_ventana.c: In function ?setup_board_gpio?: gw_ventana.c:804:25: warning: initialization from incompatible pointer type [enabled by default] pmic_pfuze100.c: In function ?pmic_init?: pmic_pfuze100.c:17:6: warning: unused variable ?ret? [-Wunused-variable] -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: