[rdma:wip/for-testing 1/1] drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: 'rdev' undeclared; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git wip/for-testing
head: a8ef74e70f50f10d741bb64757dd205318dfd9c7
commit: a8ef74e70f50f10d741bb64757dd205318dfd9c7 [1/1] Merge branch 'k.o/for-next' into k.o/wip/for-testing
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=...
git remote add rdma https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
git fetch --no-tags rdma wip/for-testing
git checkout a8ef74e70f50f10d741bb64757dd205318dfd9c7
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/infiniband/sw/rxe/rxe_net.c: In function 'rxe_udp_encap_recv':
>> drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: 'rdev' undeclared (first use in this function); did you mean 'ndev'?
164 | if (!rxe && is_vlan_dev(rdev))
| ^~~~
| ndev
drivers/infiniband/sw/rxe/rxe_net.c:164:26: note: each undeclared identifier is reported only once for each function it appears in
vim +164 drivers/infiniband/sw/rxe/rxe_net.c
152
153 static int rxe_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
154 {
155 struct udphdr *udph;
156 struct rxe_dev *rxe;
157 struct net_device *ndev = skb->dev;
158 struct rxe_pkt_info *pkt = SKB_TO_PKT(skb);
159
160 /* takes a reference on rxe->ib_dev
161 * drop when skb is freed
162 */
163 rxe = rxe_get_dev_from_net(ndev);
> 164 if (!rxe && is_vlan_dev(rdev))
165 rxe = rxe_get_dev_from_net(vlan_dev_real_dev(ndev));
166 if (!rxe)
167 goto drop;
168
169 if (skb_linearize(skb)) {
170 pr_err("skb_linearize failed\n");
171 ib_device_put(&rxe->ib_dev);
172 goto drop;
173 }
174
175 udph = udp_hdr(skb);
176 pkt->rxe = rxe;
177 pkt->port_num = 1;
178 pkt->hdr = (u8 *)(udph + 1);
179 pkt->mask = RXE_GRH_MASK;
180 pkt->paylen = be16_to_cpu(udph->len) - sizeof(*udph);
181
182 rxe_rcv(skb);
183
184 return 0;
185 drop:
186 kfree_skb(skb);
187
188 return 0;
189 }
190
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[intel-linux-intel-lts:4.19/android_r 16398/21953] drivers/gpu/drm/drm_dp_mst_topology.c:1843 drm_dp_mst_update_dsc_info() warn: inconsistent indenting
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 4.19/android_r
head: d0790dff6357bce6319e8542c7751c1f811b5fea
commit: b572376bedc67f334d005dabd7727dd318eeba44 [16398/21953] ANDROID: GKI: Add 'dsc_info' to struct drm_dp_mst_port
config: x86_64-randconfig-m001-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/gpu/drm/drm_dp_mst_topology.c:1843 drm_dp_mst_update_dsc_info() warn: inconsistent indenting
vim +1843 drivers/gpu/drm/drm_dp_mst_topology.c
1830
1831 int drm_dp_mst_update_dsc_info(struct drm_dp_mst_topology_mgr *mgr,
1832 struct drm_dp_mst_port *port,
1833 struct drm_dp_mst_dsc_info *dsc_info)
1834 {
1835 if (!dsc_info)
1836 return -EINVAL;
1837
1838 port = drm_dp_get_validated_port_ref(mgr, port);
1839 if (!port)
1840 return -EINVAL;
1841
1842 memcpy(&port->dsc_info, dsc_info, sizeof(struct drm_dp_mst_dsc_info));
> 1843 drm_dp_put_port(port);
1844
1845 return 0;
1846 }
1847 EXPORT_SYMBOL_GPL(drm_dp_mst_update_dsc_info);
1848
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 2296/10581] lgm-dma.c:undefined reference to `devm_platform_ioremap_resource'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 671176b0016c80b3943cb5387312c886aba3308d
commit: 32d31c79a1a4fbc48aab594a4dc9ffa087ab59a3 [2296/10581] dmaengine: Add Intel LGM SoC DMA support.
config: s390-allmodconfig (attached as .config)
compiler: s390-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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 32d31c79a1a4fbc48aab594a4dc9ffa087ab59a3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD 671176b0016c80b3943cb5387312c886aba3308d builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
s390-linux-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
coherent.c:(.text+0x510): undefined reference to `memremap'
s390-linux-ld: coherent.c:(.text+0x722): undefined reference to `memunmap'
s390-linux-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
coherent.c:(.text+0xf56): undefined reference to `memunmap'
s390-linux-ld: drivers/irqchip/irq-al-fic.o: in function `al_fic_init_dt':
irq-al-fic.c:(.init.text+0xc8): undefined reference to `of_iomap'
s390-linux-ld: irq-al-fic.c:(.init.text+0x814): undefined reference to `iounmap'
s390-linux-ld: drivers/phy/ingenic/phy-ingenic-usb.o: in function `ingenic_usb_phy_probe':
phy-ingenic-usb.c:(.text+0xc50): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clk/clk-fixed-mmio.o: in function `fixed_mmio_clk_setup':
clk-fixed-mmio.c:(.text+0xaa): undefined reference to `of_iomap'
s390-linux-ld: clk-fixed-mmio.c:(.text+0x146): undefined reference to `iounmap'
s390-linux-ld: drivers/dma/lgm/lgm-dma.o: in function `intel_ldma_probe':
>> lgm-dma.c:(.text+0x6544): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x1d8): undefined reference to `of_iomap'
s390-linux-ld: timer-of.c:(.init.text+0xcea): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x1046): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-microchip-pit64b.o: in function `mchp_pit64b_dt_init_timer':
timer-microchip-pit64b.c:(.init.text+0x3aa): undefined reference to `of_iomap'
s390-linux-ld: timer-microchip-pit64b.c:(.init.text+0x1196): undefined reference to `iounmap'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
grcan.c:undefined reference to `devm_platform_ioremap_resource'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 291009f656e8eaebbdfd3a8d99f6b190a9ce9deb
commit: 65725aa8829f0042db888c2b7e6cc8f1d79e7131 can: grcan: use devm_platform_ioremap_resource() to simplify code
date: 1 year, 3 months ago
config: s390-randconfig-r006-20210209 (attached as .config)
compiler: s390-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 65725aa8829f0042db888c2b7e6cc8f1d79e7131
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
s390-linux-ld: drivers/dma/fsl-edma.o: in function `fsl_edma_probe':
fsl-edma.c:(.text+0x122a): undefined reference to `devm_ioremap_resource'
s390-linux-ld: fsl-edma.c:(.text+0x135c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/qcom/hidma.o: in function `hidma_probe':
hidma.c:(.text+0xb22): undefined reference to `devm_ioremap_resource'
s390-linux-ld: hidma.c:(.text+0xb82): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/tty/ipwireless/main.o: in function `ipwireless_detach':
main.c:(.text+0xda): undefined reference to `iounmap'
s390-linux-ld: main.c:(.text+0x12a): undefined reference to `iounmap'
s390-linux-ld: drivers/tty/ipwireless/main.o: in function `ipwireless_attach':
main.c:(.text+0x35c): undefined reference to `iounmap'
s390-linux-ld: main.c:(.text+0x3a6): undefined reference to `iounmap'
s390-linux-ld: drivers/tty/ipwireless/main.o: in function `ipwireless_probe':
main.c:(.text+0x6ba): undefined reference to `ioremap'
s390-linux-ld: main.c:(.text+0x78a): undefined reference to `ioremap'
s390-linux-ld: main.c:(.text+0x7ea): undefined reference to `iounmap'
s390-linux-ld: main.c:(.text+0x82a): undefined reference to `iounmap'
s390-linux-ld: drivers/net/can/grcan.o: in function `grcan_probe':
>> grcan.c:(.text+0xb04): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `set_cis_map':
cistpl.c:(.text+0xb0): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0xc8): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0x14e): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0x16e): undefined reference to `iounmap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem':
cistpl.c:(.text+0x1476): undefined reference to `iounmap'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[chao-linux:simple_copy 2/5] block/blk-lib.c:153:5: warning: no previous prototype for 'blk_copy_offload'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git simple_copy
head: d6f32b90156624ae9dc06ef5873334a48e9b9806
commit: fcbd83ffa72af1eba12bcab1f34e0b956a563e02 [2/5] block: add simple copy support
config: nios2-randconfig-r006-20210211 (attached as .config)
compiler: nios2-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
# https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git/commit/?id...
git remote add chao-linux https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git
git fetch --no-tags chao-linux simple_copy
git checkout fcbd83ffa72af1eba12bcab1f34e0b956a563e02
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> block/blk-lib.c:153:5: warning: no previous prototype for 'blk_copy_offload' [-Wmissing-prototypes]
153 | int blk_copy_offload(struct block_device *bdev, struct blk_copy_payload *payload,
| ^~~~~~~~~~~~~~~~
>> block/blk-lib.c:180:5: warning: no previous prototype for 'blk_read_to_buf' [-Wmissing-prototypes]
180 | int blk_read_to_buf(struct block_device *bdev, struct blk_copy_payload *payload,
| ^~~~~~~~~~~~~~~
>> block/blk-lib.c:235:5: warning: no previous prototype for 'blk_write_from_buf' [-Wmissing-prototypes]
235 | int blk_write_from_buf(struct block_device *bdev, void *buf, sector_t dest,
| ^~~~~~~~~~~~~~~~~~
>> block/blk-lib.c:258:5: warning: no previous prototype for 'blk_prepare_payload' [-Wmissing-prototypes]
258 | int blk_prepare_payload(struct block_device *bdev, int nr_srcs, struct range_entry *rlist,
| ^~~~~~~~~~~~~~~~~~~
--
block/ioctl.c: In function 'blk_ioctl_copy':
>> block/ioctl.c:164:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
164 | if (copy_from_user(rlist, (void __user *)crange.range_list,
| ^
vim +/blk_copy_offload +153 block/blk-lib.c
152
> 153 int blk_copy_offload(struct block_device *bdev, struct blk_copy_payload *payload,
154 sector_t dest, gfp_t gfp_mask)
155 {
156 struct bio *bio;
157 int ret, total_size;
158
159 bio = bio_alloc(gfp_mask, 1);
160 bio->bi_iter.bi_sector = dest;
161 bio->bi_opf = REQ_OP_COPY | REQ_NOMERGE;
162 bio_set_dev(bio, bdev);
163
164 total_size = struct_size(payload, range, payload->copy_range);
165 ret = bio_add_page(bio, virt_to_page(payload), total_size,
166 offset_in_page(payload));
167 if (ret != total_size) {
168 ret = -ENOMEM;
169 bio_put(bio);
170 goto err;
171 }
172
173 ret = submit_bio_wait(bio);
174 err:
175 bio_put(bio);
176 return ret;
177
178 }
179
> 180 int blk_read_to_buf(struct block_device *bdev, struct blk_copy_payload *payload,
181 gfp_t gfp_mask, void **buf_p)
182 {
183 struct request_queue *q = bdev_get_queue(bdev);
184 struct bio *bio, *parent = NULL;
185 void *buf = NULL;
186 bool is_vmalloc;
187 int i, nr_srcs, copy_len, ret, cur_size, t_len = 0;
188
189 nr_srcs = payload->copy_range;
190 copy_len = payload->copy_size << SECTOR_SHIFT;
191
192 buf = kvmalloc(copy_len, gfp_mask);
193 if (!buf)
194 return -ENOMEM;
195 is_vmalloc = is_vmalloc_addr(buf);
196
197 for (i = 0; i < nr_srcs; i++) {
198 cur_size = payload->range[i].len << SECTOR_SHIFT;
199
200 bio = bio_map_kern(q, buf + t_len, cur_size, gfp_mask);
201 if (IS_ERR(bio)) {
202 ret = PTR_ERR(bio);
203 goto out;
204 }
205
206 bio->bi_iter.bi_sector = payload->range[i].src;
207 bio->bi_opf = REQ_OP_READ;
208 bio_set_dev(bio, bdev);
209 bio->bi_end_io = NULL;
210 bio->bi_private = NULL;
211
212 if (parent) {
213 bio_chain(parent, bio);
214 submit_bio(parent);
215 }
216
217 parent = bio;
218 t_len += cur_size;
219 }
220
221 ret = submit_bio_wait(bio);
222 bio_put(bio);
223 if (is_vmalloc)
224 invalidate_kernel_vmap_range(buf, copy_len);
225 if (ret)
226 goto out;
227
228 *buf_p = buf;
229 return 0;
230 out:
231 kvfree(buf);
232 return ret;
233 }
234
> 235 int blk_write_from_buf(struct block_device *bdev, void *buf, sector_t dest,
236 int copy_len, gfp_t gfp_mask)
237 {
238 struct request_queue *q = bdev_get_queue(bdev);
239 struct bio *bio;
240 int ret;
241
242 bio = bio_map_kern(q, buf, copy_len, gfp_mask);
243 if (IS_ERR(bio)) {
244 ret = PTR_ERR(bio);
245 goto out;
246 }
247 bio_set_dev(bio, bdev);
248 bio->bi_opf = REQ_OP_WRITE;
249 bio->bi_iter.bi_sector = dest;
250
251 bio->bi_end_io = NULL;
252 ret = submit_bio_wait(bio);
253 bio_put(bio);
254 out:
255 return ret;
256 }
257
> 258 int blk_prepare_payload(struct block_device *bdev, int nr_srcs, struct range_entry *rlist,
259 gfp_t gfp_mask, struct blk_copy_payload **payload_p)
260 {
261
262 struct request_queue *q = bdev_get_queue(bdev);
263 struct blk_copy_payload *payload;
264 sector_t bs_mask;
265 sector_t src_sects, len = 0, total_len = 0;
266 int i, ret, total_size;
267
268 if (!q)
269 return -ENXIO;
270
271 if (!nr_srcs)
272 return -EINVAL;
273
274 if (bdev_read_only(bdev))
275 return -EPERM;
276
277 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1;
278
279 total_size = struct_size(payload, range, nr_srcs);
280 payload = kmalloc(total_size, gfp_mask);
281 if (!payload)
282 return -ENOMEM;
283
284 for (i = 0; i < nr_srcs; i++) {
285 /* copy payload provided are in bytes */
286 src_sects = rlist[i].src;
287 if (src_sects & bs_mask) {
288 ret = -EINVAL;
289 goto err;
290 }
291 src_sects = src_sects >> SECTOR_SHIFT;
292
293 if (len & bs_mask) {
294 ret = -EINVAL;
295 goto err;
296 }
297
298 len = rlist[i].len >> SECTOR_SHIFT;
299
300 total_len += len;
301
302 WARN_ON_ONCE((src_sects << 9) > UINT_MAX);
303
304 payload->range[i].src = src_sects;
305 payload->range[i].len = len;
306 }
307
308 /* storing # of source ranges */
309 payload->copy_range = i;
310 /* storing copy len so far */
311 payload->copy_size = total_len;
312
313 *payload_p = payload;
314 return 0;
315 err:
316 kfree(payload);
317 return ret;
318 }
319
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[arm64:for-next/faultaround 1/10] mm/filemap.c:3056:3: error: implicit declaration of function 'update_mmu_cache'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/faultaround
head: de591a82f41b61af4a8fce49d21b43105c5c2186
commit: f9ce0be71d1fbb038ada15ced83474b0e63f264d [1/10] mm: Cleanup faultaround and finish_fault() codepaths
config: microblaze-randconfig-r014-20210209 (attached as .config)
compiler: microblaze-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
# https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?i...
git remote add arm64 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
git fetch --no-tags arm64 for-next/faultaround
git checkout f9ce0be71d1fbb038ada15ced83474b0e63f264d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the arm64/for-next/faultaround HEAD de591a82f41b61af4a8fce49d21b43105c5c2186 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
mm/filemap.c: In function 'filemap_map_pages':
>> mm/filemap.c:3056:3: error: implicit declaration of function 'update_mmu_cache'; did you mean 'update_mmu_tlb'? [-Werror=implicit-function-declaration]
3056 | update_mmu_cache(vma, vmf->address, vmf->pte);
| ^~~~~~~~~~~~~~~~
| update_mmu_tlb
cc1: some warnings being treated as errors
vim +3056 mm/filemap.c
3013
3014 vm_fault_t filemap_map_pages(struct vm_fault *vmf,
3015 pgoff_t start_pgoff, pgoff_t end_pgoff)
3016 {
3017 struct vm_area_struct *vma = vmf->vma;
3018 struct file *file = vma->vm_file;
3019 struct address_space *mapping = file->f_mapping;
3020 pgoff_t last_pgoff = start_pgoff;
3021 unsigned long address = vmf->address;
3022 XA_STATE(xas, &mapping->i_pages, start_pgoff);
3023 struct page *head, *page;
3024 unsigned int mmap_miss = READ_ONCE(file->f_ra.mmap_miss);
3025 vm_fault_t ret = 0;
3026
3027 rcu_read_lock();
3028 head = first_map_page(mapping, &xas, end_pgoff);
3029 if (!head)
3030 goto out;
3031
3032 if (filemap_map_pmd(vmf, head)) {
3033 ret = VM_FAULT_NOPAGE;
3034 goto out;
3035 }
3036
3037 vmf->address = vma->vm_start + ((start_pgoff - vma->vm_pgoff) << PAGE_SHIFT);
3038 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address, &vmf->ptl);
3039 do {
3040 page = find_subpage(head, xas.xa_index);
3041 if (PageHWPoison(page))
3042 goto unlock;
3043
3044 if (mmap_miss > 0)
3045 mmap_miss--;
3046
3047 vmf->address += (xas.xa_index - last_pgoff) << PAGE_SHIFT;
3048 vmf->pte += xas.xa_index - last_pgoff;
3049 last_pgoff = xas.xa_index;
3050
3051 if (!pte_none(*vmf->pte))
3052 goto unlock;
3053
3054 do_set_pte(vmf, page);
3055 /* no need to invalidate: a not-present page won't be cached */
> 3056 update_mmu_cache(vma, vmf->address, vmf->pte);
3057 unlock_page(head);
3058
3059 /* The fault is handled */
3060 if (vmf->address == address)
3061 ret = VM_FAULT_NOPAGE;
3062 continue;
3063 unlock:
3064 unlock_page(head);
3065 put_page(head);
3066 } while ((head = next_map_page(mapping, &xas, end_pgoff)) != NULL);
3067 pte_unmap_unlock(vmf->pte, vmf->ptl);
3068 out:
3069 rcu_read_unlock();
3070 vmf->address = address;
3071 WRITE_ONCE(file->f_ra.mmap_miss, mmap_miss);
3072 return ret;
3073 }
3074 EXPORT_SYMBOL(filemap_map_pages);
3075
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[luto:x86/fixes 10/17] kernel/sched/core.c:4300:3: error: implicit declaration of function 'membarrier_finish_switch_mm'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/fixes
head: 087ddc16a1dd1d4cb567859f56eb0b28ef65ee6c
commit: 4def0489e2ed12c2280087e780bd67995b5cc537 [10/17] membarrier: Make the post-switch-mm barrier explicit
config: x86_64-randconfig-a006-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?id...
git remote add luto https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git
git fetch --no-tags luto x86/fixes
git checkout 4def0489e2ed12c2280087e780bd67995b5cc537
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/sched/core.c:2835:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
2835 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/core.c: In function 'schedule_tail':
kernel/sched/core.c:4240:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
4240 | struct rq *rq;
| ^~
kernel/sched/core.c: In function 'context_switch':
>> kernel/sched/core.c:4300:3: error: implicit declaration of function 'membarrier_finish_switch_mm'; did you mean 'membarrier_switch_mm'? [-Werror=implicit-function-declaration]
4300 | membarrier_finish_switch_mm(rq->membarrier_state);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| membarrier_switch_mm
kernel/sched/core.c:4300:33: error: 'struct rq' has no member named 'membarrier_state'
4300 | membarrier_finish_switch_mm(rq->membarrier_state);
| ^~
cc1: some warnings being treated as errors
vim +4300 kernel/sched/core.c
4259
4260 /*
4261 * context_switch - switch to the new MM and the new thread's register state.
4262 */
4263 static __always_inline struct rq *
4264 context_switch(struct rq *rq, struct task_struct *prev,
4265 struct task_struct *next, struct rq_flags *rf)
4266 {
4267 prepare_task_switch(rq, prev, next);
4268
4269 /*
4270 * For paravirt, this is coupled with an exit in switch_to to
4271 * combine the page table reload and the switch backend into
4272 * one hypercall.
4273 */
4274 arch_start_context_switch(prev);
4275
4276 /*
4277 * kernel -> kernel lazy + transfer active
4278 * user -> kernel lazy + mmgrab() active
4279 *
4280 * kernel -> user switch + mmdrop() active
4281 * user -> user switch
4282 */
4283 if (!next->mm) { // to kernel
4284 enter_lazy_tlb(prev->active_mm, next);
4285
4286 next->active_mm = prev->active_mm;
4287 if (prev->mm) // from user
4288 mmgrab(prev->active_mm);
4289 else
4290 prev->active_mm = NULL;
4291 } else { // to user
4292 membarrier_switch_mm(rq, prev->active_mm, next->mm);
4293 switch_mm_irqs_off(prev->active_mm, next->mm, next);
4294
4295 /*
4296 * sys_membarrier() requires an smp_mb() between setting
4297 * rq->curr->mm to a membarrier-enabled mm and returning
4298 * to userspace.
4299 */
> 4300 membarrier_finish_switch_mm(rq->membarrier_state);
4301
4302 if (!prev->mm) { // from kernel
4303 /* will mmdrop() in finish_task_switch(). */
4304 rq->prev_mm = prev->active_mm;
4305 prev->active_mm = NULL;
4306 }
4307 }
4308
4309 rq->clock_update_flags &= ~(RQCF_ACT_SKIP|RQCF_REQ_SKIP);
4310
4311 prepare_lock_switch(rq, next, rf);
4312
4313 /* Here we just switch the register state and the stack. */
4314 switch_to(prev, next, prev);
4315 barrier();
4316
4317 return finish_task_switch(prev);
4318 }
4319
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH 1/2] quota: Add mountpath based quota support
by kernel test robot
Hi Sascha,
I love your patch! Yet something to improve:
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on tip/x86/asm m68k/for-next hp-parisc/for-next powerpc/next s390/features linus/master v5.11-rc7 next-20210211]
[cannot apply to sparc/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Sascha-Hauer/quota-Add-mountpath...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: x86_64-randconfig-a012-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/4b7a3df11dd2ca215a6e9b24d81c98d69...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sascha-Hauer/quota-Add-mountpath-based-quota-support/20210211-233912
git checkout 4b7a3df11dd2ca215a6e9b24d81c98d6951476b6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> fs/quota/quota.c:995:6: error: implicit declaration of function 'quotactl_cmd_write' [-Werror,-Wimplicit-function-declaration]
if (quotactl_cmd_write(cmds)) {
^
fs/quota/quota.c:995:6: note: did you mean 'quotactl_cmd_onoff'?
fs/quota/quota.c:857:13: note: 'quotactl_cmd_onoff' declared here
static bool quotactl_cmd_onoff(int cmd)
^
1 error generated.
vim +/quotactl_cmd_write +995 fs/quota/quota.c
972
973 SYSCALL_DEFINE4(quotactl_path, unsigned int, cmd, const char __user *,
974 mountpoint, qid_t, id, void __user *, addr)
975 {
976 struct super_block *sb;
977 struct path mountpath;
978 unsigned int cmds = cmd >> SUBCMDSHIFT;
979 unsigned int type = cmd & SUBCMDMASK;
980 int ret;
981
982 if (type >= MAXQUOTAS)
983 return -EINVAL;
984
985 if (!mountpoint)
986 return -ENODEV;
987
988 ret = user_path_at(AT_FDCWD, mountpoint,
989 LOOKUP_FOLLOW | LOOKUP_AUTOMOUNT, &mountpath);
990 if (ret)
991 return ret;
992
993 sb = mountpath.dentry->d_inode->i_sb;
994
> 995 if (quotactl_cmd_write(cmds)) {
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months