All of lore.kernel.org
 help / color / mirror / Atom feed
* [willy-pagecache:set_ptes 25/38] arch/sparc/include/asm/cacheflush_32.h:46:28: error: implicit declaration of function 'page_folio'
@ 2023-07-31 22:05 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-31 22:05 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: oe-kbuild-all

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

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

only message in thread, other threads:[~2023-07-31 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-31 22:05 [willy-pagecache:set_ptes 25/38] arch/sparc/include/asm/cacheflush_32.h:46:28: error: implicit declaration of function 'page_folio' kernel test robot

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.