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

new kernel build failure - implicit declaration of function ‘page_index’

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

       

      A recently landed patch for LU-19179 appears to have broken build on linux 6.11.0:

      lustre/llite/vvp_io.c: In function ‘ll_account_page_dirtied’:
      lustre/llite/vvp_io.c:989:42: error: implicit declaration of function ‘page_index’; did you mean ‘pte_index’? [-Werror=implicit-function-declaration]
        989 |         __xa_set_mark(&mapping->i_pages, page_index(page),
            |                                          ^~~~~~~~~~
            |                                          pte_index

       

      This change:

      @@ -1001,7 +986,8 @@ static inline void ll_account_page_dirtied(struct page *page,
       #else
              vvp_account_page_dirtied(page, mapping);
       #endif
      -       ll_page_tag_dirty(page, mapping);
      +       __xa_set_mark(&mapping->i_pages, page_index(page),
      +                     PAGECACHE_TAG_DIRTY);
       }

       

      Attachments

        Issue Links

          Activity

            People

              simmonsja James A Simmons
              rread Robert Read
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: