• Arnd Bergmann's avatar
    IB/hns: include linux/module.h · 3ecc16c8
    Arnd Bergmann authored
    I ran into a build error on arm64 randconfig testing:
    
    infiniband/hw/hns/hns_roce_main.c:539:1: error: data definition has no type or storage class [-Werror]
    infiniband/hw/hns/hns_roce_main.c:539:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int]
    infiniband/hw/hns/hns_roce_main.c:539:1: error: parameter names (without types) in function declaration [-Werror]
    infiniband/hw/hns/hns_roce_main.c:979:226: error: data definition has no type or storage class [-Werror]
    infiniband/hw/hns/hns_roce_main.c:979:226: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
    infiniband/hw/hns/hns_roce_main.c:979:1: error: parameter names (without types) in function declaration [-Werror]
    
    Including the module.h makes it build again.
    
    Fixes: 9a443537 ("IB/hns: Add driver files for hns RoCE driver")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    3ecc16c8
hns_roce_main.c 25.2 KB