On Tue, Apr 22, 2025 at 02:04:45PM +0800, Qingfang Deng wrote:
Hi Greg and Sasha,
Please consider applying d2155fe54ddb ("mm: compaction: remove duplicate !list_empty(&sublist) check") to 5.10 and 5.4, as it resolves a -Wdangling-pointer warning in recent GCC versions:
In function '__list_cut_position', inlined from 'list_cut_position' at ./include/linux/list.h:400:3, inlined from 'move_freelist_tail' at mm/compaction.c:1241:3: ./include/linux/list.h:370:21: warning: storing the address of local variable 'sublist' in '*&freepage_6(D)->D.15621.D.15566.lru.next' [-Wdangling-pointer=]
All mm patches MUST get approval from the mm maintainers/developers before we can apply them to stable kernels.
Can you please do that here?
thanks,
greg k-h