* Re: [RFCv4 PATCH net-next] net: extend netdev_features_t
[not found] <20211107101519.29264-1-shenjian15@huawei.com>
@ 2021-11-07 11:48 ` kernel test robot
2021-11-07 12:10 ` kernel test robot
1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-07 11:48 UTC (permalink / raw)
To: Jian Shen; +Cc: llvm, kbuild-all
[-- Attachment #1: Type: text/plain, Size: 16489 bytes --]
Hi Jian,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Jian-Shen/net-extend-netdev_features_t/20211107-182136
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 84882cf72cd774cf16fd338bdbf00f69ac9f9194
config: hexagon-buildonly-randconfig-r006-20211107 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cefc01fa65a7ebcc10cbf3c3bb2278a6a122deaf)
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/1e2d15fe96b9ee363f2de176506f0b60f79835e0
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jian-Shen/net-extend-netdev_features_t/20211107-182136
git checkout 1e2d15fe96b9ee363f2de176506f0b60f79835e0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/media/platform/exynos-gsc/gsc-core.c:26:
In file included from drivers/media/platform/exynos-gsc/gsc-core.h:22:
In file included from include/media/v4l2-device.h:13:
In file included from include/media/v4l2-subdev.h:15:
In file included from include/media/v4l2-common.h:270:
In file included from include/linux/spi/spi.h:17:
In file included from include/linux/ptp_clock_kernel.h:15:
include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
>> drivers/media/platform/exynos-gsc/gsc-core.c:1191:39: error: implicit conversion from 'unsigned long long' to 'unsigned int' changes value from 18446744073709551615 to 4294967295 [-Werror,-Wconstant-conversion]
vb2_dma_contig_set_max_seg_size(dev, DMA_BIT_MASK(32));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:40: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^~~~~
3 errors generated.
--
In file included from drivers/media/platform/mtk-mdp/mtk_mdp_core.c:22:
In file included from drivers/media/platform/mtk-mdp/mtk_mdp_core.h:13:
In file included from include/media/v4l2-device.h:13:
In file included from include/media/v4l2-subdev.h:15:
In file included from include/media/v4l2-common.h:270:
In file included from include/linux/spi/spi.h:17:
In file included from include/linux/ptp_clock_kernel.h:15:
include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
>> drivers/media/platform/mtk-mdp/mtk_mdp_core.c:207:52: error: implicit conversion from 'unsigned long long' to 'unsigned int' changes value from 18446744073709551615 to 4294967295 [-Werror,-Wconstant-conversion]
ret = vb2_dma_contig_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:40: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^~~~~
3 errors generated.
--
In file included from drivers/media/platform/s5p-mfc/s5p_mfc.c:24:
In file included from drivers/media/platform/s5p-mfc/s5p_mfc_common.h:18:
In file included from include/media/v4l2-device.h:13:
In file included from include/media/v4l2-subdev.h:15:
In file included from include/media/v4l2-common.h:270:
In file included from include/linux/spi/spi.h:17:
In file included from include/linux/ptp_clock_kernel.h:15:
include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
>> drivers/media/platform/s5p-mfc/s5p_mfc.c:1169:6: error: implicit conversion from 'unsigned long long' to 'unsigned int' changes value from 18446744073709551615 to 4294967295 [-Werror,-Wconstant-conversion]
DMA_BIT_MASK(32));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:40: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^~~~~
drivers/media/platform/s5p-mfc/s5p_mfc.c:1171:6: error: implicit conversion from 'unsigned long long' to 'unsigned int' changes value from 18446744073709551615 to 4294967295 [-Werror,-Wconstant-conversion]
DMA_BIT_MASK(32));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:40: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^~~~~
drivers/media/platform/s5p-mfc/s5p_mfc.c:1230:39: error: implicit conversion from 'unsigned long long' to 'unsigned int' changes value from 18446744073709551615 to 4294967295 [-Werror,-Wconstant-conversion]
vb2_dma_contig_set_max_seg_size(dev, DMA_BIT_MASK(32));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:40: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^~~~~
5 errors generated.
--
In file included from drivers/staging/media/hantro/hantro_drv.c:27:
In file included from drivers/staging/media/hantro/hantro_v4l2.h:19:
In file included from drivers/staging/media/hantro/hantro.h:21:
In file included from include/media/v4l2-device.h:13:
In file included from include/media/v4l2-subdev.h:15:
In file included from include/media/v4l2-common.h:270:
In file included from include/linux/spi/spi.h:17:
In file included from include/linux/ptp_clock_kernel.h:15:
include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
>> drivers/staging/media/hantro/hantro_drv.c:913:46: error: implicit conversion from 'unsigned long long' to 'unsigned int' changes value from 18446744073709551615 to 4294967295 [-Werror,-Wconstant-conversion]
vb2_dma_contig_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:40: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^~~~~
3 errors generated.
vim +1191 drivers/media/platform/exynos-gsc/gsc-core.c
89069699769aa4 Sungchun Kang 2012-07-31 1105
89069699769aa4 Sungchun Kang 2012-07-31 1106 static int gsc_probe(struct platform_device *pdev)
89069699769aa4 Sungchun Kang 2012-07-31 1107 {
89069699769aa4 Sungchun Kang 2012-07-31 1108 struct gsc_dev *gsc;
89069699769aa4 Sungchun Kang 2012-07-31 1109 struct resource *res;
89069699769aa4 Sungchun Kang 2012-07-31 1110 struct device *dev = &pdev->dev;
aa7929f5954ce7 Marek Szyprowski 2016-11-09 1111 const struct gsc_driverdata *drv_data = of_device_get_match_data(dev);
aff093d4bbca91 Arnd Bergmann 2016-04-26 1112 int ret;
92955ea0baf431 Marek Szyprowski 2016-11-09 1113 int i;
89069699769aa4 Sungchun Kang 2012-07-31 1114
89069699769aa4 Sungchun Kang 2012-07-31 1115 gsc = devm_kzalloc(dev, sizeof(struct gsc_dev), GFP_KERNEL);
89069699769aa4 Sungchun Kang 2012-07-31 1116 if (!gsc)
89069699769aa4 Sungchun Kang 2012-07-31 1117 return -ENOMEM;
89069699769aa4 Sungchun Kang 2012-07-31 1118
aff093d4bbca91 Arnd Bergmann 2016-04-26 1119 ret = of_alias_get_id(pdev->dev.of_node, "gsc");
aff093d4bbca91 Arnd Bergmann 2016-04-26 1120 if (ret < 0)
aff093d4bbca91 Arnd Bergmann 2016-04-26 1121 return ret;
aff093d4bbca91 Arnd Bergmann 2016-04-26 1122
a2640560a0e006 Hoegeun Kwon 2017-09-13 1123 if (drv_data == &gsc_v_100_drvdata)
a2640560a0e006 Hoegeun Kwon 2017-09-13 1124 dev_info(dev, "compatible 'exynos5-gsc' is deprecated\n");
a2640560a0e006 Hoegeun Kwon 2017-09-13 1125
aff093d4bbca91 Arnd Bergmann 2016-04-26 1126 gsc->id = ret;
26a7ed9c18193d Mauro Carvalho Chehab 2016-04-13 1127 if (gsc->id >= drv_data->num_entities) {
89069699769aa4 Sungchun Kang 2012-07-31 1128 dev_err(dev, "Invalid platform device id: %d\n", gsc->id);
89069699769aa4 Sungchun Kang 2012-07-31 1129 return -EINVAL;
89069699769aa4 Sungchun Kang 2012-07-31 1130 }
89069699769aa4 Sungchun Kang 2012-07-31 1131
92955ea0baf431 Marek Szyprowski 2016-11-09 1132 gsc->num_clocks = drv_data->num_clocks;
89069699769aa4 Sungchun Kang 2012-07-31 1133 gsc->variant = drv_data->variant[gsc->id];
89069699769aa4 Sungchun Kang 2012-07-31 1134 gsc->pdev = pdev;
89069699769aa4 Sungchun Kang 2012-07-31 1135
89069699769aa4 Sungchun Kang 2012-07-31 1136 init_waitqueue_head(&gsc->irq_queue);
89069699769aa4 Sungchun Kang 2012-07-31 1137 spin_lock_init(&gsc->slock);
89069699769aa4 Sungchun Kang 2012-07-31 1138 mutex_init(&gsc->lock);
89069699769aa4 Sungchun Kang 2012-07-31 1139
89069699769aa4 Sungchun Kang 2012-07-31 1140 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
f23999eccb5f1b Thierry Reding 2013-01-21 1141 gsc->regs = devm_ioremap_resource(dev, res);
f23999eccb5f1b Thierry Reding 2013-01-21 1142 if (IS_ERR(gsc->regs))
f23999eccb5f1b Thierry Reding 2013-01-21 1143 return PTR_ERR(gsc->regs);
89069699769aa4 Sungchun Kang 2012-07-31 1144
89069699769aa4 Sungchun Kang 2012-07-31 1145 res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
89069699769aa4 Sungchun Kang 2012-07-31 1146 if (!res) {
89069699769aa4 Sungchun Kang 2012-07-31 1147 dev_err(dev, "failed to get IRQ resource\n");
89069699769aa4 Sungchun Kang 2012-07-31 1148 return -ENXIO;
89069699769aa4 Sungchun Kang 2012-07-31 1149 }
89069699769aa4 Sungchun Kang 2012-07-31 1150
92955ea0baf431 Marek Szyprowski 2016-11-09 1151 for (i = 0; i < gsc->num_clocks; i++) {
92955ea0baf431 Marek Szyprowski 2016-11-09 1152 gsc->clock[i] = devm_clk_get(dev, drv_data->clk_names[i]);
92955ea0baf431 Marek Szyprowski 2016-11-09 1153 if (IS_ERR(gsc->clock[i])) {
92955ea0baf431 Marek Szyprowski 2016-11-09 1154 dev_err(dev, "failed to get clock: %s\n",
92955ea0baf431 Marek Szyprowski 2016-11-09 1155 drv_data->clk_names[i]);
92955ea0baf431 Marek Szyprowski 2016-11-09 1156 return PTR_ERR(gsc->clock[i]);
92955ea0baf431 Marek Szyprowski 2016-11-09 1157 }
d83db90456d5d1 Ulf Hansson 2016-11-09 1158 }
d83db90456d5d1 Ulf Hansson 2016-11-09 1159
92955ea0baf431 Marek Szyprowski 2016-11-09 1160 for (i = 0; i < gsc->num_clocks; i++) {
92955ea0baf431 Marek Szyprowski 2016-11-09 1161 ret = clk_prepare_enable(gsc->clock[i]);
d83db90456d5d1 Ulf Hansson 2016-11-09 1162 if (ret) {
92955ea0baf431 Marek Szyprowski 2016-11-09 1163 dev_err(dev, "clock prepare failed for clock: %s\n",
92955ea0baf431 Marek Szyprowski 2016-11-09 1164 drv_data->clk_names[i]);
92955ea0baf431 Marek Szyprowski 2016-11-09 1165 while (--i >= 0)
92955ea0baf431 Marek Szyprowski 2016-11-09 1166 clk_disable_unprepare(gsc->clock[i]);
89069699769aa4 Sungchun Kang 2012-07-31 1167 return ret;
d83db90456d5d1 Ulf Hansson 2016-11-09 1168 }
92955ea0baf431 Marek Szyprowski 2016-11-09 1169 }
89069699769aa4 Sungchun Kang 2012-07-31 1170
89069699769aa4 Sungchun Kang 2012-07-31 1171 ret = devm_request_irq(dev, res->start, gsc_irq_handler,
89069699769aa4 Sungchun Kang 2012-07-31 1172 0, pdev->name, gsc);
89069699769aa4 Sungchun Kang 2012-07-31 1173 if (ret) {
89069699769aa4 Sungchun Kang 2012-07-31 1174 dev_err(dev, "failed to install irq (%d)\n", ret);
89069699769aa4 Sungchun Kang 2012-07-31 1175 goto err_clk;
89069699769aa4 Sungchun Kang 2012-07-31 1176 }
89069699769aa4 Sungchun Kang 2012-07-31 1177
d0b1c313499699 Arun Kumar K 2013-07-26 1178 ret = v4l2_device_register(dev, &gsc->v4l2_dev);
89069699769aa4 Sungchun Kang 2012-07-31 1179 if (ret)
89069699769aa4 Sungchun Kang 2012-07-31 1180 goto err_clk;
89069699769aa4 Sungchun Kang 2012-07-31 1181
d0b1c313499699 Arun Kumar K 2013-07-26 1182 ret = gsc_register_m2m_device(gsc);
d0b1c313499699 Arun Kumar K 2013-07-26 1183 if (ret)
d0b1c313499699 Arun Kumar K 2013-07-26 1184 goto err_v4l2;
d0b1c313499699 Arun Kumar K 2013-07-26 1185
89069699769aa4 Sungchun Kang 2012-07-31 1186 platform_set_drvdata(pdev, gsc);
15f90ab57acc31 Ulf Hansson 2016-11-09 1187
15f90ab57acc31 Ulf Hansson 2016-11-09 1188 gsc_hw_set_sw_reset(gsc);
15f90ab57acc31 Ulf Hansson 2016-11-09 1189 gsc_wait_reset(gsc);
89069699769aa4 Sungchun Kang 2012-07-31 1190
712b617e5e1a90 Marek Szyprowski 2016-05-24 @1191 vb2_dma_contig_set_max_seg_size(dev, DMA_BIT_MASK(32));
89069699769aa4 Sungchun Kang 2012-07-31 1192
89069699769aa4 Sungchun Kang 2012-07-31 1193 dev_dbg(dev, "gsc-%d registered successfully\n", gsc->id);
89069699769aa4 Sungchun Kang 2012-07-31 1194
15f90ab57acc31 Ulf Hansson 2016-11-09 1195 pm_runtime_set_active(dev);
15f90ab57acc31 Ulf Hansson 2016-11-09 1196 pm_runtime_enable(dev);
15f90ab57acc31 Ulf Hansson 2016-11-09 1197
89069699769aa4 Sungchun Kang 2012-07-31 1198 return 0;
c781e4a565a679 Hans Verkuil 2016-02-15 1199
d0b1c313499699 Arun Kumar K 2013-07-26 1200 err_v4l2:
d0b1c313499699 Arun Kumar K 2013-07-26 1201 v4l2_device_unregister(&gsc->v4l2_dev);
89069699769aa4 Sungchun Kang 2012-07-31 1202 err_clk:
92955ea0baf431 Marek Szyprowski 2016-11-09 1203 for (i = gsc->num_clocks - 1; i >= 0; i--)
92955ea0baf431 Marek Szyprowski 2016-11-09 1204 clk_disable_unprepare(gsc->clock[i]);
89069699769aa4 Sungchun Kang 2012-07-31 1205 return ret;
89069699769aa4 Sungchun Kang 2012-07-31 1206 }
89069699769aa4 Sungchun Kang 2012-07-31 1207
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30597 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [RFCv4 PATCH net-next] net: extend netdev_features_t
[not found] <20211107101519.29264-1-shenjian15@huawei.com>
2021-11-07 11:48 ` [RFCv4 PATCH net-next] net: extend netdev_features_t kernel test robot
@ 2021-11-07 12:10 ` kernel test robot
1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-07 12:10 UTC (permalink / raw)
To: Jian Shen; +Cc: llvm, kbuild-all
[-- Attachment #1: Type: text/plain, Size: 26233 bytes --]
Hi Jian,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Jian-Shen/net-extend-netdev_features_t/20211107-182136
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 84882cf72cd774cf16fd338bdbf00f69ac9f9194
config: x86_64-buildonly-randconfig-r001-20211107 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cefc01fa65a7ebcc10cbf3c3bb2278a6a122deaf)
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/1e2d15fe96b9ee363f2de176506f0b60f79835e0
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jian-Shen/net-extend-netdev_features_t/20211107-182136
git checkout 1e2d15fe96b9ee363f2de176506f0b60f79835e0
# 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=x86_64 SHELL=/bin/bash kernel/sched/ net/core/ net/tls/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/sched/core.c:13:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/core.c:3416:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes]
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
kernel/sched/core.c:3416:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
static
1 warning and 2 errors generated.
--
In file included from kernel/sched/loadavg.c:9:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
2 errors generated.
--
In file included from kernel/sched/fair.c:23:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/fair.c:10996:6: warning: no previous prototype for function 'task_vruntime_update' [-Wmissing-prototypes]
void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
^
kernel/sched/fair.c:10996:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
^
static
1 warning and 2 errors generated.
--
In file included from kernel/sched/rt.c:6:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/rt.c:669:6: warning: no previous prototype for function 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
^
kernel/sched/rt.c:669:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
^
static
1 warning and 2 errors generated.
--
In file included from kernel/sched/topology.c:5:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/topology.c:691:6: warning: variable 'numa_distance' set but not used [-Wunused-but-set-variable]
int numa_distance = 0;
^
1 warning and 2 errors generated.
--
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:22:
In file included from include/linux/ip.h:16:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5605:30: error: used type 'netdev_features_t' where arithmetic or pointer type is required
netdev_features_t feature = (netdev_features_t)gso_type << NETIF_F_GSO_SHIFT;
^ ~~~~~~~~
>> include/linux/netdevice.h:5608:35: error: use of undeclared identifier 'NETIF_F_TSO'
BUILD_BUG_ON(SKB_GSO_TCPV4 != (NETIF_F_TSO >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5609:35: error: use of undeclared identifier 'NETIF_F_GSO_ROBUST'
BUILD_BUG_ON(SKB_GSO_DODGY != (NETIF_F_GSO_ROBUST >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5610:35: error: use of undeclared identifier 'NETIF_F_TSO_ECN'; did you mean 'NETIF_F_TSO_BIT'?
BUILD_BUG_ON(SKB_GSO_TCP_ECN != (NETIF_F_TSO_ECN >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~
NETIF_F_TSO_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:32:2: note: 'NETIF_F_TSO_BIT' declared here
NETIF_F_TSO_BIT /* ... TCPv4 segmentation */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5611:39: error: use of undeclared identifier 'NETIF_F_TSO_MANGLEID'; did you mean 'NETIF_F_TSO_MANGLEID_BIT'?
BUILD_BUG_ON(SKB_GSO_TCP_FIXEDID != (NETIF_F_TSO_MANGLEID >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~~
NETIF_F_TSO_MANGLEID_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:36:2: note: 'NETIF_F_TSO_MANGLEID_BIT' declared here
NETIF_F_TSO_MANGLEID_BIT, /* ... IPV4 ID mangling allowed */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5612:35: error: use of undeclared identifier 'NETIF_F_TSO6'
BUILD_BUG_ON(SKB_GSO_TCPV6 != (NETIF_F_TSO6 >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5613:35: error: use of undeclared identifier 'NETIF_F_FSO'
BUILD_BUG_ON(SKB_GSO_FCOE != (NETIF_F_FSO >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5614:35: error: use of undeclared identifier 'NETIF_F_GSO_GRE'; did you mean 'NETIF_F_GSO_BIT'?
BUILD_BUG_ON(SKB_GSO_GRE != (NETIF_F_GSO_GRE >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~
NETIF_F_GSO_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:24:2: note: 'NETIF_F_GSO_BIT' declared here
NETIF_F_GSO_BIT, /* Enable software GSO. */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5615:36: error: use of undeclared identifier 'NETIF_F_GSO_GRE_CSUM'
BUILD_BUG_ON(SKB_GSO_GRE_CSUM != (NETIF_F_GSO_GRE_CSUM >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5616:35: error: use of undeclared identifier 'NETIF_F_GSO_IPXIP4'; did you mean 'NETIF_F_GSO_IPXIP4_BIT'?
BUILD_BUG_ON(SKB_GSO_IPXIP4 != (NETIF_F_GSO_IPXIP4 >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~
NETIF_F_GSO_IPXIP4_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:41:2: note: 'NETIF_F_GSO_IPXIP4_BIT' declared here
NETIF_F_GSO_IPXIP4_BIT, /* ... IP4 or IP6 over IP4 with TSO */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5617:35: error: use of undeclared identifier 'NETIF_F_GSO_IPXIP6'; did you mean 'NETIF_F_GSO_IPXIP6_BIT'?
BUILD_BUG_ON(SKB_GSO_IPXIP6 != (NETIF_F_GSO_IPXIP6 >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~
NETIF_F_GSO_IPXIP6_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:42:2: note: 'NETIF_F_GSO_IPXIP6_BIT' declared here
NETIF_F_GSO_IPXIP6_BIT, /* ... IP4 or IP6 over IP6 with TSO */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5618:38: error: use of undeclared identifier 'NETIF_F_GSO_UDP_TUNNEL'; did you mean 'NETIF_F_GSO_UDP_TUNNEL_BIT'?
BUILD_BUG_ON(SKB_GSO_UDP_TUNNEL != (NETIF_F_GSO_UDP_TUNNEL >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~~~~
NETIF_F_GSO_UDP_TUNNEL_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:43:2: note: 'NETIF_F_GSO_UDP_TUNNEL_BIT' declared here
NETIF_F_GSO_UDP_TUNNEL_BIT, /* ... UDP TUNNEL with TSO */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5619:43: error: use of undeclared identifier 'NETIF_F_GSO_UDP_TUNNEL_CSUM'
BUILD_BUG_ON(SKB_GSO_UDP_TUNNEL_CSUM != (NETIF_F_GSO_UDP_TUNNEL_CSUM >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5620:35: error: use of undeclared identifier 'NETIF_F_GSO_PARTIAL'; did you mean 'NETIF_F_GSO_PARTIAL_BIT'?
BUILD_BUG_ON(SKB_GSO_PARTIAL != (NETIF_F_GSO_PARTIAL >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~
NETIF_F_GSO_PARTIAL_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:45:2: note: 'NETIF_F_GSO_PARTIAL_BIT' declared here
NETIF_F_GSO_PARTIAL_BIT, /* ... Only segment inner-most L4
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5621:42: error: use of undeclared identifier 'NETIF_F_GSO_TUNNEL_REMCSUM'; did you mean 'NETIF_F_GSO_TUNNEL_REMCSUM_BIT'?
BUILD_BUG_ON(SKB_GSO_TUNNEL_REMCSUM != (NETIF_F_GSO_TUNNEL_REMCSUM >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~~~~~~~~
NETIF_F_GSO_TUNNEL_REMCSUM_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:49:2: note: 'NETIF_F_GSO_TUNNEL_REMCSUM_BIT' declared here
NETIF_F_GSO_TUNNEL_REMCSUM_BIT, /* ... TUNNEL with TSO & REMCSUM */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5622:35: error: use of undeclared identifier 'NETIF_F_GSO_SCTP'; did you mean 'NETIF_F_GSO_BIT'?
BUILD_BUG_ON(SKB_GSO_SCTP != (NETIF_F_GSO_SCTP >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~
NETIF_F_GSO_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:24:2: note: 'NETIF_F_GSO_BIT' declared here
NETIF_F_GSO_BIT, /* Enable software GSO. */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5623:31: error: use of undeclared identifier 'NETIF_F_GSO_ESP'
BUILD_BUG_ON(SKB_GSO_ESP != (NETIF_F_GSO_ESP >> NETIF_F_GSO_SHIFT));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
..
vim +/NETIF_F_FRAGLIST +3737 include/linux/skbuff.h
690e36e726d00d David S. Miller 2014-08-23 3722
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3723 /**
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3724 * skb_needs_linearize - check if we need to linearize a given skb
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3725 * depending on the given device features.
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3726 * @skb: socket buffer to check
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3727 * @features: net device features
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3728 *
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3729 * Returns true if either:
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3730 * 1. skb has frag_list and the device doesn't support FRAGLIST, or
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3731 * 2. skb is fragmented and the device does not support SG.
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3732 */
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3733 static inline bool skb_needs_linearize(struct sk_buff *skb,
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3734 netdev_features_t features)
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3735 {
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3736 return skb_is_nonlinear(skb) &&
4262e5ccbbb517 Daniel Borkmann 2013-12-06 @3737 ((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
4262e5ccbbb517 Daniel Borkmann 2013-12-06 @3738 (skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3739 }
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3740
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38675 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread