linux-can / can-utils

Linux-CAN / SocketCAN user space applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

installing on cent 7 64 bit fails

yannS2016 opened this issue · comments

i runthis command inside build folder

make CFLAGS='-std=c99

i got these errors

j1939cat.c:35:12: error: expected ‘;’ before ‘_min1’
  typeof(x) _min1 = (x);   \
            ^
j1939cat.c:431:13: note: in expansion of macro ‘min’
  buf_size = min(priv->max_transfer, count);
             ^
j1939cat.c:36:12: error: expected ‘;’ before ‘_min2’
  typeof(y) _min2 = (y);   \
            ^
j1939cat.c:431:13: note: in expansion of macro ‘min’
  buf_size = min(priv->max_transfer, count);
             ^
j1939cat.c:37:11: error: ‘_min1’ undeclared (first use in this function)
  (void) (&_min1 == &_min2);  \
           ^
j1939cat.c:431:13: note: in expansion of macro ‘min’
  buf_size = min(priv->max_transfer, count);
             ^
j1939cat.c:37:11: note: each undeclared identifier is reported only once for each function it appears in
  (void) (&_min1 == &_min2);  \
           ^
j1939cat.c:431:13: note: in expansion of macro ‘min’
  buf_size = min(priv->max_transfer, count);
             ^
j1939cat.c:37:21: error: ‘_min2’ undeclared (first use in this function)
  (void) (&_min1 == &_min2);  \
                     ^
j1939cat.c:431:13: note: in expansion of macro ‘min’
  buf_size = min(priv->max_transfer, count);
             ^
j1939cat.c:35:12: error: expected ‘;’ before ‘_min1’
  typeof(x) _min1 = (x);   \
            ^
j1939cat.c:455:13: note: in expansion of macro ‘min’
   to_read = min(buf_size, count);
             ^
j1939cat.c:36:12: error: expected ‘;’ before ‘_min2’
  typeof(y) _min2 = (y);   \
            ^
j1939cat.c:455:13: note: in expansion of macro ‘min’
   to_read = min(buf_size, count);
             ^
make: *** [j1939cat.o] Error 1
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o j1939spy.o j1939spy.c
cc   j1939spy.o libj1939.o   -o j1939spy
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o j1939sr.o j1939sr.c
cc   j1939sr.o libj1939.o   -o j1939sr
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o testj1939.o testj1939.c
cc   testj1939.o libj1939.o   -o testj1939
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE   slcan_attach.c   -o slcan_attach
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE   slcand.c   -o slcand
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o asc2log.o asc2log.c
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o lib.o lib.c
cc   asc2log.o lib.o   -o asc2log
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE   bcmserver.c   -o bcmserver
cc  calc-bit-timing/can-calc-bit-timing.o  -o can-calc-bit-timing
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o canbusload.o canbusload.c
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o canframelen.o canframelen.c
cc   canbusload.o canframelen.o   -o canbusload
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o candump.o candump.c
cc   candump.o lib.o   -o candump
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE   canfdtest.c   -o canfdtest
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o cangen.o cangen.c
cc   cangen.o lib.o   -o cangen
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o cansequence.o cansequence.c
cc   cansequence.o lib.o   -o cansequence
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o canlogserver.o canlogserver.c
cc   canlogserver.o lib.o   -o canlogserver
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o canplayer.o canplayer.c
cc   canplayer.o lib.o   -o canplayer
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o cansend.o cansend.c
cc   cansend.o lib.o   -o cansend
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE   cansniffer.c   -o cansniffer
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o log2asc.o log2asc.c
cc   log2asc.o lib.o   -o log2asc
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o log2long.o log2long.c
cc   log2long.o lib.o   -o log2long
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o mcp251xfd/mcp251xfd-dev-coredump.o mcp251xfd/mcp251xfd-dev-coredump.c
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o mcp251xfd/mcp251xfd-dump.o mcp251xfd/mcp251xfd-dump.c
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_con’:
mcp251xfd/mcp251xfd-dump.c:101:2: warning: implicit declaration of function ‘typeof’ [-Wimplicit-function-declaration]
  __dump_mask(val, MCP251XFD_REG_CON, TXBWS, "0x%02lx", "Transmit Bandwidth Sharing");
  ^
In file included from mcp251xfd/mcp251xfd-dump.c:9:0:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:101:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_CON, TXBWS, "0x%02lx", "Transmit Bandwidth Sharing");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:103:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_CON, REQOP, "0x%02lx", "Request Operation Mode");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:104:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_CON, OPMOD, "0x%02lx", "Operation Mode Status");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:112:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_CON, WFT, "0x%02lx", "Selectable Wake-up Filter Time");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:116:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_CON, DNCNT, "0x%02lx", "Device Net Filter Bit Number");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_nbtcfg’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:123:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_NBTCFG, BRP, "%3lu", "Baud Rate Prescaler");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:124:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_NBTCFG, TSEG1, "%3lu", "Time Segment 1 (Propagation Segment + Phase Segment 1)");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:125:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_NBTCFG, TSEG2, "%3lu", "Time Segment 2 (Phase Segment 2)");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:126:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_NBTCFG, SJW, "%3lu", "Synchronization Jump Width");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_dbtcfg’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:133:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_DBTCFG, BRP, "%3lu", "Baud Rate Prescaler");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:134:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_DBTCFG, TSEG1, "%3lu", "Time Segment 1 (Propagation Segment + Phase Segment 1)");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:135:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_DBTCFG, TSEG2, "%3lu", "Time Segment 2 (Phase Segment 2)");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:136:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_DBTCFG, SJW, "%3lu", "Synchronization Jump Width");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_tdc’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:145:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_TDC, TDCMOD, "0x%02lx", "Transmitter Delay Compensation Mode");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:146:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_TDC, TDCO, "0x%02lx", "Transmitter Delay Compensation Offset");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:147:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_TDC, TDCV, "0x%02lx", "Transmitter Delay Compensation Value");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_vec’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
mcp251xfd/mcp251xfd-dump.c:161:12: note: in expansion of macro ‘FIELD_GET’
  rx_code = FIELD_GET(MCP251XFD_REG_VEC_RXCODE_MASK, val);
            ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
mcp251xfd/mcp251xfd-dump.c:162:12: note: in expansion of macro ‘FIELD_GET’
  tx_code = FIELD_GET(MCP251XFD_REG_VEC_TXCODE_MASK, val);
            ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
mcp251xfd/mcp251xfd-dump.c:163:11: note: in expansion of macro ‘FIELD_GET’
  i_code = FIELD_GET(MCP251XFD_REG_VEC_ICODE_MASK, val);
           ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_intf’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:227:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, IVMI, "Invalid Message Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:227:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, IVMI, "Invalid Message Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:228:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, WAKI, "Bus Wake Up Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:228:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, WAKI, "Bus Wake Up Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:229:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, CERRI, "CAN Bus Error Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:229:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, CERRI, "CAN Bus Error Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:230:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, SERRI, "System Error Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:230:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, SERRI, "System Error Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:231:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, RXOVI, "Receive FIFO Overflow Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:231:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, RXOVI, "Receive FIFO Overflow Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:232:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, TXATI, "Transmit Attempt Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:232:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, TXATI, "Transmit Attempt Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:233:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, SPICRCI, "SPI CRC Error Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:233:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, SPICRCI, "SPI CRC Error Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:234:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, ECCI, "ECC Error Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:234:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, ECCI, "ECC Error Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:235:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, TEFI, "Transmit Event FIFO Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:235:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, TEFI, "Transmit Event FIFO Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:236:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, MODI, "Mode Change Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:236:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, MODI, "Mode Change Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:237:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, TBCI, "Time Base Counter Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:237:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, TBCI, "Time Base Counter Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:238:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, RXI, "Receive FIFO Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:238:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, RXI, "Receive FIFO Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:239:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, TXI, "Transmit FIFO Interrupt");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:214:2: note: in expansion of macro ‘pr_info’
  pr_info("\t" __stringify(bit) "\t%s\t%s\t%s\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:239:2: note: in expansion of macro ‘__dump_int’
  __dump_int(val, TXI, "Transmit FIFO Interrupt");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_trec’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:284:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_TREC, TEC, "%3lu", "Transmit Error Counter");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:285:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_TREC, REC, "%3lu", "Receive Error Counter");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_bdiag0’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:292:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_BDIAG0, DTERRCNT, "%3lu", "Data Bit Rate Transmit Error Counter");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:293:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_BDIAG0, DRERRCNT, "%3lu", "Data Bit Rate Receive Error Counter");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:294:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_BDIAG0, NTERRCNT, "%3lu", "Nominal Bit Rate Transmit Error Counter");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:295:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_BDIAG0, NRERRCNT, "%3lu", "Nominal Bit Rate Receive Error Counter");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_bdiag1’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:316:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_BDIAG1, EFMSGCNT, "%3lu", "Error Free Message Counter");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_osc’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:326:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_OSC, CLKODIV, "0x%02lu", "Clock Output Divisor");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_tefcon’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:355:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_TEFCON, FSIZE, "%3lu", "FIFO Size");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_fifocon’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:384:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_FIFOCON, PLSIZE, "%3lu", "Payload Size");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:385:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_FIFOCON, FSIZE, "%3lu", "FIFO Size");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:386:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_FIFOCON, TXAT, "%3lu", "Retransmission Attempts");
  ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:387:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_FIFOCON, TXPRI, "%3lu", "Message Transmit Priority");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_reg_fifosta’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:405:2: note: in expansion of macro ‘__dump_mask’
  __dump_mask(val, MCP251XFD_REG_FIFOSTA, FIFOCI, "%3lu", "FIFO Message Index");
  ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_regs’:
mcp251xfd/mcp251xfd-dump.c:444:2: error: unknown type name ‘typeof’
  __dump_call(regs, con);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:444:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, con);
              ^
mcp251xfd/mcp251xfd-dump.c:444:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, con);
  ^
mcp251xfd/mcp251xfd-dump.c:445:2: error: unknown type name ‘typeof’
  __dump_call(regs, nbtcfg);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:445:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, nbtcfg);
              ^
mcp251xfd/mcp251xfd-dump.c:445:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, nbtcfg);
  ^
mcp251xfd/mcp251xfd-dump.c:446:2: error: unknown type name ‘typeof’
  __dump_call(regs, dbtcfg);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:446:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, dbtcfg);
              ^
mcp251xfd/mcp251xfd-dump.c:446:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, dbtcfg);
  ^
mcp251xfd/mcp251xfd-dump.c:447:2: error: unknown type name ‘typeof’
  __dump_call(regs, tdc);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:447:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, tdc);
              ^
mcp251xfd/mcp251xfd-dump.c:447:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, tdc);
  ^
mcp251xfd/mcp251xfd-dump.c:448:2: error: unknown type name ‘typeof’
  __dump_call(regs, tbc);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:448:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, tbc);
              ^
mcp251xfd/mcp251xfd-dump.c:448:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, tbc);
  ^
mcp251xfd/mcp251xfd-dump.c:449:2: error: unknown type name ‘typeof’
  __dump_call(regs, vec);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:449:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, vec);
              ^
mcp251xfd/mcp251xfd-dump.c:449:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, vec);
  ^
mcp251xfd/mcp251xfd-dump.c:450:2: error: unknown type name ‘typeof’
  __dump_call(regs, intf);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:450:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, intf);
              ^
mcp251xfd/mcp251xfd-dump.c:450:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, intf);
  ^
