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

incompatible pointer types passing 'struct fs_disk_quota *'

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.17.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      While lustre is building by clang (clang-18.1.3), an error reported below.

      [    0.000000] Linux version 6.8.0-49-generic-clang-2 (ubuntu@u2404-srv1) (Ubuntu clang version 18.1.3 (1ubuntu1), Ubuntu LLD 18.1.3) #4 SMP PREEMPT_DYNAMIC Thu Dec  5 14:18:20 UTC 2024 (Ubuntu 6.8.0-49.49-generic 6.8
      .12)
      
      $ sh ./autogen.sh
      $ ./configure CC=clang 'CFLAGS=-Wno-frame-address -Wno-incompatible-function-pointer-types' --with-linux=/home/ubuntu/linux-source-6.8.0/ LLVM=1
      
      - snip - 
      
        CC [M]  /home/ubuntu/lustre-release/lustre/osd-ldiskfs/osd_quota.o
      /home/ubuntu/lustre-release/lustre/osd-ldiskfs/osd_quota.c:137:38: error: incompatible pointer types passing 'struct fs_disk_quota *' to parameter of type 'struct qc_dqblk *' [-Werror,-Wincompatible-pointer-types]
        137 |         rc = sb->s_qcop->get_dqblk(sb, qid, dqblk);
            |                                             ^~~~~
      1 error generated.
      

      Attachments

        Activity

          People

            skoyama Sohei Koyama
            sihara Shuichi Ihara
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: