Makefile:1411: *** insufficient number of arguments (1) to function 'addprefix'.  Stop.
make[1]: Entering directory '/usr/src/kernel-5.3.11-server-1.mga7'
Makefile:213: ================= WARNING ================
Makefile:214: 'SUBDIRS' will be removed after Linux 5.3
Makefile:215: 
Makefile:216: If you are building an individual subdirectory
Makefile:217: in the kernel tree, you can do like this:
Makefile:218: $ make path/to/dir/you/want/to/build/
Makefile:219: (Do not forget the trailing slash)
Makefile:220: 
Makefile:221: If you are building an external module,
Makefile:222: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:223: ==========================================
  CC [M]  /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.o
In file included from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c:6:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c: In function ‘pcicfg_read_byte’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:211:30: warning: implicit declaration of function ‘pci_get_bus_and_slot’; did you mean ‘pci_get_domain_bus_and_slot’? [-Wimplicit-function-declaration]
 #define HPT_FIND_SLOT_DEVICE pci_get_bus_and_slot
                              ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c:259:28: note: in expansion of macro ‘HPT_FIND_SLOT_DEVICE’
  struct pci_dev *pPciDev = HPT_FIND_SLOT_DEVICE(bus, PCI_DEVFN(dev,func));
                            ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:211:30: warning: initialization of ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 #define HPT_FIND_SLOT_DEVICE pci_get_bus_and_slot
                              ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c:259:28: note: in expansion of macro ‘HPT_FIND_SLOT_DEVICE’
  struct pci_dev *pPciDev = HPT_FIND_SLOT_DEVICE(bus, PCI_DEVFN(dev,func));
                            ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c: In function ‘pcicfg_read_word’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:211:30: warning: initialization of ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 #define HPT_FIND_SLOT_DEVICE pci_get_bus_and_slot
                              ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c:268:28: note: in expansion of macro ‘HPT_FIND_SLOT_DEVICE’
  struct pci_dev *pPciDev = HPT_FIND_SLOT_DEVICE(bus, PCI_DEVFN(dev,func));
                            ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c: In function ‘pcicfg_read_dword’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:211:30: warning: initialization of ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 #define HPT_FIND_SLOT_DEVICE pci_get_bus_and_slot
                              ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c:277:28: note: in expansion of macro ‘HPT_FIND_SLOT_DEVICE’
  struct pci_dev *pPciDev = HPT_FIND_SLOT_DEVICE(bus, PCI_DEVFN(dev,func));
                            ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c: In function ‘pcicfg_write_byte’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:211:30: warning: initialization of ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 #define HPT_FIND_SLOT_DEVICE pci_get_bus_and_slot
                              ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c:286:28: note: in expansion of macro ‘HPT_FIND_SLOT_DEVICE’
  struct pci_dev *pPciDev = HPT_FIND_SLOT_DEVICE(bus, PCI_DEVFN(dev,func));
                            ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c: In function ‘pcicfg_write_word’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:211:30: warning: initialization of ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 #define HPT_FIND_SLOT_DEVICE pci_get_bus_and_slot
                              ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c:293:28: note: in expansion of macro ‘HPT_FIND_SLOT_DEVICE’
  struct pci_dev *pPciDev = HPT_FIND_SLOT_DEVICE(bus, PCI_DEVFN(dev,func));
                            ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c: In function ‘pcicfg_write_dword’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:211:30: warning: initialization of ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 #define HPT_FIND_SLOT_DEVICE pci_get_bus_and_slot
                              ^~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/os_linux.c:300:28: note: in expansion of macro ‘HPT_FIND_SLOT_DEVICE’
  struct pci_dev *pPciDev = HPT_FIND_SLOT_DEVICE(bus, PCI_DEVFN(dev,func));
                            ^~~~~~~~~~~~~~~~~~~~
  CC [M]  /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.o
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c: In function ‘hpt_detect’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:411:10: warning: implicit declaration of function ‘scsi_register’; did you mean ‘bus_register’? [-Wimplicit-function-declaration]
   host = scsi_register(tpnt, sizeof(void *));
          ^~~~~~~~~~~~~
          bus_register
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:411:8: warning: assignment to ‘struct Scsi_Host *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   host = scsi_register(tpnt, sizeof(void *));
        ^
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c: In function ‘hpt_release’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:1676:2: warning: implicit declaration of function ‘scsi_unregister’; did you mean ‘bus_unregister’? [-Wimplicit-function-declaration]
  scsi_unregister(host);
  ^~~~~~~~~~~~~~~
  bus_unregister
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c: In function ‘hpt_do_disk_ioctl’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:1996:73: error: macro "access_ok" passed 3 arguments, but takes just 2
   if ( hpt_verify_area(VERIFY_READ, (void *)(HPT_UPTR)(arg+40), copydata)
                                                                         ^
In file included from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:193:45: error: ‘access_ok’ undeclared (first use in this function)
 #define hpt_verify_area(type, addr, size) (!access_ok((type), (addr), (size)))
                                             ^~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:1996:8: note: in expansion of macro ‘hpt_verify_area’
   if ( hpt_verify_area(VERIFY_READ, (void *)(HPT_UPTR)(arg+40), copydata)
        ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:193:45: note: each undeclared identifier is reported only once for each function it appears in
 #define hpt_verify_area(type, addr, size) (!access_ok((type), (addr), (size)))
                                             ^~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:1996:8: note: in expansion of macro ‘hpt_verify_area’
   if ( hpt_verify_area(VERIFY_READ, (void *)(HPT_UPTR)(arg+40), copydata)
        ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2026:78: error: macro "access_ok" passed 3 arguments, but takes just 2
   if (hpt_verify_area(VERIFY_WRITE, (void * )(HPT_UPTR)(arg+offset), copydata) ||
                                                                              ^
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c: At top level:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2120:2: error: ‘Scsi_Host_Template’ {aka ‘struct scsi_host_template’} has no member named ‘detect’
  detect:                  hpt_detect,
  ^~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2120:27: warning: initialization of ‘const char * (*)(struct Scsi_Host *)’ from incompatible pointer type ‘int (*)(Scsi_Host_Template *)’ {aka ‘int (*)(struct scsi_host_template *)’} [-Wincompatible-pointer-types]
  detect:                  hpt_detect,
                           ^~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2120:27: note: (near initialization for ‘driver_template.info’)
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2121:2: error: ‘Scsi_Host_Template’ {aka ‘struct scsi_host_template’} has no member named ‘release’
  release:                 hpt_release,
  ^~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2121:27: warning: initialization of ‘int (*)(struct scsi_device *, unsigned int,  void *)’ from incompatible pointer type ‘int (*)(struct Scsi_Host *)’ [-Wincompatible-pointer-types]
  release:                 hpt_release,
                           ^~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2121:27: note: (near initialization for ‘driver_template.ioctl’)
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2125:27: warning: initialization of ‘int (*)(struct scsi_device *, unsigned int,  void *)’ from incompatible pointer type ‘int (*)(Scsi_Device *, int,  void *)’ {aka ‘int (*)(struct scsi_device *, int,  void *)’} [-Wincompatible-pointer-types]
  ioctl:                   hpt_scsi_ioctl,
                           ^~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2125:27: note: (near initialization for ‘driver_template.ioctl’)
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2132:2: error: ‘Scsi_Host_Template’ {aka ‘struct scsi_host_template’} has no member named ‘use_clustering’
  use_clustering:          DISABLE_CLUSTERING,
  ^~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2132:27: error: ‘DISABLE_CLUSTERING’ undeclared here (not in a function); did you mean ‘DISABLE_K6_MTRR’?
  use_clustering:          DISABLE_CLUSTERING,
                           ^~~~~~~~~~~~~~~~~~
                           DISABLE_K6_MTRR
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c: In function ‘init_this_scsi_driver’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2168:10: error: ‘struct scsi_host_template’ has no member named ‘release’
  if (!sht->release) {
          ^~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2176:21: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  INIT_LIST_HEAD(&sht->legacy_hosts);
                     ^~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2178:5: error: ‘struct scsi_host_template’ has no member named ‘detect’
  sht->detect(sht);
     ^~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2179:21: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  if (list_empty(&sht->legacy_hosts))
                     ^~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:33: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
                                 ^~
./include/linux/kernel.h:972:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:577:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member); \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:33: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
                                 ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:577:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member); \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:577:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member); \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:33: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
                                 ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:974:6: note: in expansion of macro ‘__same_type’
     !__same_type(*(ptr), void),   \
      ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:577:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member); \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:577:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member); \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:578:11: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
       &pos->member != (head);     \
           ^~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:33: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
                                 ^~
