drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: 0347c69214f4b600f40c0dc58945dc2798e2b3d9 phy: Add USB HSIC PHY driver for Marvell MMP3 SoC
date: 1 year ago
config: riscv-randconfig-s032-20211109 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# 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 0347c69214f4b600f40c0dc58945dc2798e2b3d9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/ drivers/clk/qcom/ drivers/clocksource/ drivers/firmware/arm_scmi/ drivers/firmware/efi/test/ drivers/mmc/host/ drivers/mtd/nand/onenand/ drivers/mtd/nand/raw/ drivers/pci/endpoint/functions/ drivers/phy/marvell/ drivers/pwm/ drivers/soc/bcm/bcm63xx/ drivers/staging/vc04_services/ drivers/uio/ drivers/usb/gadget/function/ drivers/video/fbdev/ fs/ kernel/ lib/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression
vim +/__iomem +61 drivers/phy/marvell/phy-mmp3-hsic.c
39
40 static int mmp3_hsic_phy_probe(struct platform_device *pdev)
41 {
42 struct device *dev = &pdev->dev;
43 struct phy_provider *provider;
44 struct resource *resource;
45 void __iomem *base;
46 struct phy *phy;
47
48 resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
49 base = devm_ioremap_resource(dev, resource);
50 if (IS_ERR(base)) {
51 dev_err(dev, "failed to remap PHY regs\n");
52 return PTR_ERR(base);
53 }
54
55 phy = devm_phy_create(dev, NULL, &mmp3_hsic_phy_ops);
56 if (IS_ERR(phy)) {
57 dev_err(dev, "failed to create PHY\n");
58 return PTR_ERR(phy);
59 }
60
> 61 phy_set_drvdata(phy, (void *)base);
62 provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
63 if (IS_ERR(provider)) {
64 dev_err(dev, "failed to register PHY provider\n");
65 return PTR_ERR(provider);
66 }
67
68 return 0;
69 }
70
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v2 1/2] PCI: hv: Make the code arch neutral
by kernel test robot
Hi Sunil,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on e4e737bb5c170df6135a127739a9e6148ee3da82]
url: https://github.com/0day-ci/linux/commits/Sunil-Muthuswamy/PCI-hv-Hyper-V-...
base: e4e737bb5c170df6135a127739a9e6148ee3da82
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/8f266a9b41d3dfc1600cecaba80ea116d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sunil-Muthuswamy/PCI-hv-Hyper-V-vPCI-for-ARM64/20211009-012330
git checkout 8f266a9b41d3dfc1600cecaba80ea116dc6edf27
# 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/pci/controller/pci-hyperv-irqchip.c:18:5: error: no previous prototype for 'hv_pci_irqchip_init' [-Werror=missing-prototypes]
18 | int hv_pci_irqchip_init(struct irq_domain **parent_domain,
| ^~~~~~~~~~~~~~~~~~~
>> drivers/pci/controller/pci-hyperv-irqchip.c:29:6: error: no previous prototype for 'hv_pci_irqchip_free' [-Werror=missing-prototypes]
29 | void hv_pci_irqchip_free(void) {}
| ^~~~~~~~~~~~~~~~~~~
>> drivers/pci/controller/pci-hyperv-irqchip.c:31:14: error: no previous prototype for 'hv_msi_get_int_vector' [-Werror=missing-prototypes]
31 | unsigned int hv_msi_get_int_vector(struct irq_data *data)
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/controller/pci-hyperv-irqchip.c:38:6: error: no previous prototype for 'hv_set_msi_entry_from_desc' [-Werror=missing-prototypes]
38 | void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/controller/pci-hyperv-irqchip.c:45:5: error: no previous prototype for 'hv_msi_prepare' [-Werror=missing-prototypes]
45 | int hv_msi_prepare(struct irq_domain *domain, struct device *dev,
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/hv_pci_irqchip_init +18 drivers/pci/controller/pci-hyperv-irqchip.c
16
17 #ifdef CONFIG_X86_64
> 18 int hv_pci_irqchip_init(struct irq_domain **parent_domain,
19 bool *fasteoi_handler,
20 u8 *delivery_mode)
21 {
22 *parent_domain = x86_vector_domain;
23 *fasteoi_handler = false;
24 *delivery_mode = APIC_DELIVERY_MODE_FIXED;
25
26 return 0;
27 }
28
> 29 void hv_pci_irqchip_free(void) {}
30
> 31 unsigned int hv_msi_get_int_vector(struct irq_data *data)
32 {
33 struct irq_cfg *cfg = irqd_cfg(data);
34
35 return cfg->vector;
36 }
37
> 38 void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry,
39 struct msi_desc *msi_desc)
40 {
41 msi_entry->address.as_uint32 = msi_desc->msg.address_lo;
42 msi_entry->data.as_uint32 = msi_desc->msg.data;
43 }
44
> 45 int hv_msi_prepare(struct irq_domain *domain, struct device *dev,
46 int nvec, msi_alloc_info_t *info)
47 {
48 return pci_msi_prepare(domain, dev, nvec, info);
49 }
50
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH bpf] bpf: Make CONFIG_DEBUG_INFO_BTF depend upon CONFIG_BPF_SYSCALL
by kernel test robot
Hi Kumar,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf/master]
url: https://github.com/0day-ci/linux/commits/Kumar-Kartikeya-Dwivedi/bpf-Make...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
config: i386-debian-10.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/ea181ce7046ae7f916b4ede6b04c48416...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kumar-Kartikeya-Dwivedi/bpf-Make-CONFIG_DEBUG_INFO_BTF-depend-upon-CONFIG_BPF_SYSCALL/20211112-100114
git checkout ea181ce7046ae7f916b4ede6b04c48416d89b0b2
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
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/bpf/btf.c: In function 'btf_seq_show':
kernel/bpf/btf.c:5876:22: warning: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
5876 | seq_vprintf((struct seq_file *)show->target, fmt, args);
| ^~~~~~~~
kernel/bpf/btf.c: In function 'btf_snprintf_show':
kernel/bpf/btf.c:5913:2: warning: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
5913 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
| ^~~
kernel/bpf/btf.c: At top level:
kernel/bpf/btf.c:6349:8: error: redefinition of 'struct kfunc_btf_id_list'
6349 | struct kfunc_btf_id_list {
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/bpf_verifier.h:8,
from kernel/bpf/btf.c:19:
include/linux/btf.h:275:8: note: originally defined here
275 | struct kfunc_btf_id_list {};
| ^~~~~~~~~~~~~~~~~
>> kernel/bpf/btf.c:6399:26: error: conflicting types for 'bpf_tcp_ca_kfunc_list'
6399 | DEFINE_KFUNC_BTF_ID_LIST(bpf_tcp_ca_kfunc_list);
| ^~~~~~~~~~~~~~~~~~~~~
kernel/bpf/btf.c:6395:27: note: in definition of macro 'DEFINE_KFUNC_BTF_ID_LIST'
6395 | struct kfunc_btf_id_list name = { LIST_HEAD_INIT(name.list), \
| ^~~~
In file included from include/linux/bpf_verifier.h:8,
from kernel/bpf/btf.c:19:
include/linux/btf.h:276:33: note: previous declaration of 'bpf_tcp_ca_kfunc_list' was here
276 | static struct kfunc_btf_id_list bpf_tcp_ca_kfunc_list __maybe_unused;
| ^~~~~~~~~~~~~~~~~~~~~
>> kernel/bpf/btf.c:6400:26: error: conflicting types for 'prog_test_kfunc_list'
6400 | DEFINE_KFUNC_BTF_ID_LIST(prog_test_kfunc_list);
| ^~~~~~~~~~~~~~~~~~~~
kernel/bpf/btf.c:6395:27: note: in definition of macro 'DEFINE_KFUNC_BTF_ID_LIST'
6395 | struct kfunc_btf_id_list name = { LIST_HEAD_INIT(name.list), \
| ^~~~
In file included from include/linux/bpf_verifier.h:8,
from kernel/bpf/btf.c:19:
include/linux/btf.h:277:33: note: previous declaration of 'prog_test_kfunc_list' was here
277 | static struct kfunc_btf_id_list prog_test_kfunc_list __maybe_unused;
| ^~~~~~~~~~~~~~~~~~~~
vim +/bpf_tcp_ca_kfunc_list +6399 kernel/bpf/btf.c
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02 6393
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02 6394 #define DEFINE_KFUNC_BTF_ID_LIST(name) \
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02 6395 struct kfunc_btf_id_list name = { LIST_HEAD_INIT(name.list), \
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02 6396 __MUTEX_INITIALIZER(name.mutex) }; \
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02 6397 EXPORT_SYMBOL_GPL(name)
0e32dfc80bae53 Kumar Kartikeya Dwivedi 2021-10-02 6398
0e32dfc80bae53 Kumar Kartikeya Dwivedi 2021-10-02 @6399 DEFINE_KFUNC_BTF_ID_LIST(bpf_tcp_ca_kfunc_list);
c48e51c8b07aba Kumar Kartikeya Dwivedi 2021-10-02 @6400 DEFINE_KFUNC_BTF_ID_LIST(prog_test_kfunc_list);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[aegl:dsa_page_zero_prototype 31/39] drivers/dma/idxd/dsa_page_clear_engine.c:29:5: error: no previous prototype for 'get_clear_pages'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git dsa_page_zero_prototype
head: 443bff56d346197a2f8c09c7159ebc9e7440429b
commit: ec41aa6ef6cba25e349a04e3b4cc1e37217d54f6 [31/39] mm/pagezero: Add stub driver to test registration API
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git/commit/?id...
git remote add aegl https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git
git fetch --no-tags aegl dsa_page_zero_prototype
git checkout ec41aa6ef6cba25e349a04e3b4cc1e37217d54f6
# 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/dma/idxd/dsa_page_clear_engine.c:29:5: error: no previous prototype for 'get_clear_pages' [-Werror=missing-prototypes]
29 | int get_clear_pages(void *v, int migratetype, int want, struct list_head *l, int *countp)
| ^~~~~~~~~~~~~~~
>> drivers/dma/idxd/dsa_page_clear_engine.c:35:6: error: no previous prototype for 'add_new_page' [-Werror=missing-prototypes]
35 | void add_new_page(void *v, struct page *page)
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/get_clear_pages +29 drivers/dma/idxd/dsa_page_clear_engine.c
27
28 /* Called with zone->lock held */
> 29 int get_clear_pages(void *v, int migratetype, int want, struct list_head *l, int *countp)
30 {
31 return 0;
32 }
33
34 /* Called with zone->lock held */
> 35 void add_new_page(void *v, struct page *page)
36 {
37 }
38
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/hwmon/corsair-psu.c:536:82: sparse: sparse: Using plain integer as NULL pointer
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: d115b51e0e567199c821fc39e13b6af7e78f247d hwmon: add Corsair PSU HID controller driver
date: 11 months ago
config: riscv-randconfig-s031-20211109 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# 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 d115b51e0e567199c821fc39e13b6af7e78f247d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash block/ drivers/hid/ drivers/hwmon/ drivers/i2c/busses/ drivers/message/fusion/ drivers/net/ethernet/ drivers/net/wireless/intel/iwlwifi/ drivers/pci/ drivers/remoteproc/ drivers/rtc/ drivers/staging/rts5208/ drivers/staging/vc04_services/ drivers/tty/serial/ drivers/vdpa/ drivers/video/fbdev/ net/qrtr/ net/sched/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/hwmon/corsair-psu.c:536:82: sparse: sparse: Using plain integer as NULL pointer
vim +536 drivers/hwmon/corsair-psu.c
490
491 static int corsairpsu_probe(struct hid_device *hdev, const struct hid_device_id *id)
492 {
493 struct corsairpsu_data *priv;
494 int ret;
495
496 priv = devm_kzalloc(&hdev->dev, sizeof(struct corsairpsu_data), GFP_KERNEL);
497 if (!priv)
498 return -ENOMEM;
499
500 priv->cmd_buffer = devm_kmalloc(&hdev->dev, CMD_BUFFER_SIZE, GFP_KERNEL);
501 if (!priv->cmd_buffer)
502 return -ENOMEM;
503
504 ret = hid_parse(hdev);
505 if (ret)
506 return ret;
507
508 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW);
509 if (ret)
510 return ret;
511
512 ret = hid_hw_open(hdev);
513 if (ret)
514 goto fail_and_stop;
515
516 priv->hdev = hdev;
517 hid_set_drvdata(hdev, priv);
518 mutex_init(&priv->lock);
519 init_completion(&priv->wait_completion);
520
521 hid_device_io_start(hdev);
522
523 ret = corsairpsu_init(priv);
524 if (ret < 0) {
525 dev_err(&hdev->dev, "unable to initialize device (%d)\n", ret);
526 goto fail_and_stop;
527 }
528
529 ret = corsairpsu_fwinfo(priv);
530 if (ret < 0) {
531 dev_err(&hdev->dev, "unable to query firmware (%d)\n", ret);
532 goto fail_and_stop;
533 }
534
535 priv->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "corsairpsu", priv,
> 536 &corsairpsu_chip_info, 0);
537
538 if (IS_ERR(priv->hwmon_dev)) {
539 ret = PTR_ERR(priv->hwmon_dev);
540 goto fail_and_close;
541 }
542
543 corsairpsu_debugfs_init(priv);
544
545 return 0;
546
547 fail_and_close:
548 hid_hw_close(hdev);
549 fail_and_stop:
550 hid_hw_stop(hdev);
551 return ret;
552 }
553
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
debug_vm_pgtable.c:undefined reference to `pmd_set_huge'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: d8a719059b9dc963aa190598778ac804ff3e6a87 Revert "mm/pgtable: add stubs for {pmd/pub}_{set/clear}_huge"
date: 4 months ago
config: powerpc-randconfig-c024-20211012 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.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 d8a719059b9dc963aa190598778ac804ff3e6a87
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash
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 >>):
powerpc-linux-ld: mm/debug_vm_pgtable.o: in function `debug_vm_pgtable':
>> debug_vm_pgtable.c:(.init.text+0x9d0): undefined reference to `pmd_set_huge'
>> powerpc-linux-ld: debug_vm_pgtable.c:(.init.text+0xaf4): undefined reference to `pud_set_huge'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_set_suspend':
(.text+0x424): undefined reference to `fb_set_suspend'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_resume_worker':
drm_fb_helper.c:(.text+0x4b0): undefined reference to `fb_set_suspend'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_unregister_fbi':
(.text+0x818): undefined reference to `unregister_framebuffer'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_fini':
(.text+0x9b8): undefined reference to `fb_dealloc_cmap'
powerpc-linux-ld: (.text+0x9d8): undefined reference to `framebuffer_release'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_read':
(.text+0xbe8): undefined reference to `fb_sys_read'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_alloc_fbi':
(.text+0x34f8): undefined reference to `framebuffer_alloc'
powerpc-linux-ld: (.text+0x3554): undefined reference to `fb_alloc_cmap'
powerpc-linux-ld: (.text+0x3618): undefined reference to `fb_dealloc_cmap'
powerpc-linux-ld: (.text+0x3674): undefined reference to `framebuffer_release'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `__drm_fb_helper_initial_config_and_unlock':
drm_fb_helper.c:(.text+0x37b0): undefined reference to `register_framebuffer'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_set_suspend_unlocked':
(.text+0x4518): undefined reference to `fb_set_suspend'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_generic_probe':
drm_fb_helper.c:(.text+0x58f8): undefined reference to `fb_deferred_io_init'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_write':
(.text+0x644c): undefined reference to `fb_sys_write'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_fillrect':
(.text+0x6534): undefined reference to `sys_fillrect'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_copyarea':
(.text+0x65b4): undefined reference to `sys_copyarea'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_imageblit':
(.text+0x6634): undefined reference to `sys_imageblit'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_fillrect':
(.text+0x66b4): undefined reference to `cfb_fillrect'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_copyarea':
(.text+0x6734): undefined reference to `cfb_copyarea'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_imageblit':
(.text+0x67b4): undefined reference to `cfb_imageblit'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_fb_imageblit':
drm_fb_helper.c:(.text+0x6c30): undefined reference to `cfb_imageblit'
powerpc-linux-ld: drm_fb_helper.c:(.text+0x6c58): undefined reference to `sys_imageblit'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_fb_copyarea':
drm_fb_helper.c:(.text+0x6d30): undefined reference to `cfb_copyarea'
powerpc-linux-ld: drm_fb_helper.c:(.text+0x6d58): undefined reference to `sys_copyarea'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_fb_fillrect':
drm_fb_helper.c:(.text+0x6e30): undefined reference to `cfb_fillrect'
powerpc-linux-ld: drm_fb_helper.c:(.text+0x6e58): undefined reference to `sys_fillrect'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_cleanup':
drm_fb_helper.c:(.text+0x734c): undefined reference to `fb_deferred_io_cleanup'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v1 1/1] fpga: dfl: pci: Use pci_find_vsec_capability() when looking for DFL
by kernel test robot
Hi Andy,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.15 next-20211111]
[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/Andy-Shevchenko/fpga-dfl-pci-Use...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d2f38a3c6507b2520101f9a3807ed98f1bdc545a
config: i386-buildonly-randconfig-r005-20211112 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 63ef0e17e28827eae53133b3467bdac7d9729318)
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://github.com/0day-ci/linux/commit/dfc10076ac7a63331954a33cabf94a1af...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andy-Shevchenko/fpga-dfl-pci-Use-pci_find_vsec_capability-when-looking-for-DFL/20211109-234228
git checkout dfc10076ac7a63331954a33cabf94a1af3632210
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/ sound/
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/fpga/dfl-pci.c:146:34: error: use of undeclared identifier 'dev'
voff = pci_find_vsec_capability(dev, PCI_VENDOR_ID_INTEL, PCI_VSEC_ID_INTEL_DFLS);
^
>> drivers/fpga/dfl-pci.c:350:32: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
if (!pci_set_dma_mask(pcidev, DMA_BIT_MASK(64))) {
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
drivers/fpga/dfl-pci.c:351:45: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
ret = pci_set_consistent_dma_mask(pcidev, DMA_BIT_MASK(64));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
3 errors generated.
vim +/dev +146 drivers/fpga/dfl-pci.c
138
139 static int find_dfls_by_vsec(struct pci_dev *pcidev, struct dfl_fpga_enum_info *info)
140 {
141 u32 bir, offset, dfl_cnt, dfl_res;
142 resource_size_t start, len;
143 int dfl_res_off, i, bars;
144 u16 voff;
145
> 146 voff = pci_find_vsec_capability(dev, PCI_VENDOR_ID_INTEL, PCI_VSEC_ID_INTEL_DFLS);
147 if (!voff) {
148 dev_dbg(&pcidev->dev, "%s no DFL VSEC found\n", __func__);
149 return -ENODEV;
150 }
151
152 dfl_cnt = 0;
153 pci_read_config_dword(pcidev, voff + PCI_VNDR_DFLS_CNT, &dfl_cnt);
154 if (dfl_cnt > PCI_STD_NUM_BARS) {
155 dev_err(&pcidev->dev, "%s too many DFLs %d > %d\n",
156 __func__, dfl_cnt, PCI_STD_NUM_BARS);
157 return -EINVAL;
158 }
159
160 dfl_res_off = voff + PCI_VNDR_DFLS_RES;
161 if (dfl_res_off + (dfl_cnt * sizeof(u32)) > PCI_CFG_SPACE_EXP_SIZE) {
162 dev_err(&pcidev->dev, "%s DFL VSEC too big for PCIe config space\n",
163 __func__);
164 return -EINVAL;
165 }
166
167 for (i = 0, bars = 0; i < dfl_cnt; i++, dfl_res_off += sizeof(u32)) {
168 dfl_res = GENMASK(31, 0);
169 pci_read_config_dword(pcidev, dfl_res_off, &dfl_res);
170
171 bir = dfl_res & PCI_VNDR_DFLS_RES_BAR_MASK;
172 if (bir >= PCI_STD_NUM_BARS) {
173 dev_err(&pcidev->dev, "%s bad bir number %d\n",
174 __func__, bir);
175 return -EINVAL;
176 }
177
178 if (bars & BIT(bir)) {
179 dev_err(&pcidev->dev, "%s DFL for BAR %d already specified\n",
180 __func__, bir);
181 return -EINVAL;
182 }
183
184 bars |= BIT(bir);
185
186 len = pci_resource_len(pcidev, bir);
187 offset = dfl_res & PCI_VNDR_DFLS_RES_OFF_MASK;
188 if (offset >= len) {
189 dev_err(&pcidev->dev, "%s bad offset %u >= %pa\n",
190 __func__, offset, &len);
191 return -EINVAL;
192 }
193
194 dev_dbg(&pcidev->dev, "%s BAR %d offset 0x%x\n", __func__, bir, offset);
195
196 len -= offset;
197
198 start = pci_resource_start(pcidev, bir) + offset;
199
200 dfl_fpga_enum_info_add_dfl(info, start, len);
201 }
202
203 return 0;
204 }
205
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[ti:ti-rt-linux-5.10.y 10189/10194] drivers/media/platform/vxe-vxd/encoder/../common/img_mem_unified.c:159:17: error: implicit declaration of function 'vunmap'; did you mean 'iounmap'?
by kernel test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: aafb1bd67f22b44cf5f8072266002696adaa21b0
commit: caf6d714b87dee7429cb6b9cf60a3cba0061bfd6 [10189/10194] media: platform: Kconfig: Add Video decoder Kconfig and Makefile
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 11.2.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 remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout caf6d714b87dee7429cb6b9cf60a3cba0061bfd6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c: In function 'device_run':
>> drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:317:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
317 | ctx->frame_num, (unsigned long long)ctx);
| ^
drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c: In function 'vxe_enc_probe':
drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1811:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1811 | ret = topazdd_init((unsigned long long)vxe->reg_base, res->end - res->start + 1,
| ^
In file included from include/linux/bitmap.h:9,
from include/linux/cpumask.h:12,
from include/linux/smp.h:13,
from arch/mips/include/asm/cpu-type.h:12,
from arch/mips/include/asm/timex.h:19,
from include/linux/timex.h:65,
from include/linux/time32.h:13,
from include/linux/time.h:73,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:16:
In function 'strncpy',
inlined from 'vxe_queryctrl' at drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1281:4:
include/linux/string.h:290:33: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
290 | #define __underlying_strncpy __builtin_strncpy
| ^
include/linux/string.h:300:16: note: in expansion of macro '__underlying_strncpy'
300 | return __underlying_strncpy(p, q, size);
| ^~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
inlined from 'vxe_queryctrl' at drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1264:5:
include/linux/string.h:290:33: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
290 | #define __underlying_strncpy __builtin_strncpy
| ^
include/linux/string.h:300:16: note: in expansion of macro '__underlying_strncpy'
300 | return __underlying_strncpy(p, q, size);
| ^~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
inlined from 'vxe_query_ext_ctrl' at drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1339:4:
include/linux/string.h:290:33: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
290 | #define __underlying_strncpy __builtin_strncpy
| ^
include/linux/string.h:300:16: note: in expansion of macro '__underlying_strncpy'
300 | return __underlying_strncpy(p, q, size);
| ^~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
inlined from 'vxe_query_ext_ctrl' at drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1316:5:
include/linux/string.h:290:33: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
290 | #define __underlying_strncpy __builtin_strncpy
| ^
include/linux/string.h:300:16: note: in expansion of macro '__underlying_strncpy'
300 | return __underlying_strncpy(p, q, size);
| ^~~~~~~~~~~~~~~~~~~~
--
>> drivers/media/platform/vxe-vxd/encoder/vxe_enc.c:30:6: warning: no previous prototype for 'mmu_callback' [-Wmissing-prototypes]
30 | void mmu_callback(enum mmu_callback_type callback_type,
| ^~~~~~~~~~~~
--
In file included from drivers/media/platform/vxe-vxd/encoder/topaz_device.c:37:
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h: In function 'ioreg32_poll_iseq':
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
53 | val = ioread32((void *)addr);
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'topazdd_int_enable':
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:192:9: note: in expansion of macro 'VXE_WR_REG32'
192 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_HOST_INT_ENAB, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:192:9: note: in expansion of macro 'VXE_WR_REG32'
192 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_HOST_INT_ENAB, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'topazdd_int_disable':
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:212:9: note: in expansion of macro 'VXE_WR_REG32'
212 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_HOST_INT_ENAB, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:212:9: note: in expansion of macro 'VXE_WR_REG32'
212 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_HOST_INT_ENAB, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'set_auto_clock_gating':
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:305:9: note: in expansion of macro 'VXE_WR_REG32'
305 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CORE_SEL_0, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:305:9: note: in expansion of macro 'VXE_WR_REG32'
305 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CORE_SEL_0, reg);
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:322:9: note: in expansion of macro 'VXE_WR_REG32'
322 | VXE_WR_REG32(ctx->hp_core_reg_addr[0], TOPAZHP_CR_TOPAZHP_AUTO_CLOCK_GATING, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:322:9: note: in expansion of macro 'VXE_WR_REG32'
322 | VXE_WR_REG32(ctx->hp_core_reg_addr[0], TOPAZHP_CR_TOPAZHP_AUTO_CLOCK_GATING, reg);
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:330:9: note: in expansion of macro 'VXE_WR_REG32'
330 | VXE_WR_REG32(ctx->hp_core_reg_addr[0], TOPAZHP_CR_TOPAZHP_MAN_CLOCK_GATING, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:330:9: note: in expansion of macro 'VXE_WR_REG32'
330 | VXE_WR_REG32(ctx->hp_core_reg_addr[0], TOPAZHP_CR_TOPAZHP_MAN_CLOCK_GATING, reg);
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:333:9: note: in expansion of macro 'VXE_WR_REG32'
333 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CORE_SEL_0, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:333:9: note: in expansion of macro 'VXE_WR_REG32'
333 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CORE_SEL_0, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/topaz_device.c: At top level:
>> drivers/media/platform/vxe-vxd/encoder/topaz_device.c:348:5: warning: no previous prototype for 'comm_prepare_fw' [-Wmissing-prototypes]
348 | int comm_prepare_fw(struct img_fw_context *fw_ctx, enum img_codec codec)
| ^~~~~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/topaz_device.c:396:6: warning: no previous prototype for 'comm_load_h264_tables' [-Wmissing-prototypes]
396 | void comm_load_h264_tables(struct topaz_dev_ctx *ctx)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/media/platform/vxe-vxd/encoder/topaz_device.c:37:
drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'comm_load_h264_tables':
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:404:17: note: in expansion of macro 'VXE_WR_REG32'
404 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE4, 0);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:404:17: note: in expansion of macro 'VXE_WR_REG32'
404 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE4, 0);
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:405:17: note: in expansion of macro 'VXE_WR_REG32'
405 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE5,
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:405:17: note: in expansion of macro 'VXE_WR_REG32'
405 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE5,
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:407:17: note: in expansion of macro 'VXE_WR_REG32'
407 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE6,
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:407:17: note: in expansion of macro 'VXE_WR_REG32'
407 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE6,
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:409:17: note: in expansion of macro 'VXE_WR_REG32'
409 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE7,
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:409:17: note: in expansion of macro 'VXE_WR_REG32'
409 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE7,
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:414:17: note: in expansion of macro 'VXE_WR_REG32'
414 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG8, 0x00000006);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:414:17: note: in expansion of macro 'VXE_WR_REG32'
414 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG8, 0x00000006);
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:415:17: note: in expansion of macro 'VXE_WR_REG32'
415 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG9, 0x00000406);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:415:17: note: in expansion of macro 'VXE_WR_REG32'
415 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG9, 0x00000406);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/topaz_device.c: At top level:
>> drivers/media/platform/vxe-vxd/encoder/topaz_device.c:422:6: warning: no previous prototype for 'comm_load_tables' [-Wmissing-prototypes]
422 | void comm_load_tables(struct topaz_dev_ctx *ctx)
| ^~~~~~~~~~~~~~~~
In file included from drivers/media/platform/vxe-vxd/encoder/topaz_device.c:37:
drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'comm_load_tables':
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:428:17: note: in expansion of macro 'VXE_WR_REG32'
428 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE4, 0);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:428:17: note: in expansion of macro 'VXE_WR_REG32'
428 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE4, 0);
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:429:17: note: in expansion of macro 'VXE_WR_REG32'
429 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE6, 0);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:429:17: note: in expansion of macro 'VXE_WR_REG32'
429 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE6, 0);
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:430:17: note: in expansion of macro 'VXE_WR_REG32'
430 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE7,
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:430:17: note: in expansion of macro 'VXE_WR_REG32'
430 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_RC_CONFIG_TABLE7,
| ^~~~~~~~~~~~
>> drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:435:17: note: in expansion of macro 'VXE_WR_REG32'
435 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG8, 0x00000006);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:435:17: note: in expansion of macro 'VXE_WR_REG32'
435 | VXE_WR_REG32(ctx->hp_core_reg_addr[pipe], TOPAZHP_CR_RC_CONFIG_REG8, 0x00000006);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/topaz_device.c: At top level:
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:456:6: warning: no previous prototype for 'topaz_setup_firmware' [-Wmissing-prototypes]
456 | void topaz_setup_firmware(struct topaz_dev_ctx *ctx,
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/media/platform/vxe-vxd/encoder/topaz_device.c:37:
drivers/media/platform/vxe-vxd/encoder/topaz_device.c: In function 'topaz_setup_firmware':
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:477:9: note: in expansion of macro 'VXE_WR_REG32'
477 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_SECURE_CONFIG, secure_reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:477:9: note: in expansion of macro 'VXE_WR_REG32'
477 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_SECURE_CONFIG, secure_reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:493:9: note: in expansion of macro 'VXE_WR_REG32'
493 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_FIRMWARE_REG_1 +
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:493:9: note: in expansion of macro 'VXE_WR_REG32'
493 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_FIRMWARE_REG_1 +
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:499:9: note: in expansion of macro 'VXE_WR_REG32'
499 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_FIRMWARE_REG_1 +
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:499:9: note: in expansion of macro 'VXE_WR_REG32'
499 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_FIRMWARE_REG_1 +
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:506:9: note: in expansion of macro 'VXE_WR_REG32'
506 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_SRST, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:506:9: note: in expansion of macro 'VXE_WR_REG32'
506 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_SRST, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:507:9: note: in expansion of macro 'VXE_WR_REG32'
507 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_SRST, 0x0);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:507:9: note: in expansion of macro 'VXE_WR_REG32'
507 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_SRST, 0x0);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:516:17: note: in expansion of macro 'VXE_WR_REG32'
516 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_TOPAZ_CMD_FIFO_FLUSH, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:516:17: note: in expansion of macro 'VXE_WR_REG32'
516 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_TOPAZ_CMD_FIFO_FLUSH, reg);
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:521:17: note: in expansion of macro 'VXE_WR_REG32'
521 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CMD_FIFO_WRITE,
| ^~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_public_regdefs.h:25:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
25 | (iowrite32((val), (void *)((offs) + (unsigned long long)(base))))
| ^
drivers/media/platform/vxe-vxd/encoder/topaz_device.c:521:17: note: in expansion of macro 'VXE_WR_REG32'
521 | VXE_WR_REG32(ctx->multi_core_mem_addr, TOPAZHP_TOP_CR_MULTICORE_CMD_FIFO_WRITE,
..
vim +159 drivers/media/platform/vxe-vxd/encoder/../common/img_mem_unified.c
b738db9eda05d06 Sidraya 2021-11-02 145
b738db9eda05d06 Sidraya 2021-11-02 146 static void unified_free(struct heap *heap, struct buffer *buffer)
b738db9eda05d06 Sidraya 2021-11-02 147 {
b738db9eda05d06 Sidraya 2021-11-02 148 void *dev = buffer->device;
b738db9eda05d06 Sidraya 2021-11-02 149 void *sgt = buffer->priv;
b738db9eda05d06 Sidraya 2021-11-02 150 void *sgl;
b738db9eda05d06 Sidraya 2021-11-02 151
b738db9eda05d06 Sidraya 2021-11-02 152 dev_dbg(dev, "%s:%d buffer %d (0x%p)\n", __func__, __LINE__,
b738db9eda05d06 Sidraya 2021-11-02 153 buffer->id, buffer);
b738db9eda05d06 Sidraya 2021-11-02 154
b738db9eda05d06 Sidraya 2021-11-02 155 if (buffer->kptr) {
b738db9eda05d06 Sidraya 2021-11-02 156 dev_dbg(dev, "%s vunmap 0x%p\n", __func__, buffer->kptr);
b738db9eda05d06 Sidraya 2021-11-02 157 dma_unmap_sg(dev, img_mmu_get_sgl(sgt), img_mmu_get_orig_nents(sgt),
b738db9eda05d06 Sidraya 2021-11-02 158 DMA_FROM_DEVICE);
b738db9eda05d06 Sidraya 2021-11-02 @159 vunmap(buffer->kptr);
b738db9eda05d06 Sidraya 2021-11-02 160 }
b738db9eda05d06 Sidraya 2021-11-02 161
b738db9eda05d06 Sidraya 2021-11-02 162 sgl = img_mmu_get_sgl(sgt);
b738db9eda05d06 Sidraya 2021-11-02 163 while (sgl) {
b738db9eda05d06 Sidraya 2021-11-02 164 __free_page(sg_page(sgl));
b738db9eda05d06 Sidraya 2021-11-02 165 sgl = sg_next(sgl);
b738db9eda05d06 Sidraya 2021-11-02 166 }
b738db9eda05d06 Sidraya 2021-11-02 167 sg_free_table(sgt);
b738db9eda05d06 Sidraya 2021-11-02 168 kfree(sgt);
b738db9eda05d06 Sidraya 2021-11-02 169 }
b738db9eda05d06 Sidraya 2021-11-02 170
b738db9eda05d06 Sidraya 2021-11-02 171 static int unified_map_km(struct heap *heap, struct buffer *buffer)
b738db9eda05d06 Sidraya 2021-11-02 172 {
b738db9eda05d06 Sidraya 2021-11-02 173 void *dev = buffer->device;
b738db9eda05d06 Sidraya 2021-11-02 174 void *sgt = buffer->priv;
b738db9eda05d06 Sidraya 2021-11-02 175 void *sgl = img_mmu_get_sgl(sgt);
b738db9eda05d06 Sidraya 2021-11-02 176 unsigned int num_pages = sg_nents(sgl);
b738db9eda05d06 Sidraya 2021-11-02 177 unsigned int orig_nents = img_mmu_get_orig_nents(sgt);
b738db9eda05d06 Sidraya 2021-11-02 178 void **pages;
b738db9eda05d06 Sidraya 2021-11-02 179 int ret;
b738db9eda05d06 Sidraya 2021-11-02 180 pgprot_t prot;
b738db9eda05d06 Sidraya 2021-11-02 181
b738db9eda05d06 Sidraya 2021-11-02 182 dev_dbg(dev, "%s:%d buffer %d (0x%p)\n", __func__, __LINE__, buffer->id, buffer);
b738db9eda05d06 Sidraya 2021-11-02 183
b738db9eda05d06 Sidraya 2021-11-02 184 if (buffer->kptr) {
b738db9eda05d06 Sidraya 2021-11-02 185 dev_warn(dev, "%s called for already mapped buffer %d\n", __func__, buffer->id);
b738db9eda05d06 Sidraya 2021-11-02 186 return 0;
b738db9eda05d06 Sidraya 2021-11-02 187 }
b738db9eda05d06 Sidraya 2021-11-02 188
b738db9eda05d06 Sidraya 2021-11-02 189 pages = kmalloc_array(num_pages, sizeof(void *), GFP_KERNEL);
b738db9eda05d06 Sidraya 2021-11-02 190 if (!pages)
b738db9eda05d06 Sidraya 2021-11-02 191 return -ENOMEM;
b738db9eda05d06 Sidraya 2021-11-02 192
b738db9eda05d06 Sidraya 2021-11-02 193 img_mmu_get_pages(pages, sgt);
b738db9eda05d06 Sidraya 2021-11-02 194
b738db9eda05d06 Sidraya 2021-11-02 195 prot = PAGE_KERNEL;
b738db9eda05d06 Sidraya 2021-11-02 196 prot = pgprot_writecombine(prot);
b738db9eda05d06 Sidraya 2021-11-02 @197 buffer->kptr = vmap((struct page **)pages, num_pages, VM_MAP, prot);
b738db9eda05d06 Sidraya 2021-11-02 198 kfree(pages);
b738db9eda05d06 Sidraya 2021-11-02 199 if (!buffer->kptr) {
b738db9eda05d06 Sidraya 2021-11-02 200 dev_err(dev, "%s vmap failed!\n", __func__);
b738db9eda05d06 Sidraya 2021-11-02 201 return -EFAULT;
b738db9eda05d06 Sidraya 2021-11-02 202 }
b738db9eda05d06 Sidraya 2021-11-02 203
b738db9eda05d06 Sidraya 2021-11-02 204 ret = dma_map_sg(dev, sgl, orig_nents, DMA_FROM_DEVICE);
b738db9eda05d06 Sidraya 2021-11-02 205
b738db9eda05d06 Sidraya 2021-11-02 206 if (ret <= 0) {
b738db9eda05d06 Sidraya 2021-11-02 207 dev_err(dev, "%s dma_map_sg failed!\n", __func__);
b738db9eda05d06 Sidraya 2021-11-02 208 vunmap(buffer->kptr);
b738db9eda05d06 Sidraya 2021-11-02 209 return -EFAULT;
b738db9eda05d06 Sidraya 2021-11-02 210 }
b738db9eda05d06 Sidraya 2021-11-02 211 dev_dbg(dev, "%s:%d buffer %d orig_nents %d nents %d\n", __func__,
b738db9eda05d06 Sidraya 2021-11-02 212 __LINE__, buffer->id, orig_nents, ret);
b738db9eda05d06 Sidraya 2021-11-02 213
b738db9eda05d06 Sidraya 2021-11-02 214 img_mmu_set_sgt_nents(sgt, ret);
b738db9eda05d06 Sidraya 2021-11-02 215
b738db9eda05d06 Sidraya 2021-11-02 216 dev_dbg(dev, "%s:%d buffer %d vmap to 0x%p\n", __func__, __LINE__,
b738db9eda05d06 Sidraya 2021-11-02 217 buffer->id, buffer->kptr);
b738db9eda05d06 Sidraya 2021-11-02 218
b738db9eda05d06 Sidraya 2021-11-02 219 return 0;
b738db9eda05d06 Sidraya 2021-11-02 220 }
b738db9eda05d06 Sidraya 2021-11-02 221
:::::: The code at line 159 was first introduced by commit
:::::: b738db9eda05d068022ccbfbba25f5f0a0a09eaa v4l: vxd-dec: Create vxd_dec Mem Manager helper library
:::::: TO: Sidraya <sidraya.bj(a)pathpartnertech.com>
:::::: CC: Praneeth Bajjuri <praneeth(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week