patjak / facetimehd

Reverse engineered Linux driver for the FacetimeHD (Broadcom 1570) PCIe webcam
GNU General Public License v2.0
1.36k stars 161 forks source link

Does not compile on Kernel 5.7.1-050701 [Ubuntu 16.04.7] #236

Closed addiks closed 3 years ago

addiks commented 3 years ago

Hello,

I have just upgraded from the official Kernel 4.15 that is shipped with Ubuntu 16.04.7 to a newer mainline kernel 5.7.1 due to better support for thunderbolt display hotplugging. On the old kernel (4.15), this driver worked perfectly after compiling and installing. With the new kernel (5.7.1) this driver refuses to compile. This is the log when trying to execute make:


gerrit@gerrit-macbook:~/git/bcwc_pcie$ make
make -C /lib/modules/5.7.1-050701-generic/build M=/home/gerrit/git/bcwc_pcie modules
make[1]: Verzeichnis „/usr/src/linux-headers-5.7.1-050701-generic“ wird betreten
  CC [M]  /home/gerrit/git/bcwc_pcie/fthd_ddr.o
In file included from <command-line>:0:0:
./arch/x86/include/asm/segment.h: In function ‘vdso_read_cpunode’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:240:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
  ^
./arch/x86/include/asm/segment.h:266:2: note: in expansion of macro ‘alternative_io’
  alternative_io ("lsl %[seg],%[p]",
  ^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
                 from ./include/linux/compiler.h:256,
                 from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/alternative.h:108:2: error: expected identifier or ‘(’ before string constant
  "# ALT: oldnstr\n"      \
  ^
./arch/x86/include/asm/alternative.h:159:2: note: in expansion of macro ‘OLDINSTR’
  OLDINSTR(oldinstr, 1)      \
  ^
./arch/x86/include/asm/alternative.h:240:23: note: in expansion of macro ‘ALTERNATIVE’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
                       ^
./arch/x86/include/asm/segment.h:266:2: note: in expansion of macro ‘alternative_io’
  alternative_io ("lsl %[seg],%[p]",
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:240:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
  ^
./arch/x86/include/asm/segment.h:266:2: note: in expansion of macro ‘alternative_io’
  alternative_io ("lsl %[seg],%[p]",
  ^
./arch/x86/include/asm/page_64.h: In function ‘clear_page’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:256:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE_2("call %P[old]", "call %P[new1]", feature1,\
  ^
./arch/x86/include/asm/page_64.h:49:2: note: in expansion of macro ‘alternative_call_2’
  alternative_call_2(clear_page_orig,
  ^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
                 from ./include/linux/compiler.h:256,
                 from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/alternative.h:128:2: error: expected identifier or ‘(’ before string constant
  "# ALT: oldinstr2\n"         \
  ^
./arch/x86/include/asm/alternative.h:168:2: note: in expansion of macro ‘OLDINSTR_2’
  OLDINSTR_2(oldinstr, 1, 2)     \
  ^
./arch/x86/include/asm/alternative.h:256:23: note: in expansion of macro ‘ALTERNATIVE_2’
  asm_inline volatile (ALTERNATIVE_2("call %P[old]", "call %P[new1]", feature1,\
                       ^
./arch/x86/include/asm/page_64.h:49:2: note: in expansion of macro ‘alternative_call_2’
  alternative_call_2(clear_page_orig,
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:256:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE_2("call %P[old]", "call %P[new1]", feature1,\
  ^
./arch/x86/include/asm/page_64.h:49:2: note: in expansion of macro ‘alternative_call_2’
  alternative_call_2(clear_page_orig,
  ^
./arch/x86/include/asm/special_insns.h: In function ‘clflushopt’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:240:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
  ^
./arch/x86/include/asm/special_insns.h:205:2: note: in expansion of macro ‘alternative_io’
  alternative_io(".byte " __stringify(NOP_DS_PREFIX) "; clflush %P0",
  ^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
                 from ./include/linux/compiler.h:256,
                 from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/alternative.h:108:2: error: expected identifier or ‘(’ before string constant
  "# ALT: oldnstr\n"      \
  ^
./arch/x86/include/asm/alternative.h:159:2: note: in expansion of macro ‘OLDINSTR’
  OLDINSTR(oldinstr, 1)      \
  ^
./arch/x86/include/asm/alternative.h:240:23: note: in expansion of macro ‘ALTERNATIVE’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
                       ^
./arch/x86/include/asm/special_insns.h:205:2: note: in expansion of macro ‘alternative_io’
  alternative_io(".byte " __stringify(NOP_DS_PREFIX) "; clflush %P0",
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:240:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
  ^
./arch/x86/include/asm/special_insns.h:205:2: note: in expansion of macro ‘alternative_io’
  alternative_io(".byte " __stringify(NOP_DS_PREFIX) "; clflush %P0",
  ^
./arch/x86/include/asm/processor.h: In function ‘prefetch’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:221:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
  ^
./arch/x86/include/asm/processor.h:817:2: note: in expansion of macro ‘alternative_input’
  alternative_input(BASE_PREFETCH, "prefetchnta %P1",
  ^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
                 from ./include/linux/compiler.h:256,
                 from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/alternative.h:108:2: error: expected identifier or ‘(’ before string constant
  "# ALT: oldnstr\n"      \
  ^
./arch/x86/include/asm/alternative.h:159:2: note: in expansion of macro ‘OLDINSTR’
  OLDINSTR(oldinstr, 1)      \
  ^
./arch/x86/include/asm/alternative.h:221:23: note: in expansion of macro ‘ALTERNATIVE’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
                       ^
./arch/x86/include/asm/processor.h:817:2: note: in expansion of macro ‘alternative_input’
  alternative_input(BASE_PREFETCH, "prefetchnta %P1",
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:221:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
  ^
./arch/x86/include/asm/processor.h:817:2: note: in expansion of macro ‘alternative_input’
  alternative_input(BASE_PREFETCH, "prefetchnta %P1",
  ^
./arch/x86/include/asm/processor.h: In function ‘prefetchw’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:221:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
  ^
./arch/x86/include/asm/processor.h:829:2: note: in expansion of macro ‘alternative_input’
  alternative_input(BASE_PREFETCH, "prefetchw %P1",
  ^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
                 from ./include/linux/compiler.h:256,
                 from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/alternative.h:108:2: error: expected identifier or ‘(’ before string constant
  "# ALT: oldnstr\n"      \
  ^
./arch/x86/include/asm/alternative.h:159:2: note: in expansion of macro ‘OLDINSTR’
  OLDINSTR(oldinstr, 1)      \
  ^
./arch/x86/include/asm/alternative.h:221:23: note: in expansion of macro ‘ALTERNATIVE’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
                       ^
./arch/x86/include/asm/processor.h:829:2: note: in expansion of macro ‘alternative_input’
  alternative_input(BASE_PREFETCH, "prefetchw %P1",
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:221:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
  ^
./arch/x86/include/asm/processor.h:829:2: note: in expansion of macro ‘alternative_input’
  alternative_input(BASE_PREFETCH, "prefetchw %P1",
  ^
./include/linux/random.h: In function ‘arch_get_random_seed_long_early’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/random.h:197:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(system_state != SYSTEM_BOOTING);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/random.h:197:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(system_state != SYSTEM_BOOTING);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/random.h:197:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(system_state != SYSTEM_BOOTING);
  ^
./include/linux/random.h: In function ‘arch_get_random_long_early’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/random.h:205:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(system_state != SYSTEM_BOOTING);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/random.h:205:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(system_state != SYSTEM_BOOTING);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/random.h:205:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(system_state != SYSTEM_BOOTING);
  ^
In file included from <command-line>:0:0:
./include/linux/thread_info.h: In function ‘copy_overflow’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:93:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_NO_CUT_HERE | BUGFLAG_TAINT(taint));\
   ^
./include/asm-generic/bug.h:124:3: note: in expansion of macro ‘__WARN_printf’
   __WARN_printf(TAINT_WARN, format);   \
   ^
./include/linux/thread_info.h:134:2: note: in expansion of macro ‘WARN’
  WARN(1, "Buffer overflow detected (%d < %lu)!\n", size, count);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:93:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_NO_CUT_HERE | BUGFLAG_TAINT(taint));\
   ^
./include/asm-generic/bug.h:124:3: note: in expansion of macro ‘__WARN_printf’
   __WARN_printf(TAINT_WARN, format);   \
   ^
./include/linux/thread_info.h:134:2: note: in expansion of macro ‘WARN’
  WARN(1, "Buffer overflow detected (%d < %lu)!\n", size, count);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:93:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_NO_CUT_HERE | BUGFLAG_TAINT(taint));\
   ^
./include/asm-generic/bug.h:124:3: note: in expansion of macro ‘__WARN_printf’
   __WARN_printf(TAINT_WARN, format);   \
   ^
./include/linux/thread_info.h:134:2: note: in expansion of macro ‘WARN’
  WARN(1, "Buffer overflow detected (%d < %lu)!\n", size, count);
  ^
./include/linux/thread_info.h: In function ‘check_copy_size’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/thread_info.h:150:6: note: in expansion of macro ‘WARN_ON_ONCE’
  if (WARN_ON_ONCE(bytes > INT_MAX))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/thread_info.h:150:6: note: in expansion of macro ‘WARN_ON_ONCE’
  if (WARN_ON_ONCE(bytes > INT_MAX))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/thread_info.h:150:6: note: in expansion of macro ‘WARN_ON_ONCE’
  if (WARN_ON_ONCE(bytes > INT_MAX))
      ^
./include/linux/rcupdate.h: In function ‘rcu_head_after_call_rcu’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/rcupdate.h:895:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(func != (rcu_callback_t)~0L);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/rcupdate.h:895:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(func != (rcu_callback_t)~0L);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/rcupdate.h:895:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(func != (rcu_callback_t)~0L);
  ^
./include/linux/ktime.h: In function ‘ktime_divns’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/ktime.h:153:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(div < 0);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/ktime.h:153:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(div < 0);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/ktime.h:153:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(div < 0);
  ^
./include/linux/srcu.h: In function ‘srcu_read_unlock’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/srcu.h:179:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(idx & ~0x1);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/srcu.h:179:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(idx & ~0x1);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/srcu.h:179:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(idx & ~0x1);
  ^
./include/linux/page-flags.h: In function ‘ClearPageCompound’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/page-flags.h:581:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!PageHead(page));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/page-flags.h:581:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!PageHead(page));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/page-flags.h:581:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!PageHead(page));
  ^
./include/asm-generic/fixmap.h: In function ‘virt_to_fix’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/asm-generic/fixmap.h:38:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/asm-generic/fixmap.h:38:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/asm-generic/fixmap.h:38:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START);
  ^
./arch/x86/include/asm/apic.h: In function ‘native_apic_mem_write’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:240:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
  ^
./arch/x86/include/asm/apic.h:107:2: note: in expansion of macro ‘alternative_io’
  alternative_io("movl %0, %P1", "xchgl %0, %P1", X86_BUG_11AP,
  ^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
                 from ./include/linux/compiler.h:256,
                 from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/alternative.h:108:2: error: expected identifier or ‘(’ before string constant
  "# ALT: oldnstr\n"      \
  ^
./arch/x86/include/asm/alternative.h:159:2: note: in expansion of macro ‘OLDINSTR’
  OLDINSTR(oldinstr, 1)      \
  ^
./arch/x86/include/asm/alternative.h:240:23: note: in expansion of macro ‘ALTERNATIVE’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
                       ^
./arch/x86/include/asm/apic.h:107:2: note: in expansion of macro ‘alternative_io’
  alternative_io("movl %0, %P1", "xchgl %0, %P1", X86_BUG_11AP,
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:240:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
  ^
./arch/x86/include/asm/apic.h:107:2: note: in expansion of macro ‘alternative_io’
  alternative_io("movl %0, %P1", "xchgl %0, %P1", X86_BUG_11AP,
  ^
In file included from ./arch/x86/include/asm/smp.h:13:0,
                 from ./arch/x86/include/asm/mmzone_64.h:11,
                 from ./arch/x86/include/asm/mmzone.h:5,
                 from ./include/linux/mmzone.h:941,
                 from ./include/linux/gfp.h:6,
                 from ./include/linux/xarray.h:14,
                 from ./include/linux/radix-tree.h:18,
                 from ./include/linux/idr.h:15,
                 from ./include/linux/kernfs.h:13,
                 from ./include/linux/sysfs.h:16,
                 from ./include/linux/kobject.h:20,
                 from ./include/linux/pci.h:35,
                 from /home/gerrit/git/bcwc_pcie/fthd_drv.h:23,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:21:
./arch/x86/include/asm/apic.h:105:16: warning: unused variable ‘addr’ [-Wunused-variable]
  volatile u32 *addr = (volatile u32 *)(APIC_BASE + reg);
                ^
In file included from <command-line>:0:0:
./include/linux/xarray.h: In function ‘xa_mk_value’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/xarray.h:54:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON((long)v < 0);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/xarray.h:54:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON((long)v < 0);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/xarray.h:54:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON((long)v < 0);
  ^
./include/linux/kernfs.h: In function ‘kernfs_enable_ns’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/kernfs.h:330:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/kernfs.h:330:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/kernfs.h:330:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR);
  ^
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/kernfs.h:331:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(!RB_EMPTY_ROOT(&kn->dir.children));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/kernfs.h:331:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(!RB_EMPTY_ROOT(&kn->dir.children));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/kernfs.h:331:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(!RB_EMPTY_ROOT(&kn->dir.children));
  ^
./include/linux/kobject.h: In function ‘kobject_has_children’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/kobject.h:134:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(kref_read(&kobj->kref) == 0);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/kobject.h:134:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(kref_read(&kobj->kref) == 0);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/kobject.h:134:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(kref_read(&kobj->kref) == 0);
  ^
./include/linux/slab.h: In function ‘kmalloc_index’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/linux/slab.h:385:2: note: in expansion of macro ‘BUG’
  BUG();
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/linux/slab.h:385:2: note: in expansion of macro ‘BUG’
  BUG();
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/linux/slab.h:385:2: note: in expansion of macro ‘BUG’
  BUG();
  ^
./arch/x86/include/asm/smap.h: In function ‘clac’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:204:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
  ^
./arch/x86/include/asm/smap.h:47:2: note: in expansion of macro ‘alternative’
  alternative("", __ASM_CLAC, X86_FEATURE_SMAP);
  ^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
                 from ./include/linux/compiler.h:256,
                 from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/alternative.h:108:2: error: expected identifier or ‘(’ before string constant
  "# ALT: oldnstr\n"      \
  ^
./arch/x86/include/asm/alternative.h:159:2: note: in expansion of macro ‘OLDINSTR’
  OLDINSTR(oldinstr, 1)      \
  ^
./arch/x86/include/asm/alternative.h:204:23: note: in expansion of macro ‘ALTERNATIVE’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
                       ^
./arch/x86/include/asm/smap.h:47:2: note: in expansion of macro ‘alternative’
  alternative("", __ASM_CLAC, X86_FEATURE_SMAP);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:204:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
  ^
./arch/x86/include/asm/smap.h:47:2: note: in expansion of macro ‘alternative’
  alternative("", __ASM_CLAC, X86_FEATURE_SMAP);
  ^
./arch/x86/include/asm/smap.h: In function ‘stac’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:204:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
  ^
./arch/x86/include/asm/smap.h:53:2: note: in expansion of macro ‘alternative’
  alternative("", __ASM_STAC, X86_FEATURE_SMAP);
  ^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
                 from ./include/linux/compiler.h:256,
                 from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/alternative.h:108:2: error: expected identifier or ‘(’ before string constant
  "# ALT: oldnstr\n"      \
  ^
./arch/x86/include/asm/alternative.h:159:2: note: in expansion of macro ‘OLDINSTR’
  OLDINSTR(oldinstr, 1)      \
  ^
./arch/x86/include/asm/alternative.h:204:23: note: in expansion of macro ‘ALTERNATIVE’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
                       ^
./arch/x86/include/asm/smap.h:53:2: note: in expansion of macro ‘alternative’
  alternative("", __ASM_STAC, X86_FEATURE_SMAP);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:204:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
  ^
./arch/x86/include/asm/smap.h:53:2: note: in expansion of macro ‘alternative’
  alternative("", __ASM_STAC, X86_FEATURE_SMAP);
  ^
./arch/x86/include/asm/uaccess_64.h: In function ‘copy_user_generic’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:256:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE_2("call %P[old]", "call %P[new1]", feature1,\
  ^
./arch/x86/include/asm/uaccess_64.h:37:2: note: in expansion of macro ‘alternative_call_2’
  alternative_call_2(copy_user_generic_unrolled,
  ^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
                 from ./include/linux/compiler.h:256,
                 from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/alternative.h:128:2: error: expected identifier or ‘(’ before string constant
  "# ALT: oldinstr2\n"         \
  ^
./arch/x86/include/asm/alternative.h:168:2: note: in expansion of macro ‘OLDINSTR_2’
  OLDINSTR_2(oldinstr, 1, 2)     \
  ^
./arch/x86/include/asm/alternative.h:256:23: note: in expansion of macro ‘ALTERNATIVE_2’
  asm_inline volatile (ALTERNATIVE_2("call %P[old]", "call %P[new1]", feature1,\
                       ^
./arch/x86/include/asm/uaccess_64.h:37:2: note: in expansion of macro ‘alternative_call_2’
  alternative_call_2(copy_user_generic_unrolled,
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:256:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE_2("call %P[old]", "call %P[new1]", feature1,\
  ^
./arch/x86/include/asm/uaccess_64.h:37:2: note: in expansion of macro ‘alternative_call_2’
  alternative_call_2(copy_user_generic_unrolled,
  ^
./arch/x86/include/asm/uaccess.h: In function ‘user_access_begin’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:204:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
  ^
./arch/x86/include/asm/barrier.h:52:26: note: in expansion of macro ‘alternative’
 #define barrier_nospec() alternative("", "lfence", X86_FEATURE_LFENCE_RDTSC)
                          ^
./arch/x86/include/asm/uaccess.h:125:2: note: in expansion of macro ‘barrier_nospec’
  barrier_nospec();  \
  ^
./arch/x86/include/asm/uaccess.h:482:2: note: in expansion of macro ‘__uaccess_begin_nospec’
  __uaccess_begin_nospec();
  ^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
                 from ./include/linux/compiler.h:256,
                 from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/alternative.h:108:2: error: expected identifier or ‘(’ before string constant
  "# ALT: oldnstr\n"      \
  ^
./arch/x86/include/asm/alternative.h:159:2: note: in expansion of macro ‘OLDINSTR’
  OLDINSTR(oldinstr, 1)      \
  ^
./arch/x86/include/asm/alternative.h:204:23: note: in expansion of macro ‘ALTERNATIVE’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
                       ^
./arch/x86/include/asm/barrier.h:52:26: note: in expansion of macro ‘alternative’
 #define barrier_nospec() alternative("", "lfence", X86_FEATURE_LFENCE_RDTSC)
                          ^
./arch/x86/include/asm/uaccess.h:125:2: note: in expansion of macro ‘barrier_nospec’
  barrier_nospec();  \
  ^
./arch/x86/include/asm/uaccess.h:482:2: note: in expansion of macro ‘__uaccess_begin_nospec’
  __uaccess_begin_nospec();
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/alternative.h:204:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
  ^
./arch/x86/include/asm/barrier.h:52:26: note: in expansion of macro ‘alternative’
 #define barrier_nospec() alternative("", "lfence", X86_FEATURE_LFENCE_RDTSC)
                          ^
./arch/x86/include/asm/uaccess.h:125:2: note: in expansion of macro ‘barrier_nospec’
  barrier_nospec();  \
  ^
./arch/x86/include/asm/uaccess.h:482:2: note: in expansion of macro ‘__uaccess_begin_nospec’
  __uaccess_begin_nospec();
  ^
./include/linux/sched/signal.h: In function ‘signal_set_stop_flags’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/sched/signal.h:261:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(sig->flags & (SIGNAL_GROUP_EXIT|SIGNAL_GROUP_COREDUMP));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/sched/signal.h:261:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(sig->flags & (SIGNAL_GROUP_EXIT|SIGNAL_GROUP_COREDUMP));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/sched/signal.h:261:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(sig->flags & (SIGNAL_GROUP_EXIT|SIGNAL_GROUP_COREDUMP));
  ^
./include/linux/sched/signal.h: In function ‘restore_saved_sigmask_unless’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/sched/signal.h:505:3: note: in expansion of macro ‘WARN_ON’
   WARN_ON(!test_thread_flag(TIF_SIGPENDING));
   ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/sched/signal.h:505:3: note: in expansion of macro ‘WARN_ON’
   WARN_ON(!test_thread_flag(TIF_SIGPENDING));
   ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/sched/signal.h:505:3: note: in expansion of macro ‘WARN_ON’
   WARN_ON(!test_thread_flag(TIF_SIGPENDING));
   ^
./include/linux/iocontext.h: In function ‘get_io_context_active’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/iocontext.h:132:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/iocontext.h:132:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/iocontext.h:132:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0);
  ^
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/iocontext.h:133:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(atomic_read(&ioc->active_ref) <= 0);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/iocontext.h:133:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(atomic_read(&ioc->active_ref) <= 0);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/iocontext.h:133:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(atomic_read(&ioc->active_ref) <= 0);
  ^
./include/linux/iocontext.h: In function ‘ioc_task_link’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/iocontext.h:142:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(atomic_read(&ioc->nr_tasks) <= 0);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/iocontext.h:142:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(atomic_read(&ioc->nr_tasks) <= 0);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/iocontext.h:142:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(atomic_read(&ioc->nr_tasks) <= 0);
  ^
./include/linux/quota.h: In function ‘make_kqid’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/linux/quota.h:114:3: note: in expansion of macro ‘BUG’
   BUG();
   ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/linux/quota.h:114:3: note: in expansion of macro ‘BUG’
   BUG();
   ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/linux/quota.h:114:3: note: in expansion of macro ‘BUG’
   BUG();
   ^
./include/linux/quota.h: In function ‘make_kqid_invalid’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/linux/quota.h:141:3: note: in expansion of macro ‘BUG’
   BUG();
   ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/linux/quota.h:141:3: note: in expansion of macro ‘BUG’
   BUG();
   ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/linux/quota.h:141:3: note: in expansion of macro ‘BUG’
   BUG();
   ^
./include/linux/fs.h: In function ‘filemap_nr_thps_inc’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/fs.h:2844:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(1);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/fs.h:2844:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(1);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/fs.h:2844:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(1);
  ^
./include/linux/fs.h: In function ‘filemap_nr_thps_dec’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/fs.h:2853:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(1);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/fs.h:2853:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(1);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/fs.h:2853:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(1);
  ^
./include/linux/fs.h: In function ‘i_readcount_dec’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/fs.h:2967:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!atomic_read(&inode->i_readcount));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/fs.h:2967:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!atomic_read(&inode->i_readcount));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/fs.h:2967:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!atomic_read(&inode->i_readcount));
  ^
./include/linux/mm.h: In function ‘try_get_page’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/mm.h:1150:6: note: in expansion of macro ‘WARN_ON_ONCE’
  if (WARN_ON_ONCE(page_ref_count(page) <= 0))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/mm.h:1150:6: note: in expansion of macro ‘WARN_ON_ONCE’
  if (WARN_ON_ONCE(page_ref_count(page) <= 0))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/mm.h:1150:6: note: in expansion of macro ‘WARN_ON_ONCE’
  if (WARN_ON_ONCE(page_ref_count(page) <= 0))
      ^
./include/linux/mm.h: In function ‘page_memcg_rcu’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/mm.h:1472:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(!rcu_read_lock_held());
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/mm.h:1472:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(!rcu_read_lock_held());
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/mm.h:1472:2: note: in expansion of macro ‘WARN_ON_ONCE’
  WARN_ON_ONCE(!rcu_read_lock_held());
  ^
./include/linux/scatterlist.h: In function ‘sg_assign_page’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/scatterlist.h:95:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON((unsigned long) page & (SG_CHAIN | SG_END));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/scatterlist.h:95:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON((unsigned long) page & (SG_CHAIN | SG_END));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/scatterlist.h:95:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON((unsigned long) page & (SG_CHAIN | SG_END));
  ^
./include/linux/dma-mapping.h: In function ‘dma_map_page_attrs’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:281:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:281:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:281:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
./include/linux/dma-mapping.h: In function ‘dma_unmap_page_attrs’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:296:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:296:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:296:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
./include/linux/dma-mapping.h: In function ‘dma_map_sg_attrs’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:315:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:315:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:315:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:320:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(ents < 0);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:320:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(ents < 0);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:320:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(ents < 0);
  ^
./include/linux/dma-mapping.h: In function ‘dma_unmap_sg_attrs’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:332:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:332:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:332:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
./include/linux/dma-mapping.h: In function ‘dma_map_resource’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:349:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:349:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:349:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/dma-mapping.h:352:6: note: in expansion of macro ‘WARN_ON_ONCE’
  if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/dma-mapping.h:352:6: note: in expansion of macro ‘WARN_ON_ONCE’
  if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_ONCE |   \
   ^
./include/linux/dma-mapping.h:352:6: note: in expansion of macro ‘WARN_ON_ONCE’
  if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
      ^
./include/linux/dma-mapping.h: In function ‘dma_unmap_resource’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:370:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:370:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:370:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
./include/linux/dma-mapping.h: In function ‘dma_sync_single_for_cpu’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:382:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:382:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:382:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
./include/linux/dma-mapping.h: In function ‘dma_sync_single_for_device’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:396:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:396:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:396:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
./include/linux/dma-mapping.h: In function ‘dma_sync_sg_for_cpu’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:410:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:410:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:410:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
./include/linux/dma-mapping.h: In function ‘dma_sync_sg_for_device’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:424:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:424:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, 0);     \
  ^
./include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’
 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
                                                         ^
./include/linux/dma-mapping.h:424:2: note: in expansion of macro ‘BUG_ON’
  BUG_ON(!valid_dma_direction(dir));
  ^
./include/linux/dma-mapping.h: In function ‘dma_map_single_attrs’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:93:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_NO_CUT_HERE | BUGFLAG_TAINT(taint));\
   ^
./include/asm-generic/bug.h:124:3: note: in expansion of macro ‘__WARN_printf’
   __WARN_printf(TAINT_WARN, format);   \
   ^
./include/asm-generic/bug.h:155:3: note: in expansion of macro ‘WARN’
   WARN(1, format);    \
   ^
./include/linux/dev_printk.h:232:2: note: in expansion of macro ‘WARN_ONCE’
  WARN_ONCE(condition, "%s %s: " format, \
  ^
./include/linux/dma-mapping.h:584:6: note: in expansion of macro ‘dev_WARN_ONCE’
  if (dev_WARN_ONCE(dev, is_vmalloc_addr(ptr),
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:93:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_NO_CUT_HERE | BUGFLAG_TAINT(taint));\
   ^
./include/asm-generic/bug.h:124:3: note: in expansion of macro ‘__WARN_printf’
   __WARN_printf(TAINT_WARN, format);   \
   ^
./include/asm-generic/bug.h:155:3: note: in expansion of macro ‘WARN’
   WARN(1, format);    \
   ^
./include/linux/dev_printk.h:232:2: note: in expansion of macro ‘WARN_ONCE’
  WARN_ONCE(condition, "%s %s: " format, \
  ^
./include/linux/dma-mapping.h:584:6: note: in expansion of macro ‘dev_WARN_ONCE’
  if (dev_WARN_ONCE(dev, is_vmalloc_addr(ptr),
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:93:3: note: in expansion of macro ‘__WARN_FLAGS’
   __WARN_FLAGS(BUGFLAG_NO_CUT_HERE | BUGFLAG_TAINT(taint));\
   ^
./include/asm-generic/bug.h:124:3: note: in expansion of macro ‘__WARN_printf’
   __WARN_printf(TAINT_WARN, format);   \
   ^
./include/asm-generic/bug.h:155:3: note: in expansion of macro ‘WARN’
   WARN(1, format);    \
   ^
./include/linux/dev_printk.h:232:2: note: in expansion of macro ‘WARN_ONCE’
  WARN_ONCE(condition, "%s %s: " format, \
  ^
./include/linux/dma-mapping.h:584:6: note: in expansion of macro ‘dev_WARN_ONCE’
  if (dev_WARN_ONCE(dev, is_vmalloc_addr(ptr),
      ^
./include/linux/dma-fence.h: In function ‘dma_fence_is_later’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:462:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(f1->context != f2->context))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:462:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(f1->context != f2->context))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:462:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(f1->context != f2->context))
      ^
./include/linux/dma-fence.h: In function ‘dma_fence_later’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:480:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(f1->context != f2->context))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:480:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(f1->context != f2->context))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:480:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(f1->context != f2->context))
      ^
./include/linux/dma-fence.h: In function ‘dma_fence_set_error’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:532:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags));
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:532:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags));
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:532:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags));
  ^
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:533:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(error >= 0 || error < -MAX_ERRNO);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:533:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(error >= 0 || error < -MAX_ERRNO);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/dma-fence.h:533:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(error >= 0 || error < -MAX_ERRNO);
  ^
./include/media/media-entity.h: In function ‘media_entity_enum_set’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:466:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:466:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:466:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
./include/media/media-entity.h: In function ‘media_entity_enum_clear’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:481:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:481:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:481:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
./include/media/media-entity.h: In function ‘media_entity_enum_test’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:498:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:498:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:498:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
./include/media/media-entity.h: In function ‘media_entity_enum_test_and_set’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:517:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:517:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:517:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(entity->internal_idx >= ent_enum->idx_max))
      ^
./include/media/media-entity.h: In function ‘media_entity_enum_intersects’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:548:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(ent_enum1->idx_max != ent_enum2->idx_max);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:548:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(ent_enum1->idx_max != ent_enum2->idx_max);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-entity.h:548:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(ent_enum1->idx_max != ent_enum2->idx_max);
  ^
./include/media/media-request.h: In function ‘media_request_unlock_for_access’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-request.h:116:7: note: in expansion of macro ‘WARN_ON’
  if (!WARN_ON(!req->access_count))
       ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-request.h:116:7: note: in expansion of macro ‘WARN_ON’
  if (!WARN_ON(!req->access_count))
       ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-request.h:116:7: note: in expansion of macro ‘WARN_ON’
  if (!WARN_ON(!req->access_count))
       ^
./include/media/media-request.h: In function ‘media_request_unlock_for_update’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-request.h:164:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(req->updating_count <= 0);
  ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-request.h:164:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(req->updating_count <= 0);
  ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/media-request.h:164:2: note: in expansion of macro ‘WARN_ON’
  WARN_ON(req->updating_count <= 0);
  ^
./include/linux/acpi.h: In function ‘acpi_free_fwnode_static’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/acpi.h:65:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(!is_acpi_static_node(fwnode)))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/acpi.h:65:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(!is_acpi_static_node(fwnode)))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/linux/acpi.h:65:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(!is_acpi_static_node(fwnode)))
      ^
./include/media/v4l2-subdev.h: In function ‘v4l2_subdev_get_try_format’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/v4l2-subdev.h:938:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(pad >= sd->entity.num_pads))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/v4l2-subdev.h:938:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(pad >= sd->entity.num_pads))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/v4l2-subdev.h:938:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(pad >= sd->entity.num_pads))
      ^
./include/media/v4l2-subdev.h: In function ‘v4l2_subdev_get_try_crop’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/v4l2-subdev.h:956:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(pad >= sd->entity.num_pads))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/v4l2-subdev.h:956:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(pad >= sd->entity.num_pads))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/v4l2-subdev.h:956:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(pad >= sd->entity.num_pads))
      ^
./include/media/v4l2-subdev.h: In function ‘v4l2_subdev_get_try_compose’:
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/v4l2-subdev.h:974:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(pad >= sd->entity.num_pads))
      ^
In file included from ./include/linux/bug.h:5:0,
                 from ./include/linux/random.h:10,
                 from /home/gerrit/git/bcwc_pcie/fthd_ddr.c:20:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
  asm_inline volatile("1:\t" ins "\n"    \
                      ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/v4l2-subdev.h:974:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(pad >= sd->entity.num_pads))
      ^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:201:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 #define asm_inline asm __inline
                        ^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
  asm_inline volatile("1:\t" ins "\n"    \
  ^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
  _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));  \
  ^
./include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’
 #define __WARN()  __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))
                   ^
./include/asm-generic/bug.h:115:3: note: in expansion of macro ‘__WARN’
   __WARN();      \
   ^
./include/media/v4l2-subdev.h:974:6: note: in expansion of macro ‘WARN_ON’
  if (WARN_ON(pad >= sd->entity.num_pads))
      ^
scripts/Makefile.build:266: die Regel für Ziel „/home/gerrit/git/bcwc_pcie/fthd_ddr.o“ scheiterte
make[2]: *** [/home/gerrit/git/bcwc_pcie/fthd_ddr.o] Fehler 1
Makefile:1729: die Regel für Ziel „/home/gerrit/git/bcwc_pcie“ scheiterte
make[1]: *** [/home/gerrit/git/bcwc_pcie] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-5.7.1-050701-generic“ wird verlassen
Makefile:12: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2
gerrit@gerrit-macbook:~/git/bcwc_pcie$ 

At first glance, it looks like something with inline assembler instructions changed in the newer kernel:

...
././include/linux/compiler_types.h:201:24: error: expected ‘(’ before ‘__inline’
 #define asm_inline asm __inline
                        ^
...

Maybe it is something similar to this issue? I will try to investigate further, but I am really not experienced with these things.

ukn commented 3 years ago

Got the same problem after moving to kernel 5.4.0-62. I found this https://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg5671020.html

I temporarily commented out the line with CONFIG_CC_HAS_ASM_INLINE in /usr/src/linux-headers-$(uname -r)/include/generated/autoconf.h and complication worked.

addiks commented 3 years ago

Thank you very much. This did work for me.