linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* mm: gup.c:2827:22: error: conflicting types for 'try_grab_folio_fast'; have 'struct folio
@ 2024-07-01 10:05 Naresh Kamboju
  0 siblings, 0 replies; only message in thread
From: Naresh Kamboju @ 2024-07-01 10:05 UTC (permalink / raw)
  To: lkft-triage, open list, Linux Regressions, linuxppc-dev, linux-mm
  Cc: Dan Carpenter, Anders Roxell, Arnd Bergmann, Naveen N. Rao,
	Andrew Morton

The powerpc build failures noticed on Linux next-20240628 tag.

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

Regressions found on powerpc:

  - gcc-13-maple_defconfig
  - gcc-13-cell_defconfig
  - clang-nightly-maple_defconfig
  - gcc-8-defconfig
  - gcc-8-tqm8xx_defconfig
  - clang-18-tqm8xx_defconfig
  - gcc-8-maple_defconfig
  - clang-nightly-cell_defconfig
  - clang-18-maple_defconfig
  - gcc-13-defconfig
  - clang-18-defconfig
  - clang-nightly-defconfig
  - gcc-13-tqm8xx_defconfig
  - clang-nightly-tqm8xx_defconfig
  - gcc-8-cell_defconfig
  - clang-18-cell_defconfig

Build error:
---
mm/gup.c: In function 'gup_hugepte':
mm/gup.c:525:25: error: implicit declaration of function
'try_grab_folio_fast'; did you mean 'try_grab_folio'?
[-Werror=implicit-function-declaration]
  525 |                 folio = try_grab_folio_fast(page, refs, flags);
      |                         ^~~~~~~~~~~~~~~~~~~
      |                         try_grab_folio
mm/gup.c:525:23: warning: assignment to 'struct folio *' from 'int'
makes pointer from integer without a cast [-Wint-conversion]
  525 |                 folio = try_grab_folio_fast(page, refs, flags);
      |                       ^
mm/gup.c: At top level:
mm/gup.c:2827:22: error: conflicting types for 'try_grab_folio_fast';
have 'struct folio *(struct page *, int,  unsigned int)'
 2827 | static struct folio *try_grab_folio_fast(struct page *page, int refs,
      |                      ^~~~~~~~~~~~~~~~~~~
mm/gup.c:525:25: note: previous implicit declaration of
'try_grab_folio_fast' with type 'int()'
  525 |                 folio = try_grab_folio_fast(page, refs, flags);
      |                         ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

Steps to reproduce:
----

# tuxmake --runtime podman --target-arch powerpc --toolchain gcc-13
--kconfig cell_defconfig



metadata:
----
 git_describe: next-20240628
 git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
 git_short_log: 1eb586a9782c ("Add linux-next specific files for 20240628")
 arch: powerpc
 toolchain: gcc-13 and clang-18

Links:
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2iWYcbTLGMcGuxl7caQ3jwv9C4a/
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240628/testrun/24464887/suite/build/test/gcc-13-cell_defconfig/details/
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240628/testrun/24464887/suite/build/test/gcc-13-cell_defconfig/log


--
Linaro LKFT
https://lkft.linaro.org


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

only message in thread, other threads:[~2024-07-01 10:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01 10:05 mm: gup.c:2827:22: error: conflicting types for 'try_grab_folio_fast'; have 'struct folio Naresh Kamboju

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).