* [skn:v5.9/ffa 7/8] drivers/firmware/arm_ffa/bus.c:135:26: error: dereferencing pointer to incomplete type 'const struct file_operations'
@ 2020-08-25 22:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-25 22:03 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4528 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git v5.9/ffa
head: a1dd26f309d173a71b9b7b18cf6221b4e29d397e
commit: de254ee743800be7154e0b19239f97fa748d1e6d [7/8] firmware: Add support for PSA FF-A transport for VM partitions
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout de254ee743800be7154e0b19239f97fa748d1e6d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/firmware/arm_ffa/bus.c: In function 'ffa_device_register':
>> drivers/firmware/arm_ffa/bus.c:135:26: error: dereferencing pointer to incomplete type 'const struct file_operations'
135 | cdev->owner = cdev->ops->owner;
| ^~
drivers/firmware/arm_ffa/bus.c: In function 'arm_ffa_bus_init':
>> drivers/firmware/arm_ffa/bus.c:166:8: error: implicit declaration of function 'alloc_chrdev_region' [-Werror=implicit-function-declaration]
166 | ret = alloc_chrdev_region(&ffa_devt, 0, FFA_MAX_CDEVS, DEVICE_NAME);
| ^~~~~~~~~~~~~~~~~~~
>> drivers/firmware/arm_ffa/bus.c:175:3: error: implicit declaration of function 'unregister_chrdev_region' [-Werror=implicit-function-declaration]
175 | unregister_chrdev_region(ffa_devt, FFA_MAX_CDEVS);
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
>> drivers/firmware/arm_ffa/driver.c:38:10: fatal error: asm/memory.h: No such file or directory
38 | #include <asm/memory.h>
| ^~~~~~~~~~~~~~
compilation terminated.
# https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git/commit/?id=de254ee743800be7154e0b19239f97fa748d1e6d
git remote add skn https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git
git fetch --no-tags skn v5.9/ffa
git checkout de254ee743800be7154e0b19239f97fa748d1e6d
vim +135 drivers/firmware/arm_ffa/bus.c
106
107 int ffa_device_register(struct ffa_device *ffa_dev)
108 {
109 int ret;
110 struct cdev *cdev;
111 struct device *dev;
112
113 if (!ffa_dev)
114 return -EINVAL;
115
116 dev = &ffa_dev->dev;
117 cdev = &ffa_dev->cdev;
118 mutex_init(&ffa_dev->mutex);
119
120 dev->bus = &ffa_bus_type;
121 dev->type = &ffa_dev_type;
122 dev->release = ffa_release_device;
123
124 device_initialize(dev);
125
126 if (cdev->ops) {
127 ret = ida_simple_get(&ffa_dev_id, 0, FFA_MAX_CDEVS, GFP_KERNEL);
128 if (ret < 0) {
129 put_device(dev);
130 return ret;
131 }
132
133 dev->devt = MKDEV(MAJOR(ffa_devt), ret);
134
> 135 cdev->owner = cdev->ops->owner;
136 }
137
138 ret = cdev_device_add(cdev, dev);
139 if (ret) {
140 dev_err(dev, "unable to cdev_device_add() %s, major %d, minor %d, err=%d\n",
141 dev_name(dev), MAJOR(dev->devt), MINOR(dev->devt),
142 ret);
143 put_device(dev);
144 return ret;
145 }
146
147 return 0;
148 }
149 EXPORT_SYMBOL_GPL(ffa_device_register);
150
151 void ffa_device_unregister(struct ffa_device *ffa_dev)
152 {
153 if (!ffa_dev)
154 return;
155
156 cdev_device_del(&ffa_dev->cdev, &ffa_dev->dev);
157
158 put_device(&ffa_dev->dev);
159 }
160 EXPORT_SYMBOL_GPL(ffa_device_unregister);
161
162 static int __init arm_ffa_bus_init(void)
163 {
164 int ret;
165
> 166 ret = alloc_chrdev_region(&ffa_devt, 0, FFA_MAX_CDEVS, DEVICE_NAME);
167 if (ret) {
168 pr_err("failed to allocate char dev region\n");
169 return ret;
170 }
171
172 ret = bus_register(&ffa_bus_type);
173 if (ret) {
174 pr_err("ffa bus register failed (%d)\n", ret);
> 175 unregister_chrdev_region(ffa_devt, FFA_MAX_CDEVS);
176 }
177
178 return ret;
179 }
180 subsys_initcall(arm_ffa_bus_init);
181
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 61593 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-25 22:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-25 22:03 [skn:v5.9/ffa 7/8] drivers/firmware/arm_ffa/bus.c:135:26: error: dereferencing pointer to incomplete type 'const struct file_operations' 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.