Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-14317

building lustre on arm64 hit warning: format '%llu' expects argument of type 'long long unsigned int'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.14.0
    • Lustre 2.14.0
    • None
    • Arch: arm64
    • 3
    • 9223372036854775807

    Description

      While building Lustre master branch on an arm64 node, I hit the following warnings:

        CC [M]  /home/exabuild/lustre-release/ldiskfs/mballoc.o
      /home/exabuild/lustre-release/ldiskfs/mballoc.c: In function 'mb_seq_alloc_show':
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:2677:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'long int' [-Wformat=]
        seq_printf(seq, "\tuseless_c1_loops: %llu\n",
                                             ~~~^
                                             %lu
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:2679:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'long int' [-Wformat=]
        seq_printf(seq, "\tuseless_c2_loops: %llu\n",
                                             ~~~^
                                             %lu
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:2681:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'long int' [-Wformat=]
        seq_printf(seq, "\tuseless_c3_loops: %llu\n",
                                             ~~~^
                                             %lu
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:2683:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'long int' [-Wformat=]
        seq_printf(seq, "\tskipped_c1_loops: %llu\n",
                                             ~~~^
                                             %lu
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:2685:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'long int' [-Wformat=]
        seq_printf(seq, "\tskipped_c2_loops: %llu\n",
                                             ~~~^
                                             %lu
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:2687:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'long int' [-Wformat=]
        seq_printf(seq, "\tskipped_c3_loops: %llu\n",
                                             ~~~^
                                             %lu
      In file included from /home/exabuild/lustre-release/ldiskfs/ldiskfs_jbd2.h:17,
                       from /home/exabuild/lustre-release/ldiskfs/mballoc.c:12:
      /home/exabuild/lustre-release/ldiskfs/mballoc.c: In function 'ldiskfs_mb_release':
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:3180:4: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'long int' [-Wformat=]
          "mballoc: (%llu, %llu, %llu) useless c(0,1,2) loops",
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/exabuild/lustre-release/ldiskfs/ldiskfs.h:2778:27: note: in definition of macro 'ldiskfs_msg'
        __ldiskfs_msg(sb, level, fmt, ##__VA_ARGS__)
                                 ^~~
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:3180:4: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'long int' [-Wformat=]
          "mballoc: (%llu, %llu, %llu) useless c(0,1,2) loops",
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/exabuild/lustre-release/ldiskfs/ldiskfs.h:2778:27: note: in definition of macro 'ldiskfs_msg'
        __ldiskfs_msg(sb, level, fmt, ##__VA_ARGS__)
                                 ^~~
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:3180:4: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'long int' [-Wformat=]
          "mballoc: (%llu, %llu, %llu) useless c(0,1,2) loops",
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/exabuild/lustre-release/ldiskfs/ldiskfs.h:2778:27: note: in definition of macro 'ldiskfs_msg'
        __ldiskfs_msg(sb, level, fmt, ##__VA_ARGS__)
                                 ^~~
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:3185:4: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'long int' [-Wformat=]
          "mballoc: (%llu, %llu, %llu) skipped c(0,1,2) loops",
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/exabuild/lustre-release/ldiskfs/ldiskfs.h:2778:27: note: in definition of macro 'ldiskfs_msg'
        __ldiskfs_msg(sb, level, fmt, ##__VA_ARGS__)
                                 ^~~
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:3185:4: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'long int' [-Wformat=]
          "mballoc: (%llu, %llu, %llu) skipped c(0,1,2) loops",
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/exabuild/lustre-release/ldiskfs/ldiskfs.h:2778:27: note: in definition of macro 'ldiskfs_msg'
        __ldiskfs_msg(sb, level, fmt, ##__VA_ARGS__)
                                 ^~~
      /home/exabuild/lustre-release/ldiskfs/mballoc.c:3185:4: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'long int' [-Wformat=]
          "mballoc: (%llu, %llu, %llu) skipped c(0,1,2) loops",
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/exabuild/lustre-release/ldiskfs/ldiskfs.h:2778:27: note: in definition of macro 'ldiskfs_msg'
        __ldiskfs_msg(sb, level, fmt, ##__VA_ARGS__)
                                 ^~~
      

      Attachments

        Activity

          People

            yujian Jian Yu
            yujian Jian Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: