[intel-linux-intel-lts:4.19/android_r 18600/21556] drivers/usb/host/xhci-dbgcap.c:191:6: warning: no previous prototype for function 'xhci_dbc_flush_requests'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 4.19/android_r
head: 968adf904a287574c10a384c2e3b1e88994ad843
commit: b88d999a5b9ae9022e12e1a5810b12b21cb77996 [18600/21556] usb: xhci: dbc: make DbC modular, introducing dbc_function structure
config: x86_64-randconfig-r011-20210201 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/intel/linux-intel-lts/commit/b88d999a5b9ae9022e12e1a58...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 4.19/android_r
git checkout b88d999a5b9ae9022e12e1a5810b12b21cb77996
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/usb/host/xhci-dbgcap.c:9:
In file included from include/linux/dma-mapping.h:7:
In file included from include/linux/device.h:16:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:14:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:27:
In file included from include/linux/preempt.h:81:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:38:
In file included from arch/x86/include/asm/thread_info.h:53:
arch/x86/include/asm/cpufeature.h:164:2: error: implicit declaration of function 'asm_volatile_goto' [-Werror,-Wimplicit-function-declaration]
asm_volatile_goto("1: jmp 6f\n"
^
arch/x86/include/asm/cpufeature.h:195:4: error: expected ')'
: : [feature] "i" (bit),
^
arch/x86/include/asm/cpufeature.h:164:19: note: to match this '('
asm_volatile_goto("1: jmp 6f\n"
^
>> drivers/usb/host/xhci-dbgcap.c:191:6: warning: no previous prototype for function 'xhci_dbc_flush_requests' [-Wmissing-prototypes]
void xhci_dbc_flush_requests(struct xhci_dbc *dbc)
^
drivers/usb/host/xhci-dbgcap.c:191:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void xhci_dbc_flush_requests(struct xhci_dbc *dbc)
^
static
1 warning and 2 errors generated.
vim +/xhci_dbc_flush_requests +191 drivers/usb/host/xhci-dbgcap.c
189
190
> 191 void xhci_dbc_flush_requests(struct xhci_dbc *dbc)
192 {
193 xhci_dbc_flush_endpoint_requests(&dbc->eps[BULK_OUT]);
194 xhci_dbc_flush_endpoint_requests(&dbc->eps[BULK_IN]);
195 }
196 EXPORT_SYMBOL_GPL(xhci_dbc_flush_requests);
197
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[sailus-media:master 15/28] drivers/media/platform/pxa_camera.c:2413:11: error: 'struct pxa_camera_dev' has no member named 'asd'
by kernel test robot
tree: git://linuxtv.org/sailus/media_tree.git master
head: b06ffac07a9db72430fd232eacdef843d0f5d70e
commit: 979fa5fe9243e1e6c943bc585b3e38188f26028a [15/28] media: pxa-camera: Use v4l2_async_notifier_add_*_subdev
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add sailus-media git://linuxtv.org/sailus/media_tree.git
git fetch --no-tags sailus-media master
git checkout 979fa5fe9243e1e6c943bc585b3e38188f26028a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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 drivers/media/platform/pxa_camera.c:34:
drivers/media/platform/pxa_camera.c: In function 'pxa_camera_probe':
>> drivers/media/platform/pxa_camera.c:2413:11: error: 'struct pxa_camera_dev' has no member named 'asd'
2413 | pcdev->asd.match.i2c.adapter_id,
| ^~
include/media/v4l2-clk.h:68:17: note: in definition of macro 'v4l2_clk_name_i2c'
68 | "%d-%04x", adap, client)
| ^~~~
drivers/media/platform/pxa_camera.c:2414:11: error: 'struct pxa_camera_dev' has no member named 'asd'
2414 | pcdev->asd.match.i2c.address);
| ^~
include/media/v4l2-clk.h:68:23: note: in definition of macro 'v4l2_clk_name_i2c'
68 | "%d-%04x", adap, client)
| ^~~~~~
vim +2413 drivers/media/platform/pxa_camera.c
e9a1d94fa85542 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2014-06-29 2270
4c62e9764ab403 drivers/media/platform/soc_camera/pxa_camera.c Greg Kroah-Hartman 2012-12-21 2271 static int pxa_camera_probe(struct platform_device *pdev)
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2272 {
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2273 struct pxa_camera_dev *pcdev;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2274 struct resource *res;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2275 void __iomem *base;
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2276 struct dma_slave_config config = {
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2277 .src_addr_width = 0,
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2278 .src_maxburst = 8,
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2279 .direction = DMA_DEV_TO_MEM,
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2280 };
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2281 char clk_name[V4L2_CLK_NAME_SIZE];
02da465945ae0a drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-06-13 2282 int irq;
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2283 int err = 0, i;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2284
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2285 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2286 irq = platform_get_irq(pdev, 0);
47de201c73fbe4 drivers/media/platform/soc_camera/pxa_camera.c Julia Lawall 2013-01-07 2287 if (!res || irq < 0)
47de201c73fbe4 drivers/media/platform/soc_camera/pxa_camera.c Julia Lawall 2013-01-07 2288 return -ENODEV;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2289
47de201c73fbe4 drivers/media/platform/soc_camera/pxa_camera.c Julia Lawall 2013-01-07 2290 pcdev = devm_kzalloc(&pdev->dev, sizeof(*pcdev), GFP_KERNEL);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2291 if (!pcdev) {
7102b773d538c1 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-15 2292 dev_err(&pdev->dev, "Could not allocate pcdev\n");
47de201c73fbe4 drivers/media/platform/soc_camera/pxa_camera.c Julia Lawall 2013-01-07 2293 return -ENOMEM;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2294 }
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2295
47de201c73fbe4 drivers/media/platform/soc_camera/pxa_camera.c Julia Lawall 2013-01-07 2296 pcdev->clk = devm_clk_get(&pdev->dev, NULL);
47de201c73fbe4 drivers/media/platform/soc_camera/pxa_camera.c Julia Lawall 2013-01-07 2297 if (IS_ERR(pcdev->clk))
47de201c73fbe4 drivers/media/platform/soc_camera/pxa_camera.c Julia Lawall 2013-01-07 2298 return PTR_ERR(pcdev->clk);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2299
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2300 v4l2_async_notifier_init(&pcdev->notifier);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2301 pcdev->res = res;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2302 pcdev->pdata = pdev->dev.platform_data;
db89a47fb9c71e drivers/media/platform/pxa_camera.c Hans Verkuil 2019-02-07 2303 if (pcdev->pdata) {
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2304 struct v4l2_async_subdev *asd;
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2305
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2306 pcdev->platform_flags = pcdev->pdata->flags;
e9a1d94fa85542 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2014-06-29 2307 pcdev->mclk = pcdev->pdata->mclk_10khz * 10000;
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2308 asd = v4l2_async_notifier_add_i2c_subdev(
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2309 &pcdev->notifier,
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2310 pcdev->pdata->sensor_i2c_adapter_id,
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2311 pcdev->pdata->sensor_i2c_address,
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2312 sizeof(*asd));
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2313 if (IS_ERR(asd))
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2314 err = PTR_ERR(asd);
db89a47fb9c71e drivers/media/platform/pxa_camera.c Hans Verkuil 2019-02-07 2315 } else if (pdev->dev.of_node) {
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2316 err = pxa_camera_pdata_from_dt(&pdev->dev, pcdev);
db89a47fb9c71e drivers/media/platform/pxa_camera.c Hans Verkuil 2019-02-07 2317 } else {
db89a47fb9c71e drivers/media/platform/pxa_camera.c Hans Verkuil 2019-02-07 2318 return -ENODEV;
e9a1d94fa85542 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2014-06-29 2319 }
e9a1d94fa85542 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2014-06-29 2320 if (err < 0)
e9a1d94fa85542 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2014-06-29 2321 return err;
e9a1d94fa85542 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2014-06-29 2322
ad5f2e859d76dc drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-03-07 2323 if (!(pcdev->platform_flags & (PXA_CAMERA_DATAWIDTH_8 |
ad5f2e859d76dc drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-03-07 2324 PXA_CAMERA_DATAWIDTH_9 | PXA_CAMERA_DATAWIDTH_10))) {
5d28d525452f17 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2009-12-11 2325 /*
5d28d525452f17 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2009-12-11 2326 * Platform hasn't set available data widths. This is bad.
5d28d525452f17 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2009-12-11 2327 * Warn and use a default.
5d28d525452f17 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2009-12-11 2328 */
759a4ed4d8e068 drivers/media/platform/pxa_camera.c Mauro Carvalho Chehab 2016-10-18 2329 dev_warn(&pdev->dev, "WARNING! Platform hasn't set available data widths, using default 10 bit\n");
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2330 pcdev->platform_flags |= PXA_CAMERA_DATAWIDTH_10;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2331 }
679419aa6e2590 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2011-07-27 2332 if (pcdev->platform_flags & PXA_CAMERA_DATAWIDTH_8)
679419aa6e2590 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2011-07-27 2333 pcdev->width_flags = 1 << 7;
679419aa6e2590 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2011-07-27 2334 if (pcdev->platform_flags & PXA_CAMERA_DATAWIDTH_9)
679419aa6e2590 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2011-07-27 2335 pcdev->width_flags |= 1 << 8;
679419aa6e2590 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2011-07-27 2336 if (pcdev->platform_flags & PXA_CAMERA_DATAWIDTH_10)
679419aa6e2590 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2011-07-27 2337 pcdev->width_flags |= 1 << 9;
cf34cba78d0e0a drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-12-18 2338 if (!pcdev->mclk) {
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2339 dev_warn(&pdev->dev,
759a4ed4d8e068 drivers/media/platform/pxa_camera.c Mauro Carvalho Chehab 2016-10-18 2340 "mclk == 0! Please, fix your platform data. Using default 20MHz\n");
cf34cba78d0e0a drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-12-18 2341 pcdev->mclk = 20000000;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2342 }
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2343
40e2e092700342 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2009-08-25 2344 pcdev->mclk_divisor = mclk_get_divisor(pdev, pcdev);
cf34cba78d0e0a drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-12-18 2345
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2346 INIT_LIST_HEAD(&pcdev->capture);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2347 spin_lock_init(&pcdev->lock);
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2348 mutex_init(&pcdev->mlock);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2349
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2350 /*
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2351 * Request the regions.
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2352 */
8efdb13543909a drivers/media/platform/soc_camera/pxa_camera.c Sachin Kamat 2013-03-04 2353 base = devm_ioremap_resource(&pdev->dev, res);
8efdb13543909a drivers/media/platform/soc_camera/pxa_camera.c Sachin Kamat 2013-03-04 2354 if (IS_ERR(base))
8efdb13543909a drivers/media/platform/soc_camera/pxa_camera.c Sachin Kamat 2013-03-04 2355 return PTR_ERR(base);
8efdb13543909a drivers/media/platform/soc_camera/pxa_camera.c Sachin Kamat 2013-03-04 2356
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2357 pcdev->irq = irq;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2358 pcdev->base = base;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2359
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2360 /* request dma */
eee16d210c1857 drivers/media/platform/pxa_camera.c Peter Ujfalusi 2019-12-17 2361 pcdev->dma_chans[0] = dma_request_chan(&pdev->dev, "CI_Y");
eee16d210c1857 drivers/media/platform/pxa_camera.c Peter Ujfalusi 2019-12-17 2362 if (IS_ERR(pcdev->dma_chans[0])) {
eff505fa1511b7 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2009-04-24 2363 dev_err(&pdev->dev, "Can't request DMA for Y\n");
eee16d210c1857 drivers/media/platform/pxa_camera.c Peter Ujfalusi 2019-12-17 2364 return PTR_ERR(pcdev->dma_chans[0]);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2365 }
a5462e5be3c1ce drivers/media/video/pxa_camera.c Mike Rapoport 2008-04-22 2366
eee16d210c1857 drivers/media/platform/pxa_camera.c Peter Ujfalusi 2019-12-17 2367 pcdev->dma_chans[1] = dma_request_chan(&pdev->dev, "CI_U");
eee16d210c1857 drivers/media/platform/pxa_camera.c Peter Ujfalusi 2019-12-17 2368 if (IS_ERR(pcdev->dma_chans[1])) {
eee16d210c1857 drivers/media/platform/pxa_camera.c Peter Ujfalusi 2019-12-17 2369 dev_err(&pdev->dev, "Can't request DMA for U\n");
eee16d210c1857 drivers/media/platform/pxa_camera.c Peter Ujfalusi 2019-12-17 2370 err = PTR_ERR(pcdev->dma_chans[1]);
a5462e5be3c1ce drivers/media/video/pxa_camera.c Mike Rapoport 2008-04-22 2371 goto exit_free_dma_y;
a5462e5be3c1ce drivers/media/video/pxa_camera.c Mike Rapoport 2008-04-22 2372 }
a5462e5be3c1ce drivers/media/video/pxa_camera.c Mike Rapoport 2008-04-22 2373
eee16d210c1857 drivers/media/platform/pxa_camera.c Peter Ujfalusi 2019-12-17 2374 pcdev->dma_chans[2] = dma_request_chan(&pdev->dev, "CI_V");
eee16d210c1857 drivers/media/platform/pxa_camera.c Peter Ujfalusi 2019-12-17 2375 if (IS_ERR(pcdev->dma_chans[2])) {
eff505fa1511b7 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2009-04-24 2376 dev_err(&pdev->dev, "Can't request DMA for V\n");
eee16d210c1857 drivers/media/platform/pxa_camera.c Peter Ujfalusi 2019-12-17 2377 err = PTR_ERR(pcdev->dma_chans[2]);
a5462e5be3c1ce drivers/media/video/pxa_camera.c Mike Rapoport 2008-04-22 2378 goto exit_free_dma_u;
a5462e5be3c1ce drivers/media/video/pxa_camera.c Mike Rapoport 2008-04-22 2379 }
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2380
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2381 for (i = 0; i < 3; i++) {
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2382 config.src_addr = pcdev->res->start + CIBR0 + i * 8;
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2383 err = dmaengine_slave_config(pcdev->dma_chans[i], &config);
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2384 if (err < 0) {
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2385 dev_err(&pdev->dev, "dma slave config failed: %d\n",
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2386 err);
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2387 goto exit_free_dma;
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2388 }
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2389 }
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2390
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2391 /* request irq */
47de201c73fbe4 drivers/media/platform/soc_camera/pxa_camera.c Julia Lawall 2013-01-07 2392 err = devm_request_irq(&pdev->dev, pcdev->irq, pxa_camera_irq, 0,
47de201c73fbe4 drivers/media/platform/soc_camera/pxa_camera.c Julia Lawall 2013-01-07 2393 PXA_CAM_DRV_NAME, pcdev);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2394 if (err) {
eff505fa1511b7 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2009-04-24 2395 dev_err(&pdev->dev, "Camera interrupt register failed\n");
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2396 goto exit_free_dma;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2397 }
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2398
32579c0cb363b9 drivers/media/platform/pxa_camera.c Allen Pais 2020-08-17 2399 tasklet_setup(&pcdev->task_eof, pxa_camera_eof);
eff505fa1511b7 drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2009-04-24 2400
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2401 pxa_camera_activate(pcdev);
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2402
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2403 dev_set_drvdata(&pdev->dev, pcdev);
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2404 err = v4l2_device_register(&pdev->dev, &pcdev->v4l2_dev);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2405 if (err)
9392483122e881 drivers/media/platform/pxa_camera.c Flavio Ceolin 2017-12-06 2406 goto exit_deactivate;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2407
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2408 err = pxa_camera_init_videobuf2(pcdev);
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2409 if (err)
d079f94c90469f drivers/media/platform/pxa_camera.c Steve Longerbeam 2018-09-29 2410 goto exit_notifier_cleanup;
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2411
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2412 v4l2_clk_name_i2c(clk_name, sizeof(clk_name),
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 @2413 pcdev->asd.match.i2c.adapter_id,
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2414 pcdev->asd.match.i2c.address);
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2415
979fa5fe9243e1 drivers/media/platform/pxa_camera.c Ezequiel Garcia 2021-01-17 2416 pcdev->notifier.ops = &pxa_camera_sensor_ops;
477d4d38b93d45 drivers/media/platform/pxa_camera.c Dan Carpenter 2020-06-10 2417 pcdev->mclk_clk = v4l2_clk_register(&pxa_camera_mclk_ops, clk_name, NULL);
a2755e1178c33e drivers/media/platform/pxa_camera.c Wei Yongjun 2016-09-14 2418 if (IS_ERR(pcdev->mclk_clk)) {
a2755e1178c33e drivers/media/platform/pxa_camera.c Wei Yongjun 2016-09-14 2419 err = PTR_ERR(pcdev->mclk_clk);
d079f94c90469f drivers/media/platform/pxa_camera.c Steve Longerbeam 2018-09-29 2420 goto exit_notifier_cleanup;
a2755e1178c33e drivers/media/platform/pxa_camera.c Wei Yongjun 2016-09-14 2421 }
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2422
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2423 err = v4l2_async_notifier_register(&pcdev->v4l2_dev, &pcdev->notifier);
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2424 if (err)
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2425 goto exit_free_clk;
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2426
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2427 return 0;
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2428 exit_free_clk:
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2429 v4l2_clk_unregister(pcdev->mclk_clk);
d079f94c90469f drivers/media/platform/pxa_camera.c Steve Longerbeam 2018-09-29 2430 exit_notifier_cleanup:
d079f94c90469f drivers/media/platform/pxa_camera.c Steve Longerbeam 2018-09-29 2431 v4l2_async_notifier_cleanup(&pcdev->notifier);
283e4a82999f48 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2016-09-06 2432 v4l2_device_unregister(&pcdev->v4l2_dev);
9392483122e881 drivers/media/platform/pxa_camera.c Flavio Ceolin 2017-12-06 2433 exit_deactivate:
9392483122e881 drivers/media/platform/pxa_camera.c Flavio Ceolin 2017-12-06 2434 pxa_camera_deactivate(pcdev);
373606320834a9 drivers/media/platform/pxa_camera.c Chuhong Yuan 2019-12-03 2435 tasklet_kill(&pcdev->task_eof);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2436 exit_free_dma:
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2437 dma_release_channel(pcdev->dma_chans[2]);
a5462e5be3c1ce drivers/media/video/pxa_camera.c Mike Rapoport 2008-04-22 2438 exit_free_dma_u:
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2439 dma_release_channel(pcdev->dma_chans[1]);
a5462e5be3c1ce drivers/media/video/pxa_camera.c Mike Rapoport 2008-04-22 2440 exit_free_dma_y:
1e77d55ac9c089 drivers/media/platform/soc_camera/pxa_camera.c Robert Jarzmik 2015-09-06 2441 dma_release_channel(pcdev->dma_chans[0]);
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2442 return err;
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2443 }
3bc43840c3fbff drivers/media/video/pxa_camera.c Guennadi Liakhovetski 2008-04-06 2444
:::::: The code at line 2413 was first introduced by commit
:::::: 283e4a82999f48c61495436b9bbd0357a3268f9d [media] media: platform: pxa_camera: make a standalone v4l2 device
:::::: TO: Robert Jarzmik <robert.jarzmik(a)free.fr>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)s-opensource.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:4.19/android_r 19121/21556] socket.c:undefined reference to `compat_wext_handle_ioctl'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 4.19/android_r
head: 968adf904a287574c10a384c2e3b1e88994ad843
commit: d50a6d412d61dbbde36becaf093d1b8ae3868b8a [19121/21556] binder.c modify secids for struct and param by refs
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/linux-intel-lts/commit/d50a6d412d61dbbde36becaf0...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 4.19/android_r
git checkout d50a6d412d61dbbde36becaf093d1b8ae3868b8a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
s390-linux-ld: net/socket.o: in function `sock_ioctl':
socket.c:(.text+0x1dcc): undefined reference to `wext_handle_ioctl'
s390-linux-ld: net/socket.o: in function `compat_sock_ioctl':
>> socket.c:(.text+0x284e): undefined reference to `compat_wext_handle_ioctl'
s390-linux-ld: net/core/net-procfs.o: in function `dev_proc_net_exit':
>> net-procfs.c:(.text+0xbf4): undefined reference to `wext_proc_exit'
s390-linux-ld: net/core/net-procfs.o: in function `dev_proc_net_init':
>> net-procfs.c:(.text+0xd08): undefined reference to `wext_proc_init'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on NET && WIRELESS && (CFG80211_WEXT || WIRELESS_EXT
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on NET && WIRELESS && PROC_FS && WEXT_CORE
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH v3] KVM: kvmclock: Fix vCPUs > 64 can't be online/hotpluged
by kernel test robot
Hi Wanpeng,
I love your patch! Perhaps something to improve:
[auto build test WARNING on kvm/linux-next]
[also build test WARNING on linux/master vhost/linux-next next-20210125]
[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/Wanpeng-Li/KVM-kvmclock-Fix-vCPU...
base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next
config: x86_64-randconfig-a013-20210201 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/132ae1cea476666dff619b5a7c5675011...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Wanpeng-Li/KVM-kvmclock-Fix-vCPUs-64-can-t-be-online-hotpluged/20210201-163927
git checkout 132ae1cea476666dff619b5a7c5675011edd7fe7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/kvmclock.c:274:5: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
u8 flags;
^
1 warning generated.
vim +274 arch/x86/kernel/kvmclock.c
6a1cac56f41f9e Brijesh Singh 2018-09-14 268
e499a9b6dc488a Thomas Gleixner 2018-07-19 269 static int __init kvm_setup_vsyscall_timeinfo(void)
e499a9b6dc488a Thomas Gleixner 2018-07-19 270 {
132ae1cea47666 Wanpeng Li 2021-02-01 271 kvmclock_init_mem();
132ae1cea47666 Wanpeng Li 2021-02-01 272
e499a9b6dc488a Thomas Gleixner 2018-07-19 273 #ifdef CONFIG_X86_64
e499a9b6dc488a Thomas Gleixner 2018-07-19 @274 u8 flags;
e499a9b6dc488a Thomas Gleixner 2018-07-19 275
95a3d4454bb1cf Thomas Gleixner 2018-07-19 276 if (!per_cpu(hv_clock_per_cpu, 0) || !kvmclock_vsyscall)
e499a9b6dc488a Thomas Gleixner 2018-07-19 277 return 0;
e499a9b6dc488a Thomas Gleixner 2018-07-19 278
95a3d4454bb1cf Thomas Gleixner 2018-07-19 279 flags = pvclock_read_flags(&hv_clock_boot[0].pvti);
e499a9b6dc488a Thomas Gleixner 2018-07-19 280 if (!(flags & PVCLOCK_TSC_STABLE_BIT))
95a3d4454bb1cf Thomas Gleixner 2018-07-19 281 return 0;
e499a9b6dc488a Thomas Gleixner 2018-07-19 282
b95a8a27c300d1 Thomas Gleixner 2020-02-07 283 kvm_clock.vdso_clock_mode = VDSO_CLOCKMODE_PVCLOCK;
e499a9b6dc488a Thomas Gleixner 2018-07-19 284 #endif
6a1cac56f41f9e Brijesh Singh 2018-09-14 285
e499a9b6dc488a Thomas Gleixner 2018-07-19 286 return 0;
e499a9b6dc488a Thomas Gleixner 2018-07-19 287 }
e499a9b6dc488a Thomas Gleixner 2018-07-19 288 early_initcall(kvm_setup_vsyscall_timeinfo);
e499a9b6dc488a Thomas Gleixner 2018-07-19 289
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
arch/sh/kernel/ftrace.c:50:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
Hi Luc,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1048ba83fb1c00cd24172e23e8263972f6b5d9ac
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 5 months ago
config: sh-randconfig-s031-20210201 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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.3-215-g0fb77bb6-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 e5fc436f06eef54ef512ea55a9db8eb9f2e76959
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh
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 >>)"
>> arch/sh/kernel/ftrace.c:50:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned char * @@
arch/sh/kernel/ftrace.c:50:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/ftrace.c:50:9: sparse: got unsigned char *
arch/sh/kernel/ftrace.c:57:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned char * @@
arch/sh/kernel/ftrace.c:57:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/ftrace.c:57:9: sparse: got unsigned char *
--
>> arch/sh/kernel/cpu/sh3/clock-sh7712.c:23:21: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh3/clock-sh7712.c:23:21: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/clock-sh7712.c:23:21: sparse: got unsigned int
arch/sh/kernel/cpu/sh3/clock-sh7712.c:35:21: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh3/clock-sh7712.c:35:21: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/clock-sh7712.c:35:21: sparse: got unsigned int
arch/sh/kernel/cpu/sh3/clock-sh7712.c:47:21: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh3/clock-sh7712.c:47:21: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/clock-sh7712.c:47:21: sparse: got unsigned int
--
>> arch/sh/kernel/cpu/sh3/serial-sh7710.c:13:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh3/serial-sh7710.c:13:17: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7710.c:13:17: sparse: got unsigned int
>> arch/sh/kernel/cpu/sh3/serial-sh7710.c:13:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh3/serial-sh7710.c:13:17: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7710.c:13:17: sparse: got unsigned int
arch/sh/kernel/cpu/sh3/serial-sh7710.c:14:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh3/serial-sh7710.c:14:17: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7710.c:14:17: sparse: got unsigned int
arch/sh/kernel/cpu/sh3/serial-sh7710.c:14:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh3/serial-sh7710.c:14:17: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7710.c:14:17: sparse: got unsigned int
arch/sh/kernel/cpu/sh3/serial-sh7710.c:16:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh3/serial-sh7710.c:16:17: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7710.c:16:17: sparse: got unsigned int
arch/sh/kernel/cpu/sh3/serial-sh7710.c:16:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh3/serial-sh7710.c:16:17: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7710.c:16:17: sparse: got unsigned int
--
>> arch/sh/kernel/cpu/irq/ipr.c:35:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long addr @@
arch/sh/kernel/cpu/irq/ipr.c:35:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/irq/ipr.c:35:9: sparse: got unsigned long addr
>> arch/sh/kernel/cpu/irq/ipr.c:35:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long addr @@
arch/sh/kernel/cpu/irq/ipr.c:35:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/irq/ipr.c:35:9: sparse: got unsigned long addr
arch/sh/kernel/cpu/irq/ipr.c:36:15: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long addr @@
arch/sh/kernel/cpu/irq/ipr.c:36:15: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/irq/ipr.c:36:15: sparse: got unsigned long addr
arch/sh/kernel/cpu/irq/ipr.c:44:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long addr @@
arch/sh/kernel/cpu/irq/ipr.c:44:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/irq/ipr.c:44:9: sparse: got unsigned long addr
arch/sh/kernel/cpu/irq/ipr.c:44:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long addr @@
arch/sh/kernel/cpu/irq/ipr.c:44:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/irq/ipr.c:44:9: sparse: got unsigned long addr
--
>> arch/sh/boards/mach-se/770x/irq.c:100:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/boards/mach-se/770x/irq.c:100:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/boards/mach-se/770x/irq.c:100:9: sparse: got unsigned int
arch/sh/boards/mach-se/770x/irq.c:101:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/boards/mach-se/770x/irq.c:101:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/boards/mach-se/770x/irq.c:101:9: sparse: got unsigned int
arch/sh/boards/mach-se/770x/irq.c:102:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/boards/mach-se/770x/irq.c:102:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/boards/mach-se/770x/irq.c:102:9: sparse: got unsigned int
arch/sh/boards/mach-se/770x/irq.c:103:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/boards/mach-se/770x/irq.c:103:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/boards/mach-se/770x/irq.c:103:9: sparse: got unsigned int
arch/sh/boards/mach-se/770x/irq.c:104:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/boards/mach-se/770x/irq.c:104:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/boards/mach-se/770x/irq.c:104:9: sparse: got unsigned int
arch/sh/boards/mach-se/770x/irq.c:105:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/boards/mach-se/770x/irq.c:105:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/boards/mach-se/770x/irq.c:105:9: sparse: got unsigned int
arch/sh/boards/mach-se/770x/irq.c:106:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/boards/mach-se/770x/irq.c:106:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/boards/mach-se/770x/irq.c:106:9: sparse: got unsigned int
--
>> drivers/gpu/drm/tve200/tve200_display.c:33:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:33:16: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:33:16: sparse: got void *
drivers/gpu/drm/tve200/tve200_display.c:50:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:50:23: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:50:23: sparse: got void *
drivers/gpu/drm/tve200/tve200_display.c:60:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:60:17: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:60:17: sparse: got void *
drivers/gpu/drm/tve200/tve200_display.c:65:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:65:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:65:9: sparse: got void *
drivers/gpu/drm/tve200/tve200_display.c:220:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:220:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:220:9: sparse: got void *
drivers/gpu/drm/tve200/tve200_display.c:234:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:234:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:234:9: sparse: got void *
drivers/gpu/drm/tve200/tve200_display.c:252:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:252:17: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:252:17: sparse: got void *
drivers/gpu/drm/tve200/tve200_display.c:257:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:257:25: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:257:25: sparse: got void *
drivers/gpu/drm/tve200/tve200_display.c:259:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:259:25: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:259:25: sparse: got void *
drivers/gpu/drm/tve200/tve200_display.c:282:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:282:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:282:9: sparse: got void *
drivers/gpu/drm/tve200/tve200_display.c:292:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_display.c:292:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_display.c:292:9: sparse: got void *
--
drivers/gpu/drm/tve200/tve200_drv.c:195:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *regs @@ got void [noderef] __iomem * @@
drivers/gpu/drm/tve200/tve200_drv.c:195:20: sparse: expected void *regs
drivers/gpu/drm/tve200/tve200_drv.c:195:20: sparse: got void [noderef] __iomem *
>> drivers/gpu/drm/tve200/tve200_drv.c:209:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/tve200/tve200_drv.c:209:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/tve200/tve200_drv.c:209:9: sparse: got void *
--
drivers/vhost/vringh.c:567:18: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected restricted __virtio16 const *__gu_addr @@ got restricted __virtio16 [noderef] [usertype] __user * @@
drivers/vhost/vringh.c:567:18: sparse: expected restricted __virtio16 const *__gu_addr
drivers/vhost/vringh.c:567:18: sparse: got restricted __virtio16 [noderef] [usertype] __user *
>> drivers/vhost/vringh.c:567:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got restricted __virtio16 const *__gu_addr @@
drivers/vhost/vringh.c:567:18: sparse: expected void const volatile [noderef] __user *ptr
drivers/vhost/vringh.c:567:18: sparse: got restricted __virtio16 const *__gu_addr
--
drivers/video/fbdev/tmiofb.c:528:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user *argp @@
drivers/video/fbdev/tmiofb.c:528:21: sparse: expected unsigned int const *__gu_addr
drivers/video/fbdev/tmiofb.c:528:21: sparse: got unsigned int [noderef] [usertype] __user *argp
>> drivers/video/fbdev/tmiofb.c:528:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/video/fbdev/tmiofb.c:528:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/video/fbdev/tmiofb.c:528:21: sparse: got unsigned int const *__gu_addr
--
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:719:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:719:21: sparse: expected int const *__gu_addr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:719:21: sparse: got int [noderef] __user *
>> drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:719:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:719:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:719:21: sparse: got int const *__gu_addr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:755:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:755:21: sparse: expected unsigned int const *__gu_addr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:755:21: sparse: got unsigned int [noderef] [usertype] __user *
>> drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:755:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:755:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:755:21: sparse: got unsigned int const *__gu_addr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:796:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:796:21: sparse: expected int const *__gu_addr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:796:21: sparse: got int [noderef] __user *
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:796:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:796:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:796:21: sparse: got int const *__gu_addr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:811:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:811:21: sparse: expected int const *__gu_addr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:811:21: sparse: got int [noderef] __user *
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:811:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:811:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:811:21: sparse: got int const *__gu_addr
vim +50 arch/sh/kernel/ftrace.c
fad57feba77d2e Matt Fleming 2008-11-12 28
9e28c46b7dd116 Matt Fleming 2009-06-10 29 static unsigned char ftrace_nop[4];
9e28c46b7dd116 Matt Fleming 2009-06-10 30 /*
9e28c46b7dd116 Matt Fleming 2009-06-10 31 * If we're trying to nop out a call to a function, we instead
9e28c46b7dd116 Matt Fleming 2009-06-10 32 * place a call to the address after the memory table.
9e28c46b7dd116 Matt Fleming 2009-06-10 33 *
9e28c46b7dd116 Matt Fleming 2009-06-10 34 * 8c011060 <a>:
9e28c46b7dd116 Matt Fleming 2009-06-10 35 * 8c011060: 02 d1 mov.l 8c01106c <a+0xc>,r1
9e28c46b7dd116 Matt Fleming 2009-06-10 36 * 8c011062: 22 4f sts.l pr,@-r15
9e28c46b7dd116 Matt Fleming 2009-06-10 37 * 8c011064: 02 c7 mova 8c011070 <a+0x10>,r0
9e28c46b7dd116 Matt Fleming 2009-06-10 38 * 8c011066: 2b 41 jmp @r1
9e28c46b7dd116 Matt Fleming 2009-06-10 39 * 8c011068: 2a 40 lds r0,pr
9e28c46b7dd116 Matt Fleming 2009-06-10 40 * 8c01106a: 09 00 nop
9e28c46b7dd116 Matt Fleming 2009-06-10 41 * 8c01106c: 68 24 .word 0x2468 <--- ip
9e28c46b7dd116 Matt Fleming 2009-06-10 42 * 8c01106e: 1d 8c .word 0x8c1d
9e28c46b7dd116 Matt Fleming 2009-06-10 43 * 8c011070: 26 4f lds.l @r15+,pr <--- ip + MCOUNT_INSN_SIZE
9e28c46b7dd116 Matt Fleming 2009-06-10 44 *
9e28c46b7dd116 Matt Fleming 2009-06-10 45 * We write 0x8c011070 to 0x8c01106c so that on entry to a() we branch
9e28c46b7dd116 Matt Fleming 2009-06-10 46 * past the _mcount call and continue executing code like normal.
9e28c46b7dd116 Matt Fleming 2009-06-10 47 */
9e28c46b7dd116 Matt Fleming 2009-06-10 48 static unsigned char *ftrace_nop_replace(unsigned long ip)
fad57feba77d2e Matt Fleming 2008-11-12 49 {
9e28c46b7dd116 Matt Fleming 2009-06-10 @50 __raw_writel(ip + MCOUNT_INSN_SIZE, ftrace_nop);
fad57feba77d2e Matt Fleming 2008-11-12 51 return ftrace_nop;
fad57feba77d2e Matt Fleming 2008-11-12 52 }
fad57feba77d2e Matt Fleming 2008-11-12 53
:::::: The code at line 50 was first introduced by commit
:::::: 9e28c46b7dd116a607ffb054c5545c468c77d779 sh: Fix dynamic ftrace's NOP action.
:::::: TO: Matt Fleming <matt(a)console-pimps.org>
:::::: CC: Matt Fleming <matt(a)console-pimps.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[usb:usb-testing 64/146] drivers/usb/chipidea/../host/ehci.h:767:17: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
head: 29b01295a829fba7399ee84afff4e64660e49f04
commit: fc53d5279094e38e6363506339772a7021da2df8 [64/146] usb: chipidea: tegra: Support host mode
config: arm-randconfig-s031-20210201 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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.3-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id...
git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
git fetch --no-tags usb usb-testing
git checkout fc53d5279094e38e6363506339772a7021da2df8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm
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/usb/chipidea/ci_hdrc_tegra.c: note: in included file:
>> drivers/usb/chipidea/../host/ehci.h:767:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: got unsigned int *
>> drivers/usb/chipidea/../host/ehci.h:743:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:743:17: sparse: expected void const volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:743:17: sparse: got unsigned int *
>> drivers/usb/chipidea/../host/ehci.h:767:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: got unsigned int *
>> drivers/usb/chipidea/../host/ehci.h:743:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:743:17: sparse: expected void const volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:743:17: sparse: got unsigned int *
>> drivers/usb/chipidea/../host/ehci.h:767:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: got unsigned int *
>> drivers/usb/chipidea/../host/ehci.h:767:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: got unsigned int *
>> drivers/usb/chipidea/../host/ehci.h:743:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:743:17: sparse: expected void const volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:743:17: sparse: got unsigned int *
>> drivers/usb/chipidea/../host/ehci.h:767:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: got unsigned int *
>> drivers/usb/chipidea/../host/ehci.h:743:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:743:17: sparse: expected void const volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:743:17: sparse: got unsigned int *
>> drivers/usb/chipidea/../host/ehci.h:767:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: got unsigned int *
>> drivers/usb/chipidea/../host/ehci.h:767:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/usb/chipidea/../host/ehci.h:767:17: sparse: got unsigned int *
drivers/usb/chipidea/../host/ehci.h:766:36: sparse: sparse: context imbalance in 'tegra_usb_internal_port_reset' - unexpected unlock
vim +767 drivers/usb/chipidea/../host/ehci.h
91bc4d31e81b15 Vladimir Barinov 2007-12-30 737
083522d76662cd Benjamin Herrenschmidt 2006-12-15 738 static inline unsigned int ehci_readl(const struct ehci_hcd *ehci,
083522d76662cd Benjamin Herrenschmidt 2006-12-15 739 __u32 __iomem *regs)
083522d76662cd Benjamin Herrenschmidt 2006-12-15 740 {
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 741 #ifdef CONFIG_USB_EHCI_BIG_ENDIAN_MMIO
083522d76662cd Benjamin Herrenschmidt 2006-12-15 742 return ehci_big_endian_mmio(ehci) ?
68f50e52554a0a Al Viro 2007-02-09 @743 readl_be(regs) :
68f50e52554a0a Al Viro 2007-02-09 744 readl(regs);
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 745 #else
68f50e52554a0a Al Viro 2007-02-09 746 return readl(regs);
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 747 #endif
083522d76662cd Benjamin Herrenschmidt 2006-12-15 748 }
083522d76662cd Benjamin Herrenschmidt 2006-12-15 749
feffe09f510c47 Peter Chen 2014-01-10 750 #ifdef CONFIG_SOC_IMX28
feffe09f510c47 Peter Chen 2014-01-10 751 static inline void imx28_ehci_writel(const unsigned int val,
feffe09f510c47 Peter Chen 2014-01-10 752 volatile __u32 __iomem *addr)
feffe09f510c47 Peter Chen 2014-01-10 753 {
feffe09f510c47 Peter Chen 2014-01-10 754 __asm__ ("swp %0, %0, [%1]" : : "r"(val), "r"(addr));
feffe09f510c47 Peter Chen 2014-01-10 755 }
feffe09f510c47 Peter Chen 2014-01-10 756 #else
feffe09f510c47 Peter Chen 2014-01-10 757 static inline void imx28_ehci_writel(const unsigned int val,
feffe09f510c47 Peter Chen 2014-01-10 758 volatile __u32 __iomem *addr)
feffe09f510c47 Peter Chen 2014-01-10 759 {
feffe09f510c47 Peter Chen 2014-01-10 760 }
feffe09f510c47 Peter Chen 2014-01-10 761 #endif
083522d76662cd Benjamin Herrenschmidt 2006-12-15 762 static inline void ehci_writel(const struct ehci_hcd *ehci,
083522d76662cd Benjamin Herrenschmidt 2006-12-15 763 const unsigned int val, __u32 __iomem *regs)
083522d76662cd Benjamin Herrenschmidt 2006-12-15 764 {
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 765 #ifdef CONFIG_USB_EHCI_BIG_ENDIAN_MMIO
083522d76662cd Benjamin Herrenschmidt 2006-12-15 766 ehci_big_endian_mmio(ehci) ?
68f50e52554a0a Al Viro 2007-02-09 @767 writel_be(val, regs) :
68f50e52554a0a Al Viro 2007-02-09 768 writel(val, regs);
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 769 #else
feffe09f510c47 Peter Chen 2014-01-10 770 if (ehci->imx28_write_fix)
feffe09f510c47 Peter Chen 2014-01-10 771 imx28_ehci_writel(val, regs);
feffe09f510c47 Peter Chen 2014-01-10 772 else
68f50e52554a0a Al Viro 2007-02-09 773 writel(val, regs);
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 774 #endif
083522d76662cd Benjamin Herrenschmidt 2006-12-15 775 }
8cd42e97bf451b Kumar Gala 2006-01-20 776
:::::: The code at line 767 was first introduced by commit
:::::: 68f50e52554a0a55dfe2e3fdf659ee0569d73c3f [PATCH] hci_{read,write}l() does force casts to wrong type for no reason
:::::: TO: Al Viro <viro(a)ftp.linux.org.uk>
:::::: CC: Linus Torvalds <torvalds(a)woody.linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH] cfg80211: fix netdev registration deadlock
by kernel test robot
Hi Johannes,
I love your patch! Yet something to improve:
[auto build test ERROR on mac80211-next/master]
[also build test ERROR on linux-review/chaitanya-mgit-gmail-com/cfg80211-Skip-key-deletion-for-open-associations/20210128-170146 next-20210125]
[cannot apply to mac80211/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Johannes-Berg/cfg80211-fix-netde...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master
config: x86_64-randconfig-a016-20210201 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/20b73d4cb250fb38ad81967abcb0776fc...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Johannes-Berg/cfg80211-fix-netdev-registration-deadlock/20210201-220922
git checkout 20b73d4cb250fb38ad81967abcb0776fc3103dc3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> net/wireless/core.c:1349:8: error: no member named 'registering' in 'struct wireless_dev'; did you mean 'registered'?
wdev->registering = true;
^~~~~~~~~~~
registered
include/net/cfg80211.h:5388:30: note: 'registered' declared here
bool use_4addr, is_running, registered;
^
net/wireless/core.c:1365:8: error: no member named 'registering' in 'struct wireless_dev'; did you mean 'registered'?
wdev->registering = false;
^~~~~~~~~~~
registered
include/net/cfg80211.h:5388:30: note: 'registered' declared here
bool use_4addr, is_running, registered;
^
net/wireless/core.c:1408:34: error: no member named 'registering' in 'struct wireless_dev'; did you mean 'registered'?
if (wdev->registered && !wdev->registering) {
^~~~~~~~~~~
registered
include/net/cfg80211.h:5388:30: note: 'registered' declared here
bool use_4addr, is_running, registered;
^
3 errors generated.
vim +1349 net/wireless/core.c
1331
1332 int cfg80211_register_netdevice(struct net_device *dev)
1333 {
1334 struct wireless_dev *wdev = dev->ieee80211_ptr;
1335 struct cfg80211_registered_device *rdev;
1336 int ret;
1337
1338 ASSERT_RTNL();
1339
1340 if (WARN_ON(!wdev))
1341 return -EINVAL;
1342
1343 rdev = wiphy_to_rdev(wdev->wiphy);
1344
1345 lockdep_assert_held(&rdev->wiphy.mtx);
1346
1347 /* we'll take care of this */
1348 wdev->registered = true;
> 1349 wdev->registering = true;
1350 ret = register_netdevice(dev);
1351 if (ret)
1352 goto out;
1353
1354 if (sysfs_create_link(&dev->dev.kobj, &rdev->wiphy.dev.kobj,
1355 "phy80211")) {
1356 pr_err("failed to add phy80211 symlink to netdev!\n");
1357 unregister_netdevice(dev);
1358 ret = -EINVAL;
1359 goto out;
1360 }
1361
1362 cfg80211_register_wdev(rdev, wdev);
1363 ret = 0;
1364 out:
1365 wdev->registering = false;
1366 if (ret)
1367 wdev->registered = false;
1368 return ret;
1369 }
1370 EXPORT_SYMBOL(cfg80211_register_netdevice);
1371
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH v2 2/3] soc: mediatek: pm-domains: Add domain_supply cap for mfg_async PD
by kernel test robot
Hi Bilal,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on keystone/next soc/for-next rockchip/for-next arm64/for-next/core shawnguo/for-next clk/clk-next kvmarm/next next-20210125]
[cannot apply to xlnx/master arm/for-next]
[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/Bilal-Wasim/Misc-bug-fixes-in-mt...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: powerpc64-randconfig-r023-20210201 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/0day-ci/linux/commit/6ec2b10aece5d26e1ad75ef4b9bbe1260...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bilal-Wasim/Misc-bug-fixes-in-mtk-power-domain-driver/20210201-201713
git checkout 6ec2b10aece5d26e1ad75ef4b9bbe1260f6c68de
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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 drivers/soc/mediatek/mtk-pm-domains.c:18:
>> drivers/soc/mediatek/mt8173-pm-domains.h:66:11: error: use of undeclared identifier 'MTK_SCPD_DOMAIN_SUPPLY'
.caps = MTK_SCPD_DOMAIN_SUPPLY,
^
>> drivers/soc/mediatek/mt8173-pm-domains.h:90:17: error: invalid application of 'sizeof' to an incomplete type 'const struct scpsys_domain_data []'
.num_domains = ARRAY_SIZE(scpsys_domain_data_mt8173),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:49:32: note: expanded from macro 'ARRAY_SIZE'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~
2 errors generated.
vim +/MTK_SCPD_DOMAIN_SUPPLY +66 drivers/soc/mediatek/mt8173-pm-domains.h
8
9 /*
10 * MT8173 power domain support
11 */
12
13 static const struct scpsys_domain_data scpsys_domain_data_mt8173[] = {
14 [MT8173_POWER_DOMAIN_VDEC] = {
15 .sta_mask = PWR_STATUS_VDEC,
16 .ctl_offs = SPM_VDE_PWR_CON,
17 .sram_pdn_bits = GENMASK(11, 8),
18 .sram_pdn_ack_bits = GENMASK(12, 12),
19 },
20 [MT8173_POWER_DOMAIN_VENC] = {
21 .sta_mask = PWR_STATUS_VENC,
22 .ctl_offs = SPM_VEN_PWR_CON,
23 .sram_pdn_bits = GENMASK(11, 8),
24 .sram_pdn_ack_bits = GENMASK(15, 12),
25 },
26 [MT8173_POWER_DOMAIN_ISP] = {
27 .sta_mask = PWR_STATUS_ISP,
28 .ctl_offs = SPM_ISP_PWR_CON,
29 .sram_pdn_bits = GENMASK(11, 8),
30 .sram_pdn_ack_bits = GENMASK(13, 12),
31 },
32 [MT8173_POWER_DOMAIN_MM] = {
33 .sta_mask = PWR_STATUS_DISP,
34 .ctl_offs = SPM_DIS_PWR_CON,
35 .sram_pdn_bits = GENMASK(11, 8),
36 .sram_pdn_ack_bits = GENMASK(12, 12),
37 .bp_infracfg = {
38 BUS_PROT_UPDATE_TOPAXI(MT8173_TOP_AXI_PROT_EN_MM_M0 |
39 MT8173_TOP_AXI_PROT_EN_MM_M1),
40 },
41 },
42 [MT8173_POWER_DOMAIN_VENC_LT] = {
43 .sta_mask = PWR_STATUS_VENC_LT,
44 .ctl_offs = SPM_VEN2_PWR_CON,
45 .sram_pdn_bits = GENMASK(11, 8),
46 .sram_pdn_ack_bits = GENMASK(15, 12),
47 },
48 [MT8173_POWER_DOMAIN_AUDIO] = {
49 .sta_mask = PWR_STATUS_AUDIO,
50 .ctl_offs = SPM_AUDIO_PWR_CON,
51 .sram_pdn_bits = GENMASK(11, 8),
52 .sram_pdn_ack_bits = GENMASK(15, 12),
53 },
54 [MT8173_POWER_DOMAIN_USB] = {
55 .sta_mask = PWR_STATUS_USB,
56 .ctl_offs = SPM_USB_PWR_CON,
57 .sram_pdn_bits = GENMASK(11, 8),
58 .sram_pdn_ack_bits = GENMASK(15, 12),
59 .caps = MTK_SCPD_ACTIVE_WAKEUP,
60 },
61 [MT8173_POWER_DOMAIN_MFG_ASYNC] = {
62 .sta_mask = PWR_STATUS_MFG_ASYNC,
63 .ctl_offs = SPM_MFG_ASYNC_PWR_CON,
64 .sram_pdn_bits = GENMASK(11, 8),
65 .sram_pdn_ack_bits = 0,
> 66 .caps = MTK_SCPD_DOMAIN_SUPPLY,
67 },
68 [MT8173_POWER_DOMAIN_MFG_2D] = {
69 .sta_mask = PWR_STATUS_MFG_2D,
70 .ctl_offs = SPM_MFG_2D_PWR_CON,
71 .sram_pdn_bits = GENMASK(11, 8),
72 .sram_pdn_ack_bits = GENMASK(13, 12),
73 },
74 [MT8173_POWER_DOMAIN_MFG] = {
75 .sta_mask = PWR_STATUS_MFG,
76 .ctl_offs = SPM_MFG_PWR_CON,
77 .sram_pdn_bits = GENMASK(13, 8),
78 .sram_pdn_ack_bits = GENMASK(21, 16),
79 .bp_infracfg = {
80 BUS_PROT_UPDATE_TOPAXI(MT8173_TOP_AXI_PROT_EN_MFG_S |
81 MT8173_TOP_AXI_PROT_EN_MFG_M0 |
82 MT8173_TOP_AXI_PROT_EN_MFG_M1 |
83 MT8173_TOP_AXI_PROT_EN_MFG_SNOOP_OUT),
84 },
85 },
86 };
87
88 static const struct scpsys_soc_data mt8173_scpsys_data = {
89 .domains_data = scpsys_domain_data_mt8173,
> 90 .num_domains = ARRAY_SIZE(scpsys_domain_data_mt8173),
91 .pwr_sta_offs = SPM_PWR_STATUS,
92 .pwr_sta2nd_offs = SPM_PWR_STATUS_2ND,
93 };
94
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
drivers/net/wan/fsl_ucc_hdlc.c:458:33: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1048ba83fb1c00cd24172e23e8263972f6b5d9ac
commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() iomem argument (as in generic implementation)
date: 6 months ago
config: sh-randconfig-s031-20210201 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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.3-215-g0fb77bb6-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 8f28ca6bd8211214faf717677bbffe375c2a6072
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh
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/net/wan/fsl_ucc_hdlc.c:305:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/net/wan/fsl_ucc_hdlc.c:305:57: sparse: expected void [noderef] __iomem *
drivers/net/wan/fsl_ucc_hdlc.c:305:57: sparse: got restricted __be16 *
drivers/net/wan/fsl_ucc_hdlc.c:307:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be32 * @@
drivers/net/wan/fsl_ucc_hdlc.c:307:46: sparse: expected void [noderef] __iomem *
drivers/net/wan/fsl_ucc_hdlc.c:307:46: sparse: got restricted __be32 *
drivers/net/wan/fsl_ucc_hdlc.c:316:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/net/wan/fsl_ucc_hdlc.c:316:57: sparse: expected void [noderef] __iomem *
drivers/net/wan/fsl_ucc_hdlc.c:316:57: sparse: got restricted __be16 *
drivers/net/wan/fsl_ucc_hdlc.c:318:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be32 * @@
drivers/net/wan/fsl_ucc_hdlc.c:318:46: sparse: expected void [noderef] __iomem *
drivers/net/wan/fsl_ucc_hdlc.c:318:46: sparse: got restricted __be32 *
drivers/net/wan/fsl_ucc_hdlc.c:368:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] @@ got restricted __be16 [usertype] @@
drivers/net/wan/fsl_ucc_hdlc.c:368:29: sparse: expected unsigned short [usertype]
drivers/net/wan/fsl_ucc_hdlc.c:368:29: sparse: got restricted __be16 [usertype]
drivers/net/wan/fsl_ucc_hdlc.c:375:36: sparse: sparse: restricted __be16 degrades to integer
drivers/net/wan/fsl_ucc_hdlc.c:398:12: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct qe_bd [noderef] __iomem *bd @@ got struct qe_bd *curtx_bd @@
drivers/net/wan/fsl_ucc_hdlc.c:398:12: sparse: expected struct qe_bd [noderef] __iomem *bd
drivers/net/wan/fsl_ucc_hdlc.c:398:12: sparse: got struct qe_bd *curtx_bd
drivers/net/wan/fsl_ucc_hdlc.c:408:35: sparse: sparse: dereference of noderef expression
drivers/net/wan/fsl_ucc_hdlc.c:421:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct qe_bd [noderef] __iomem *[assigned] bd @@ got struct qe_bd *tx_bd_base @@
drivers/net/wan/fsl_ucc_hdlc.c:421:20: sparse: expected struct qe_bd [noderef] __iomem *[assigned] bd
drivers/net/wan/fsl_ucc_hdlc.c:421:20: sparse: got struct qe_bd *tx_bd_base
drivers/net/wan/fsl_ucc_hdlc.c:423:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/net/wan/fsl_ucc_hdlc.c:423:16: sparse: struct qe_bd [noderef] __iomem *
drivers/net/wan/fsl_ucc_hdlc.c:423:16: sparse: struct qe_bd *
>> drivers/net/wan/fsl_ucc_hdlc.c:458:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/net/wan/fsl_ucc_hdlc.c:502:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/net/wan/fsl_ucc_hdlc.c:524:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/net/wan/fsl_ucc_hdlc.c:548:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/net/wan/fsl_ucc_hdlc.c:592:67: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/net/wan/fsl_ucc_hdlc.c:607:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/net/wan/fsl_ucc_hdlc.c:408:35: sparse: sparse: dereference of noderef expression
drivers/net/wan/fsl_ucc_hdlc.c:408:35: sparse: sparse: dereference of noderef expression
drivers/net/wan/fsl_ucc_hdlc.c:723:29: sparse: sparse: dereference of noderef expression
drivers/net/wan/fsl_ucc_hdlc.c:814:21: sparse: sparse: dereference of noderef expression
vim +458 drivers/net/wan/fsl_ucc_hdlc.c
ba59d5705825fb Mathias Thore 2018-10-22 446
c19b6d246a3562 Zhao Qiang 2016-06-06 447 static int hdlc_tx_done(struct ucc_hdlc_private *priv)
c19b6d246a3562 Zhao Qiang 2016-06-06 448 {
c19b6d246a3562 Zhao Qiang 2016-06-06 449 /* Start from the next BD that should be filled */
c19b6d246a3562 Zhao Qiang 2016-06-06 450 struct net_device *dev = priv->ndev;
2e7ad56aa54778 Mathias Thore 2018-11-07 451 unsigned int bytes_sent = 0;
2e7ad56aa54778 Mathias Thore 2018-11-07 452 int howmany = 0;
c19b6d246a3562 Zhao Qiang 2016-06-06 453 struct qe_bd *bd; /* BD pointer */
c19b6d246a3562 Zhao Qiang 2016-06-06 454 u16 bd_status;
ba59d5705825fb Mathias Thore 2018-10-22 455 int tx_restart = 0;
c19b6d246a3562 Zhao Qiang 2016-06-06 456
c19b6d246a3562 Zhao Qiang 2016-06-06 457 bd = priv->dirty_tx;
c19b6d246a3562 Zhao Qiang 2016-06-06 @458 bd_status = ioread16be(&bd->status);
c19b6d246a3562 Zhao Qiang 2016-06-06 459
c19b6d246a3562 Zhao Qiang 2016-06-06 460 /* Normal processing. */
c19b6d246a3562 Zhao Qiang 2016-06-06 461 while ((bd_status & T_R_S) == 0) {
c19b6d246a3562 Zhao Qiang 2016-06-06 462 struct sk_buff *skb;
c19b6d246a3562 Zhao Qiang 2016-06-06 463
ba59d5705825fb Mathias Thore 2018-10-22 464 if (bd_status & T_UN_S) { /* Underrun */
ba59d5705825fb Mathias Thore 2018-10-22 465 dev->stats.tx_fifo_errors++;
ba59d5705825fb Mathias Thore 2018-10-22 466 tx_restart = 1;
ba59d5705825fb Mathias Thore 2018-10-22 467 }
ba59d5705825fb Mathias Thore 2018-10-22 468 if (bd_status & T_CT_S) { /* Carrier lost */
ba59d5705825fb Mathias Thore 2018-10-22 469 dev->stats.tx_carrier_errors++;
ba59d5705825fb Mathias Thore 2018-10-22 470 tx_restart = 1;
ba59d5705825fb Mathias Thore 2018-10-22 471 }
ba59d5705825fb Mathias Thore 2018-10-22 472
c19b6d246a3562 Zhao Qiang 2016-06-06 473 /* BD contains already transmitted buffer. */
c19b6d246a3562 Zhao Qiang 2016-06-06 474 /* Handle the transmitted buffer and release */
c19b6d246a3562 Zhao Qiang 2016-06-06 475 /* the BD to be used with the current frame */
c19b6d246a3562 Zhao Qiang 2016-06-06 476
c19b6d246a3562 Zhao Qiang 2016-06-06 477 skb = priv->tx_skbuff[priv->skb_dirtytx];
c19b6d246a3562 Zhao Qiang 2016-06-06 478 if (!skb)
c19b6d246a3562 Zhao Qiang 2016-06-06 479 break;
2e7ad56aa54778 Mathias Thore 2018-11-07 480 howmany++;
2e7ad56aa54778 Mathias Thore 2018-11-07 481 bytes_sent += skb->len;
c19b6d246a3562 Zhao Qiang 2016-06-06 482 dev->stats.tx_packets++;
c19b6d246a3562 Zhao Qiang 2016-06-06 483 memset(priv->tx_buffer +
c19b6d246a3562 Zhao Qiang 2016-06-06 484 (be32_to_cpu(bd->buf) - priv->dma_tx_addr),
c19b6d246a3562 Zhao Qiang 2016-06-06 485 0, skb->len);
7c3850adbcccc2 Yang Wei 2019-02-06 486 dev_consume_skb_irq(skb);
c19b6d246a3562 Zhao Qiang 2016-06-06 487
c19b6d246a3562 Zhao Qiang 2016-06-06 488 priv->tx_skbuff[priv->skb_dirtytx] = NULL;
c19b6d246a3562 Zhao Qiang 2016-06-06 489 priv->skb_dirtytx =
c19b6d246a3562 Zhao Qiang 2016-06-06 490 (priv->skb_dirtytx +
c19b6d246a3562 Zhao Qiang 2016-06-06 491 1) & TX_RING_MOD_MASK(TX_BD_RING_LEN);
c19b6d246a3562 Zhao Qiang 2016-06-06 492
c19b6d246a3562 Zhao Qiang 2016-06-06 493 /* We freed a buffer, so now we can restart transmission */
c19b6d246a3562 Zhao Qiang 2016-06-06 494 if (netif_queue_stopped(dev))
c19b6d246a3562 Zhao Qiang 2016-06-06 495 netif_wake_queue(dev);
c19b6d246a3562 Zhao Qiang 2016-06-06 496
c19b6d246a3562 Zhao Qiang 2016-06-06 497 /* Advance the confirmation BD pointer */
c19b6d246a3562 Zhao Qiang 2016-06-06 498 if (!(bd_status & T_W_S))
c19b6d246a3562 Zhao Qiang 2016-06-06 499 bd += 1;
c19b6d246a3562 Zhao Qiang 2016-06-06 500 else
c19b6d246a3562 Zhao Qiang 2016-06-06 501 bd = priv->tx_bd_base;
c19b6d246a3562 Zhao Qiang 2016-06-06 502 bd_status = ioread16be(&bd->status);
c19b6d246a3562 Zhao Qiang 2016-06-06 503 }
c19b6d246a3562 Zhao Qiang 2016-06-06 504 priv->dirty_tx = bd;
c19b6d246a3562 Zhao Qiang 2016-06-06 505
ba59d5705825fb Mathias Thore 2018-10-22 506 if (tx_restart)
ba59d5705825fb Mathias Thore 2018-10-22 507 hdlc_tx_restart(priv);
ba59d5705825fb Mathias Thore 2018-10-22 508
2e7ad56aa54778 Mathias Thore 2018-11-07 509 netdev_completed_queue(dev, howmany, bytes_sent);
c19b6d246a3562 Zhao Qiang 2016-06-06 510 return 0;
c19b6d246a3562 Zhao Qiang 2016-06-06 511 }
c19b6d246a3562 Zhao Qiang 2016-06-06 512
:::::: The code at line 458 was first introduced by commit
:::::: c19b6d246a35627c3a69b2fa6bdece212b48214b drivers/net: support hdlc function for QE-UCC
:::::: TO: Zhao Qiang <qiang.zhao(a)nxp.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[chrome-os:chromeos-5.4 13/92] drivers/gpu/drm/i915/display/intel_dp_mst.c:108:8: error: unused variable 'port'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 986b386cc5a4100995a114d3de51d1222bdfba6a
commit: 719a4d7d28b1ff2da88d4f44828d7f1b740eb424 [13/92] UPSTREAM: drm/dp_mst: Remove drm_dp_mst_has_audio()
config: x86_64-randconfig-r015-20210201 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269)
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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 719a4d7d28b1ff2da88d4f44828d7f1b740eb424
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/i915/display/intel_dp_mst.c:26:
In file included from include/drm/drm_atomic_helper.h:31:
In file included from include/drm/drm_crtc.h:28:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:14:
In file included from include/linux/preempt.h:78:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:38:
arch/x86/include/asm/thread_info.h:223:13: error: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Werror,-Wframe-address]
oldframe = __builtin_frame_address(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/thread_info.h:225:11: error: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Werror,-Wframe-address]
frame = __builtin_frame_address(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/i915/display/intel_dp_mst.c:30:
In file included from drivers/gpu/drm/i915/i915_drv.h:46:
In file included from include/linux/perf_event.h:49:
include/linux/ftrace.h:692:9: error: calling '__builtin_return_address' with a nonzero argument is unsafe [-Werror,-Wframe-address]
addr = CALLER_ADDR1;
^~~~~~~~~~~~
include/linux/ftrace.h:679:38: note: expanded from macro 'CALLER_ADDR1'
#define CALLER_ADDR1 ((unsigned long)ftrace_return_address(1))
^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ftrace.h:672:36: note: expanded from macro 'ftrace_return_address'
# define ftrace_return_address(n) __builtin_return_address(n)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ftrace.h:695:9: error: calling '__builtin_return_address' with a nonzero argument is unsafe [-Werror,-Wframe-address]
return CALLER_ADDR2;
^~~~~~~~~~~~
include/linux/ftrace.h:680:38: note: expanded from macro 'CALLER_ADDR2'
#define CALLER_ADDR2 ((unsigned long)ftrace_return_address(2))
^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ftrace.h:672:36: note: expanded from macro 'ftrace_return_address'
# define ftrace_return_address(n) __builtin_return_address(n)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/display/intel_dp_mst.c:108:8: error: unused variable 'port' [-Werror,-Wunused-variable]
void *port = connector->port;
^
5 errors generated.
vim +/port +108 drivers/gpu/drm/i915/display/intel_dp_mst.c
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 94
96550555a78ca3 drivers/gpu/drm/i915/intel_dp_mst.c Lyude Paul 2019-01-15 95 static int intel_dp_mst_compute_config(struct intel_encoder *encoder,
0a478c27db43ad drivers/gpu/drm/i915/intel_dp_mst.c Maarten Lankhorst 2016-08-09 96 struct intel_crtc_state *pipe_config,
0a478c27db43ad drivers/gpu/drm/i915/intel_dp_mst.c Maarten Lankhorst 2016-08-09 97 struct drm_connector_state *conn_state)
0e32b39ceed665 drivers/gpu/drm/i915/intel_dp_mst.c Dave Airlie 2014-05-02 98 {
53e9bf5e815976 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2017-10-24 99 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
01c966175a09b0 drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2019-12-04 100 struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder);
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 101 struct intel_dp *intel_dp = &intel_mst->primary->dp;
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 102 struct intel_connector *connector =
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 103 to_intel_connector(conn_state->connector);
765bdb0b394874 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-27 104 struct intel_digital_connector_state *intel_conn_state =
765bdb0b394874 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-27 105 to_intel_digital_connector_state(conn_state);
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 106 const struct drm_display_mode *adjusted_mode =
df1577442f5ae0 drivers/gpu/drm/i915/display/intel_dp_mst.c Maarten Lankhorst 2019-10-31 107 &pipe_config->hw.adjusted_mode;
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 @108 void *port = connector->port;
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 109 struct link_config_limits limits;
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 110 int ret;
0e32b39ceed665 drivers/gpu/drm/i915/intel_dp_mst.c Dave Airlie 2014-05-02 111
e4dd27aadd2054 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2018-05-24 112 if (adjusted_mode->flags & DRM_MODE_FLAG_DBLSCAN)
96550555a78ca3 drivers/gpu/drm/i915/intel_dp_mst.c Lyude Paul 2019-01-15 113 return -EINVAL;
e4dd27aadd2054 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2018-05-24 114
d9facae6afe14f drivers/gpu/drm/i915/intel_dp_mst.c Shashank Sharma 2018-10-12 115 pipe_config->output_format = INTEL_OUTPUT_FORMAT_RGB;
0e32b39ceed665 drivers/gpu/drm/i915/intel_dp_mst.c Dave Airlie 2014-05-02 116 pipe_config->has_pch_encoder = false;
765bdb0b394874 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-27 117
765bdb0b394874 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-27 118 if (intel_conn_state->force_audio == HDMI_AUDIO_AUTO)
719a4d7d28b1ff drivers/gpu/drm/i915/display/intel_dp_mst.c Lyude Paul 2020-04-06 119 pipe_config->has_audio = connector->port->has_audio;
765bdb0b394874 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-27 120 else
765bdb0b394874 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-27 121 pipe_config->has_audio =
765bdb0b394874 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-27 122 intel_conn_state->force_audio == HDMI_AUDIO_ON;
765bdb0b394874 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-27 123
0e32b39ceed665 drivers/gpu/drm/i915/intel_dp_mst.c Dave Airlie 2014-05-02 124 /*
0e32b39ceed665 drivers/gpu/drm/i915/intel_dp_mst.c Dave Airlie 2014-05-02 125 * for MST we always configure max link bw - the spec doesn't
0e32b39ceed665 drivers/gpu/drm/i915/intel_dp_mst.c Dave Airlie 2014-05-02 126 * seem to suggest we should do otherwise.
0e32b39ceed665 drivers/gpu/drm/i915/intel_dp_mst.c Dave Airlie 2014-05-02 127 */
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 128 limits.min_clock =
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 129 limits.max_clock = intel_dp_max_link_rate(intel_dp);
ed4e9c1d46980e drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2015-03-12 130
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 131 limits.min_lane_count =
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 132 limits.max_lane_count = intel_dp_max_lane_count(intel_dp);
0e32b39ceed665 drivers/gpu/drm/i915/intel_dp_mst.c Dave Airlie 2014-05-02 133
4e2056e05e6eb6 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 134 limits.min_bpp = intel_dp_min_bpp(pipe_config);
bb1a71f9c4672f drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2019-08-28 135 /*
bb1a71f9c4672f drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2019-08-28 136 * FIXME: If all the streams can't fit into the link with
bb1a71f9c4672f drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2019-08-28 137 * their current pipe_bpp we should reduce pipe_bpp across
bb1a71f9c4672f drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2019-08-28 138 * the board until things start to fit. Until then we
bb1a71f9c4672f drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2019-08-28 139 * limit to <= 8bpc since that's what was hardcoded for all
bb1a71f9c4672f drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2019-08-28 140 * MST streams previously. This hack should be removed once
bb1a71f9c4672f drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2019-08-28 141 * we have the proper retry logic in place.
bb1a71f9c4672f drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2019-08-28 142 */
bb1a71f9c4672f drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2019-08-28 143 limits.max_bpp = min(pipe_config->pipe_bpp, 24);
0e32b39ceed665 drivers/gpu/drm/i915/intel_dp_mst.c Dave Airlie 2014-05-02 144
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 145 intel_dp_adjust_compliance_config(intel_dp, pipe_config, &limits);
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 146
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 147 ret = intel_dp_mst_compute_link_config(encoder, pipe_config,
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 148 conn_state, &limits);
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 149 if (ret)
f1477219869cc9 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 150 return ret;
e75f4771f81e96 drivers/gpu/drm/i915/intel_dp_mst.c Ander Conselvan de Oliveira 2015-03-20 151
37aa52bff2bcd4 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 152 pipe_config->limited_color_range =
37aa52bff2bcd4 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 153 intel_dp_limited_color_range(pipe_config, conn_state);
37aa52bff2bcd4 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2019-03-26 154
5161d058dff4d5 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2017-10-27 155 if (IS_GEN9_LP(dev_priv))
5161d058dff4d5 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2017-10-27 156 pipe_config->lane_lat_optim_mask =
5161d058dff4d5 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2017-10-27 157 bxt_ddi_phy_calc_lane_lat_optim_mask(pipe_config->lane_count);
5161d058dff4d5 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2017-10-27 158
53e9bf5e815976 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2017-10-24 159 intel_ddi_compute_min_voltage_level(dev_priv, pipe_config);
53e9bf5e815976 drivers/gpu/drm/i915/intel_dp_mst.c Ville Syrjälä 2017-10-24 160
0192440a15c9c6 drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2020-03-13 161 return 0;
0192440a15c9c6 drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2020-03-13 162 }
0192440a15c9c6 drivers/gpu/drm/i915/display/intel_dp_mst.c Ville Syrjälä 2020-03-13 163
:::::: The code at line 108 was first introduced by commit
:::::: f1477219869cc943ef9e0248b308da7b900c65ec drm/i915: Remove the 8bpc shackles from DP MST
:::::: TO: Ville Syrjälä <ville.syrjala(a)linux.intel.com>
:::::: CC: Ville Syrjälä <ville.syrjala(a)linux.intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months