[yhuang:random-r0.1i 24/42] node.c:undefined reference to `node_random_migrate_pages'
by kbuild test robot
tree: yhuang/random-r0.1i
head: d8a224e04a0b1632b045d1121c6e95f521ec3ca9
commit: 450f0596b411479636718fbeb5eb458d543daeba [24/42] mm: Support to promote pages to fast memory node randomly
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 450f0596b411479636718fbeb5eb458d543daeba
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/base/node.o: In function `random_promote_mb_store':
>> node.c:(.text+0x384): undefined reference to `node_random_migrate_pages'
node.c:(.text+0x384): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `node_random_migrate_pages'
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 4 months
[driver-core:debugfs_cleanup 3/13] drivers/gpu/drm/drm_mipi_dbi.c:1311:6: error: conflicting types for 'mipi_dbi_debugfs_init'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head: 2af10af50dae1d4154ed0053ac8bd15d773b86e4
commit: 2f52245a70e7911407dfbea078f1a012764f8a42 [3/13] drm: make .debugfs_init and drm_debugfs_create_files() return void
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 2f52245a70e7911407dfbea078f1a012764f8a42
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/gpu/drm/drm_mipi_dbi.c:1311:6: error: conflicting types for 'mipi_dbi_debugfs_init'
void mipi_dbi_debugfs_init(struct drm_minor *minor)
^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/drm_mipi_dbi.c:23:0:
include/drm/drm_mipi_dbi.h:183:5: note: previous declaration of 'mipi_dbi_debugfs_init' was here
int mipi_dbi_debugfs_init(struct drm_minor *minor);
^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7:0,
from include/linux/fs.h:5,
from include/linux/debugfs.h:15,
from drivers/gpu/drm/drm_mipi_dbi.c:8:
drivers/gpu/drm/drm_mipi_dbi.c:1321:15: error: conflicting types for 'mipi_dbi_debugfs_init'
EXPORT_SYMBOL(mipi_dbi_debugfs_init);
^
include/linux/export.h:106:21: note: in definition of macro '___export_symbol_common'
extern typeof(sym) sym; \
^~~
include/linux/export.h:173:34: note: in expansion of macro '___EXPORT_SYMBOL'
#define __EXPORT_SYMBOL(sym,sec) ___EXPORT_SYMBOL(sym,sec)
^~~~~~~~~~~~~~~~
include/linux/export.h:183:29: note: in expansion of macro '__EXPORT_SYMBOL'
#define EXPORT_SYMBOL(sym) __EXPORT_SYMBOL(sym, "")
^~~~~~~~~~~~~~~
>> drivers/gpu/drm/drm_mipi_dbi.c:1321:1: note: in expansion of macro 'EXPORT_SYMBOL'
EXPORT_SYMBOL(mipi_dbi_debugfs_init);
^~~~~~~~~~~~~
In file included from drivers/gpu/drm/drm_mipi_dbi.c:23:0:
include/drm/drm_mipi_dbi.h:183:5: note: previous declaration of 'mipi_dbi_debugfs_init' was here
int mipi_dbi_debugfs_init(struct drm_minor *minor);
^~~~~~~~~~~~~~~~~~~~~
--
>> drivers/gpu/drm/tiny/hx8357d.c:200:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.debugfs_init = mipi_dbi_debugfs_init,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tiny/hx8357d.c:200:19: note: (near initialization for 'hx8357d_driver.debugfs_init')
cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/tiny/ili9341.c:156:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.debugfs_init = mipi_dbi_debugfs_init,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tiny/ili9341.c:156:19: note: (near initialization for 'ili9341_driver.debugfs_init')
cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/tiny/mi0283qt.c:160:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.debugfs_init = mipi_dbi_debugfs_init,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tiny/mi0283qt.c:160:19: note: (near initialization for 'mi0283qt_driver.debugfs_init')
cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/tiny/st7586.c:298:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.debugfs_init = mipi_dbi_debugfs_init,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tiny/st7586.c:298:19: note: (near initialization for 'st7586_driver.debugfs_init')
cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/tiny/st7735r.c:130:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.debugfs_init = mipi_dbi_debugfs_init,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tiny/st7735r.c:130:19: note: (near initialization for 'st7735r_driver.debugfs_init')
cc1: some warnings being treated as errors
vim +/mipi_dbi_debugfs_init +1311 drivers/gpu/drm/drm_mipi_dbi.c
1302
1303 /**
1304 * mipi_dbi_debugfs_init - Create debugfs entries
1305 * @minor: DRM minor
1306 *
1307 * This function creates a 'command' debugfs file for sending commands to the
1308 * controller or getting the read command values.
1309 * Drivers can use this as their &drm_driver->debugfs_init callback.
1310 */
> 1311 void mipi_dbi_debugfs_init(struct drm_minor *minor)
1312 {
1313 struct mipi_dbi_dev *dbidev = drm_to_mipi_dbi_dev(minor->dev);
1314 umode_t mode = S_IFREG | S_IWUSR;
1315
1316 if (dbidev->dbi.read_commands)
1317 mode |= S_IRUGO;
1318 debugfs_create_file("command", mode, minor->debugfs_root, dbidev,
1319 &mipi_dbi_debugfs_command_fops);
1320 }
> 1321 EXPORT_SYMBOL(mipi_dbi_debugfs_init);
1322
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 4 months
[driver-core:debugfs_cleanup 3/13] drivers/gpu/drm/tiny/hx8357d.c:200:19: error: initialization of 'void (*)(struct drm_minor *)' from incompatible pointer type 'int (*)(struct drm_minor *)'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head: 2af10af50dae1d4154ed0053ac8bd15d773b86e4
commit: 2f52245a70e7911407dfbea078f1a012764f8a42 [3/13] drm: make .debugfs_init and drm_debugfs_create_files() return void
config: nds32-allmodconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 8.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 2f52245a70e7911407dfbea078f1a012764f8a42
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/tiny/hx8357d.c:200:19: error: initialization of 'void (*)(struct drm_minor *)' from incompatible pointer type 'int (*)(struct drm_minor *)' [-Werror=incompatible-pointer-types]
.debugfs_init = mipi_dbi_debugfs_init,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tiny/hx8357d.c:200:19: note: (near initialization for 'hx8357d_driver.debugfs_init')
cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/tiny/ili9341.c:156:19: error: initialization of 'void (*)(struct drm_minor *)' from incompatible pointer type 'int (*)(struct drm_minor *)' [-Werror=incompatible-pointer-types]
.debugfs_init = mipi_dbi_debugfs_init,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tiny/ili9341.c:156:19: note: (near initialization for 'ili9341_driver.debugfs_init')
cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/tiny/mi0283qt.c:160:19: error: initialization of 'void (*)(struct drm_minor *)' from incompatible pointer type 'int (*)(struct drm_minor *)' [-Werror=incompatible-pointer-types]
.debugfs_init = mipi_dbi_debugfs_init,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tiny/mi0283qt.c:160:19: note: (near initialization for 'mi0283qt_driver.debugfs_init')
cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/tiny/st7586.c:298:19: error: initialization of 'void (*)(struct drm_minor *)' from incompatible pointer type 'int (*)(struct drm_minor *)' [-Werror=incompatible-pointer-types]
.debugfs_init = mipi_dbi_debugfs_init,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tiny/st7586.c:298:19: note: (near initialization for 'st7586_driver.debugfs_init')
cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/tiny/st7735r.c:130:19: error: initialization of 'void (*)(struct drm_minor *)' from incompatible pointer type 'int (*)(struct drm_minor *)' [-Werror=incompatible-pointer-types]
.debugfs_init = mipi_dbi_debugfs_init,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tiny/st7735r.c:130:19: note: (near initialization for 'st7735r_driver.debugfs_init')
cc1: some warnings being treated as errors
vim +200 drivers/gpu/drm/tiny/hx8357d.c
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 194
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 195 static struct drm_driver hx8357d_driver = {
0424fdaf883a68 drivers/gpu/drm/tinydrm/hx8357d.c Daniel Vetter 2019-06-17 196 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 197 .fops = &hx8357d_fops,
3eba3922819fe2 drivers/gpu/drm/tinydrm/hx8357d.c Noralf Trønnes 2019-02-25 198 .release = mipi_dbi_release,
3db8d37dd84e93 drivers/gpu/drm/tinydrm/hx8357d.c Noralf Trønnes 2018-11-10 199 DRM_GEM_CMA_VMAP_DRIVER_OPS,
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 @200 .debugfs_init = mipi_dbi_debugfs_init,
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 201 .name = "hx8357d",
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 202 .desc = "HX8357D",
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 203 .date = "20181023",
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 204 .major = 1,
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 205 .minor = 0,
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 206 };
f300c86e33a686 drivers/gpu/drm/tinydrm/hx8357d.c Eric Anholt 2018-10-24 207
:::::: The code at line 200 was first introduced by commit
:::::: f300c86e33a686c7abcf0c37deee04ef666ed78b drm: Add an hx8367d tinydrm driver.
:::::: TO: Eric Anholt <eric(a)anholt.net>
:::::: CC: Eric Anholt <eric(a)anholt.net>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 4 months
[linux-sof-driver:pr/1267 1/2] sound/soc/intel/atom/sst/sst_acpi.c:260:7: error: 'struct snd_soc_acpi_mach' has no member named 'pdata'
by kbuild test robot
tree: https://github.com/thesofproject/linux pr/1267
head: 00ba06832bc95fd49e780e022e1e8743cd2a3367
commit: a1aa3f714a4ae279a342696b309f1ad301b0e04f [1/2] ASoC: SOF: Introduce common machine descriptor
config: x86_64-sof-customedconfig-on-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
git checkout a1aa3f714a4ae279a342696b309f1ad301b0e04f
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
sound/soc/intel/atom/sst/sst_acpi.c: In function 'sst_acpi_probe':
>> sound/soc/intel/atom/sst/sst_acpi.c:260:7: error: 'struct snd_soc_acpi_mach' has no member named 'pdata'
mach->pdata = (snd_soc_acpi_mach *)&byt_rvp_platform_data;
^~
>> sound/soc/intel/atom/sst/sst_acpi.c:260:18: error: 'snd_soc_acpi_mach' undeclared (first use in this function)
mach->pdata = (snd_soc_acpi_mach *)&byt_rvp_platform_data;
^~~~~~~~~~~~~~~~~
sound/soc/intel/atom/sst/sst_acpi.c:260:18: note: each undeclared identifier is reported only once for each function it appears in
>> sound/soc/intel/atom/sst/sst_acpi.c:260:37: error: expected expression before ')' token
mach->pdata = (snd_soc_acpi_mach *)&byt_rvp_platform_data;
^
sound/soc/intel/atom/sst/sst_acpi.c:262:7: error: 'struct snd_soc_acpi_mach' has no member named 'pdata'
mach->pdata = (snd_soc_acpi_mach *)&chv_platform_data;
^~
sound/soc/intel/atom/sst/sst_acpi.c:262:37: error: expected expression before ')' token
mach->pdata = (snd_soc_acpi_mach *)&chv_platform_data;
^
sound/soc/intel/atom/sst/sst_acpi.c:263:14: error: 'struct snd_soc_acpi_mach' has no member named 'pdata'
pdata = mach->pdata;
^~
>> sound/soc/intel/atom/sst/sst_acpi.c:298:48: error: 'struct snd_soc_acpi_mach' has no member named 'drv_name'
mdev = platform_device_register_data(dev, mach->drv_name, -1,
^~
In file included from include/linux/platform_device.h:13:0,
from sound/soc/intel/atom/sst/sst_acpi.c:16:
sound/soc/intel/atom/sst/sst_acpi.c:302:8: error: 'struct snd_soc_acpi_mach' has no member named 'drv_name'
mach->drv_name);
^
include/linux/device.h:1499:32: note: in definition of macro 'dev_err'
_dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
At top level:
sound/soc/intel/atom/sst/sst_acpi.c:141:33: warning: 'chv_platform_data' defined but not used [-Wunused-variable]
static struct sst_platform_info chv_platform_data = {
^~~~~~~~~~~~~~~~~
vim +260 sound/soc/intel/atom/sst/sst_acpi.c
234
235 static int sst_acpi_probe(struct platform_device *pdev)
236 {
237 struct device *dev = &pdev->dev;
238 int ret = 0;
239 struct intel_sst_drv *ctx;
240 const struct acpi_device_id *id;
241 struct snd_soc_acpi_mach *mach;
242 struct platform_device *mdev;
243 struct platform_device *plat_dev;
244 struct sst_platform_info *pdata;
245 unsigned int dev_id;
246
247 id = acpi_match_device(dev->driver->acpi_match_table, dev);
248 if (!id)
249 return -ENODEV;
250 dev_dbg(dev, "for %s\n", id->id);
251
252 mach = (struct snd_soc_acpi_mach *)id->driver_data;
253 mach = snd_soc_acpi_find_machine(mach);
254 if (mach == NULL) {
255 dev_err(dev, "No matching machine driver found\n");
256 return -ENODEV;
257 }
258
259 if (soc_intel_is_byt())
> 260 mach->pdata = (snd_soc_acpi_mach *)&byt_rvp_platform_data;
261 else
> 262 mach->pdata = (snd_soc_acpi_mach *)&chv_platform_data;
263 pdata = mach->pdata;
264
265 ret = kstrtouint(id->id, 16, &dev_id);
266 if (ret < 0) {
267 dev_err(dev, "Unique device id conversion error: %d\n", ret);
268 return ret;
269 }
270
271 dev_dbg(dev, "ACPI device id: %x\n", dev_id);
272
273 ret = sst_alloc_drv_context(&ctx, dev, dev_id);
274 if (ret < 0)
275 return ret;
276
277 if (soc_intel_is_byt_cr(pdev)) {
278 /* override resource info */
279 byt_rvp_platform_data.res_info = &bytcr_res_info;
280 }
281
282 /* update machine parameters */
283 mach->mach_params.acpi_ipc_irq_index =
284 pdata->res_info->acpi_ipc_irq_index;
285
286 plat_dev = platform_device_register_data(dev, pdata->platform, -1,
287 NULL, 0);
288 if (IS_ERR(plat_dev)) {
289 dev_err(dev, "Failed to create machine device: %s\n",
290 pdata->platform);
291 return PTR_ERR(plat_dev);
292 }
293
294 /*
295 * Create platform device for sst machine driver,
296 * pass machine info as pdata
297 */
> 298 mdev = platform_device_register_data(dev, mach->drv_name, -1,
299 (const void *)mach, sizeof(*mach));
300 if (IS_ERR(mdev)) {
301 dev_err(dev, "Failed to create machine device: %s\n",
302 mach->drv_name);
303 return PTR_ERR(mdev);
304 }
305
306 /* Fill sst platform data */
307 ctx->pdata = pdata;
308 strcpy(ctx->firmware_name, mach->common.fw_filename);
309
310 ret = sst_platform_get_resources(ctx);
311 if (ret)
312 return ret;
313
314 ret = sst_context_init(ctx);
315 if (ret < 0)
316 return ret;
317
318 sst_configure_runtime_pm(ctx);
319 platform_set_drvdata(pdev, ctx);
320 return ret;
321 }
322
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 4 months
Re: [linux-next:pending-fixes 12639/12689] drivers/spi/spidev.c:631:17-23: ERROR: reference preceded by free on line 628 (fwd)
by Lukasz Majewski
Hi Julia,
> There seems to be a potential use after free on line 631.
>
Yes. This problem has been already recognized and is now under
discussion.
Big thanks for "catching" it :-)
Best regards,
Łukasz Majewski
> julia
>
> ---------- Forwarded message ----------
> Date: Sat, 28 Sep 2019 01:40:25 +0800
> From: kbuild test robot <lkp(a)intel.com>
> To: kbuild(a)01.org
> Cc: Julia Lawall <julia.lawall(a)lip6.fr>
> Subject: [linux-next:pending-fixes 12639/12689]
> drivers/spi/spidev.c:631:17-23: ERROR: reference preceded by free on
> line 628
>
> CC: kbuild-all(a)01.org
> TO: Lukasz Majewski <lukma(a)denx.de>
> CC: Mark Brown <broonie(a)kernel.org>
>
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> pending-fixes head: d20eeb14322b02c728ce7fe77d41be77a3a37494
> commit: 9f918a728cf86b2757b6a7025e1f46824bfe3155 [12639/12689] spi:
> Add call to spi_slave_abort() function when spidev driver is released
> :::::: branch date: 26 hours ago :::::: commit date: 2 days ago
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp(a)intel.com>
> Reported-by: Julia Lawall <julia.lawall(a)lip6.fr>
>
> >> drivers/spi/spidev.c:631:17-23: ERROR: reference preceded by free
> >> on line 628
>
> #
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
> git remote add linux-next
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> git remote update linux-next git checkout
> 9f918a728cf86b2757b6a7025e1f46824bfe3155 vim +631 drivers/spi/spidev.c
>
> 814a8d50eb1d88 Andrea Paterniani 2007-05-08 599
> 814a8d50eb1d88 Andrea Paterniani 2007-05-08 600 static int
> spidev_release(struct inode *inode, struct file *filp) 814a8d50eb1d88
> Andrea Paterniani 2007-05-08 601 { 814a8d50eb1d88 Andrea Paterniani
> 2007-05-08 602 struct spidev_data *spidev;
> 814a8d50eb1d88 Andrea Paterniani 2007-05-08 603 814a8d50eb1d88
> Andrea Paterniani 2007-05-08 604
> mutex_lock(&device_list_lock); 814a8d50eb1d88 Andrea Paterniani
> 2007-05-08 605 spidev = filp->private_data; 814a8d50eb1d88
> Andrea Paterniani 2007-05-08 606 filp->private_data = NULL;
> b2c8daddcbe03a David Brownell 2008-06-05 607 b2c8daddcbe03a David
> Brownell 2008-06-05 608 /* last close? */ 814a8d50eb1d88
> Andrea Paterniani 2007-05-08 609 spidev->users--;
> 814a8d50eb1d88 Andrea Paterniani 2007-05-08 610 if
> (!spidev->users) { b2c8daddcbe03a David Brownell 2008-06-05 611
> int dofree; b2c8daddcbe03a David
> Brownell 2008-06-05 612 865f6d1974ddd9 Ray Jui
> 2014-10-09 613 kfree(spidev->tx_buffer);
> 865f6d1974ddd9 Ray Jui 2014-10-09 614
> spidev->tx_buffer = NULL; 865f6d1974ddd9 Ray Jui 2014-10-09
> 615 865f6d1974ddd9 Ray Jui 2014-10-09 616
> kfree(spidev->rx_buffer); 865f6d1974ddd9 Ray Jui
> 2014-10-09 617 spidev->rx_buffer = NULL;
> b2c8daddcbe03a David Brownell 2008-06-05 618 56ea1075e7f077 Mark
> Brown 2015-11-16 619
> spin_lock_irq(&spidev->spi_lock); dd85ebf681ef0e Sudip Mukherjee
> 2015-09-10 620 if (spidev->spi) 9169051617df7f Mark
> Brown 2014-11-08 621
> spidev->speed_hz = spidev->spi->max_speed_hz; 9169051617df7f Mark
> Brown 2014-11-08 622 b2c8daddcbe03a David Brownell
> 2008-06-05 623 /* ... after we unbound from the
> underlying device? */ b2c8daddcbe03a David Brownell 2008-06-05
> 624 dofree = (spidev->spi == NULL); b2c8daddcbe03a
> David Brownell 2008-06-05 625
> spin_unlock_irq(&spidev->spi_lock); b2c8daddcbe03a David Brownell
> 2008-06-05 626 b2c8daddcbe03a David Brownell 2008-06-05 627
> if (dofree) b2c8daddcbe03a David Brownell
> 2008-06-05 @628 kfree(spidev);
> 814a8d50eb1d88 Andrea Paterniani 2007-05-08 629 }
> 9f918a728cf86b Lukasz Majewski 2019-09-25 630 #ifdef
> CONFIG_SPI_SLAVE 9f918a728cf86b Lukasz Majewski 2019-09-25 @631
> spi_slave_abort(spidev->spi); 9f918a728cf86b Lukasz Majewski
> 2019-09-25 632 #endif 814a8d50eb1d88 Andrea Paterniani 2007-05-08
> 633 mutex_unlock(&device_list_lock); 814a8d50eb1d88 Andrea
> Paterniani 2007-05-08 634 99472cc08a8bda Fabio Estevam
> 2015-05-09 635 return 0; 814a8d50eb1d88 Andrea Paterniani
> 2007-05-08 636 } 814a8d50eb1d88 Andrea Paterniani 2007-05-08 637
>
> ---
> 0-DAY kernel test infrastructure Open Source
> Technology Center https://lists.01.org/pipermail/kbuild-all
> Intel Corporation
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma(a)denx.de
1 year, 5 months
[oracle-dtrace-linux-kernel:5.3.1 4/20] scripts/dwarf2ctf/../eu_simple.c:18:10: fatal error: elfutils/libdwfl.h: No such file or directory
by kbuild test robot
tree: https://github.com/oracle/dtrace-linux-kernel 5.3.1
head: cd952b58391c2bda271223315e0c5dce7fd59617
commit: 05d8755cd243ead451147400c32ef6e716c69755 [4/20] dtrace: core and x86
config: x86_64-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
git checkout 05d8755cd243ead451147400c32ef6e716c69755
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
WARNING: unmet direct dependencies detected for CTF
Depends on DEBUG_INFO && !DEBUG_INFO_REDUCED && !DEBUG_INFO_SPLIT && !DEBUG_INFO_DWARF4 && DTRACE
Selected by
- DTRACE && ARCH_SUPPORTS_DTRACE
pkg-config: Command not found
pkg-config: Command not found
pkg-config: Command not found
pkg-config: Command not found
scripts/eu_simple.c:18:10: fatal error: elfutils/libdwfl.h: No such file or directory
#include <elfutils/libdwfl.h>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from scripts/dwarf2ctf/eu_simple.c:2:0:
>> scripts/dwarf2ctf/../eu_simple.c:18:10: fatal error: elfutils/libdwfl.h: No such file or directory
#include <elfutils/libdwfl.h>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile Module.symvers System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net scripts security smatch_db.sqlite sound source tools trinity_smatch.c trinity_smatch.h usr virt vmlinux vmlinux.o Error 1
scripts/kallsyms.c:37:10: fatal error: dwarf.h: No such file or directory
#include <dwarf.h>
^~~~~~~~~
compilation terminated.
Makefile Module.symvers System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net scripts security smatch_db.sqlite sound source tools trinity_smatch.c trinity_smatch.h usr virt vmlinux vmlinux.o Error 1
Makefile Module.symvers System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net scripts security smatch_db.sqlite sound source tools trinity_smatch.c trinity_smatch.h usr virt vmlinux vmlinux.o Error 1
>> scripts/dwarf2ctf/dwarf2ctf.c:29:10: fatal error: dwarf.h: No such file or directory
#include <dwarf.h>
^~~~~~~~~
compilation terminated.
Makefile Module.symvers System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net scripts security smatch_db.sqlite sound source tools trinity_smatch.c trinity_smatch.h usr virt vmlinux vmlinux.o Error 1
Target '__build' not remade because of errors.
Makefile Module.symvers System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net scripts security smatch_db.sqlite sound source tools trinity_smatch.c trinity_smatch.h usr virt vmlinux vmlinux.o Error 2
Target '__build' not remade because of errors.
Makefile Module.symvers System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net scripts security smatch_db.sqlite sound source tools trinity_smatch.c trinity_smatch.h usr virt vmlinux vmlinux.o Error 2
Target 'prepare' not remade because of errors.
make: Makefile Module.symvers System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net scripts security smatch_db.sqlite sound source tools trinity_smatch.c trinity_smatch.h usr virt vmlinux vmlinux.o Error 2
4 real 4 user 2 sys 153.64% cpu make prepare
vim +18 scripts/dwarf2ctf/../eu_simple.c
346ddb8688d6e7 Nick Alcock 2018-11-14 17
346ddb8688d6e7 Nick Alcock 2018-11-14 @18 #include <elfutils/libdwfl.h>
346ddb8688d6e7 Nick Alcock 2018-11-14 19 #include <elfutils/version.h>
346ddb8688d6e7 Nick Alcock 2018-11-14 20
:::::: The code at line 18 was first introduced by commit
:::::: 346ddb8688d6e7860765c7c97cc983286b6c5de8 ctf: generate CTF information for the kernel
:::::: TO: Nick Alcock <nick.alcock(a)oracle.com>
:::::: CC: Nick Alcock <nick.alcock(a)oracle.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 5 months
[oracle-dtrace-linux-kernel:5.3.1 2/20] scripts/kallsyms.c:37:10: fatal error: dwarf.h: No such file or directory
by kbuild test robot
tree: https://github.com/oracle/dtrace-linux-kernel 5.3.1
head: cd952b58391c2bda271223315e0c5dce7fd59617
commit: 470db1beaa7a2ac8c84f28b3a339750ef959e5a0 [2/20] kallsyms: introduce new /proc/kallmodsyms including builtin modules too
config: x86_64-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
git checkout 470db1beaa7a2ac8c84f28b3a339750ef959e5a0
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
make[2]: pkg-config: Command not found
make[2]: pkg-config: Command not found
>> scripts/eu_simple.c:18:10: fatal error: elfutils/libdwfl.h: No such file or directory
#include <elfutils/libdwfl.h>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/eu_simple.o] Error 1
>> scripts/kallsyms.c:37:10: fatal error: dwarf.h: No such file or directory
#include <dwarf.h>
^~~~~~~~~
compilation terminated.
make[2]: *** [scripts/kallsyms.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [scripts] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
4 real 4 user 2 sys 157.47% cpu make prepare
vim +37 scripts/kallsyms.c
34
35 #ifdef CONFIG_KALLMODSYMS
36 #include <libelf.h>
> 37 #include <dwarf.h>
38 #include <elfutils/libdwfl.h>
39 #include <elfutils/libdw.h>
40 #include <glib.h>
41
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 5 months
[yhuang:random-r0.1i 41/41] ld: node.c:undefined reference to `node_random_migrate_stop'
by kbuild test robot
tree: yhuang/random-r0.1i
head: ca13b6ebc4dfb4e84861eaa783041e062ef74586
commit: ca13b6ebc4dfb4e84861eaa783041e062ef74586 [41/41] 2 stage filter for promotion
config: x86_64-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
git checkout ca13b6ebc4dfb4e84861eaa783041e062ef74586
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: mm/page_alloc.o: in function `free_area_init_node':
page_alloc.c:(.init.text+0x98a): undefined reference to `node_random_promote_work'
ld: page_alloc.c:(.init.text+0x9d3): undefined reference to `node_random_demote_work'
ld: drivers/base/node.o: in function `random_migrate_threshold_max_ms_store':
node.c:(.text+0x182): undefined reference to `node_random_migrate_stop'
ld: node.c:(.text+0x1d4): undefined reference to `node_random_migrate_start'
ld: drivers/base/node.o: in function `random_migrate_period_ms_store':
node.c:(.text+0x2b5): undefined reference to `node_random_migrate_stop'
>> ld: node.c:(.text+0x32e): undefined reference to `node_random_migrate_stop'
ld: node.c:(.text+0x368): undefined reference to `node_random_migrate_start'
ld: drivers/base/node.o: in function `random_migrate_mb_store':
node.c:(.text+0x454): undefined reference to `node_random_migrate_stop'
ld: node.c:(.text+0x46e): undefined reference to `node_random_migrate_start'
ld: node.c:(.text+0x4be): undefined reference to `node_random_migrate_pages'
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 5 months
[alibaba-cloud:intel/ck-4.19.67 100/119] htmldocs: kernel/resource.c:337: warning: Function parameter or member 'first_lvl' not described in 'find_next_iomem_res'
by kbuild test robot
tree: https://github.com/alibaba/cloud-kernel.git intel/ck-4.19.67
head: 5d5ebaddcbf30a52bfdee633c6076b6e0c24ddf5
commit: a7362a4df1f090ed0aec1d22971187e63a61c936 [100/119] resource: Clean it up a bit
reproduce: make htmldocs
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
Warning: The Sphinx 'sphinx_rtd_theme' HTML theme was not found. Make sure you have the theme installed to produce pretty HTML output. Falling back to the default theme.
WARNING: dot(1) not found, for better output quality install graphviz from http://www.graphviz.org
WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick (https://www.imagemagick.org)
kernel/resource.c:337: warning: Function parameter or member 'start' not described in 'find_next_iomem_res'
kernel/resource.c:337: warning: Function parameter or member 'end' not described in 'find_next_iomem_res'
kernel/resource.c:337: warning: Function parameter or member 'flags' not described in 'find_next_iomem_res'
kernel/resource.c:337: warning: Function parameter or member 'desc' not described in 'find_next_iomem_res'
>> kernel/resource.c:337: warning: Function parameter or member 'first_lvl' not described in 'find_next_iomem_res'
kernel/resource.c:337: warning: Function parameter or member 'res' not described in 'find_next_iomem_res'
>> kernel/resource.c:409: warning: Function parameter or member 'arg' not described in 'walk_iomem_res_desc'
>> kernel/resource.c:409: warning: Function parameter or member 'func' not described in 'walk_iomem_res_desc'
>> kernel/resource.c:409: warning: Function parameter or member 'arg' not described in 'walk_iomem_res_desc'
>> kernel/resource.c:409: warning: Function parameter or member 'func' not described in 'walk_iomem_res_desc'
block/genhd.c:526: warning: Function parameter or member 'devt' not described in 'blk_invalidate_devt'
include/linux/srcu.h:175: warning: Function parameter or member 'p' not described in 'srcu_dereference_notrace'
include/linux/srcu.h:175: warning: Function parameter or member 'sp' not described in 'srcu_dereference_notrace'
include/linux/gfp.h:1: warning: no structured comments found
include/net/cfg80211.h:4382: warning: Function parameter or member 'wext.ibss' not described in 'wireless_dev'
include/net/cfg80211.h:4382: warning: Function parameter or member 'wext.connect' not described in 'wireless_dev'
include/net/cfg80211.h:4382: warning: Function parameter or member 'wext.keys' not described in 'wireless_dev'
include/net/cfg80211.h:4382: warning: Function parameter or member 'wext.ie' not described in 'wireless_dev'
include/net/cfg80211.h:4382: warning: Function parameter or member 'wext.ie_len' not described in 'wireless_dev'
include/net/cfg80211.h:4382: warning: Function parameter or member 'wext.bssid' not described in 'wireless_dev'
include/net/cfg80211.h:4382: warning: Function parameter or member 'wext.ssid' not described in 'wireless_dev'
include/net/cfg80211.h:4382: warning: Function parameter or member 'wext.default_key' not described in 'wireless_dev'
include/net/cfg80211.h:4382: warning: Function parameter or member 'wext.default_mgmt_key' not described in 'wireless_dev'
include/net/cfg80211.h:4382: warning: Function parameter or member 'wext.prev_bssid_valid' not described in 'wireless_dev'
include/net/mac80211.h:2328: warning: Function parameter or member 'radiotap_timestamp.units_pos' not described in 'ieee80211_hw'
include/net/mac80211.h:2328: warning: Function parameter or member 'radiotap_timestamp.accuracy' not described in 'ieee80211_hw'
include/net/mac80211.h:977: warning: Function parameter or member 'control.rates' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'control.rts_cts_rate_idx' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'control.use_rts' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'control.use_cts_prot' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'control.short_preamble' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'control.skip_table' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'control.jiffies' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'control.vif' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'control.hw_key' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'control.flags' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'control.enqueue_time' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'ack' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'ack.cookie' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'status.rates' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'status.ack_signal' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'status.ampdu_ack_len' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'status.ampdu_len' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'status.antenna' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'status.tx_time' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'status.is_valid_ack_signal' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'status.status_driver_data' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'driver_rates' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'pad' not described in 'ieee80211_tx_info'
include/net/mac80211.h:977: warning: Function parameter or member 'rate_driver_data' not described in 'ieee80211_tx_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'rx_stats_avg' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'rx_stats_avg.signal' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'rx_stats_avg.chain_signal' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.filtered' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.retry_failed' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.retry_count' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.lost_packets' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.last_tdls_pkt_time' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.msdu_retries' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.msdu_failed' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.last_ack' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.last_ack_signal' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.ack_signal_filled' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'status_stats.avg_ack_signal' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'tx_stats.packets' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'tx_stats.bytes' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'tx_stats.last_rate' not described in 'sta_info'
net/mac80211/sta_info.h:588: warning: Function parameter or member 'tx_stats.msdu' not described in 'sta_info'
include/linux/dma-buf.h:304: warning: Function parameter or member 'cb_excl.cb' not described in 'dma_buf'
include/linux/dma-buf.h:304: warning: Function parameter or member 'cb_excl.poll' not described in 'dma_buf'
include/linux/dma-buf.h:304: warning: Function parameter or member 'cb_excl.active' not described in 'dma_buf'
include/linux/dma-buf.h:304: warning: Function parameter or member 'cb_shared.cb' not described in 'dma_buf'
include/linux/dma-buf.h:304: warning: Function parameter or member 'cb_shared.poll' not described in 'dma_buf'
include/linux/dma-buf.h:304: warning: Function parameter or member 'cb_shared.active' not described in 'dma_buf'
include/linux/dma-fence-array.h:54: warning: Function parameter or member 'work' not described in 'dma_fence_array'
include/linux/gpio/driver.h:149: warning: Function parameter or member 'request_key' not described in 'gpio_irq_chip'
include/linux/i2c.h:343: warning: Function parameter or member 'init_irq' not described in 'i2c_client'
include/linux/iio/hw-consumer.h:1: warning: no structured comments found
drivers/base/node.c:78: warning: Function parameter or member 'hmem_attrs' not described in 'node_access_nodes'
drivers/base/node.c:690: warning: Function parameter or member 'mem_nid' not described in 'register_memory_node_under_compute_node'
drivers/base/node.c:690: warning: Function parameter or member 'cpu_nid' not described in 'register_memory_node_under_compute_node'
drivers/base/node.c:690: warning: Excess function parameter 'mem_node' description in 'register_memory_node_under_compute_node'
drivers/base/node.c:690: warning: Excess function parameter 'cpu_node' description in 'register_memory_node_under_compute_node'
include/linux/input/sparse-keymap.h:46: warning: Function parameter or member 'sw' not described in 'key_entry'
drivers/pci/pci.c:218: warning: Excess function parameter 'p' description in 'pci_dev_str_match_path'
include/linux/regulator/driver.h:227: warning: Function parameter or member 'resume' not described in 'regulator_ops'
drivers/regulator/core.c:4479: warning: Excess function parameter 'state' description in 'regulator_suspend'
arch/s390/include/asm/cio.h:245: warning: Function parameter or member 'esw.esw0' not described in 'irb'
arch/s390/include/asm/cio.h:245: warning: Function parameter or member 'esw.esw1' not described in 'irb'
arch/s390/include/asm/cio.h:245: warning: Function parameter or member 'esw.esw2' not described in 'irb'
arch/s390/include/asm/cio.h:245: warning: Function parameter or member 'esw.esw3' not described in 'irb'
arch/s390/include/asm/cio.h:245: warning: Function parameter or member 'esw.eadm' not described in 'irb'
drivers/slimbus/stream.c:1: warning: no structured comments found
drivers/target/target_core_device.c:1: warning: no structured comments found
drivers/usb/typec/bus.c:1: warning: no structured comments found
drivers/usb/typec/class.c:1: warning: no structured comments found
include/linux/w1.h:281: warning: Function parameter or member 'of_match_table' not described in 'w1_family'
fs/direct-io.c:257: warning: Excess function parameter 'offset' description in 'dio_complete'
fs/file_table.c:1: warning: no structured comments found
fs/libfs.c:477: warning: Excess function parameter 'available' description in 'simple_write_end'
fs/posix_acl.c:646: warning: Function parameter or member 'inode' not described in 'posix_acl_update_mode'
fs/posix_acl.c:646: warning: Function parameter or member 'mode_p' not described in 'posix_acl_update_mode'
fs/posix_acl.c:646: warning: Function parameter or member 'acl' not described in 'posix_acl_update_mode'
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:183: warning: Function parameter or member 'blockable' not described in 'amdgpu_mn_read_lock'
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:254: warning: Function parameter or member 'blockable' not described in 'amdgpu_mn_invalidate_range_start_gfx'
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:302: warning: Function parameter or member 'blockable' not described in 'amdgpu_mn_invalidate_range_start_hsa'
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:3012: warning: Excess function parameter 'dev' description in 'amdgpu_vm_get_task_info'
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:3013: warning: Function parameter or member 'adev' not described in 'amdgpu_vm_get_task_info'
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:3013: warning: Excess function parameter 'dev' description in 'amdgpu_vm_get_task_info'
include/drm/drm_drv.h:610: warning: Function parameter or member 'gem_prime_pin' not described in 'drm_driver'
vim +337 kernel/resource.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 320
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 321 /**
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 322 * Finds the lowest iomem resource that covers part of [start..end]. The
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 323 * caller must specify start, end, flags, and desc (which may be
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 324 * IORES_DESC_NONE).
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 325 *
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 326 * If a resource is found, returns 0 and *res is overwritten with the part
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 327 * of the resource that's within [start..end]; if none is found, returns
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 328 * -1.
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 329 *
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 330 * This function walks the whole tree and not just first level children
a7362a4df1f090 Borislav Petkov 2018-10-09 331 * unless @first_lvl is true.
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 332 */
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 333 static int find_next_iomem_res(resource_size_t start, resource_size_t end,
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 334 unsigned long flags, unsigned long desc,
a7362a4df1f090 Borislav Petkov 2018-10-09 335 bool first_lvl, struct resource *res)
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 336 {
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 @337 struct resource *p;
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 338
a7362a4df1f090 Borislav Petkov 2018-10-09 339 if (!res)
a7362a4df1f090 Borislav Petkov 2018-10-09 340 return -EINVAL;
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 341
a7362a4df1f090 Borislav Petkov 2018-10-09 342 if (start >= end)
a7362a4df1f090 Borislav Petkov 2018-10-09 343 return -EINVAL;
8c86e70acead62 Vivek Goyal 2014-08-08 344
800df627e2eaba Vivek Goyal 2014-08-29 345 read_lock(&resource_lock);
800df627e2eaba Vivek Goyal 2014-08-29 346
a7362a4df1f090 Borislav Petkov 2018-10-09 347 for (p = iomem_resource.child; p; p = next_resource(p, first_lvl)) {
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 348 if ((p->flags & flags) != flags)
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 349 continue;
3f33647c419624 Toshi Kani 2016-01-26 350 if ((desc != IORES_DESC_NONE) && (desc != p->desc))
3f33647c419624 Toshi Kani 2016-01-26 351 continue;
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 352 if (p->start > end) {
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 353 p = NULL;
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 354 break;
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 355 }
07c10a447c23cf Bjorn Helgaas 2018-09-27 356 if ((p->end >= start) && (p->start <= end))
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 357 break;
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 358 }
8c86e70acead62 Vivek Goyal 2014-08-08 359
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 360 read_unlock(&resource_lock);
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 361 if (!p)
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 362 return -1;
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 363
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 364 /* copy data */
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 365 res->start = max(start, p->start);
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 366 res->end = min(end, p->end);
0e4c12b45aa88e Tom Lendacky 2017-10-20 367 res->flags = p->flags;
0e4c12b45aa88e Tom Lendacky 2017-10-20 368 res->desc = p->desc;
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 369 return 0;
2842f11419704f KAMEZAWA Hiroyuki 2006-06-27 370 }
908eedc6168bd9 KAMEZAWA Hiroyuki 2009-09-22 371
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 372 static int __walk_iomem_res_desc(resource_size_t start, resource_size_t end,
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 373 unsigned long flags, unsigned long desc,
a7362a4df1f090 Borislav Petkov 2018-10-09 374 bool first_lvl, void *arg,
1d2e733b13b450 Tom Lendacky 2017-10-20 375 int (*func)(struct resource *, void *))
4ac2aed837cbdb Tom Lendacky 2017-10-20 376 {
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 377 struct resource res;
4ac2aed837cbdb Tom Lendacky 2017-10-20 378 int ret = -1;
4ac2aed837cbdb Tom Lendacky 2017-10-20 379
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 380 while (start < end &&
a7362a4df1f090 Borislav Petkov 2018-10-09 381 !find_next_iomem_res(start, end, flags, desc, first_lvl, &res)) {
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 382 ret = (*func)(&res, arg);
4ac2aed837cbdb Tom Lendacky 2017-10-20 383 if (ret)
4ac2aed837cbdb Tom Lendacky 2017-10-20 384 break;
4ac2aed837cbdb Tom Lendacky 2017-10-20 385
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 386 start = res.end + 1;
4ac2aed837cbdb Tom Lendacky 2017-10-20 387 }
4ac2aed837cbdb Tom Lendacky 2017-10-20 388
4ac2aed837cbdb Tom Lendacky 2017-10-20 389 return ret;
4ac2aed837cbdb Tom Lendacky 2017-10-20 390 }
4ac2aed837cbdb Tom Lendacky 2017-10-20 391
a7362a4df1f090 Borislav Petkov 2018-10-09 392 /**
8c86e70acead62 Vivek Goyal 2014-08-08 393 * Walks through iomem resources and calls func() with matching resource
8c86e70acead62 Vivek Goyal 2014-08-08 394 * ranges. This walks through whole tree and not just first level children.
8c86e70acead62 Vivek Goyal 2014-08-08 395 * All the memory ranges which overlap start,end and also match flags and
3f33647c419624 Toshi Kani 2016-01-26 396 * desc are valid candidates.
3f33647c419624 Toshi Kani 2016-01-26 397 *
3f33647c419624 Toshi Kani 2016-01-26 398 * @desc: I/O resource descriptor. Use IORES_DESC_NONE to skip @desc check.
3f33647c419624 Toshi Kani 2016-01-26 399 * @flags: I/O resource flags
3f33647c419624 Toshi Kani 2016-01-26 400 * @start: start addr
3f33647c419624 Toshi Kani 2016-01-26 401 * @end: end addr
3f33647c419624 Toshi Kani 2016-01-26 402 *
3f33647c419624 Toshi Kani 2016-01-26 403 * NOTE: For a new descriptor search, define a new IORES_DESC in
3f33647c419624 Toshi Kani 2016-01-26 404 * <linux/ioport.h> and set it in 'desc' of a target resource entry.
3f33647c419624 Toshi Kani 2016-01-26 405 */
3f33647c419624 Toshi Kani 2016-01-26 406 int walk_iomem_res_desc(unsigned long desc, unsigned long flags, u64 start,
1d2e733b13b450 Tom Lendacky 2017-10-20 407 u64 end, void *arg, int (*func)(struct resource *, void *))
3f33647c419624 Toshi Kani 2016-01-26 408 {
1f908f1c7fa49c Bjorn Helgaas 2018-09-27 @409 return __walk_iomem_res_desc(start, end, flags, desc, false, arg, func);
3f33647c419624 Toshi Kani 2016-01-26 410 }
d76401ade0bb6a Dan Williams 2018-06-02 411 EXPORT_SYMBOL_GPL(walk_iomem_res_desc);
3f33647c419624 Toshi Kani 2016-01-26 412
:::::: The code at line 337 was first introduced by commit
:::::: 2842f11419704f8707fffc82e10d2263427fc130 [PATCH] catch valid mem range at onlining memory
:::::: TO: KAMEZAWA Hiroyuki <kamezawa.hiroyu(a)jp.fujitsu.com>
:::::: CC: Linus Torvalds <torvalds(a)g5.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 5 months
[alibaba-cloud:intel/ck-4.19.67 70/119] ERROR: "adxl_get_component_names" [drivers/edac/skx_edac.ko] undefined!
by kbuild test robot
tree: https://github.com/alibaba/cloud-kernel.git intel/ck-4.19.67
head: 5d5ebaddcbf30a52bfdee633c6076b6e0c24ddf5
commit: 991edcb250e4606d035877c941fc62ea472fe7db [70/119] ICX: ACPI/ADXL: Add address translation interface using an ACPI DSM
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
git checkout 991edcb250e4606d035877c941fc62ea472fe7db
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> ERROR: "adxl_get_component_names" [drivers/edac/skx_edac.ko] undefined!
>> ERROR: "adxl_decode" [drivers/edac/skx_edac.ko] undefined!
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 5 months