linux/drivers/usb/otg
Phil Carmody 497888cf69 treewide: fix potentially dangerous trailing ';' in #defined values/expressions
All these are instances of
  #define NAME value;
or
  #define NAME(params_opt) value;

These of course fail to build when used in contexts like
  if(foo $OP NAME)
  while(bar $OP NAME)
and may silently generate the wrong code in contexts such as
  foo = NAME + 1;    /* foo = value; + 1; */
  bar = NAME - 1;    /* bar = value; - 1; */
  baz = NAME & quux; /* baz = value; & quux; */

Reported on comp.lang.c,
Message-ID: <ab0d55fe-25e5-482b-811e-c475aa6065c3@c29g2000yqd.googlegroups.com>
Initial analysis of the dangers provided by Keith Thompson in that thread.

There are many more instances of more complicated macros having unnecessary
trailing semicolons, but this pile seems to be all of the cases of simple
values suffering from the problem. (Thus things that are likely to be found
in one of the contexts above, more complicated ones aren't.)

Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2011-07-21 14:10:00 +02:00
..
ab8500-usb.c usb: otg: notifier: switch to atomic notifier 2011-02-18 14:05:54 +02:00
fsl_otg.c USB: add Freescale USB OTG Transceiver driver 2011-05-02 16:59:38 -07:00
fsl_otg.h USB: add Freescale USB OTG Transceiver driver 2011-05-02 16:59:38 -07:00
gpio_vbus.c USB: gpio-vbus: ask for vbus_draw regulator before registering xceiv 2011-05-03 10:17:14 -07:00
isp1301_omap.c treewide: transciever/transceiver spelling fixes 2011-06-24 11:20:14 +02:00
Kconfig USB: add Freescale USB OTG Transceiver driver 2011-05-02 16:59:38 -07:00
langwell_otg.c usb: factor out state_string() on otg drivers 2011-05-02 16:39:09 -07:00
Makefile USB: add Freescale USB OTG Transceiver driver 2011-05-02 16:59:38 -07:00
msm_otg.c USB: OTG: msm: Free VCCCX regulator even if we can't set the voltage 2011-05-17 11:20:23 -07:00
nop-usb-xceiv.c usb: otg: notifier: switch to atomic notifier 2011-02-18 14:05:54 +02:00
otg.c usb: factor out state_string() on otg drivers 2011-05-02 16:39:09 -07:00
otg_fsm.c treewide: remove duplicate includes 2011-06-20 16:08:19 +02:00
otg_fsm.h USB: add Freescale USB OTG Transceiver driver 2011-05-02 16:59:38 -07:00
twl4030-usb.c treewide: fix potentially dangerous trailing ';' in #defined values/expressions 2011-07-21 14:10:00 +02:00
twl6030-usb.c USB: TWL6025 allow different regulator name 2011-05-27 10:49:30 +01:00
ulpi.c usb: otg: Make USB3319 ULPI ID generic 2011-01-22 18:32:53 -08:00
ulpi_viewport.c usb: otg: Add ulpi viewport access ops 2011-03-11 14:22:10 -08:00