From: kernel test robot <lkp@intel.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [willy-pagecache:set_ptes 25/38] arch/sparc/include/asm/cacheflush_32.h:46:28: error: implicit declaration of function 'page_folio'
Date: Tue, 1 Aug 2023 06:05:50 +0800 [thread overview]
Message-ID: <202308010517.0oSf0Jty-lkp@intel.com> (raw)
tree: git://git.infradead.org/users/willy/pagecache set_ptes
head: 5e7db769b94c0abd184e56c90f1f89554e9f0639
commit: 7d045092c4e5ea60de796aed1cce6e1239a300ca [25/38] sparc32: Implement the new page table range API
config: sparc-randconfig-r023-20230731 (https://download.01.org/0day-ci/archive/20230801/202308010517.0oSf0Jty-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230801/202308010517.0oSf0Jty-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308010517.0oSf0Jty-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/sparc/include/asm/cacheflush.h:11,
from include/linux/cacheflush.h:5,
from drivers/crypto/xilinx/zynqmp-sha.c:6:
arch/sparc/include/asm/cacheflush_32.h:39:37: warning: 'struct page' declared inside parameter list will not be visible outside of this definition or declaration
39 | void sparc_flush_page_to_ram(struct page *page);
| ^~~~
arch/sparc/include/asm/cacheflush_32.h:40:38: warning: 'struct folio' declared inside parameter list will not be visible outside of this definition or declaration
40 | void sparc_flush_folio_to_ram(struct folio *folio);
| ^~~~~
arch/sparc/include/asm/cacheflush_32.h:44:45: warning: 'struct page' declared inside parameter list will not be visible outside of this definition or declaration
44 | static inline void flush_dcache_page(struct page *page)
| ^~~~
arch/sparc/include/asm/cacheflush_32.h: In function 'flush_dcache_page':
>> arch/sparc/include/asm/cacheflush_32.h:46:28: error: implicit declaration of function 'page_folio' [-Werror=implicit-function-declaration]
46 | flush_dcache_folio(page_folio(page));
| ^~~~~~~~~~
arch/sparc/include/asm/cacheflush_32.h:43:74: note: in definition of macro 'flush_dcache_folio'
43 | #define flush_dcache_folio(folio) sparc_flush_folio_to_ram(folio)
| ^~~~~
arch/sparc/include/asm/cacheflush_32.h:46:28: warning: passing argument 1 of 'sparc_flush_folio_to_ram' makes pointer from integer without a cast [-Wint-conversion]
46 | flush_dcache_folio(page_folio(page));
| ^~~~~~~~~~~~~~~~
| |
| int
arch/sparc/include/asm/cacheflush_32.h:43:74: note: in definition of macro 'flush_dcache_folio'
43 | #define flush_dcache_folio(folio) sparc_flush_folio_to_ram(folio)
| ^~~~~
arch/sparc/include/asm/cacheflush_32.h:40:45: note: expected 'struct folio *' but argument is of type 'int'
40 | void sparc_flush_folio_to_ram(struct folio *folio);
| ~~~~~~~~~~~~~~^~~~~
cc1: some warnings being treated as errors
vim +/page_folio +46 arch/sparc/include/asm/cacheflush_32.h
41
42 #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
43 #define flush_dcache_folio(folio) sparc_flush_folio_to_ram(folio)
44 static inline void flush_dcache_page(struct page *page)
45 {
> 46 flush_dcache_folio(page_folio(page));
47 }
48 #define flush_dcache_mmap_lock(mapping) do { } while (0)
49 #define flush_dcache_mmap_unlock(mapping) do { } while (0)
50
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-07-31 22:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202308010517.0oSf0Jty-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.