• M
    scripts: modpost: fix compilation warning · fcd38ed0
    Michal Nazarewicz 提交于
    The scripts/mod/modpost.c triggers the following warning:
    
    scripts/mod/modpost.c: In function ‘remove_dot’:
    scripts/mod/modpost.c:1710:10: warning: ignoring return value of ‘strtoul’, declared with attribute warn_unused_result [-Wunused-result]
    
    The remove_dot function that calls strtoul does not care about the
    numeric value of the string that is parsed but only looks for the
    end of the numeric sequence.  As such, it's equivalent to just skip
    over all digits.
    Signed-off-by: NMichal Nazarewicz <mina86@mina86.com>
    Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
    fcd38ed0
modpost.c 56.9 KB