mcp251xfd/mcp251xfd-dump.c:451:2: error: unknown type name ‘typeof’
  __dump_call(regs, rxif);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:451:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, rxif);
              ^
mcp251xfd/mcp251xfd-dump.c:451:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, rxif);
  ^
mcp251xfd/mcp251xfd-dump.c:452:2: error: unknown type name ‘typeof’
  __dump_call(regs, rxovif);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:452:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, rxovif);
              ^
mcp251xfd/mcp251xfd-dump.c:452:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, rxovif);
  ^
mcp251xfd/mcp251xfd-dump.c:453:2: error: unknown type name ‘typeof’
  __dump_call(regs, txif);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:453:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, txif);
              ^
mcp251xfd/mcp251xfd-dump.c:453:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, txif);
  ^
mcp251xfd/mcp251xfd-dump.c:454:2: error: unknown type name ‘typeof’
  __dump_call(regs, txatif);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:454:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, txatif);
              ^
mcp251xfd/mcp251xfd-dump.c:454:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, txatif);
  ^
mcp251xfd/mcp251xfd-dump.c:455:2: error: unknown type name ‘typeof’
  __dump_call(regs, txreq);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:455:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, txreq);
              ^
mcp251xfd/mcp251xfd-dump.c:455:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, txreq);
  ^
mcp251xfd/mcp251xfd-dump.c:456:2: error: unknown type name ‘typeof’
  __dump_call(regs, trec);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:456:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, trec);
              ^
mcp251xfd/mcp251xfd-dump.c:456:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, trec);
  ^
mcp251xfd/mcp251xfd-dump.c:457:2: error: unknown type name ‘typeof’
  __dump_call(regs, bdiag0);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:457:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, bdiag0);
              ^
mcp251xfd/mcp251xfd-dump.c:457:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, bdiag0);
  ^
mcp251xfd/mcp251xfd-dump.c:458:2: error: unknown type name ‘typeof’
  __dump_call(regs, bdiag1);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:458:14: error: expected ‘)’ before ‘regs’
  __dump_call(regs, bdiag1);
              ^
mcp251xfd/mcp251xfd-dump.c:458:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs, bdiag1);
  ^
mcp251xfd/mcp251xfd-dump.c:459:2: error: unknown type name ‘typeof’
  __dump_call(regs_mcp251xfd, osc);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:459:14: error: expected ‘)’ before ‘regs_mcp251xfd’
  __dump_call(regs_mcp251xfd, osc);
              ^
mcp251xfd/mcp251xfd-dump.c:459:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs_mcp251xfd, osc);
  ^
mcp251xfd/mcp251xfd-dump.c:460:2: error: unknown type name ‘typeof’
  __dump_call(regs_mcp251xfd, iocon);
  ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:460:14: error: expected ‘)’ before ‘regs_mcp251xfd’
  __dump_call(regs_mcp251xfd, iocon);
              ^
mcp251xfd/mcp251xfd-dump.c:460:2: note: in expansion of macro ‘__dump_call’
  __dump_call(regs_mcp251xfd, iocon);
  ^
mcp251xfd/mcp251xfd-dump.c:473:4: error: unknown type name ‘typeof’
    __dump_call(regs, tefcon);
    ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:473:16: error: expected ‘)’ before ‘regs’
    __dump_call(regs, tefcon);
                ^
mcp251xfd/mcp251xfd-dump.c:473:4: note: in expansion of macro ‘__dump_call’
    __dump_call(regs, tefcon);
    ^
mcp251xfd/mcp251xfd-dump.c:474:4: error: unknown type name ‘typeof’
    __dump_call(regs, tefsta);
    ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:474:16: error: expected ‘)’ before ‘regs’
    __dump_call(regs, tefsta);
                ^
mcp251xfd/mcp251xfd-dump.c:474:4: note: in expansion of macro ‘__dump_call’
    __dump_call(regs, tefsta);
    ^
mcp251xfd/mcp251xfd-dump.c:475:4: error: unknown type name ‘typeof’
    __dump_call(regs, tefua);
    ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:475:16: error: expected ‘)’ before ‘regs’
    __dump_call(regs, tefua);
                ^
mcp251xfd/mcp251xfd-dump.c:475:4: note: in expansion of macro ‘__dump_call’
    __dump_call(regs, tefua);
    ^
mcp251xfd/mcp251xfd-dump.c:482:4: error: unknown type name ‘typeof’
    __dump_call_fifo(fifocon, fifo[i].con);
    ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:432:66: error: expected ‘)’ before ‘regs’
  mcp251xfd_dump_reg_##reg(priv, regs->val, (u16)offsetof(typeof(*regs), val)); \
                                                                  ^
mcp251xfd/mcp251xfd-dump.c:482:4: note: in expansion of macro ‘__dump_call_fifo’
    __dump_call_fifo(fifocon, fifo[i].con);
    ^
mcp251xfd/mcp251xfd-dump.c:483:4: error: unknown type name ‘typeof’
    __dump_call_fifo(fifosta, fifo[i].sta);
    ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:432:66: error: expected ‘)’ before ‘regs’
  mcp251xfd_dump_reg_##reg(priv, regs->val, (u16)offsetof(typeof(*regs), val)); \
                                                                  ^
mcp251xfd/mcp251xfd-dump.c:483:4: note: in expansion of macro ‘__dump_call_fifo’
    __dump_call_fifo(fifosta, fifo[i].sta);
    ^
mcp251xfd/mcp251xfd-dump.c:484:4: error: unknown type name ‘typeof’
    __dump_call_fifo(fifoua, fifo[i].ua);
    ^
In file included from /usr/include/_G_config.h:15:0,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:74,
                 from include/linux/kernel.h:8,
                 from mcp251xfd/mcp251xfd-dump.c:9:
mcp251xfd/mcp251xfd-dump.c:432:66: error: expected ‘)’ before ‘regs’
  mcp251xfd_dump_reg_##reg(priv, regs->val, (u16)offsetof(typeof(*regs), val)); \
                                                                  ^
mcp251xfd/mcp251xfd-dump.c:484:4: note: in expansion of macro ‘__dump_call_fifo’
    __dump_call_fifo(fifoua, fifo[i].ua);
    ^
In file included from mcp251xfd/mcp251xfd-dump.c:9:0:
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_get_fifo_size’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
mcp251xfd/mcp251xfd-dump.c:499:13: note: in expansion of macro ‘FIELD_GET’
  obj_size = FIELD_GET(MCP251XFD_REG_FIFOCON_PLSIZE_MASK, regs_fifo->con);
             ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_get_fifo_obj_num’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
mcp251xfd/mcp251xfd-dump.c:553:12: note: in expansion of macro ‘FIELD_GET’
  obj_num = FIELD_GET(MCP251XFD_REG_FIFOCON_FSIZE_MASK, fifo->con);
            ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_get_chip_head’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
mcp251xfd/mcp251xfd-dump.c:592:9: note: in expansion of macro ‘FIELD_GET’
  return FIELD_GET(MCP251XFD_REG_FIFOSTA_FIFOCI_MASK,
         ^
mcp251xfd/mcp251xfd-dump.c: In function ‘mcp251xfd_dump_ring_obj_one’:
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:764:3: note: in expansion of macro ‘__dump_mask’
   __dump_mask(hw_tef_obj->flags, MCP251XFD_OBJ_FLAGS, SEQ, "0x%06lx", "Sequence");
   ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:766:3: note: in expansion of macro ‘__dump_mask’
   __dump_mask(hw_tx_obj->flags, MCP251XFD_OBJ_FLAGS, SEQ_MCP2517FD, "0x%06lx", "Sequence (MCP2517)");
   ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
include/linux/kernel.h:24:41: note: in expansion of macro ‘FIELD_GET’
 #define pr_info(...) fprintf(stdout, ## __VA_ARGS__)
                                         ^
mcp251xfd/mcp251xfd-dump.c:92:2: note: in expansion of macro ‘pr_info’
  pr_info("%16s = " fmt "\t\t%s\n", \
  ^
mcp251xfd/mcp251xfd-dump.c:767:3: note: in expansion of macro ‘__dump_mask’
   __dump_mask(hw_tx_obj->flags, MCP251XFD_OBJ_FLAGS, SEQ_MCP2518FD, "0x%06lx", "Sequence (MCP2518)");
   ^
include/linux/kernel.h:77:18: error: called object is not a function or function pointer
   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
                  ^
mcp251xfd/mcp251xfd-dump.c:780:9: note: in expansion of macro ‘FIELD_GET’
   dlc = FIELD_GET(MCP251XFD_OBJ_FLAGS_DLC, hw_rx_obj->flags);
         ^
make: *** [mcp251xfd/mcp251xfd-dump.o] Error 1
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o mcp251xfd/mcp251xfd-main.o mcp251xfd/mcp251xfd-main.c
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o mcp251xfd/mcp251xfd-regmap.o mcp251xfd/mcp251xfd-regmap.c
cc -std=c99 -I. -Iinclude -DAF_CAN=PF_CAN -DPF_CAN=29 -DSO_RXQ_OVFL=40 -DSCM_TIMESTAMPING_OPT_STATS=54 -DCLOCK_TAI=11 -DSO_TXTIME=61 -DSCM_TXTIME=SO_TXTIME -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -c -o slcanpty.o slcanpty.c
cc   slcanpty.o lib.o   -o slcanpty
make: Target `all' not remade because of errors.
[ess-dev@localhost can-utils]$
i runthis command inside build folder
make CFLAGS='-std=c99

can-utils supports several build systems, use only one of them:

  1. make
  2. configure && make
  3. mkdir build && cd build && cmake -GNinja .. && ninja

i started by just running make but it return error asking to add -std=c99
after that i got there errors i posted. am running centos 7, is there s specify compilier or underlying libraries missing?

run ./autogen
run./configure
run make
can-utils]$ make
  CC       lib.lo
  CC       canframelen.lo
  CCLD     libcan.la
  CC       libj1939.lo
  CCLD     libj1939.la
  CC       asc2log.o
  CCLD     asc2log
  CC       bcmserver.o
  CCLD     bcmserver
  CC       calc-bit-timing/can-calc-bit-timing.o
  CCLD     can-calc-bit-timing
  CC       canbusload.o
  CCLD     canbusload
  CC       candump.o
  CCLD     candump
  CC       canfdtest.o
  CCLD     canfdtest
  CC       cangen.o
cangen.c: In function ‘parse_dataoptarg’:
cangen.c:422:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
  for (int i = 0; i < CANFD_MAX_DLEN && i < arglen / 2; i++) {
  ^
cangen.c:422:2: note: use option -std=c99 or -std=gnu99 to compile your code
cangen.c: In function ‘main’:
cangen.c:796:4: error: ‘for’ loop initial declarations are only allowed in C99 mode
    for (int i = 0; i < frame.len; i++) {
    ^
make: *** [cangen.o] Error 1

I've pushed a fix to master, please retry.

getting the same issue

cangen.c: In function ‘main’:
cangen.c:797:4: error: ‘for’ loop initial declarations are only allowed in C99 mode
    for (int i = 0; i < frame.len; i++) {
    ^
cangen.c:797:4: note: use option -std=c99 or -std=gnu99 to compile your code
make: *** [cangen.o] Error 1

i added -std=gnu99, as make CFLAGS='-std=gnu99' and it compiled!

Sorry, try again.