[xlnx:xlnx_rebase_v5.4 877/1757] include/linux/phy/phy-zynqmp.h:25:60: error: unknown type name 'u8'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: f09edce8c39b74223461bf2175649535ebe8b213
commit: 976601b0f932344ea7739ffabf03dbe7429c0f27 [877/1757] phy: zynqmp: Add phy driver for xilinx zynqmp phy core
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/976601b0f932344ea7739ffabf03d...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 976601b0f932344ea7739ffabf03dbe7429c0f27
# save the attached .config to linux build tree
make W=1 W=1 ARCH=um
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 >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from <command-line>:
>> include/linux/phy/phy-zynqmp.h:25:60: error: unknown type name 'u8'
25 | static inline int xpsgtr_override_deemph(struct phy *base, u8 plvl, u8 vlvl)
| ^~
include/linux/phy/phy-zynqmp.h:25:69: error: unknown type name 'u8'
25 | static inline int xpsgtr_override_deemph(struct phy *base, u8 plvl, u8 vlvl)
| ^~
include/linux/phy/phy-zynqmp.h:30:61: error: unknown type name 'u8'
30 | static inline int xpsgtr_margining_factor(struct phy *base, u8 plvl, u8 vlvl)
| ^~
include/linux/phy/phy-zynqmp.h:30:70: error: unknown type name 'u8'
30 | static inline int xpsgtr_margining_factor(struct phy *base, u8 plvl, u8 vlvl)
| ^~
include/linux/phy/phy-zynqmp.h: In function 'xpsgtr_wait_pll_lock':
>> include/linux/phy/phy-zynqmp.h:37:10: error: 'ENODEV' undeclared (first use in this function)
37 | return -ENODEV;
| ^~~~~~
include/linux/phy/phy-zynqmp.h:37:10: note: each undeclared identifier is reported only once for each function it appears in
include/linux/phy/phy-zynqmp.h: In function 'xpsgtr_usb_crst_assert':
include/linux/phy/phy-zynqmp.h:42:10: error: 'ENODEV' undeclared (first use in this function)
42 | return -ENODEV;
| ^~~~~~
include/linux/phy/phy-zynqmp.h: In function 'xpsgtr_usb_crst_release':
include/linux/phy/phy-zynqmp.h:47:10: error: 'ENODEV' undeclared (first use in this function)
47 | return -ENODEV;
| ^~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for UIO_DMEM_GENIRQ
Depends on UIO && HAS_DMA
Selected by
- UIO_XILINX_AI_ENGINE && UIO
vim +/u8 +25 include/linux/phy/phy-zynqmp.h
24
> 25 static inline int xpsgtr_override_deemph(struct phy *base, u8 plvl, u8 vlvl)
26 {
27 return -ENODEV;
28 }
29
30 static inline int xpsgtr_margining_factor(struct phy *base, u8 plvl, u8 vlvl)
31 {
32 return -ENODEV;
33 }
34
35 extern inline int xpsgtr_wait_pll_lock(struct phy *phy)
36 {
> 37 return -ENODEV;
38 }
39
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c:393 phy_meson_axg_mipi_dphy_probe() warn: 'priv->clk' not released on lines: 386.
by Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 315d99318179b9cd5077ccc9f7f26a164c9fa998
commit: 76aefb221146dbe0de124f566329c76d5dcf118a phy: amlogic: Add AXG MIPI D-PHY driver
config: powerpc-randconfig-m031-20210513 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c:393 phy_meson_axg_mipi_dphy_probe() warn: 'priv->clk' not released on lines: 386.
vim +393 drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c
76aefb221146db Neil Armstrong 2020-11-16 333 static int phy_meson_axg_mipi_dphy_probe(struct platform_device *pdev)
76aefb221146db Neil Armstrong 2020-11-16 334 {
76aefb221146db Neil Armstrong 2020-11-16 335 struct device *dev = &pdev->dev;
76aefb221146db Neil Armstrong 2020-11-16 336 struct phy_provider *phy_provider;
76aefb221146db Neil Armstrong 2020-11-16 337 struct resource *res;
76aefb221146db Neil Armstrong 2020-11-16 338 struct phy_meson_axg_mipi_dphy_priv *priv;
76aefb221146db Neil Armstrong 2020-11-16 339 struct phy *phy;
76aefb221146db Neil Armstrong 2020-11-16 340 void __iomem *base;
76aefb221146db Neil Armstrong 2020-11-16 341 int ret;
76aefb221146db Neil Armstrong 2020-11-16 342
76aefb221146db Neil Armstrong 2020-11-16 343 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
76aefb221146db Neil Armstrong 2020-11-16 344 if (!priv)
76aefb221146db Neil Armstrong 2020-11-16 345 return -ENOMEM;
76aefb221146db Neil Armstrong 2020-11-16 346
76aefb221146db Neil Armstrong 2020-11-16 347 priv->dev = dev;
76aefb221146db Neil Armstrong 2020-11-16 348 platform_set_drvdata(pdev, priv);
76aefb221146db Neil Armstrong 2020-11-16 349
76aefb221146db Neil Armstrong 2020-11-16 350 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
76aefb221146db Neil Armstrong 2020-11-16 351 base = devm_ioremap_resource(dev, res);
76aefb221146db Neil Armstrong 2020-11-16 352 if (IS_ERR(base))
76aefb221146db Neil Armstrong 2020-11-16 353 return PTR_ERR(base);
76aefb221146db Neil Armstrong 2020-11-16 354
76aefb221146db Neil Armstrong 2020-11-16 355 priv->regmap = devm_regmap_init_mmio(dev, base,
76aefb221146db Neil Armstrong 2020-11-16 356 &phy_meson_axg_mipi_dphy_regmap_conf);
76aefb221146db Neil Armstrong 2020-11-16 357 if (IS_ERR(priv->regmap))
76aefb221146db Neil Armstrong 2020-11-16 358 return PTR_ERR(priv->regmap);
76aefb221146db Neil Armstrong 2020-11-16 359
76aefb221146db Neil Armstrong 2020-11-16 360 priv->clk = devm_clk_get(dev, "pclk");
76aefb221146db Neil Armstrong 2020-11-16 361 if (IS_ERR(priv->clk))
76aefb221146db Neil Armstrong 2020-11-16 362 return PTR_ERR(priv->clk);
76aefb221146db Neil Armstrong 2020-11-16 363
76aefb221146db Neil Armstrong 2020-11-16 364 priv->reset = devm_reset_control_get(dev, "phy");
76aefb221146db Neil Armstrong 2020-11-16 365 if (IS_ERR(priv->reset))
76aefb221146db Neil Armstrong 2020-11-16 366 return PTR_ERR(priv->reset);
76aefb221146db Neil Armstrong 2020-11-16 367
76aefb221146db Neil Armstrong 2020-11-16 368 priv->analog = devm_phy_get(dev, "analog");
76aefb221146db Neil Armstrong 2020-11-16 369 if (IS_ERR(priv->analog))
76aefb221146db Neil Armstrong 2020-11-16 370 return PTR_ERR(priv->analog);
76aefb221146db Neil Armstrong 2020-11-16 371
76aefb221146db Neil Armstrong 2020-11-16 372 ret = clk_prepare_enable(priv->clk);
76aefb221146db Neil Armstrong 2020-11-16 373 if (ret)
76aefb221146db Neil Armstrong 2020-11-16 374 return ret;
76aefb221146db Neil Armstrong 2020-11-16 375
76aefb221146db Neil Armstrong 2020-11-16 376 ret = reset_control_deassert(priv->reset);
76aefb221146db Neil Armstrong 2020-11-16 377 if (ret)
76aefb221146db Neil Armstrong 2020-11-16 378 return ret;
76aefb221146db Neil Armstrong 2020-11-16 379
76aefb221146db Neil Armstrong 2020-11-16 380 phy = devm_phy_create(dev, NULL, &phy_meson_axg_mipi_dphy_ops);
76aefb221146db Neil Armstrong 2020-11-16 381 if (IS_ERR(phy)) {
76aefb221146db Neil Armstrong 2020-11-16 382 ret = PTR_ERR(phy);
76aefb221146db Neil Armstrong 2020-11-16 383 if (ret != -EPROBE_DEFER)
76aefb221146db Neil Armstrong 2020-11-16 384 dev_err(dev, "failed to create PHY\n");
76aefb221146db Neil Armstrong 2020-11-16 385
76aefb221146db Neil Armstrong 2020-11-16 386 return ret;
Should we disable unprepare the clk? I don't know, btw. It seems like
a lot of people don't bother with that.
76aefb221146db Neil Armstrong 2020-11-16 387 }
76aefb221146db Neil Armstrong 2020-11-16 388
76aefb221146db Neil Armstrong 2020-11-16 389 phy_set_drvdata(phy, priv);
76aefb221146db Neil Armstrong 2020-11-16 390
76aefb221146db Neil Armstrong 2020-11-16 391 phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
Same if devm_of_phy_provider_register() fails I guess.
76aefb221146db Neil Armstrong 2020-11-16 392
76aefb221146db Neil Armstrong 2020-11-16 @393 return PTR_ERR_OR_ZERO(phy_provider);
76aefb221146db Neil Armstrong 2020-11-16 394 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
drivers/phy/mediatek/phy-mtk-tphy.c:955 mtk_phy_init() warn: 'instance->da_ref_clk' not released on lines: 952.
by Dan Carpenter
Hi Tiezhu,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: adc12a7407b28c0f257227a508db83ab00911b74
commit: 133552bf03edbe3892767a4b64c56e3bed746374 phy: Remove CONFIG_ARCH_* check for related subdir in Makefile
config: powerpc-randconfig-m031-20210513 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/phy/mediatek/phy-mtk-tphy.c:955 mtk_phy_init() warn: 'instance->da_ref_clk' not released on lines: 952.
drivers/phy/mediatek/phy-mtk-tphy.c:955 mtk_phy_init() warn: 'instance->ref_clk' not released on lines: 952.
vim +955 drivers/phy/mediatek/phy-mtk-tphy.c
cd4ec4b03dc15b drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2017-08-03 917 static int mtk_phy_init(struct phy *phy)
dc7f190fd51f5c drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2015-09-29 918 {
cd4ec4b03dc15b drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2017-08-03 919 struct mtk_phy_instance *instance = phy_get_drvdata(phy);
cd4ec4b03dc15b drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2017-08-03 920 struct mtk_tphy *tphy = dev_get_drvdata(phy->dev.parent);
dc7f190fd51f5c drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2015-09-29 921 int ret;
dc7f190fd51f5c drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2015-09-29 922
15de15c6b45b87 drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2017-03-31 923 ret = clk_prepare_enable(instance->ref_clk);
15de15c6b45b87 drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2017-03-31 924 if (ret) {
cd4ec4b03dc15b drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2017-08-03 925 dev_err(tphy->dev, "failed to enable ref_clk\n");
15de15c6b45b87 drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2017-03-31 926 return ret;
15de15c6b45b87 drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2017-03-31 927 }
15de15c6b45b87 drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2017-03-31 928
12d0c0bed3f473 drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2020-02-11 929 ret = clk_prepare_enable(instance->da_ref_clk);
12d0c0bed3f473 drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2020-02-11 930 if (ret) {
12d0c0bed3f473 drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2020-02-11 931 dev_err(tphy->dev, "failed to enable da_ref\n");
12d0c0bed3f473 drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2020-02-11 932 clk_disable_unprepare(instance->ref_clk);
12d0c0bed3f473 drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2020-02-11 933 return ret;
12d0c0bed3f473 drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2020-02-11 934 }
12d0c0bed3f473 drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2020-02-11 935
44a6d6ce6436a2 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 936 switch (instance->type) {
44a6d6ce6436a2 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 937 case PHY_TYPE_USB2:
cd4ec4b03dc15b drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2017-08-03 938 u2_phy_instance_init(tphy, instance);
8158e917d91cb0 drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2018-06-29 939 u2_phy_props_set(tphy, instance);
44a6d6ce6436a2 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 940 break;
44a6d6ce6436a2 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 941 case PHY_TYPE_USB3:
cd4ec4b03dc15b drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2017-08-03 942 u3_phy_instance_init(tphy, instance);
44a6d6ce6436a2 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 943 break;
44a6d6ce6436a2 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 944 case PHY_TYPE_PCIE:
cd4ec4b03dc15b drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2017-08-03 945 pcie_phy_instance_init(tphy, instance);
44a6d6ce6436a2 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 946 break;
4ab26cb66a8cb3 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 947 case PHY_TYPE_SATA:
cd4ec4b03dc15b drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2017-08-03 948 sata_phy_instance_init(tphy, instance);
4ab26cb66a8cb3 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 949 break;
44a6d6ce6436a2 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 950 default:
cd4ec4b03dc15b drivers/phy/mediatek/phy-mtk-tphy.c Chunfeng Yun 2017-08-03 951 dev_err(tphy->dev, "incompatible PHY type\n");
44a6d6ce6436a2 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 952 return -EINVAL;
clk_disable_unprepare()?
44a6d6ce6436a2 drivers/phy/phy-mt65xx-usb3.c Ryder Lee 2017-08-03 953 }
04466efca58f69 drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2017-03-31 954
dc7f190fd51f5c drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2015-09-29 @955 return 0;
dc7f190fd51f5c drivers/phy/phy-mt65xx-usb3.c Chunfeng Yun 2015-09-29 956 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-nvme:nvme-5.13 1/9] drivers/nvme/host/multipath.c:815 nvme_mpath_init_identify() warn: missing error code 'error'
by Dan Carpenter
tree: git://git.infradead.org/nvme.git nvme-5.13
head: e181811bd04d874fe48bbfa1165a82068b58144d
commit: 5e1f689913a4498e3081093670ef9d85b2c60920 [1/9] nvme-multipath: fix double initialization of ANA state
config: i386-randconfig-m021-20210513 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/nvme/host/multipath.c:815 nvme_mpath_init_identify() warn: missing error code 'error'
vim +/error +815 drivers/nvme/host/multipath.c
5e1f689913a449 Christoph Hellwig 2021-04-29 791 int nvme_mpath_init_identify(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id)
5e1f689913a449 Christoph Hellwig 2021-04-29 792 {
5e1f689913a449 Christoph Hellwig 2021-04-29 793 size_t max_transfer_size = ctrl->max_hw_sectors << SECTOR_SHIFT;
5e1f689913a449 Christoph Hellwig 2021-04-29 794 size_t ana_log_size;
5e1f689913a449 Christoph Hellwig 2021-04-29 795 int error = 0;
0d0b660f214dc4 Christoph Hellwig 2018-05-14 796
66b20ac0a1a107 Marta Rybczynska 2019-07-23 797 /* check if multipath is enabled and we have the capability */
92decf118f1da4 Keith Busch 2020-04-03 798 if (!multipath || !ctrl->subsys ||
92decf118f1da4 Keith Busch 2020-04-03 799 !(ctrl->subsys->cmic & NVME_CTRL_CMIC_ANA))
0d0b660f214dc4 Christoph Hellwig 2018-05-14 800 return 0;
0d0b660f214dc4 Christoph Hellwig 2018-05-14 801
0d0b660f214dc4 Christoph Hellwig 2018-05-14 802 ctrl->anacap = id->anacap;
0d0b660f214dc4 Christoph Hellwig 2018-05-14 803 ctrl->anatt = id->anatt;
0d0b660f214dc4 Christoph Hellwig 2018-05-14 804 ctrl->nanagrpid = le32_to_cpu(id->nanagrpid);
0d0b660f214dc4 Christoph Hellwig 2018-05-14 805 ctrl->anagrpmax = le32_to_cpu(id->anagrpmax);
0d0b660f214dc4 Christoph Hellwig 2018-05-14 806
5e1f689913a449 Christoph Hellwig 2021-04-29 807 ana_log_size = sizeof(struct nvme_ana_rsp_hdr) +
5e1f689913a449 Christoph Hellwig 2021-04-29 808 ctrl->nanagrpid * sizeof(struct nvme_ana_group_desc) +
5e1f689913a449 Christoph Hellwig 2021-04-29 809 ctrl->max_namespaces * sizeof(__le32);
5e1f689913a449 Christoph Hellwig 2021-04-29 810 if (ana_log_size > max_transfer_size) {
0d0b660f214dc4 Christoph Hellwig 2018-05-14 811 dev_err(ctrl->device,
5e1f689913a449 Christoph Hellwig 2021-04-29 812 "ANA log page size (%zd) larger than MDTS (%zd).\n",
5e1f689913a449 Christoph Hellwig 2021-04-29 813 ana_log_size, max_transfer_size);
0d0b660f214dc4 Christoph Hellwig 2018-05-14 814 dev_err(ctrl->device, "disabling ANA support.\n");
5e1f689913a449 Christoph Hellwig 2021-04-29 @815 goto out_uninit;
error = -EINVAL?
0d0b660f214dc4 Christoph Hellwig 2018-05-14 816 }
5e1f689913a449 Christoph Hellwig 2021-04-29 817 if (ana_log_size > ctrl->ana_log_size) {
5e1f689913a449 Christoph Hellwig 2021-04-29 818 nvme_mpath_stop(ctrl);
3b7830904e1720 Logan Gunthorpe 2020-02-20 819 kfree(ctrl->ana_log_buf);
0d0b660f214dc4 Christoph Hellwig 2018-05-14 820 ctrl->ana_log_buf = kmalloc(ctrl->ana_log_size, GFP_KERNEL);
5e1f689913a449 Christoph Hellwig 2021-04-29 821 if (!ctrl->ana_log_buf)
5e1f689913a449 Christoph Hellwig 2021-04-29 822 return -ENOMEM;
bb830add192e9d Susobhan Dey 2018-09-25 823 }
5e1f689913a449 Christoph Hellwig 2021-04-29 824 ctrl->ana_log_size = ana_log_size;
86cccfbf773faf Anton Eidelman 2019-10-18 825 error = nvme_read_ana_log(ctrl);
0d0b660f214dc4 Christoph Hellwig 2018-05-14 826 if (error)
5e1f689913a449 Christoph Hellwig 2021-04-29 827 goto out_uninit;
0d0b660f214dc4 Christoph Hellwig 2018-05-14 828 return 0;
5e1f689913a449 Christoph Hellwig 2021-04-29 829
5e1f689913a449 Christoph Hellwig 2021-04-29 830 out_uninit:
5e1f689913a449 Christoph Hellwig 2021-04-29 831 nvme_mpath_uninit(ctrl);
bb830add192e9d Susobhan Dey 2018-09-25 832 return error;
0d0b660f214dc4 Christoph Hellwig 2018-05-14 833 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[xlnx:xlnx_rebase_v5.4 874/1757] include/uapi/linux/xlnx_mpg2tsmux_interface.h:57:2: error: unknown type name 'u8'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: f09edce8c39b74223461bf2175649535ebe8b213
commit: bf43a837d149dc4c51971b8698aabcbf7961d930 [874/1757] staging: xlnx_tsmux: Initial version of xlnx mpeg2tsmux driver
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/bf43a837d149dc4c51971b8698aab...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout bf43a837d149dc4c51971b8698aabcbf7961d930
# save the attached .config to linux build tree
make W=1 W=1 ARCH=um
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 >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from <command-line>:
>> include/uapi/linux/xlnx_mpg2tsmux_interface.h:57:2: error: unknown type name 'u8'
57 | u8 stream_id;
| ^~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:58:2: error: unknown type name 'u8'
58 | u8 extended_stream_id;
| ^~
>> include/uapi/linux/xlnx_mpg2tsmux_interface.h:59:2: error: unknown type name 'bool'
59 | bool is_pcr_stream;
| ^~~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:60:2: error: unknown type name 'bool'
60 | bool is_valid_pts;
| ^~~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:61:2: error: unknown type name 'bool'
61 | bool is_valid_dts;
| ^~~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:62:2: error: unknown type name 'bool'
62 | bool is_dmabuf;
| ^~~~
>> include/uapi/linux/xlnx_mpg2tsmux_interface.h:63:2: error: unknown type name 'u16'
63 | u16 pid;
| ^~~
>> include/uapi/linux/xlnx_mpg2tsmux_interface.h:64:2: error: unknown type name 'u64'
64 | u64 size_data_in;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:65:2: error: unknown type name 'u64'
65 | u64 pts;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:66:2: error: unknown type name 'u64'
66 | u64 dts;
| ^~~
>> include/uapi/linux/xlnx_mpg2tsmux_interface.h:67:2: error: unknown type name 'u32'
67 | u32 srcbuf_id;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:68:2: error: unknown type name 'bool'
68 | bool insert_pcr;
| ^~~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:69:2: error: unknown type name 'u16'
69 | u16 pcr_extension;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:70:2: error: unknown type name 'u64'
70 | u64 pcr_base;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:80:2: error: unknown type name 'bool'
80 | bool is_dmabuf;
| ^~~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:81:2: error: unknown type name 'u32'
81 | u32 dstbuf_id;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:82:2: error: unknown type name 'u32'
82 | u32 dmabuf_size;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:103:2: error: unknown type name 'u32'
103 | u32 num_buf;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:104:2: error: unknown type name 'u32'
104 | u32 buf_size;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:113:2: error: unknown type name 'u32'
113 | u32 buf_id;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:114:2: error: unknown type name 'u32'
114 | u32 buf_write;
| ^~~
include/uapi/linux/xlnx_mpg2tsmux_interface.h:136:2: error: unknown type name 'u16'
136 | u16 pid;
| ^~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for UIO_DMEM_GENIRQ
Depends on UIO && HAS_DMA
Selected by
- UIO_XILINX_AI_ENGINE && UIO
vim +/u8 +57 include/uapi/linux/xlnx_mpg2tsmux_interface.h
36
37 /**
38 * struct stream_context_in - struct to enqueue a stream context descriptor
39 * @command: stream context type
40 * @stream_id: stream identification number
41 * @extended_stream_id: extended stream id
42 * @is_pcr_stream: flag for pcr stream
43 * @is_valid_pts: flag for valid pts
44 * @is_valid_dts: flag for valid dts
45 * @is_dmabuf: flag to set if external src buffer is DMA allocated
46 * @pid: packet id number
47 * @size_data_in: size in bytes of input buffer
48 * @pts: presentation time stamp
49 * @dts: display time stamp
50 * @srcbuf_id: source buffer id after mmap
51 * @insert_pcr: flag for inserting pcr in stream context
52 * @pcr_extension: pcr extension number
53 * @pcr_base: pcr base number
54 */
55 struct stream_context_in {
56 enum ts_mux_command command;
> 57 u8 stream_id;
58 u8 extended_stream_id;
> 59 bool is_pcr_stream;
> 60 bool is_valid_pts;
> 61 bool is_valid_dts;
62 bool is_dmabuf;
> 63 u16 pid;
> 64 u64 size_data_in;
65 u64 pts;
66 u64 dts;
> 67 u32 srcbuf_id;
68 bool insert_pcr;
69 u16 pcr_extension;
70 u64 pcr_base;
71 };
72
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[net-next:master 40/65] net/bridge/br_input.c:135:35: error: too many arguments to function call, expected single argument 'br', have 2 arguments
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: ea89c862f01e02ec459932c7c3113fa37aedd09a
commit: 1a3065a26807b4cdd65d3b696ddb18385610f7da [40/65] net: bridge: mcast: prepare is-router function for mcast router split
config: x86_64-randconfig-r001-20210513 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 425781bce01f2f1d5f553d3b2bf9ebbd6e15068c)
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://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit...
git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
git fetch --no-tags net-next master
git checkout 1a3065a26807b4cdd65d3b696ddb18385610f7da
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
>> net/bridge/br_input.c:135:35: error: too many arguments to function call, expected single argument 'br', have 2 arguments
br_multicast_is_router(br, skb)) {
~~~~~~~~~~~~~~~~~~~~~~ ^~~
net/bridge/br_private.h:1059:20: note: 'br_multicast_is_router' declared here
static inline bool br_multicast_is_router(struct net_bridge *br)
^
1 error generated.
vim +/br +135 net/bridge/br_input.c
65
66 /* note: already called with rcu_read_lock */
67 int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
68 {
69 struct net_bridge_port *p = br_port_get_rcu(skb->dev);
70 enum br_pkt_type pkt_type = BR_PKT_UNICAST;
71 struct net_bridge_fdb_entry *dst = NULL;
72 struct net_bridge_mdb_entry *mdst;
73 bool local_rcv, mcast_hit = false;
74 struct net_bridge *br;
75 u16 vid = 0;
76 u8 state;
77
78 if (!p || p->state == BR_STATE_DISABLED)
79 goto drop;
80
81 state = p->state;
82 if (!br_allowed_ingress(p->br, nbp_vlan_group_rcu(p), skb, &vid,
83 &state))
84 goto out;
85
86 nbp_switchdev_frame_mark(p, skb);
87
88 /* insert into forwarding database after filtering to avoid spoofing */
89 br = p->br;
90 if (p->flags & BR_LEARNING)
91 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0);
92
93 local_rcv = !!(br->dev->flags & IFF_PROMISC);
94 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) {
95 /* by definition the broadcast is also a multicast address */
96 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) {
97 pkt_type = BR_PKT_BROADCAST;
98 local_rcv = true;
99 } else {
100 pkt_type = BR_PKT_MULTICAST;
101 if (br_multicast_rcv(br, p, skb, vid))
102 goto drop;
103 }
104 }
105
106 if (state == BR_STATE_LEARNING)
107 goto drop;
108
109 BR_INPUT_SKB_CB(skb)->brdev = br->dev;
110 BR_INPUT_SKB_CB(skb)->src_port_isolated = !!(p->flags & BR_ISOLATED);
111
112 if (IS_ENABLED(CONFIG_INET) &&
113 (skb->protocol == htons(ETH_P_ARP) ||
114 skb->protocol == htons(ETH_P_RARP))) {
115 br_do_proxy_suppress_arp(skb, br, vid, p);
116 } else if (IS_ENABLED(CONFIG_IPV6) &&
117 skb->protocol == htons(ETH_P_IPV6) &&
118 br_opt_get(br, BROPT_NEIGH_SUPPRESS_ENABLED) &&
119 pskb_may_pull(skb, sizeof(struct ipv6hdr) +
120 sizeof(struct nd_msg)) &&
121 ipv6_hdr(skb)->nexthdr == IPPROTO_ICMPV6) {
122 struct nd_msg *msg, _msg;
123
124 msg = br_is_nd_neigh_msg(skb, &_msg);
125 if (msg)
126 br_do_suppress_nd(skb, br, vid, p, msg);
127 }
128
129 switch (pkt_type) {
130 case BR_PKT_MULTICAST:
131 mdst = br_mdb_get(br, skb, vid);
132 if ((mdst || BR_INPUT_SKB_CB_MROUTERS_ONLY(skb)) &&
133 br_multicast_querier_exists(br, eth_hdr(skb), mdst)) {
134 if ((mdst && mdst->host_joined) ||
> 135 br_multicast_is_router(br, skb)) {
136 local_rcv = true;
137 br->dev->stats.multicast++;
138 }
139 mcast_hit = true;
140 } else {
141 local_rcv = true;
142 br->dev->stats.multicast++;
143 }
144 break;
145 case BR_PKT_UNICAST:
146 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid);
147 break;
148 default:
149 break;
150 }
151
152 if (dst) {
153 unsigned long now = jiffies;
154
155 if (test_bit(BR_FDB_LOCAL, &dst->flags))
156 return br_pass_frame_up(skb);
157
158 if (now != dst->used)
159 dst->used = now;
160 br_forward(dst->dst, skb, local_rcv, false);
161 } else {
162 if (!mcast_hit)
163 br_flood(br, skb, pkt_type, local_rcv, false);
164 else
165 br_multicast_flood(mdst, skb, local_rcv, false);
166 }
167
168 if (local_rcv)
169 return br_pass_frame_up(skb);
170
171 out:
172 return 0;
173 drop:
174 kfree_skb(skb);
175 goto out;
176 }
177 EXPORT_SYMBOL_GPL(br_handle_frame_finish);
178
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-perf:asym32 14/21] kernel/hung_task.c:95:15: error: implicit declaration of function 'frozen_or_skipped'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git asym32
head: be20cb98fbdf590a335cb6dfa06090cc9ea8b661
commit: 97662cafd0d41ed3d4b69cf0ff71fe98243a08dd [14/21] freezer: Add frozen_or_skipped() helper function
config: arm64-randconfig-r025-20210514 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 425781bce01f2f1d5f553d3b2bf9ebbd6e15068c)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/commit/?id...
git remote add arm-perf https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git
git fetch --no-tags arm-perf asym32
git checkout 97662cafd0d41ed3d4b69cf0ff71fe98243a08dd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
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/hung_task.c:95:15: error: implicit declaration of function 'frozen_or_skipped' [-Werror,-Wimplicit-function-declaration]
if (unlikely(frozen_or_skipped(t)))
^
1 error generated.
vim +/frozen_or_skipped +95 kernel/hung_task.c
86
87 static void check_hung_task(struct task_struct *t, unsigned long timeout)
88 {
89 unsigned long switch_count = t->nvcsw + t->nivcsw;
90
91 /*
92 * Ensure the task is not frozen.
93 * Also, skip vfork and any other user process that freezer should skip.
94 */
> 95 if (unlikely(frozen_or_skipped(t)))
96 return;
97
98 /*
99 * When a freshly created task is scheduled once, changes its state to
100 * TASK_UNINTERRUPTIBLE without having ever been switched out once, it
101 * musn't be checked.
102 */
103 if (unlikely(!switch_count))
104 return;
105
106 if (switch_count != t->last_switch_count) {
107 t->last_switch_count = switch_count;
108 t->last_switch_time = jiffies;
109 return;
110 }
111 if (time_is_after_jiffies(t->last_switch_time + timeout * HZ))
112 return;
113
114 trace_sched_process_hang(t);
115
116 if (sysctl_hung_task_panic) {
117 console_verbose();
118 hung_task_show_lock = true;
119 hung_task_call_panic = true;
120 }
121
122 /*
123 * Ok, the task did not get scheduled for more than 2 minutes,
124 * complain:
125 */
126 if (sysctl_hung_task_warnings) {
127 if (sysctl_hung_task_warnings > 0)
128 sysctl_hung_task_warnings--;
129 pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n",
130 t->comm, t->pid, (jiffies - t->last_switch_time) / HZ);
131 pr_err(" %s %s %.*s\n",
132 print_tainted(), init_utsname()->release,
133 (int)strcspn(init_utsname()->version, " "),
134 init_utsname()->version);
135 pr_err("\"echo 0 > /proc/sys/kernel/hung_task_timeout_secs\""
136 " disables this message.\n");
137 sched_show_task(t);
138 hung_task_show_lock = true;
139
140 if (sysctl_hung_task_all_cpu_backtrace)
141 hung_task_show_all_bt = true;
142 }
143
144 touch_nmi_watchdog();
145 }
146
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-perf:asym32 14/21] kernel/hung_task.c:95:15: error: implicit declaration of function 'frozen_or_skipped'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git asym32
head: be20cb98fbdf590a335cb6dfa06090cc9ea8b661
commit: 97662cafd0d41ed3d4b69cf0ff71fe98243a08dd [14/21] freezer: Add frozen_or_skipped() helper function
config: microblaze-randconfig-r005-20210513 (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/will/linux.git/commit/?id...
git remote add arm-perf https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git
git fetch --no-tags arm-perf asym32
git checkout 97662cafd0d41ed3d4b69cf0ff71fe98243a08dd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=microblaze
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 >>):
In file included from include/asm-generic/bug.h:5,
from ./arch/microblaze/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from kernel/hung_task.c:9:
kernel/hung_task.c: In function 'check_hung_task':
>> kernel/hung_task.c:95:15: error: implicit declaration of function 'frozen_or_skipped' [-Werror=implicit-function-declaration]
95 | if (unlikely(frozen_or_skipped(t)))
| ^~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
cc1: some warnings being treated as errors
vim +/frozen_or_skipped +95 kernel/hung_task.c
86
87 static void check_hung_task(struct task_struct *t, unsigned long timeout)
88 {
89 unsigned long switch_count = t->nvcsw + t->nivcsw;
90
91 /*
92 * Ensure the task is not frozen.
93 * Also, skip vfork and any other user process that freezer should skip.
94 */
> 95 if (unlikely(frozen_or_skipped(t)))
96 return;
97
98 /*
99 * When a freshly created task is scheduled once, changes its state to
100 * TASK_UNINTERRUPTIBLE without having ever been switched out once, it
101 * musn't be checked.
102 */
103 if (unlikely(!switch_count))
104 return;
105
106 if (switch_count != t->last_switch_count) {
107 t->last_switch_count = switch_count;
108 t->last_switch_time = jiffies;
109 return;
110 }
111 if (time_is_after_jiffies(t->last_switch_time + timeout * HZ))
112 return;
113
114 trace_sched_process_hang(t);
115
116 if (sysctl_hung_task_panic) {
117 console_verbose();
118 hung_task_show_lock = true;
119 hung_task_call_panic = true;
120 }
121
122 /*
123 * Ok, the task did not get scheduled for more than 2 minutes,
124 * complain:
125 */
126 if (sysctl_hung_task_warnings) {
127 if (sysctl_hung_task_warnings > 0)
128 sysctl_hung_task_warnings--;
129 pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n",
130 t->comm, t->pid, (jiffies - t->last_switch_time) / HZ);
131 pr_err(" %s %s %.*s\n",
132 print_tainted(), init_utsname()->release,
133 (int)strcspn(init_utsname()->version, " "),
134 init_utsname()->version);
135 pr_err("\"echo 0 > /proc/sys/kernel/hung_task_timeout_secs\""
136 " disables this message.\n");
137 sched_show_task(t);
138 hung_task_show_lock = true;
139
140 if (sysctl_hung_task_all_cpu_backtrace)
141 hung_task_show_all_bt = true;
142 }
143
144 touch_nmi_watchdog();
145 }
146
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[xlnx:xlnx_rebase_v5.4 866/1757] include/uapi/linux/xlnxsync.h:45:2: error: unknown type name 'u64'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: f09edce8c39b74223461bf2175649535ebe8b213
commit: eb54271c78bf30f6c5acd4277f706b4b5a786055 [866/1757] staging: xlnxsync: Add driver for Xilinx Synchronizer
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/eb54271c78bf30f6c5acd4277f706...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout eb54271c78bf30f6c5acd4277f706b4b5a786055
# save the attached .config to linux build tree
make W=1 W=1 ARCH=um
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 >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from <command-line>:
>> include/uapi/linux/xlnxsync.h:45:2: error: unknown type name 'u64'
45 | u64 hdr_ver;
| ^~~
include/uapi/linux/xlnxsync.h:46:2: error: unknown type name 'u64'
46 | u64 luma_start_offset[XLNXSYNC_IO];
| ^~~
include/uapi/linux/xlnxsync.h:47:2: error: unknown type name 'u64'
47 | u64 chroma_start_offset[XLNXSYNC_IO];
| ^~~
include/uapi/linux/xlnxsync.h:48:2: error: unknown type name 'u64'
48 | u64 luma_end_offset[XLNXSYNC_IO];
| ^~~
include/uapi/linux/xlnxsync.h:49:2: error: unknown type name 'u64'
49 | u64 chroma_end_offset[XLNXSYNC_IO];
| ^~~
>> include/uapi/linux/xlnxsync.h:50:2: error: unknown type name 'u32'
50 | u32 luma_margin;
| ^~~
include/uapi/linux/xlnxsync.h:51:2: error: unknown type name 'u32'
51 | u32 chroma_margin;
| ^~~
include/uapi/linux/xlnxsync.h:52:2: error: unknown type name 'u32'
52 | u32 luma_core_offset[XLNXSYNC_MAX_CORES];
| ^~~
include/uapi/linux/xlnxsync.h:53:2: error: unknown type name 'u32'
53 | u32 chroma_core_offset[XLNXSYNC_MAX_CORES];
| ^~~
include/uapi/linux/xlnxsync.h:54:2: error: unknown type name 'u32'
54 | u32 dma_fd;
| ^~~
>> include/uapi/linux/xlnxsync.h:55:2: error: unknown type name 'u8'
55 | u8 fb_id[XLNXSYNC_IO];
| ^~
include/uapi/linux/xlnxsync.h:56:2: error: unknown type name 'u8'
56 | u8 ismono[XLNXSYNC_IO];
| ^~
include/uapi/linux/xlnxsync.h:57:2: error: unknown type name 'u8'
57 | u8 channel_id;
| ^~
include/uapi/linux/xlnxsync.h:70:2: error: unknown type name 'u64'
70 | u64 hdr_ver;
| ^~~
include/uapi/linux/xlnxsync.h:71:2: error: unknown type name 'u8'
71 | u8 channel_id;
| ^~
include/uapi/linux/xlnxsync.h:72:2: error: unknown type name 'u8'
72 | u8 sync_err;
| ^~
include/uapi/linux/xlnxsync.h:73:2: error: unknown type name 'u8'
73 | u8 wdg_err;
| ^~
include/uapi/linux/xlnxsync.h:74:2: error: unknown type name 'u8'
74 | u8 ldiff_err;
| ^~
include/uapi/linux/xlnxsync.h:75:2: error: unknown type name 'u8'
75 | u8 cdiff_err;
| ^~
include/uapi/linux/xlnxsync.h:84:2: error: unknown type name 'u64'
84 | u64 hdr_ver;
| ^~~
include/uapi/linux/xlnxsync.h:85:2: error: unknown type name 'u8'
85 | u8 status[XLNXSYNC_MAX_ENC_CHAN][XLNXSYNC_BUF_PER_CHAN][XLNXSYNC_IO];
| ^~
include/uapi/linux/xlnxsync.h:95:2: error: unknown type name 'u64'
95 | u64 hdr_ver;
| ^~~
include/uapi/linux/xlnxsync.h:96:2: error: unknown type name 'u8'
96 | u8 encode;
| ^~
include/uapi/linux/xlnxsync.h:97:2: error: unknown type name 'u8'
97 | u8 max_channels;
| ^~
include/uapi/linux/xlnxsync.h:111:2: error: unknown type name 'u64'
111 | u64 hdr_ver;
| ^~~
include/uapi/linux/xlnxsync.h:112:2: error: unknown type name 'u8'
112 | u8 fbdone[XLNXSYNC_MAX_ENC_CHAN][XLNXSYNC_BUF_PER_CHAN][XLNXSYNC_IO];
| ^~
include/uapi/linux/xlnxsync.h:113:2: error: unknown type name 'u8'
113 | u8 enable[XLNXSYNC_MAX_ENC_CHAN];
| ^~
include/uapi/linux/xlnxsync.h:114:2: error: unknown type name 'u8'
114 | u8 sync_err[XLNXSYNC_MAX_ENC_CHAN];
| ^~
include/uapi/linux/xlnxsync.h:115:2: error: unknown type name 'u8'
115 | u8 wdg_err[XLNXSYNC_MAX_ENC_CHAN];
| ^~
include/uapi/linux/xlnxsync.h:116:2: error: unknown type name 'u8'
116 | u8 ldiff_err[XLNXSYNC_MAX_ENC_CHAN];
| ^~
include/uapi/linux/xlnxsync.h:117:2: error: unknown type name 'u8'
117 | u8 cdiff_err[XLNXSYNC_MAX_ENC_CHAN];
| ^~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for UIO_DMEM_GENIRQ
Depends on UIO && HAS_DMA
Selected by
- UIO_XILINX_AI_ENGINE && UIO
vim +/u64 +45 include/uapi/linux/xlnxsync.h
22
23 #define XLNXSYNC_MAX_CORES 4
24 /**
25 * struct xlnxsync_chan_config - Synchronizer channel configuration struct
26 * @hdr_ver: IOCTL header version
27 * @luma_start_offset: Start offset of Luma buffer
28 * @chroma_start_offset: Start offset of Chroma buffer
29 * @luma_end_offset: End offset of Luma buffer
30 * @chroma_end_offset: End offset of Chroma buffer
31 * @luma_margin: Margin for Luma buffer
32 * @chroma_margin: Margin for Chroma buffer
33 * @luma_core_offset: Array of 4 offsets for luma
34 * @chroma_core_offset: Array of 4 offsets for chroma
35 * @dma_fd: File descriptor of dma
36 * @fb_id: Framebuffer index. Valid values 0/1/2/XLNXSYNC_AUTO_SEARCH
37 * @ismono: Flag to indicate if buffer is Luma only.
38 * @channel_id: Channel index to be configured.
39 * Valid 0..3 & XLNXSYNC_AUTO_SEARCH
40 *
41 * This structure contains the configuration for monitoring a particular
42 * framebuffer on a particular channel.
43 */
44 struct xlnxsync_chan_config {
> 45 u64 hdr_ver;
46 u64 luma_start_offset[XLNXSYNC_IO];
> 47 u64 chroma_start_offset[XLNXSYNC_IO];
48 u64 luma_end_offset[XLNXSYNC_IO];
49 u64 chroma_end_offset[XLNXSYNC_IO];
> 50 u32 luma_margin;
51 u32 chroma_margin;
> 52 u32 luma_core_offset[XLNXSYNC_MAX_CORES];
53 u32 chroma_core_offset[XLNXSYNC_MAX_CORES];
54 u32 dma_fd;
> 55 u8 fb_id[XLNXSYNC_IO];
56 u8 ismono[XLNXSYNC_IO];
57 u8 channel_id;
58 };
59
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[net-next:master 44/65] net/bridge/br_multicast.c:1743:3: error: implicit declaration of function 'br_ip6_multicast_add_router'; did you mean 'br_ip4_multicast_add_router'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: ea89c862f01e02ec459932c7c3113fa37aedd09a
commit: a3c02e769efe66dce5e2c716862b60c8d44d191e [44/65] net: bridge: mcast: split multicast router state for IPv4 and IPv6
config: m68k-randconfig-r006-20210514 (attached as .config)
compiler: m68k-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/davem/net-next.git/commit...
git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
git fetch --no-tags net-next master
git checkout a3c02e769efe66dce5e2c716862b60c8d44d191e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=m68k
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 >>):
net/bridge/br_multicast.c: In function '__br_multicast_enable_port':
>> net/bridge/br_multicast.c:1743:3: error: implicit declaration of function 'br_ip6_multicast_add_router'; did you mean 'br_ip4_multicast_add_router'? [-Werror=implicit-function-declaration]
1743 | br_ip6_multicast_add_router(br, port);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| br_ip4_multicast_add_router
net/bridge/br_multicast.c: At top level:
>> net/bridge/br_multicast.c:2804:13: warning: conflicting types for 'br_ip6_multicast_add_router'
2804 | static void br_ip6_multicast_add_router(struct net_bridge *br,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> net/bridge/br_multicast.c:2804:13: error: static declaration of 'br_ip6_multicast_add_router' follows non-static declaration
net/bridge/br_multicast.c:1743:3: note: previous implicit declaration of 'br_ip6_multicast_add_router' was here
1743 | br_ip6_multicast_add_router(br, port);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +1743 net/bridge/br_multicast.c
1729
1730 static void __br_multicast_enable_port(struct net_bridge_port *port)
1731 {
1732 struct net_bridge *br = port->br;
1733
1734 if (!br_opt_get(br, BROPT_MULTICAST_ENABLED) || !netif_running(br->dev))
1735 return;
1736
1737 br_multicast_enable(&port->ip4_own_query);
1738 #if IS_ENABLED(CONFIG_IPV6)
1739 br_multicast_enable(&port->ip6_own_query);
1740 #endif
1741 if (port->multicast_router == MDB_RTR_TYPE_PERM) {
1742 br_ip4_multicast_add_router(br, port);
> 1743 br_ip6_multicast_add_router(br, port);
1744 }
1745 }
1746
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months