All of lore.kernel.org
 help / color / mirror / Atom feed
* [dhowells-fs:netfs-next-5 23/29] fs/netfs/write_collect.c:178:25: error: implicit declaration of function 'mempool_free'
@ 2026-10-02  3:35 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-02  3:35 UTC (permalink / raw)
  To: David Howells; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git netfs-next-5
head:   5c15345b43019adfd7a82be7f4f190a37dd19310
commit: 8b4e1988ee6980c07bfa9304296feaaee4d7f50c [23/29] netfs: Simplify writeback cleanup
config: microblaze-defconfig (https://download.01.org/0day-ci/archive/20261002/202610021144.U4c09yz8-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261002/202610021144.U4c09yz8-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/202610021144.U4c09yz8-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/netfs/write_collect.c: In function 'netfs_writeback_unlock_folios':
>> fs/netfs/write_collect.c:178:25: error: implicit declaration of function 'mempool_free' [-Wimplicit-function-declaration]
     178 |                         mempool_free(wback, &netfs_bvecq_pool);
         |                         ^~~~~~~~~~~~


vim +/mempool_free +178 fs/netfs/write_collect.c

   137	
   138	/*
   139	 * Unlock any folios we've finished with.
   140	 */
   141	static void netfs_writeback_unlock_folios(struct netfs_io_request *wreq,
   142						  unsigned int *notes)
   143	{
   144		struct netfs_writeback *wback, *next;
   145	
   146		if (wreq->origin == NETFS_PGPRIV2_COPY_TO_CACHE) {
   147			if (netfs_pgpriv2_unlock_copied_folios(wreq))
   148				*notes |= MADE_PROGRESS;
   149			return;
   150		}
   151	
   152		wback = wreq->writebacks;
   153	
   154		for (;;) {
   155			uoff_t stop_at;
   156			size_t len;
   157	
   158			/* Jump over discontiguities. */
   159			if (wreq->cleaned_to < wback->start)
   160				wreq->cleaned_to = wback->start;
   161	
   162			if (wreq->collected_to <= wreq->cleaned_to)
   163				break;
   164	
   165			/* Order read of region length before reading folios. */
   166			len = smp_load_acquire(&wback->len);
   167	
   168			if (wreq->cleaned_to >= wback->start + len) {
   169				/* Order read of next before recheck length. */
   170				next = smp_load_acquire(&wback->next);
   171				if (!next)
   172					break; /* We don't remove the tail writeback. */
   173	
   174				/* Order read of region length before reading folios. */
   175				if (len != smp_load_acquire(&wback->len))
   176					continue; /* len/next update race. */
   177	
 > 178				mempool_free(wback, &netfs_bvecq_pool);
   179				wreq->writebacks = next;
   180				wback = next;
   181				continue;
   182			}
   183	
   184			stop_at = min(wreq->collected_to, wback->start + len);
   185	
   186			trace_netfs_collect_folios(wreq, wback->start, len);
   187			if (!netfs_writeback_unlock_range(wreq, stop_at))
   188				break;
   189			*notes |= MADE_PROGRESS;
   190		}
   191	}
   192	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [dhowells-fs:netfs-next-5 23/29] fs/netfs/write_collect.c:178:25: error: implicit declaration of function 'mempool_free'
@ 2026-10-02  8:27 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-02  8:27 UTC (permalink / raw)
  To: David Howells; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git netfs-next-5
head:   8e1336a514c9296d8cb62fa11d6fa8b6f6117c9f
commit: 8b4e1988ee6980c07bfa9304296feaaee4d7f50c [23/29] netfs: Simplify writeback cleanup
config: i386-randconfig-r2103-20261001 (https://download.01.org/0day-ci/archive/20261002/202610021029.IzmuVUhC-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261002/202610021029.IzmuVUhC-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/202610021029.IzmuVUhC-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/netfs/write_collect.c: In function 'netfs_writeback_unlock_folios':
>> fs/netfs/write_collect.c:178:25: error: implicit declaration of function 'mempool_free' [-Wimplicit-function-declaration]
     178 |                         mempool_free(wback, &netfs_bvecq_pool);
         |                         ^~~~~~~~~~~~


vim +/mempool_free +178 fs/netfs/write_collect.c

   137	
   138	/*
   139	 * Unlock any folios we've finished with.
   140	 */
   141	static void netfs_writeback_unlock_folios(struct netfs_io_request *wreq,
   142						  unsigned int *notes)
   143	{
   144		struct netfs_writeback *wback, *next;
   145	
   146		if (wreq->origin == NETFS_PGPRIV2_COPY_TO_CACHE) {
   147			if (netfs_pgpriv2_unlock_copied_folios(wreq))
   148				*notes |= MADE_PROGRESS;
   149			return;
   150		}
   151	
   152		wback = wreq->writebacks;
   153	
   154		for (;;) {
   155			uoff_t stop_at;
   156			size_t len;
   157	
   158			/* Jump over discontiguities. */
   159			if (wreq->cleaned_to < wback->start)
   160				wreq->cleaned_to = wback->start;
   161	
   162			if (wreq->collected_to <= wreq->cleaned_to)
   163				break;
   164	
   165			/* Order read of region length before reading folios. */
   166			len = smp_load_acquire(&wback->len);
   167	
   168			if (wreq->cleaned_to >= wback->start + len) {
   169				/* Order read of next before recheck length. */
   170				next = smp_load_acquire(&wback->next);
   171				if (!next)
   172					break; /* We don't remove the tail writeback. */
   173	
   174				/* Order read of region length before reading folios. */
   175				if (len != smp_load_acquire(&wback->len))
   176					continue; /* len/next update race. */
   177	
 > 178				mempool_free(wback, &netfs_bvecq_pool);
   179				wreq->writebacks = next;
   180				wback = next;
   181				continue;
   182			}
   183	
   184			stop_at = min(wreq->collected_to, wback->start + len);
   185	
   186			trace_netfs_collect_folios(wreq, wback->start, len);
   187			if (!netfs_writeback_unlock_range(wreq, stop_at))
   188				break;
   189			*notes |= MADE_PROGRESS;
   190		}
   191	}
   192	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-02  8:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02  3:35 [dhowells-fs:netfs-next-5 23/29] fs/netfs/write_collect.c:178:25: error: implicit declaration of function 'mempool_free' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-10-02  8:27 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.