[PATCH 19/37] staging/lustre: use 64-bit time for procfs output

Sudip Mukherjee sudipm.mukherjee at gmail.com
Thu Sep 24 05:10:09 UTC 2015


On Wed, Sep 23, 2015 at 09:13:42PM +0200, Arnd Bergmann wrote:
> This time is only printed in procfs, and can be easily converted
> to 64-bit to avoid overflowing on 32-bit systems in 2038.
> 
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
> ---
This introduces new build warnings:

drivers/staging/lustre/lustre/obdclass/lprocfs_status.c: In function ‘lprocfs_rd_timeouts’:
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c:894:10: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘time64_t’ [-Wformat=]
          "network", cur, worst, worstt, DHMS_VARS(&ts));
          ^
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c:906:11: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘time64_t’ [-Wformat=]
           cur, worst, worstt, DHMS_VARS(&ts));
           ^

regards
sudip


More information about the devel mailing list