linux_dsm_epyc7002/arch/um/sys-i386
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
..
asm uml: kernels on {i386,x86_64} produce bad coredumps 2011-03-22 17:44:09 -07:00
shared/sysdep Add generic sys_old_mmap() 2010-03-12 15:52:32 -08:00
atomic64_cx8_32.S um: mdd support for 64 bit atomic operations 2011-04-28 11:28:21 -07:00
bug.c uml: header untangling 2008-02-05 09:44:28 -08:00
bugs.c UML: make several more things static 2008-07-24 10:47:24 -07:00
checksum.S UML: make several more things static 2008-07-24 10:47:24 -07:00
delay.c [PATCH] uml: fix unreasonably long udelay 2007-04-02 10:06:08 -07:00
elfcore.c elf coredump: add extended numbering support 2010-03-06 11:26:46 -08:00
fault.c uml: style fixes pass 3 2007-10-16 09:43:05 -07:00
ksyms.c Generic semaphore implementation 2008-04-17 10:42:34 -04:00
ldt.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
Makefile um: mdd support for 64 bit atomic operations 2011-04-28 11:28:21 -07:00
ptrace_user.c uml: style fixes in arch/um/sys-x86_64 2008-02-05 09:44:31 -08:00
ptrace.c ptrace: change signature of arch_ptrace() 2010-10-27 18:03:10 -07:00
setjmp.S [PATCH] uml: Use klibc setjmp/longjmp 2006-09-26 08:49:05 -07:00
signal.c treewide: fix potentially dangerous trailing ';' in #defined values/expressions 2011-07-21 14:10:00 +02:00
stub_segv.c uml: simplify SIGSEGV handling 2008-02-05 09:44:28 -08:00
stub.S uml: fix a section warning 2009-06-16 19:47:47 -07:00
sys_call_table.S Add generic sys_old_mmap() 2010-03-12 15:52:32 -08:00
syscalls.c Add generic sys_ipc wrapper 2010-03-12 15:52:32 -08:00
sysrq.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
tls.c uml: host TLS diagnostics 2008-02-05 09:44:27 -08:00
user-offsets.c uml: tidy ptrace interface 2008-05-13 08:02:21 -07:00