• Arnd Bergmann's avatar
    [media] b2c2: use IS_REACHABLE() instead of open-coding it · 30f895a9
    Arnd Bergmann authored
    The FE_SUPPORTED() macro is basically the same as IS_REACHABLE, except
    that it causes a warning with gcc-7:
    
    common/b2c2/flexcop-fe-tuner.c:30:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
    common/b2c2/flexcop-fe-tuner.c:30:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
    common/b2c2/flexcop-fe-tuner.c:30:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
    
    Using IS_REACHABLE() to define it avoids the warning.
    
    Fixes: 3785bc17 ("[media] b2c2: break it into common/pci/usb directories")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
    30f895a9
flexcop-fe-tuner.c 16.9 KB