./include/linux/list.h:578:24: note: in definition of macro ‘list_for_each_entry’
       &pos->member != (head);     \
                        ^~~~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/kernel.h:972:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:579:13: note: in expansion of macro ‘list_next_entry’
       pos = list_next_entry(pos, member))
             ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:579:13: note: in expansion of macro ‘list_next_entry’
       pos = list_next_entry(pos, member))
             ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:579:13: note: in expansion of macro ‘list_next_entry’
       pos = list_next_entry(pos, member))
             ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:974:6: note: in expansion of macro ‘__same_type’
     !__same_type(*(ptr), void),   \
      ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:579:13: note: in expansion of macro ‘list_next_entry’
       pos = list_next_entry(pos, member))
             ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:579:13: note: in expansion of macro ‘list_next_entry’
       pos = list_next_entry(pos, member))
             ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2182:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) {
  ^~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2190:12: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  l = &shost->sht_legacy_list;
            ^~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2191:30: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  while ((l = l->prev) != &sht->legacy_hosts)
                              ^~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2192:20: note: in expansion of macro ‘list_entry’
   scsi_remove_host(list_entry(l, struct Scsi_Host, sht_legacy_list));
                    ^~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2192:20: note: in expansion of macro ‘list_entry’
   scsi_remove_host(list_entry(l, struct Scsi_Host, sht_legacy_list));
                    ^~~~~~~~~~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c: In function ‘exit_this_scsi_driver’:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:33: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
                                 ^~
./include/linux/kernel.h:972:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:577:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member); \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:33: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
                                 ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:577:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member); \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:577:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member); \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:33: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
                                 ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:974:6: note: in expansion of macro ‘__same_type’
     !__same_type(*(ptr), void),   \
      ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:577:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member); \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:577:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member); \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:578:11: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
       &pos->member != (head);     \
           ^~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:33: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
                                 ^~
./include/linux/list.h:578:24: note: in definition of macro ‘list_for_each_entry’
       &pos->member != (head);     \
                        ^~~~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/kernel.h:972:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:579:13: note: in expansion of macro ‘list_next_entry’
       pos = list_next_entry(pos, member))
             ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:579:13: note: in expansion of macro ‘list_next_entry’
       pos = list_next_entry(pos, member))
             ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:579:13: note: in expansion of macro ‘list_next_entry’
       pos = list_next_entry(pos, member))
             ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:974:6: note: in expansion of macro ‘__same_type’
     !__same_type(*(ptr), void),   \
      ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:579:13: note: in expansion of macro ‘list_next_entry’
       pos = list_next_entry(pos, member))
             ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:579:13: note: in expansion of macro ‘list_next_entry’
       pos = list_next_entry(pos, member))
             ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2201:2: note: in expansion of macro ‘list_for_each_entry’
  list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:41: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
                                         ^~
./include/linux/kernel.h:972:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:664:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member), \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:41: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
                                         ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:664:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member), \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:664:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member), \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:41: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
                                         ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:974:6: note: in expansion of macro ‘__same_type’
     !__same_type(*(ptr), void),   \
      ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:664:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member), \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:664:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member), \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/kernel.h:972:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:665:7: note: in expansion of macro ‘list_next_entry’
   n = list_next_entry(pos, member);   \
       ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:665:7: note: in expansion of macro ‘list_next_entry’
   n = list_next_entry(pos, member);   \
       ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:665:7: note: in expansion of macro ‘list_next_entry’
   n = list_next_entry(pos, member);   \
       ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:974:6: note: in expansion of macro ‘__same_type’
     !__same_type(*(ptr), void),   \
      ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:665:7: note: in expansion of macro ‘list_next_entry’
   n = list_next_entry(pos, member);   \
       ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:665:7: note: in expansion of macro ‘list_next_entry’
   n = list_next_entry(pos, member);   \
       ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:664:57: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  for (pos = list_first_entry(head, typeof(*pos), member), \
                                                         ^
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/list.h:666:11: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
       &pos->member != (head);      \
           ^~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:41: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
                                         ^~
./include/linux/list.h:666:24: note: in definition of macro ‘list_for_each_entry_safe’
       &pos->member != (head);      \
                        ^~~~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/kernel.h:972:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:667:20: note: in expansion of macro ‘list_next_entry’
       pos = n, n = list_next_entry(n, member))
                    ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:667:20: note: in expansion of macro ‘list_next_entry’
       pos = n, n = list_next_entry(n, member))
                    ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:667:20: note: in expansion of macro ‘list_next_entry’
       pos = n, n = list_next_entry(n, member))
                    ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:974:6: note: in expansion of macro ‘__same_type’
     !__same_type(*(ptr), void),   \
      ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:667:20: note: in expansion of macro ‘list_next_entry’
       pos = n, n = list_next_entry(n, member))
                    ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:667:20: note: in expansion of macro ‘list_next_entry’
       pos = n, n = list_next_entry(n, member))
                    ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2203:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2204:6: error: ‘struct scsi_host_template’ has no member named ‘release’
   sht->release(shost);
      ^~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2206:21: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  if (list_empty(&sht->legacy_hosts))
                     ^~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:41: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
                                         ^~
./include/linux/kernel.h:972:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:664:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member), \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:41: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
                                         ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:664:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member), \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:664:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member), \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:41: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
                                         ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:974:6: note: in expansion of macro ‘__same_type’
     !__same_type(*(ptr), void),   \
      ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:664:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member), \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:490:2: note: in expansion of macro ‘list_entry’
  list_entry((ptr)->next, type, member)
  ^~~~~~~~~~
./include/linux/list.h:664:13: note: in expansion of macro ‘list_first_entry’
  for (pos = list_first_entry(head, typeof(*pos), member), \
             ^~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/kernel.h:972:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:665:7: note: in expansion of macro ‘list_next_entry’
   n = list_next_entry(pos, member);   \
       ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:665:7: note: in expansion of macro ‘list_next_entry’
   n = list_next_entry(pos, member);   \
       ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:665:7: note: in expansion of macro ‘list_next_entry’
   n = list_next_entry(pos, member);   \
       ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:974:6: note: in expansion of macro ‘__same_type’
     !__same_type(*(ptr), void),   \
      ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:665:7: note: in expansion of macro ‘list_next_entry’
   n = list_next_entry(pos, member);   \
       ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:665:7: note: in expansion of macro ‘list_next_entry’
   n = list_next_entry(pos, member);   \
       ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:664:57: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  for (pos = list_first_entry(head, typeof(*pos), member), \
                                                         ^
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/list.h:666:11: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
       &pos->member != (head);      \
           ^~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:41: error: ‘struct scsi_host_template’ has no member named ‘legacy_hosts’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
                                         ^~
./include/linux/list.h:666:24: note: in definition of macro ‘list_for_each_entry_safe’
       &pos->member != (head);      \
                        ^~~~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/kernel.h:972:26: note: in definition of macro ‘container_of’
  void *__mptr = (void *)(ptr);     \
                          ^~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:667:20: note: in expansion of macro ‘list_next_entry’
       pos = n, n = list_next_entry(n, member))
                    ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/export.h:45,
                 from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/osm/linux/osm_linux.h:23,
                 from /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:6:
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:667:20: note: in expansion of macro ‘list_next_entry’
       pos = n, n = list_next_entry(n, member))
                    ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:51: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                   ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:20: note: in expansion of macro ‘__same_type’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                    ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:667:20: note: in expansion of macro ‘list_next_entry’
       pos = n, n = list_next_entry(n, member))
                    ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/list.h:523:18: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
  list_entry((pos)->member.next, typeof(*(pos)), member)
                  ^~
./include/linux/compiler.h:330:9: note: in definition of macro ‘__compiletime_assert’
   if (!(condition))     \
         ^~~~~~~~~
./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:973:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
  ^~~~~~~~~~~~~~~~
./include/linux/kernel.h:974:6: note: in expansion of macro ‘__same_type’
     !__same_type(*(ptr), void),   \
      ^~~~~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:667:20: note: in expansion of macro ‘list_next_entry’
       pos = n, n = list_next_entry(n, member))
                    ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
././include/linux/compiler_types.h:129:35: error: ‘struct Scsi_Host’ has no member named ‘sht_legacy_list’
 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
                                   ^~~~~~~~~~~~~~~~~~
./include/linux/stddef.h:17:32: note: in expansion of macro ‘__compiler_offsetof’
 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                ^~~~~~~~~~~~~~~~~~~
./include/linux/kernel.h:976:21: note: in expansion of macro ‘offsetof’
  ((type *)(__mptr - offsetof(type, member))); })
                     ^~~~~~~~
./include/linux/list.h:479:2: note: in expansion of macro ‘container_of’
  container_of(ptr, type, member)
  ^~~~~~~~~~~~
./include/linux/list.h:523:2: note: in expansion of macro ‘list_entry’
  list_entry((pos)->member.next, typeof(*(pos)), member)
  ^~~~~~~~~~
./include/linux/list.h:667:20: note: in expansion of macro ‘list_next_entry’
       pos = n, n = list_next_entry(n, member))
                    ^~~~~~~~~~~~~~~
/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.c:2212:2: note: in expansion of macro ‘list_for_each_entry_safe’
  list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list)
  ^~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:281: /home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build/osm_linux.o] Error 1
make[1]: *** [Makefile:1620: _module_/home/qchen/Softwares/yurac-rr64x-683e01f6f17b/product/rr64x/linux/.build] Error 2
make[1]: Leaving directory '/usr/src/kernel-5.3.11-server-1.mga7'
make: *** [../../../inc/linux/Makefile.def:111: rr64x.ko] Error 2
