• Jaegeuk Kim's avatar
    f2fs: fix an endian conversion bug detected by sparse · 060dd67b
    Jaegeuk Kim authored
    This patch should fix the following bug reported by kbuild test robot.
    
    fs/f2fs/recovery.c:233:33: sparse: incorrect type in assignment
    (different base types)
    
    parse warnings: (new ones prefixed by >>)
    
    >> recovery.c:233: sparse: incorrect type in assignment (different base types)
       recovery.c:233:    expected unsigned int [unsigned] [assigned] ofs_in_node
       recovery.c:233:    got restricted __le16 [assigned] [usertype] ofs_in_node
    >> recovery.c:238: sparse: incorrect type in assignment (different base types)
       recovery.c:238:    expected unsigned int [unsigned] ofs_in_node
       recovery.c:238:    got restricted __le16 [assigned] [usertype] ofs_in_node
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
    060dd67b
recovery.c 10.8 KB