• Sudip Mukherjee's avatar
    logfs: fix build warning · ce4f2fd7
    Sudip Mukherjee authored
    fs/logfs/dev_bdev.c: In function '__bdev_writeseg':
    include/linux/kernel.h:601:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
      (void) (&_min1 == &_min2);  \
    fs/logfs/dev_bdev.c:84:14: note: in  expansion of macro 'min'
      max_pages = min(nr_pages, BIO_MAX_PAGES);
    
    fs/logfs/dev_bdev.c: In function 'do_erase':
    include/linux/kernel.h:601:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
     (void) (&_min1 == &_min2);  \
    fs/logfs/dev_bdev.c:174:14: note: in expansion of macro 'min'
     max_pages = min(nr_pages, BIO_MAX_PAGES);
    
    Lets use min_t and mention the type.
    Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
    Cc: Joern Engel <joern@logfs.org>
    Cc: Prasad Joshi <prasadjoshi.linux@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    ce4f2fd7
dev_bdev.c 7.61 KB