linux_dsm_epyc7002/drivers/net/wireless/iwlwifi
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
..
iwl-1000.c iwlagn: fix *_UCODE_API_MAX output in the firmware field 2011-06-27 14:33:14 -04:00
iwl-2000.c iwlagn: fix *_UCODE_API_MAX output in the firmware field 2011-06-27 14:33:14 -04:00
iwl-5000-hw.h
iwl-5000.c iwlagn: fix *_UCODE_API_MAX output in the firmware field 2011-06-27 14:33:14 -04:00
iwl-6000-hw.h
iwl-6000.c iwlagn: fix *_UCODE_API_MAX output in the firmware field 2011-06-27 14:33:14 -04:00
iwl-agn-calib.c Merge branch 'for-davem' of ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2011-05-25 13:28:55 -04:00
iwl-agn-calib.h
iwl-agn-eeprom.c
iwl-agn-hcmd.c iwlagn: use cts-to-self protection on 5000 adapters series 2011-06-06 15:24:17 -04:00
iwl-agn-hw.h
iwl-agn-ict.c
iwl-agn-lib.c
iwl-agn-rs.c iwlagn: dbg_fixed_rate only used when CONFIG_MAC80211_DEBUGFS enabled 2011-05-24 15:39:30 -04:00
iwl-agn-rs.h
iwl-agn-rxon.c iwlagn: send tx power command if defer cause by RXON not match 2011-06-08 14:17:27 -04:00
iwl-agn-sta.c
iwl-agn-tt.c
iwl-agn-tt.h
iwl-agn-tx.c Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-05-24 16:47:54 -04:00
iwl-agn-ucode.c
iwl-agn.c iwlagn: fix channel switch locking 2011-06-03 14:22:06 -04:00
iwl-agn.h iwlagn: fix incorrect PCI subsystem id for 6150 devices 2011-05-31 14:51:53 -04:00
iwl-commands.h treewide: fix potentially dangerous trailing ';' in #defined values/expressions 2011-07-21 14:10:00 +02:00
iwl-core.c iwlagn: fix change_interface for P2P types 2011-06-24 11:21:24 -07:00
iwl-core.h iwlagn: fix channel switch locking 2011-06-03 14:22:06 -04:00
iwl-csr.h
iwl-debug.h
iwl-debugfs.c
iwl-dev.h iwlagn: fix channel switch locking 2011-06-03 14:22:06 -04:00
iwl-devtrace.c
iwl-devtrace.h
iwl-eeprom.c
iwl-eeprom.h
iwl-fh.h
iwl-hcmd.c
iwl-helpers.h
iwl-io.c
iwl-io.h
iwl-led.c
iwl-led.h
iwl-power.c
iwl-power.h
iwl-prph.h
iwl-rx.c iwlagn: fix channel switch locking 2011-06-03 14:22:06 -04:00
iwl-scan.c
iwl-sta.c
iwl-sta.h
iwl-sv-open.c
iwl-testmode.h
iwl-tx.c iwlagn: use PCI_DMA_* for pci_* operations 2011-06-28 11:16:39 -04:00
Kconfig
Makefile