linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: linux-next: Tree for Jul 4 (mm/memory-failure.c)
       [not found] <20220704182112.6c151e04@canb.auug.org.au>
@ 2022-07-04 22:03 ` Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2022-07-04 22:03 UTC (permalink / raw)
  To: Stephen Rothwell, Linux Next Mailing List
  Cc: Linux Kernel Mailing List, linux-mm, Naoya Horiguchi, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 2666 bytes --]



On 7/4/22 01:21, Stephen Rothwell wrote:
> Hi all,
> 
> Changes since 20220701:
> 

on i386 or x86_64:

In file included from ../include/linux/mmzone.h:21,
                 from ../include/linux/gfp.h:6,
                 from ../include/linux/mm.h:7,
                 from ../mm/memory-failure.c:37:
../mm/memory-failure.c: In function ‘raw_hwp_list_head’:
../mm/memory-failure.c:1685:59: error: ‘SUBPAGE_INDEX_HWPOISON’ undeclared (first use in this function)
 1685 |         return (struct llist_head *)&page_private(hpage + SUBPAGE_INDEX_HWPOISON);
      |                                                           ^~~~~~~~~~~~~~~~~~~~~~
../include/linux/mm_types.h:334:43: note: in definition of macro ‘page_private’
  334 | #define page_private(page)              ((page)->private)
      |                                           ^~~~
../mm/memory-failure.c:1685:59: note: each undeclared identifier is reported only once for each function it appears in
 1685 |         return (struct llist_head *)&page_private(hpage + SUBPAGE_INDEX_HWPOISON);
      |                                                           ^~~~~~~~~~~~~~~~~~~~~~
../include/linux/mm_types.h:334:43: note: in definition of macro ‘page_private’
  334 | #define page_private(page)              ((page)->private)
      |                                           ^~~~
../mm/memory-failure.c: At top level:
../mm/memory-failure.c:1888:20: error: conflicting types for ‘free_raw_hwp_pages’; have ‘void(struct page *, bool)’ {aka ‘void(struct page *, _Bool)’}
 1888 | static inline void free_raw_hwp_pages(struct page *hpage, bool move_flag)
      |                    ^~~~~~~~~~~~~~~~~~
../mm/memory-failure.c:1731:20: note: previous definition of ‘free_raw_hwp_pages’ with type ‘long int(struct page *, bool)’ {aka ‘long int(struct page *, _Bool)’}
 1731 | static inline long free_raw_hwp_pages(struct page *hpage, bool move_flag)
      |                    ^~~~~~~~~~~~~~~~~~
../mm/memory-failure.c: In function ‘unpoison_memory’:
../mm/memory-failure.c:2345:31: error: void value not ignored as it ought to be
 2345 |                         count = free_raw_hwp_pages(page, false);
      |                               ^
../mm/memory-failure.c:2355:31: error: void value not ignored as it ought to be
 2355 |                         count = free_raw_hwp_pages(page, false);
      |                               ^
../mm/memory-failure.c: In function ‘raw_hwp_list_head’:
../mm/memory-failure.c:1686:1: error: control reaches end of non-void function [-Werror=return-type]
 1686 | }
      | ^


Full randconfig file is attached.

-- 
~Randy

[-- Attachment #2: config-r4470.gz --]
[-- Type: application/gzip, Size: 45407 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-04 22:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20220704182112.6c151e04@canb.auug.org.au>
2022-07-04 22:03 ` linux-next: Tree for Jul 4 (mm/memory-failure.c) Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox