• Steve French's avatar
    Elminate sparse __CHECK_ENDIAN__ warnings on port conversion · 6da97910
    Steve French authored
    Ports are __be16 not unsigned short int
    
    Eliminates the remaining fixable endian warnings:
    
    ~/cifs-2.6$ make modules C=1 M=fs/cifs CF=-D__CHECK_ENDIAN__
      CHECK   fs/cifs/connect.c
    fs/cifs/connect.c:2408:23: warning: incorrect type in assignment (different base types)
    fs/cifs/connect.c:2408:23:    expected unsigned short *sport
    fs/cifs/connect.c:2408:23:    got restricted __be16 *<noident>
    fs/cifs/connect.c:2410:23: warning: incorrect type in assignment (different base types)
    fs/cifs/connect.c:2410:23:    expected unsigned short *sport
    fs/cifs/connect.c:2410:23:    got restricted __be16 *<noident>
    fs/cifs/connect.c:2416:24: warning: incorrect type in assignment (different base types)
    fs/cifs/connect.c:2416:24:    expected unsigned short [unsigned] [short] <noident>
    fs/cifs/connect.c:2416:24:    got restricted __be16 [usertype] <noident>
    fs/cifs/connect.c:2423:24: warning: incorrect type in assignment (different base types)
    fs/cifs/connect.c:2423:24:    expected unsigned short [unsigned] [short] <noident>
    fs/cifs/connect.c:2423:24:    got restricted __be16 [usertype] <noident>
    fs/cifs/connect.c:2326:23: warning: incorrect type in assignment (different base types)
    fs/cifs/connect.c:2326:23:    expected unsigned short [unsigned] sport
    fs/cifs/connect.c:2326:23:    got restricted __be16 [usertype] sin6_port
    fs/cifs/connect.c:2330:23: warning: incorrect type in assignment (different base types)
    fs/cifs/connect.c:2330:23:    expected unsigned short [unsigned] sport
    fs/cifs/connect.c:2330:23:    got restricted __be16 [usertype] sin_port
    fs/cifs/connect.c:2394:22: warning: restricted __be16 degrades to integer
    Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
    6da97910
connect.c 97.2 KB