* [android-common:android15-6.6-2026-07 2/2] drivers/virt/gunyah/gunyah_irqfd.c:126:13: warning: assignment makes pointer from integer without a cast
@ 2026-10-20 5:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-20 5:08 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android15-6.6-2026-07
head: d30ff9c22cb6fcc072d03268110b3797daba99be
commit: 22b6a37b0df03a6d7f5ac240b3ccd1f19f946a49 [2/2] FROMLIST: virt: gunyah: Add irqfd interface
config: arm64-randconfig-r2101-20261020 (https://download.01.org/0day-ci/archive/20261020/202610200630.WNbILVf4-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261020/202610200630.WNbILVf4-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/202610200630.WNbILVf4-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/virt/gunyah/gunyah_irqfd.c: In function 'gunyah_irqfd_bind':
drivers/virt/gunyah/gunyah_irqfd.c:126:15: error: implicit declaration of function 'eventfd_ctx_fileget'; did you mean 'eventfd_ctx_fdget'? [-Werror=implicit-function-declaration]
irqfd->ctx = eventfd_ctx_fileget(fd.file);
^~~~~~~~~~~~~~~~~~~
eventfd_ctx_fdget
>> drivers/virt/gunyah/gunyah_irqfd.c:126:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
irqfd->ctx = eventfd_ctx_fileget(fd.file);
^
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on [n]: NET [=y] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on [n]: NET [=y] && WIRELESS [=n] && (CFG80211_WEXT [=n] || WIRELESS_EXT [=y])
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for CAN_RX_OFFLOAD
Depends on [n]: NETDEVICES [=y] && CAN_DEV [=n] && CAN_NETLINK [=n]
Selected by [y]:
- GKI_HIDDEN_MCP251XFD_CONFIGS [=y]
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on [n]: NET [=y] && WIRELESS [=n] && PROC_FS [=n] && WEXT_CORE [=y]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on [n]: NET [=y] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on [n]: NET [=y] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=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) {
122 kfree(irqfd);
123 return -EBADF;
124 }
125
> 126 irqfd->ctx = eventfd_ctx_fileget(fd.file);
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, &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-10-20 5:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-20 5:08 [android-common:android15-6.6-2026-07 2/2] drivers/virt/gunyah/gunyah_irqfd.c:126:13: warning: assignment makes pointer from integer without a cast 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.