The patch titled Subject: fix-shmem-huge-page-failed-to-set-f_seal_write-attribute-problem-fix has been added to the -mm tree. Its filename is fix-shmem-huge-page-failed-to-set-f_seal_write-attribute-problem-fix.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/fix-shmem-huge-page-failed-to-set-f_seal_write-attribute-problem-fix.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/fix-shmem-huge-page-failed-to-set-f_seal_write-attribute-problem-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: fix-shmem-huge-page-failed-to-set-f_seal_write-attribute-problem-fix fix clang warning mm/memfd.c:80:2: warning: Value stored to 'count' is never read [clang-analyzer-deadcode.DeadStores] Link: https://lkml.kernel.org/r/621a57b7.EM2OYvmyAaNzq+Ta%25lkp@xxxxxxxxx Cc: Hugh Dickins <hughd@xxxxxxxxxx> Cc: Kirill A. Shutemov <kirill@xxxxxxxxxxxxx> Cc: Mike Kravetz <mike.kravetz@xxxxxxxxxx> Cc: Song Liu <songliubraving@xxxxxx> Cc: wangyong <wang.yong12@xxxxxxxxxx> Cc: Yang Yang <yang.yang29@xxxxxxxxxx> Cc: Zeal Robot <zealci@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memfd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/mm/memfd.c~fix-shmem-huge-page-failed-to-set-f_seal_write-attribute-problem-fix +++ a/mm/memfd.c @@ -72,12 +72,11 @@ static int memfd_wait_for_pins(struct ad { XA_STATE(xas, &mapping->i_pages, 0); struct page *page; - int error, scan, count; + int error, scan; memfd_tag_pins(&xas); error = 0; - count = 0; for (scan = 0; scan <= LAST_SCAN; scan++) { unsigned int tagged = 0; @@ -93,6 +92,8 @@ static int memfd_wait_for_pins(struct ad xas_lock_irq(&xas); xas_for_each_marked(&xas, page, ULONG_MAX, MEMFD_TAG_PINNED) { bool clear = true; + int count; + if (xa_is_value(page)) continue; _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are remove-bdi_congested-and-wb_congested-and-related-functions-fix.patch mm.patch documentation-vm-page_ownerrst-update-the-documentation-fix.patch x86-mm-enable-arch_has_vm_get_page_prot-fix.patch fix-shmem-huge-page-failed-to-set-f_seal_write-attribute-problem-fix.patch mm-hwpoison-inject-support-injecting-hwpoison-to-free-page-fix.patch mm-mempolicy-convert-from-atomic_t-to-refcount_t-on-mempolicy-refcnt-fix.patch mm-handle-uninitialized-numa-nodes-gracefully-fix.patch mm-memory_hotplug-remove-obsolete-comment-of-__add_pages-fix.patch proc-alloc-path_max-bytes-for-proc-pid-fd-symlinks-fix.patch linux-next-rejects.patch linux-next-git-rejects.patch drivers-gpu-drm-dp-drm_dpc-fix-build.patch kasan-improve-vmalloc-tests-fix-3-fix.patch mutex-subsystem-synchro-test-module-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch