2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 15:13:55 +08:00
linux-next/drivers/net/wireless/rtlwifi/rtl8192ce
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
..
def.h rtlwifi: rtl8192ce: Change hw routine for addition of rtl8192se and rtl8192de 2011-04-26 16:13:33 -04:00
dm.c rtlwifi: rtl8192ce: Change sw and LED routines for addition of rtl8192se and rtl8192de 2011-04-26 16:14:55 -04:00
dm.h rtlwifi: rtl8192ce: Change sw and LED routines for addition of rtl8192se and rtl8192de 2011-04-26 16:14:55 -04:00
hw.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2011-05-23 09:12:26 -07:00
hw.h rtlwifi: rtl8192ce: Change hw routine for addition of rtl8192se and rtl8192de 2011-04-26 16:13:33 -04:00
led.c rtlwifi: rtl8192ce: Change sw and LED routines for addition of rtl8192se and rtl8192de 2011-04-26 16:14:55 -04:00
led.h rtlwifi: rtl8192ce: Change sw and LED routines for addition of rtl8192se and rtl8192de 2011-04-26 16:14:55 -04:00
Makefile rtlwifi: rtl8192ce: rtl8192cu: Fix multiple def errors for allyesconfig build 2011-02-23 16:28:41 -05:00
phy.c rtlwifi: rtl8192c-common: rtl8192ce: Fix for HT40 regression 2011-05-16 14:25:30 -04:00
phy.h rtlwifi: rtl8192c-common: rtl8192ce: Fix for HT40 regression 2011-05-16 14:25:30 -04:00
reg.h treewide: fix potentially dangerous trailing ';' in #defined values/expressions 2011-07-21 14:10:00 +02:00
rf.c rtlwifi: rtl8192ce: Change phy and rc routines for addition of rtl8192se and rtl8192de 2011-04-26 16:14:55 -04:00
rf.h rtlwifi: rtl8192ce: Change phy and rc routines for addition of rtl8192se and rtl8192de 2011-04-26 16:14:55 -04:00
sw.c rtlwifi: rtl8192c-common: rtl8192ce: Fix for HT40 regression 2011-05-16 14:25:30 -04:00
sw.h rtlwifi: rtl8192ce: Change sw and LED routines for addition of rtl8192se and rtl8192de 2011-04-26 16:14:55 -04:00
table.c rtl8192ce: drop 'rtl8192c-' prefix from files 2010-12-20 14:49:47 -05:00
table.h rtl8192ce: drop 'rtl8192c-' prefix from files 2010-12-20 14:49:47 -05:00
trx.c rtlwifi: rtl8192ce: rtl8192cu: Fix most sparse warnings 2011-04-26 16:14:55 -04:00
trx.h rtlwifi: rtl8192ce: Change rtl8192ce routines phy and trx and modify rtl8192cu for addition of rtl8192se and rtl8192de 2011-04-26 16:14:55 -04:00