[willy-pagecache:headers 2/7] drivers/char/agp/uninorth-agp.c:190:17: error: implicit declaration of function 'flush_dcache_range'; did you mean 'flush_hash_range'?

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   git://git.infradead.org/users/willy/pagecache headers
head:   5a75fff46226e59e4c4d87c36f7de79ec4cabdb4
commit: 992dc5cd4c8b4853d34f45ae003dc52b8ae77f80 [2/7] agp: Remove pagemap includes
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20260813/[email protected]/config)
compiler: powerpc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260813/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   drivers/char/agp/uninorth-agp.c: In function 'uninorth_insert_memory':
>> drivers/char/agp/uninorth-agp.c:190:17: error: implicit declaration of function 'flush_dcache_range'; did you mean 'flush_hash_range'? [-Wimplicit-function-declaration]
     190 |                 flush_dcache_range((unsigned long)__va(page_to_phys(mem->pages[i])),
         |                 ^~~~~~~~~~~~~~~~~~
         |                 flush_hash_range
   drivers/char/agp/uninorth-agp.c: In function 'uninorth_create_gatt_table':
   drivers/char/agp/uninorth-agp.c:372:13: warning: variable 'size' set but not used [-Wunused-but-set-variable=]
     372 |         int size;
         |             ^~~~


vim +190 drivers/char/agp/uninorth-agp.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  148  
37580f3f229fa7 Michel Dänzer  2009-12-06  149  static int uninorth_insert_memory(struct agp_memory *mem, off_t pg_start, int type)
^1da177e4c3f41 Linus Torvalds 2005-04-16  150  {
^1da177e4c3f41 Linus Torvalds 2005-04-16  151  	int i, num_entries;
^1da177e4c3f41 Linus Torvalds 2005-04-16  152  	void *temp;
^1da177e4c3f41 Linus Torvalds 2005-04-16  153  	u32 *gp;
62369028c7e203 Michel Dänzer  2009-06-15  154  	int mask_type;
^1da177e4c3f41 Linus Torvalds 2005-04-16  155  
62369028c7e203 Michel Dänzer  2009-06-15  156  	if (type != mem->type)
62369028c7e203 Michel Dänzer  2009-06-15  157  		return -EINVAL;
62369028c7e203 Michel Dänzer  2009-06-15  158  
62369028c7e203 Michel Dänzer  2009-06-15  159  	mask_type = agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type);
62369028c7e203 Michel Dänzer  2009-06-15  160  	if (mask_type != 0) {
^1da177e4c3f41 Linus Torvalds 2005-04-16  161  		/* We know nothing of memory types */
^1da177e4c3f41 Linus Torvalds 2005-04-16  162  		return -EINVAL;
62369028c7e203 Michel Dänzer  2009-06-15  163  	}
62369028c7e203 Michel Dänzer  2009-06-15  164  
3fc3a6b476581d Michel Dänzer  2009-12-06  165  	if (mem->page_count == 0)
3fc3a6b476581d Michel Dänzer  2009-12-06  166  		return 0;
3fc3a6b476581d Michel Dänzer  2009-12-06  167  
3fc3a6b476581d Michel Dänzer  2009-12-06  168  	temp = agp_bridge->current_size;
3fc3a6b476581d Michel Dänzer  2009-12-06  169  	num_entries = A_SIZE_32(temp)->num_entries;
3fc3a6b476581d Michel Dänzer  2009-12-06  170  
^1da177e4c3f41 Linus Torvalds 2005-04-16  171  	if ((pg_start + mem->page_count) > num_entries)
^1da177e4c3f41 Linus Torvalds 2005-04-16  172  		return -EINVAL;
^1da177e4c3f41 Linus Torvalds 2005-04-16  173  
^1da177e4c3f41 Linus Torvalds 2005-04-16  174  	gp = (u32 *) &agp_bridge->gatt_table[pg_start];
^1da177e4c3f41 Linus Torvalds 2005-04-16  175  	for (i = 0; i < mem->page_count; ++i) {
61cf059325a309 Jerome Glisse  2010-04-20  176  		if (gp[i] != scratch_value) {
e3cf69511a2c53 Bjorn Helgaas  2008-07-30  177  			dev_info(&agp_bridge->dev->dev,
37580f3f229fa7 Michel Dänzer  2009-12-06  178  				 "uninorth_insert_memory: entry 0x%x occupied (%x)\n",
^1da177e4c3f41 Linus Torvalds 2005-04-16  179  				 i, gp[i]);
^1da177e4c3f41 Linus Torvalds 2005-04-16  180  			return -EBUSY;
^1da177e4c3f41 Linus Torvalds 2005-04-16  181  		}
^1da177e4c3f41 Linus Torvalds 2005-04-16  182  	}
^1da177e4c3f41 Linus Torvalds 2005-04-16  183  
^1da177e4c3f41 Linus Torvalds 2005-04-16  184  	for (i = 0; i < mem->page_count; i++) {
37580f3f229fa7 Michel Dänzer  2009-12-06  185  		if (is_u3)
07613ba2f464f5 Dave Airlie    2009-06-12  186  			gp[i] = (page_to_phys(mem->pages[i]) >> PAGE_SHIFT) | 0x80000000UL;
37580f3f229fa7 Michel Dänzer  2009-12-06  187  		else
37580f3f229fa7 Michel Dänzer  2009-12-06  188  			gp[i] =	cpu_to_le32((page_to_phys(mem->pages[i]) & 0xFFFFF000UL) |
37580f3f229fa7 Michel Dänzer  2009-12-06  189  					    0x1UL);
07613ba2f464f5 Dave Airlie    2009-06-12 @190  		flush_dcache_range((unsigned long)__va(page_to_phys(mem->pages[i])),
07613ba2f464f5 Dave Airlie    2009-06-12  191  				   (unsigned long)__va(page_to_phys(mem->pages[i]))+0x1000);
^1da177e4c3f41 Linus Torvalds 2005-04-16  192  	}
^1da177e4c3f41 Linus Torvalds 2005-04-16  193  	mb();
^1da177e4c3f41 Linus Torvalds 2005-04-16  194  	uninorth_tlbflush(mem);
^1da177e4c3f41 Linus Torvalds 2005-04-16  195  
^1da177e4c3f41 Linus Torvalds 2005-04-16  196  	return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16  197  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  198  

:::::: The code at line 190 was first introduced by commit
:::::: 07613ba2f464f59949266f4337b75b91eb610795 agp: switch AGP to use page array instead of unsigned long array

:::::: TO: Dave Airlie <[email protected]>
:::::: CC: Dave Airlie <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.