• Jens Axboe's avatar
    do_mounts: only enable PARTUUID for CONFIG_BLOCK · 6d0aed7a
    Jens Axboe authored
    When CONFIG_BLOCK is not enabled:
    
    init/do_mounts.c:71: error: implicit declaration of function 'dev_to_part'
    init/do_mounts.c:71: warning: initialization makes pointer from integer without a cast
    init/do_mounts.c:73: error: dereferencing pointer to incomplete type
    init/do_mounts.c:76: error: dereferencing pointer to incomplete type
    init/do_mounts.c:76: error: dereferencing pointer to incomplete type
    init/do_mounts.c:102: error: implicit declaration of function 'part_pack_uuid'
    init/do_mounts.c:104: error: 'block_class' undeclared (first use in this function)
    Reported-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
    Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
    6d0aed7a
do_mounts.c 10.9 KB