All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android17-6.18-2026-04 1/1] drivers/virt/gunyah/gunyah_irqfd.c:126:22: error: implicit declaration of function 'eventfd_ctx_fileget'; did you mean 'eventfd_ctx_fdget'?
@ 2026-09-27 14:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-27 14:37 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android17-6.18-2026-04
head:   e0e2c08bfcef8c292798b6e48bd55bbde44b3f74
commit: f171825128bac01df3b0bcbc909fa159bdd92411 [1/1] FROMLIST: virt: gunyah: Add irqfd interface
config: arm64-randconfig-r2309-20260927 (https://download.01.org/0day-ci/archive/20260927/202609271609.7Bchw6Md-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 15.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/202609271609.7Bchw6Md-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/202609271609.7Bchw6Md-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/virt/gunyah/gunyah_irqfd.c: In function 'gunyah_irqfd_bind':
>> drivers/virt/gunyah/gunyah_irqfd.c:126:22: error: implicit declaration of function 'eventfd_ctx_fileget'; did you mean 'eventfd_ctx_fdget'? [-Wimplicit-function-declaration]
     126 |         irqfd->ctx = eventfd_ctx_fileget(fd_file(fd));
         |                      ^~~~~~~~~~~~~~~~~~~
         |                      eventfd_ctx_fdget
>> drivers/virt/gunyah/gunyah_irqfd.c:126:20: error: assignment to 'struct eventfd_ctx *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     126 |         irqfd->ctx = eventfd_ctx_fileget(fd_file(fd));
         |                    ^

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for DRM_MIPI_DSI
   Depends on [n]: HAS_IOMEM [=y] && DRM [=n]
   Selected by [y]:
   - GKI_HIDDEN_DRM_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for ASYNC_TX_ENABLE_CHANNEL_SWITCH
   Depends on [n]: DMADEVICES [=n]
   Selected by [y]:
   - GKI_HIDDEN_DMA_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for DMA_ENGINE_RAID
   Depends on [n]: DMADEVICES [=n]
   Selected by [y]:
   - GKI_HIDDEN_DMA_CONFIGS [=y]


vim +126 drivers/virt/gunyah/gunyah_irqfd.c

    97	
    98	static long gunyah_irqfd_bind(struct gunyah_vm_function_instance *f)
    99	{
   100		struct gunyah_fn_irqfd_arg *args = f->argp;
   101		struct gunyah_irqfd *irqfd;
   102		__poll_t events;
   103		struct fd fd;
   104		long r;
   105	
   106		if (f->arg_size != sizeof(*args))
   107			return -EINVAL;
   108	
   109		/* All other flag bits are reserved for future use */
   110		if (args->flags & ~GUNYAH_IRQFD_FLAGS_LEVEL)
   111			return -EINVAL;
   112	
   113		irqfd = kzalloc(sizeof(*irqfd), GFP_KERNEL);
   114		if (!irqfd)
   115			return -ENOMEM;
   116	
   117		irqfd->f = f;
   118		f->data = irqfd;
   119	
   120		fd = fdget(args->fd);
   121		if (!fd_file(fd)) {
   122			kfree(irqfd);
   123			return -EBADF;
   124		}
   125	
 > 126		irqfd->ctx = eventfd_ctx_fileget(fd_file(fd));
   127		if (IS_ERR(irqfd->ctx)) {
   128			r = PTR_ERR(irqfd->ctx);
   129			goto err_fdput;
   130		}
   131	
   132		if (args->flags & GUNYAH_IRQFD_FLAGS_LEVEL)
   133			irqfd->level = true;
   134	
   135		init_waitqueue_func_entry(&irqfd->wait, irqfd_wakeup);
   136		init_poll_funcptr(&irqfd->pt, irqfd_ptable_queue_proc);
   137	
   138		irqfd->ticket.resource_type = GUNYAH_RESOURCE_TYPE_BELL_TX;
   139		irqfd->ticket.label = args->label;
   140		irqfd->ticket.owner = THIS_MODULE;
   141		irqfd->ticket.populate = gunyah_irqfd_populate;
   142		irqfd->ticket.unpopulate = gunyah_irqfd_unpopulate;
   143	
   144		r = gunyah_vm_add_resource_ticket(f->ghvm, &irqfd->ticket);
   145		if (r)
   146			goto err_ctx;
   147	
   148		events = vfs_poll(fd_file(fd), &irqfd->pt);
   149		if (events & EPOLLIN)
   150			pr_warn("Premature injection of interrupt\n");
   151		fdput(fd);
   152	
   153		return 0;
   154	err_ctx:
   155		eventfd_ctx_put(irqfd->ctx);
   156	err_fdput:
   157		fdput(fd);
   158		kfree(irqfd);
   159		return r;
   160	}
   161	

--
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:[~2026-09-27 14:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-27 14:37 [android-common:android17-6.18-2026-04 1/1] drivers/virt/gunyah/gunyah_irqfd.c:126:22: error: implicit declaration of function 'eventfd_ctx_fileget'; did you mean 'eventfd_ctx_fdget'? 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.