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'

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

          [LU-14317] building lustre on arm64 hit warning: format '%llu' expects argument of type 'long long unsigned int'
          pjones Peter Jones added a comment -

          Landed for 2.14

          pjones Peter Jones added a comment - Landed for 2.14

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41191/
          Subject: LU-14317 ldiskfs: ‘%llu’ mismatch with type ‘long int’ on arm64
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: d8e1ad2cf36634ad8a0676b31a23d8b459247761

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41191/ Subject: LU-14317 ldiskfs: ‘%llu’ mismatch with type ‘long int’ on arm64 Project: fs/lustre-release Branch: master Current Patch Set: Commit: d8e1ad2cf36634ad8a0676b31a23d8b459247761

          Jian Yu (yujian@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/41191
          Subject: LU-14317 ldiskfs: ‘%llu’ mismatch with type ‘long int’ on arm64
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 475173d9e1b11e68e3aca5929751ff76c8bf5af1

          gerrit Gerrit Updater added a comment - Jian Yu (yujian@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/41191 Subject: LU-14317 ldiskfs: ‘%llu’ mismatch with type ‘long int’ on arm64 Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 475173d9e1b11e68e3aca5929751ff76c8bf5af1

          People

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

            Dates

              Created:
              Updated:
              Resolved: