【Amazon】アカウント情報をご確認ください
by Amazon.co.jp
Amazonお客様
平素は、Amazonをご利用いただき、誠にありがとうございます。
お客様のご要望に応じて、アカウントのパスワードを変更いたしました。
ログインプロセス中に、お客様は次のアクションを実行しました:
パスワードの変更。
アドレスの変更。
上記の操作を自分で行わなかった場合。以下のリンクをクリックして、本人確認を行い、アカウント設定を復元してください。
お客様が24時間以内に応答しない場合、アカウントのセキュリティのために、Amazonの使用にいくつかの制限を課します。
本件についてご迷惑をおかけしましたことをお詫び申し上げます。
何卒、よろしくお願い申し上げます。
お客様の Amazon アカウント
アカウント所有権の証明をご自身で行う場合は、Amazon 管理コンソールにログインし、所定の手順でお手続きください。アカウント所有権の証明についてのヘルプセンター記事も併せてご参照ください。
状態:
異常は更新待ちです
Amazonクリック&ログイン
Amazonのまたのご利用をお待ちしております。
© 1996-2021, Amazon. Inc. or its affiliates
9 months, 1 week
[helgaas-pci:pci/driver-cleanup 8/27] drivers/pci/controller/cadence/pci-j721e.c:370:7: error: assigning to 'struct j721e_pcie_data *' from 'const void *' discards qualifiers
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/driver-cleanup
head: 24d25dd0ddf8c2b924a1fafc51dd0e578d304c3a
commit: 667c60afad253791929991b2dc2ed5417bba2787 [8/27] PCI: j721e: Drop pointless of_device_get_match_data() cast
config: arm64-randconfig-r014-20211210 (https://download.01.org/0day-ci/archive/20211211/202112110238.rZl7p5gE-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/commit/?i...
git remote add helgaas-pci https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
git fetch --no-tags helgaas-pci pci/driver-cleanup
git checkout 667c60afad253791929991b2dc2ed5417bba2787
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/pci/controller/cadence/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/pci/controller/cadence/pci-j721e.c:370:7: error: assigning to 'struct j721e_pcie_data *' from 'const void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
data = of_device_get_match_data(dev);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +370 drivers/pci/controller/cadence/pci-j721e.c
351
352 static int j721e_pcie_probe(struct platform_device *pdev)
353 {
354 struct device *dev = &pdev->dev;
355 struct device_node *node = dev->of_node;
356 struct pci_host_bridge *bridge;
357 struct j721e_pcie_data *data;
358 struct cdns_pcie *cdns_pcie;
359 struct j721e_pcie *pcie;
360 struct cdns_pcie_rc *rc;
361 struct cdns_pcie_ep *ep;
362 struct gpio_desc *gpiod;
363 void __iomem *base;
364 struct clk *clk;
365 u32 num_lanes;
366 u32 mode;
367 int ret;
368 int irq;
369
> 370 data = of_device_get_match_data(dev);
371 if (!data)
372 return -EINVAL;
373
374 mode = (u32)data->mode;
375
376 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL);
377 if (!pcie)
378 return -ENOMEM;
379
380 pcie->dev = dev;
381 pcie->mode = mode;
382 pcie->linkdown_irq_regfield = data->linkdown_irq_regfield;
383
384 base = devm_platform_ioremap_resource_byname(pdev, "intd_cfg");
385 if (IS_ERR(base))
386 return PTR_ERR(base);
387 pcie->intd_cfg_base = base;
388
389 base = devm_platform_ioremap_resource_byname(pdev, "user_cfg");
390 if (IS_ERR(base))
391 return PTR_ERR(base);
392 pcie->user_cfg_base = base;
393
394 ret = of_property_read_u32(node, "num-lanes", &num_lanes);
395 if (ret || num_lanes > MAX_LANES)
396 num_lanes = 1;
397 pcie->num_lanes = num_lanes;
398
399 if (dma_set_mask_and_coherent(dev, DMA_BIT_MASK(48)))
400 return -EINVAL;
401
402 irq = platform_get_irq_byname(pdev, "link_state");
403 if (irq < 0)
404 return irq;
405
406 dev_set_drvdata(dev, pcie);
407 pm_runtime_enable(dev);
408 ret = pm_runtime_get_sync(dev);
409 if (ret < 0) {
410 dev_err(dev, "pm_runtime_get_sync failed\n");
411 goto err_get_sync;
412 }
413
414 ret = j721e_pcie_ctrl_init(pcie);
415 if (ret < 0) {
416 dev_err(dev, "pm_runtime_get_sync failed\n");
417 goto err_get_sync;
418 }
419
420 ret = devm_request_irq(dev, irq, j721e_pcie_link_irq_handler, 0,
421 "j721e-pcie-link-down-irq", pcie);
422 if (ret < 0) {
423 dev_err(dev, "failed to request link state IRQ %d\n", irq);
424 goto err_get_sync;
425 }
426
427 j721e_pcie_config_link_irq(pcie);
428
429 switch (mode) {
430 case PCI_MODE_RC:
431 if (!IS_ENABLED(CONFIG_PCIE_CADENCE_HOST)) {
432 ret = -ENODEV;
433 goto err_get_sync;
434 }
435
436 bridge = devm_pci_alloc_host_bridge(dev, sizeof(*rc));
437 if (!bridge) {
438 ret = -ENOMEM;
439 goto err_get_sync;
440 }
441
442 if (!data->byte_access_allowed)
443 bridge->ops = &cdns_ti_pcie_host_ops;
444 rc = pci_host_bridge_priv(bridge);
445 rc->quirk_retrain_flag = data->quirk_retrain_flag;
446 rc->quirk_detect_quiet_flag = data->quirk_detect_quiet_flag;
447
448 cdns_pcie = &rc->pcie;
449 cdns_pcie->dev = dev;
450 cdns_pcie->ops = &j721e_pcie_ops;
451 pcie->cdns_pcie = cdns_pcie;
452
453 gpiod = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
454 if (IS_ERR(gpiod)) {
455 ret = PTR_ERR(gpiod);
456 if (ret != -EPROBE_DEFER)
457 dev_err(dev, "Failed to get reset GPIO\n");
458 goto err_get_sync;
459 }
460
461 ret = cdns_pcie_init_phy(dev, cdns_pcie);
462 if (ret) {
463 dev_err(dev, "Failed to init phy\n");
464 goto err_get_sync;
465 }
466
467 clk = devm_clk_get_optional(dev, "pcie_refclk");
468 if (IS_ERR(clk)) {
469 ret = PTR_ERR(clk);
470 dev_err(dev, "failed to get pcie_refclk\n");
471 goto err_pcie_setup;
472 }
473
474 ret = clk_prepare_enable(clk);
475 if (ret) {
476 dev_err(dev, "failed to enable pcie_refclk\n");
477 goto err_pcie_setup;
478 }
479 pcie->refclk = clk;
480
481 /*
482 * "Power Sequencing and Reset Signal Timings" table in
483 * PCI EXPRESS CARD ELECTROMECHANICAL SPECIFICATION, REV. 3.0
484 * indicates PERST# should be deasserted after minimum of 100us
485 * once REFCLK is stable. The REFCLK to the connector in RC
486 * mode is selected while enabling the PHY. So deassert PERST#
487 * after 100 us.
488 */
489 if (gpiod) {
490 usleep_range(100, 200);
491 gpiod_set_value_cansleep(gpiod, 1);
492 }
493
494 ret = cdns_pcie_host_setup(rc);
495 if (ret < 0) {
496 clk_disable_unprepare(pcie->refclk);
497 goto err_pcie_setup;
498 }
499
500 break;
501 case PCI_MODE_EP:
502 if (!IS_ENABLED(CONFIG_PCIE_CADENCE_EP)) {
503 ret = -ENODEV;
504 goto err_get_sync;
505 }
506
507 ep = devm_kzalloc(dev, sizeof(*ep), GFP_KERNEL);
508 if (!ep) {
509 ret = -ENOMEM;
510 goto err_get_sync;
511 }
512 ep->quirk_detect_quiet_flag = data->quirk_detect_quiet_flag;
513
514 cdns_pcie = &ep->pcie;
515 cdns_pcie->dev = dev;
516 cdns_pcie->ops = &j721e_pcie_ops;
517 pcie->cdns_pcie = cdns_pcie;
518
519 ret = cdns_pcie_init_phy(dev, cdns_pcie);
520 if (ret) {
521 dev_err(dev, "Failed to init phy\n");
522 goto err_get_sync;
523 }
524
525 ret = cdns_pcie_ep_setup(ep);
526 if (ret < 0)
527 goto err_pcie_setup;
528
529 break;
530 default:
531 dev_err(dev, "INVALID device type %d\n", mode);
532 }
533
534 return 0;
535
536 err_pcie_setup:
537 cdns_pcie_disable_phy(cdns_pcie);
538
539 err_get_sync:
540 pm_runtime_put(dev);
541 pm_runtime_disable(dev);
542
543 return ret;
544 }
545
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[helgaas-pci:pci/driver-cleanup 8/27] drivers/pci/controller/cadence/pci-j721e.c:370:14: warning: assignment discards 'const' qualifier from pointer target type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/driver-cleanup
head: 24d25dd0ddf8c2b924a1fafc51dd0e578d304c3a
commit: 667c60afad253791929991b2dc2ed5417bba2787 [8/27] PCI: j721e: Drop pointless of_device_get_match_data() cast
config: ia64-randconfig-r016-20211210 (https://download.01.org/0day-ci/archive/20211211/202112110258.s3iNhcmi-lk...)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/commit/?i...
git remote add helgaas-pci https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
git fetch --no-tags helgaas-pci pci/driver-cleanup
git checkout 667c60afad253791929991b2dc2ed5417bba2787
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/pci/controller/cadence/
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 >>):
drivers/pci/controller/cadence/pci-j721e.c: In function 'j721e_pcie_probe':
>> drivers/pci/controller/cadence/pci-j721e.c:370:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
370 | data = of_device_get_match_data(dev);
| ^
vim +/const +370 drivers/pci/controller/cadence/pci-j721e.c
351
352 static int j721e_pcie_probe(struct platform_device *pdev)
353 {
354 struct device *dev = &pdev->dev;
355 struct device_node *node = dev->of_node;
356 struct pci_host_bridge *bridge;
357 struct j721e_pcie_data *data;
358 struct cdns_pcie *cdns_pcie;
359 struct j721e_pcie *pcie;
360 struct cdns_pcie_rc *rc;
361 struct cdns_pcie_ep *ep;
362 struct gpio_desc *gpiod;
363 void __iomem *base;
364 struct clk *clk;
365 u32 num_lanes;
366 u32 mode;
367 int ret;
368 int irq;
369
> 370 data = of_device_get_match_data(dev);
371 if (!data)
372 return -EINVAL;
373
374 mode = (u32)data->mode;
375
376 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL);
377 if (!pcie)
378 return -ENOMEM;
379
380 pcie->dev = dev;
381 pcie->mode = mode;
382 pcie->linkdown_irq_regfield = data->linkdown_irq_regfield;
383
384 base = devm_platform_ioremap_resource_byname(pdev, "intd_cfg");
385 if (IS_ERR(base))
386 return PTR_ERR(base);
387 pcie->intd_cfg_base = base;
388
389 base = devm_platform_ioremap_resource_byname(pdev, "user_cfg");
390 if (IS_ERR(base))
391 return PTR_ERR(base);
392 pcie->user_cfg_base = base;
393
394 ret = of_property_read_u32(node, "num-lanes", &num_lanes);
395 if (ret || num_lanes > MAX_LANES)
396 num_lanes = 1;
397 pcie->num_lanes = num_lanes;
398
399 if (dma_set_mask_and_coherent(dev, DMA_BIT_MASK(48)))
400 return -EINVAL;
401
402 irq = platform_get_irq_byname(pdev, "link_state");
403 if (irq < 0)
404 return irq;
405
406 dev_set_drvdata(dev, pcie);
407 pm_runtime_enable(dev);
408 ret = pm_runtime_get_sync(dev);
409 if (ret < 0) {
410 dev_err(dev, "pm_runtime_get_sync failed\n");
411 goto err_get_sync;
412 }
413
414 ret = j721e_pcie_ctrl_init(pcie);
415 if (ret < 0) {
416 dev_err(dev, "pm_runtime_get_sync failed\n");
417 goto err_get_sync;
418 }
419
420 ret = devm_request_irq(dev, irq, j721e_pcie_link_irq_handler, 0,
421 "j721e-pcie-link-down-irq", pcie);
422 if (ret < 0) {
423 dev_err(dev, "failed to request link state IRQ %d\n", irq);
424 goto err_get_sync;
425 }
426
427 j721e_pcie_config_link_irq(pcie);
428
429 switch (mode) {
430 case PCI_MODE_RC:
431 if (!IS_ENABLED(CONFIG_PCIE_CADENCE_HOST)) {
432 ret = -ENODEV;
433 goto err_get_sync;
434 }
435
436 bridge = devm_pci_alloc_host_bridge(dev, sizeof(*rc));
437 if (!bridge) {
438 ret = -ENOMEM;
439 goto err_get_sync;
440 }
441
442 if (!data->byte_access_allowed)
443 bridge->ops = &cdns_ti_pcie_host_ops;
444 rc = pci_host_bridge_priv(bridge);
445 rc->quirk_retrain_flag = data->quirk_retrain_flag;
446 rc->quirk_detect_quiet_flag = data->quirk_detect_quiet_flag;
447
448 cdns_pcie = &rc->pcie;
449 cdns_pcie->dev = dev;
450 cdns_pcie->ops = &j721e_pcie_ops;
451 pcie->cdns_pcie = cdns_pcie;
452
453 gpiod = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
454 if (IS_ERR(gpiod)) {
455 ret = PTR_ERR(gpiod);
456 if (ret != -EPROBE_DEFER)
457 dev_err(dev, "Failed to get reset GPIO\n");
458 goto err_get_sync;
459 }
460
461 ret = cdns_pcie_init_phy(dev, cdns_pcie);
462 if (ret) {
463 dev_err(dev, "Failed to init phy\n");
464 goto err_get_sync;
465 }
466
467 clk = devm_clk_get_optional(dev, "pcie_refclk");
468 if (IS_ERR(clk)) {
469 ret = PTR_ERR(clk);
470 dev_err(dev, "failed to get pcie_refclk\n");
471 goto err_pcie_setup;
472 }
473
474 ret = clk_prepare_enable(clk);
475 if (ret) {
476 dev_err(dev, "failed to enable pcie_refclk\n");
477 goto err_pcie_setup;
478 }
479 pcie->refclk = clk;
480
481 /*
482 * "Power Sequencing and Reset Signal Timings" table in
483 * PCI EXPRESS CARD ELECTROMECHANICAL SPECIFICATION, REV. 3.0
484 * indicates PERST# should be deasserted after minimum of 100us
485 * once REFCLK is stable. The REFCLK to the connector in RC
486 * mode is selected while enabling the PHY. So deassert PERST#
487 * after 100 us.
488 */
489 if (gpiod) {
490 usleep_range(100, 200);
491 gpiod_set_value_cansleep(gpiod, 1);
492 }
493
494 ret = cdns_pcie_host_setup(rc);
495 if (ret < 0) {
496 clk_disable_unprepare(pcie->refclk);
497 goto err_pcie_setup;
498 }
499
500 break;
501 case PCI_MODE_EP:
502 if (!IS_ENABLED(CONFIG_PCIE_CADENCE_EP)) {
503 ret = -ENODEV;
504 goto err_get_sync;
505 }
506
507 ep = devm_kzalloc(dev, sizeof(*ep), GFP_KERNEL);
508 if (!ep) {
509 ret = -ENOMEM;
510 goto err_get_sync;
511 }
512 ep->quirk_detect_quiet_flag = data->quirk_detect_quiet_flag;
513
514 cdns_pcie = &ep->pcie;
515 cdns_pcie->dev = dev;
516 cdns_pcie->ops = &j721e_pcie_ops;
517 pcie->cdns_pcie = cdns_pcie;
518
519 ret = cdns_pcie_init_phy(dev, cdns_pcie);
520 if (ret) {
521 dev_err(dev, "Failed to init phy\n");
522 goto err_get_sync;
523 }
524
525 ret = cdns_pcie_ep_setup(ep);
526 if (ret < 0)
527 goto err_pcie_setup;
528
529 break;
530 default:
531 dev_err(dev, "INVALID device type %d\n", mode);
532 }
533
534 return 0;
535
536 err_pcie_setup:
537 cdns_pcie_disable_phy(cdns_pcie);
538
539 err_get_sync:
540 pm_runtime_put(dev);
541 pm_runtime_disable(dev);
542
543 return ret;
544 }
545
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[RFC PATCH] ext4: ext4_modify_primary_sb() can be static
by kernel test robot
fs/ext4/ioctl.c:45:5: warning: symbol 'ext4_modify_primary_sb' was not declared. Should it be static?
fs/ext4/ioctl.c:165:5: warning: symbol 'ext4_modify_superblocks_fn' was not declared. Should it be static?
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
ioctl.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index 285862288ecb5..5f5c0e62e4d3d 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -42,9 +42,9 @@ static void ext4_sb_setlabel(struct ext4_super_block *es, const void *arg)
memcpy(es->s_volume_name, (char *)arg, EXT4_LABEL_MAX);
}
-int ext4_modify_primary_sb(struct super_block *sb, handle_t *handle,
- ext4_modify_sb_callback func,
- const void *arg)
+static int ext4_modify_primary_sb(struct super_block *sb, handle_t *handle,
+ ext4_modify_sb_callback func,
+ const void *arg)
{
int err = 0;
struct ext4_sb_info *sbi = EXT4_SB(sb);
@@ -162,9 +162,9 @@ static int ext4_update_backup_sb(struct super_block *sb, handle_t *handle,
* This is safe because e2fsck will re-write them if there is a problem,
* and we're very unlikely to ever need more than two backups.
*/
-int ext4_modify_superblocks_fn(struct super_block *sb,
- ext4_modify_sb_callback func,
- const void *arg)
+static int ext4_modify_superblocks_fn(struct super_block *sb,
+ ext4_modify_sb_callback func,
+ const void *arg)
{
handle_t *handle;
ext4_group_t ngroups;
9 months, 1 week
fs/ext4/ioctl.c:45:5: warning: no previous prototype for 'ext4_modify_primary_sb'
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20211210-231726/Lukas-Cze...
head: 3645884240a4d5f00133b71e3a7fbb2070588706
commit: 3645884240a4d5f00133b71e3a7fbb2070588706 ext4: implement support for get/set fs label
date: 4 hours ago
config: arc-randconfig-r043-20211210 (https://download.01.org/0day-ci/archive/20211211/202112110218.jAfqs4kb-lk...)
compiler: arc-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/3645884240a4d5f00133b71e3a7fbb207...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20211210-231726/Lukas-Czerner/ext4-implement-support-for-get-set-fs-label/20211112-060030
git checkout 3645884240a4d5f00133b71e3a7fbb2070588706
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash fs/ext4/
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 >>):
>> fs/ext4/ioctl.c:45:5: warning: no previous prototype for 'ext4_modify_primary_sb' [-Wmissing-prototypes]
45 | int ext4_modify_primary_sb(struct super_block *sb, handle_t *handle,
| ^~~~~~~~~~~~~~~~~~~~~~
>> fs/ext4/ioctl.c:165:5: warning: no previous prototype for 'ext4_modify_superblocks_fn' [-Wmissing-prototypes]
165 | int ext4_modify_superblocks_fn(struct super_block *sb,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/ext4_modify_primary_sb +45 fs/ext4/ioctl.c
44
> 45 int ext4_modify_primary_sb(struct super_block *sb, handle_t *handle,
46 ext4_modify_sb_callback func,
47 const void *arg)
48 {
49 int err = 0;
50 struct ext4_sb_info *sbi = EXT4_SB(sb);
51 struct buffer_head *bh = sbi->s_sbh;
52 struct ext4_super_block *es = sbi->s_es;
53
54 trace_ext4_modify_sb(sb, bh->b_blocknr, 1);
55
56 BUFFER_TRACE(bh, "get_write_access");
57 err = ext4_journal_get_write_access(handle, sb,
58 bh,
59 EXT4_JTR_NONE);
60 if (err)
61 goto out_err;
62
63 lock_buffer(bh);
64 func(es, arg);
65 ext4_superblock_csum_set(sb);
66 unlock_buffer(bh);
67
68 if (buffer_write_io_error(bh) || !buffer_uptodate(bh)) {
69 ext4_msg(sbi->s_sb, KERN_ERR, "previous I/O error to "
70 "superblock detected");
71 clear_buffer_write_io_error(bh);
72 set_buffer_uptodate(bh);
73 }
74
75 err = ext4_handle_dirty_metadata(handle, NULL, bh);
76 if (err)
77 goto out_err;
78 err = sync_dirty_buffer(bh);
79 out_err:
80 ext4_std_error(sb, err);
81 return err;
82 }
83
84 /*
85 * Update one backup superblcok in the group 'grp' using the primary
86 * superblock data. If the handle is NULL the modification is not
87 * journalled.
88 *
89 * Returns: 0 when no modification was done (no superblock in the group)
90 * 1 when the modification was successful
91 * <0 on error
92 */
93 static int ext4_update_backup_sb(struct super_block *sb, handle_t *handle,
94 ext4_group_t grp)
95 {
96 int err = 0;
97 ext4_fsblk_t sb_block;
98 struct buffer_head *bh;
99 unsigned long offset = 0;
100
101 if (!ext4_bg_has_super(sb, grp))
102 return 0;
103
104 /*
105 * For the group 0 there is always 1k padding, so we have
106 * either adjust offset, or sb_block depending on blocksize
107 */
108 if (grp == 0) {
109 sb_block = 1 * EXT4_MIN_BLOCK_SIZE;
110 offset = do_div(sb_block, sb->s_blocksize);
111 } else {
112 sb_block = ext4_group_first_block_no(sb, grp);
113 offset = 0;
114 }
115
116 trace_ext4_modify_sb(sb, sb_block, handle ? 1 : 0);
117
118 bh = sb_getblk(sb, sb_block);
119 if (IS_ERR(bh))
120 return PTR_ERR(bh);
121
122 if (handle) {
123 BUFFER_TRACE(bh, "get_write_access");
124 err = ext4_journal_get_write_access(handle, sb,
125 bh,
126 EXT4_JTR_NONE);
127 if (err)
128 goto out_bh;
129 }
130
131 lock_buffer(bh);
132 memcpy(bh->b_data + offset, EXT4_SB(sb)->s_es,
133 sizeof(struct ext4_super_block));
134 set_buffer_uptodate(bh);
135 unlock_buffer(bh);
136
137 if (err)
138 goto out_bh;
139
140 if (handle) {
141 err = ext4_handle_dirty_metadata(handle, NULL, bh);
142 if (err)
143 goto out_bh;
144 } else {
145 BUFFER_TRACE(bh, "marking dirty");
146 mark_buffer_dirty(bh);
147 }
148 err = sync_dirty_buffer(bh);
149
150 out_bh:
151 brelse(bh);
152 ext4_std_error(sb, err);
153 return (err) ? err : 1;
154 }
155
156 /*
157 * Modify primary and backup superblocks using the provided function
158 * func and argument arg.
159 *
160 * Only the primary superblock and at most two backup superblock
161 * modifications are journalled; the rest is modified without journal.
162 * This is safe because e2fsck will re-write them if there is a problem,
163 * and we're very unlikely to ever need more than two backups.
164 */
> 165 int ext4_modify_superblocks_fn(struct super_block *sb,
166 ext4_modify_sb_callback func,
167 const void *arg)
168 {
169 handle_t *handle;
170 ext4_group_t ngroups;
171 unsigned int three = 1;
172 unsigned int five = 5;
173 unsigned int seven = 7;
174 int err = 0, ret, i;
175 ext4_group_t grp, primary_grp;
176 struct ext4_sb_info *sbi = EXT4_SB(sb);
177
178 /*
179 * We can't modify superblocks while the online resize is running
180 */
181 if (test_and_set_bit_lock(EXT4_FLAGS_RESIZING,
182 &sbi->s_ext4_flags)) {
183 ext4_msg(sb, KERN_ERR, "Can't modify superblock while"
184 "performing online resize");
185 return -EBUSY;
186 }
187
188 /*
189 * We're only going to modify primary superblock and two
190 * backup superblocks in this transaction.
191 */
192 handle = ext4_journal_start_sb(sb, EXT4_HT_MISC, 3);
193 if (IS_ERR(handle)) {
194 err = PTR_ERR(handle);
195 goto out;
196 }
197
198 /* Modify primary superblock */
199 err = ext4_modify_primary_sb(sb, handle, func, arg);
200 if (err) {
201 ext4_msg(sb, KERN_ERR, "Failed to modify primary "
202 "superblock");
203 goto out_journal;
204 }
205
206 primary_grp = ext4_get_group_number(sb, sbi->s_sbh->b_blocknr);
207 ngroups = ext4_get_groups_count(sb);
208
209 /*
210 * Update backup superblocks. We have to start from group 0
211 * because it might not be where the primary superblock is
212 * if the fs is mounted with -o sb=<backup_sb_block>
213 */
214 i = 0;
215 grp = 0;
216 while (grp < ngroups) {
217 /* Skip primary superblock */
218 if (grp == primary_grp)
219 goto next_grp;
220
221 ret = ext4_update_backup_sb(sb, handle, grp);
222 if (ret < 0) {
223 err = ret;
224 goto out_journal;
225 }
226
227 i += ret;
228 if (handle && i > 1) {
229 /*
230 * We're only journalling primary superblock and
231 * two backup superblocks; the rest is not
232 * journalled.
233 */
234 err = ext4_journal_stop(handle);
235 if (err)
236 goto out;
237 handle = NULL;
238 }
239 next_grp:
240 grp = ext4_list_backups(sb, &three, &five, &seven);
241 }
242
243 out_journal:
244 if (handle) {
245 ret = ext4_journal_stop(handle);
246 if (ret && !err)
247 err = ret;
248 }
249 out:
250 clear_bit_unlock(EXT4_FLAGS_RESIZING, &sbi->s_ext4_flags);
251 smp_mb__after_atomic();
252 return err ? err : 0;
253 }
254
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH V2] net: bonding: Add support for IPV6 ns/na
by kernel test robot
Hi Sun,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.16-rc4 next-20211208]
[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/Sun-Shouxin/net-bonding-Add-supp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git c741e49150dbb0c0aebe234389f4aa8b47958fa8
config: hexagon-randconfig-r006-20211210 (https://download.01.org/0day-ci/archive/20211211/202112110234.hkzxELcK-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/f86d634c3ced7ec9b5af72e4b92bca681...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sun-Shouxin/net-bonding-Add-support-for-IPV6-ns-na/20211210-210940
git checkout f86d634c3ced7ec9b5af72e4b92bca681be033f7
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/net/bonding/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/net/bonding/bond_alb.c:1318:26: error: implicit declaration of function 'csum_ipv6_magic' [-Werror,-Wimplicit-function-declaration]
icmp6h->icmp6_cksum = csum_ipv6_magic(&ip6hdr->saddr,
^
drivers/net/bonding/bond_alb.c:1318:26: note: did you mean 'csum_tcpudp_magic'?
arch/hexagon/include/asm/checksum.h:21:9: note: 'csum_tcpudp_magic' declared here
__sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
^
arch/hexagon/include/asm/checksum.h:20:27: note: expanded from macro 'csum_tcpudp_magic'
#define csum_tcpudp_magic csum_tcpudp_magic
^
1 error generated.
vim +/csum_ipv6_magic +1318 drivers/net/bonding/bond_alb.c
1283
1284 static void alb_change_nd_option(struct sk_buff *skb, void *data)
1285 {
1286 struct nd_msg *msg = (struct nd_msg *)skb_transport_header(skb);
1287 struct nd_opt_hdr *nd_opt = (struct nd_opt_hdr *)msg->opt;
1288 struct net_device *dev = skb->dev;
1289 struct icmp6hdr *icmp6h = icmp6_hdr(skb);
1290 struct ipv6hdr *ip6hdr = ipv6_hdr(skb);
1291 u8 *lladdr = NULL;
1292 u32 ndoptlen = skb_tail_pointer(skb) - (skb_transport_header(skb) +
1293 offsetof(struct nd_msg, opt));
1294
1295 while (ndoptlen) {
1296 int l;
1297
1298 switch (nd_opt->nd_opt_type) {
1299 case ND_OPT_SOURCE_LL_ADDR:
1300 case ND_OPT_TARGET_LL_ADDR:
1301 lladdr = ndisc_opt_addr_data(nd_opt, dev);
1302 break;
1303
1304 default:
1305 lladdr = NULL;
1306 break;
1307 }
1308
1309 l = nd_opt->nd_opt_len << 3;
1310
1311 if (ndoptlen < l || l == 0)
1312 return;
1313
1314 if (lladdr) {
1315 memcpy(lladdr, data, dev->addr_len);
1316 icmp6h->icmp6_cksum = 0;
1317
> 1318 icmp6h->icmp6_cksum = csum_ipv6_magic(&ip6hdr->saddr,
1319 &ip6hdr->daddr,
1320 ntohs(ip6hdr->payload_len),
1321 IPPROTO_ICMPV6,
1322 csum_partial(icmp6h,
1323 ntohs(ip6hdr->payload_len), 0));
1324 }
1325 ndoptlen -= l;
1326 nd_opt = ((void *)nd_opt) + l;
1327 }
1328 }
1329
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
fs/ext4/ioctl.c:45:5: warning: no previous prototype for function 'ext4_modify_primary_sb'
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20211210-231726/Lukas-Cze...
head: 3645884240a4d5f00133b71e3a7fbb2070588706
commit: 3645884240a4d5f00133b71e3a7fbb2070588706 ext4: implement support for get/set fs label
date: 3 hours ago
config: hexagon-randconfig-r016-20211210 (https://download.01.org/0day-ci/archive/20211211/202112110115.5HqRcRHH-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/3645884240a4d5f00133b71e3a7fbb207...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20211210-231726/Lukas-Czerner/ext4-implement-support-for-get-set-fs-label/20211112-060030
git checkout 3645884240a4d5f00133b71e3a7fbb2070588706
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash fs/ext4/
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 >>):
>> fs/ext4/ioctl.c:45:5: warning: no previous prototype for function 'ext4_modify_primary_sb' [-Wmissing-prototypes]
int ext4_modify_primary_sb(struct super_block *sb, handle_t *handle,
^
fs/ext4/ioctl.c:45:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int ext4_modify_primary_sb(struct super_block *sb, handle_t *handle,
^
static
>> fs/ext4/ioctl.c:165:5: warning: no previous prototype for function 'ext4_modify_superblocks_fn' [-Wmissing-prototypes]
int ext4_modify_superblocks_fn(struct super_block *sb,
^
fs/ext4/ioctl.c:165:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int ext4_modify_superblocks_fn(struct super_block *sb,
^
static
2 warnings generated.
vim +/ext4_modify_primary_sb +45 fs/ext4/ioctl.c
44
> 45 int ext4_modify_primary_sb(struct super_block *sb, handle_t *handle,
46 ext4_modify_sb_callback func,
47 const void *arg)
48 {
49 int err = 0;
50 struct ext4_sb_info *sbi = EXT4_SB(sb);
51 struct buffer_head *bh = sbi->s_sbh;
52 struct ext4_super_block *es = sbi->s_es;
53
54 trace_ext4_modify_sb(sb, bh->b_blocknr, 1);
55
56 BUFFER_TRACE(bh, "get_write_access");
57 err = ext4_journal_get_write_access(handle, sb,
58 bh,
59 EXT4_JTR_NONE);
60 if (err)
61 goto out_err;
62
63 lock_buffer(bh);
64 func(es, arg);
65 ext4_superblock_csum_set(sb);
66 unlock_buffer(bh);
67
68 if (buffer_write_io_error(bh) || !buffer_uptodate(bh)) {
69 ext4_msg(sbi->s_sb, KERN_ERR, "previous I/O error to "
70 "superblock detected");
71 clear_buffer_write_io_error(bh);
72 set_buffer_uptodate(bh);
73 }
74
75 err = ext4_handle_dirty_metadata(handle, NULL, bh);
76 if (err)
77 goto out_err;
78 err = sync_dirty_buffer(bh);
79 out_err:
80 ext4_std_error(sb, err);
81 return err;
82 }
83
84 /*
85 * Update one backup superblcok in the group 'grp' using the primary
86 * superblock data. If the handle is NULL the modification is not
87 * journalled.
88 *
89 * Returns: 0 when no modification was done (no superblock in the group)
90 * 1 when the modification was successful
91 * <0 on error
92 */
93 static int ext4_update_backup_sb(struct super_block *sb, handle_t *handle,
94 ext4_group_t grp)
95 {
96 int err = 0;
97 ext4_fsblk_t sb_block;
98 struct buffer_head *bh;
99 unsigned long offset = 0;
100
101 if (!ext4_bg_has_super(sb, grp))
102 return 0;
103
104 /*
105 * For the group 0 there is always 1k padding, so we have
106 * either adjust offset, or sb_block depending on blocksize
107 */
108 if (grp == 0) {
109 sb_block = 1 * EXT4_MIN_BLOCK_SIZE;
110 offset = do_div(sb_block, sb->s_blocksize);
111 } else {
112 sb_block = ext4_group_first_block_no(sb, grp);
113 offset = 0;
114 }
115
116 trace_ext4_modify_sb(sb, sb_block, handle ? 1 : 0);
117
118 bh = sb_getblk(sb, sb_block);
119 if (IS_ERR(bh))
120 return PTR_ERR(bh);
121
122 if (handle) {
123 BUFFER_TRACE(bh, "get_write_access");
124 err = ext4_journal_get_write_access(handle, sb,
125 bh,
126 EXT4_JTR_NONE);
127 if (err)
128 goto out_bh;
129 }
130
131 lock_buffer(bh);
132 memcpy(bh->b_data + offset, EXT4_SB(sb)->s_es,
133 sizeof(struct ext4_super_block));
134 set_buffer_uptodate(bh);
135 unlock_buffer(bh);
136
137 if (err)
138 goto out_bh;
139
140 if (handle) {
141 err = ext4_handle_dirty_metadata(handle, NULL, bh);
142 if (err)
143 goto out_bh;
144 } else {
145 BUFFER_TRACE(bh, "marking dirty");
146 mark_buffer_dirty(bh);
147 }
148 err = sync_dirty_buffer(bh);
149
150 out_bh:
151 brelse(bh);
152 ext4_std_error(sb, err);
153 return (err) ? err : 1;
154 }
155
156 /*
157 * Modify primary and backup superblocks using the provided function
158 * func and argument arg.
159 *
160 * Only the primary superblock and at most two backup superblock
161 * modifications are journalled; the rest is modified without journal.
162 * This is safe because e2fsck will re-write them if there is a problem,
163 * and we're very unlikely to ever need more than two backups.
164 */
> 165 int ext4_modify_superblocks_fn(struct super_block *sb,
166 ext4_modify_sb_callback func,
167 const void *arg)
168 {
169 handle_t *handle;
170 ext4_group_t ngroups;
171 unsigned int three = 1;
172 unsigned int five = 5;
173 unsigned int seven = 7;
174 int err = 0, ret, i;
175 ext4_group_t grp, primary_grp;
176 struct ext4_sb_info *sbi = EXT4_SB(sb);
177
178 /*
179 * We can't modify superblocks while the online resize is running
180 */
181 if (test_and_set_bit_lock(EXT4_FLAGS_RESIZING,
182 &sbi->s_ext4_flags)) {
183 ext4_msg(sb, KERN_ERR, "Can't modify superblock while"
184 "performing online resize");
185 return -EBUSY;
186 }
187
188 /*
189 * We're only going to modify primary superblock and two
190 * backup superblocks in this transaction.
191 */
192 handle = ext4_journal_start_sb(sb, EXT4_HT_MISC, 3);
193 if (IS_ERR(handle)) {
194 err = PTR_ERR(handle);
195 goto out;
196 }
197
198 /* Modify primary superblock */
199 err = ext4_modify_primary_sb(sb, handle, func, arg);
200 if (err) {
201 ext4_msg(sb, KERN_ERR, "Failed to modify primary "
202 "superblock");
203 goto out_journal;
204 }
205
206 primary_grp = ext4_get_group_number(sb, sbi->s_sbh->b_blocknr);
207 ngroups = ext4_get_groups_count(sb);
208
209 /*
210 * Update backup superblocks. We have to start from group 0
211 * because it might not be where the primary superblock is
212 * if the fs is mounted with -o sb=<backup_sb_block>
213 */
214 i = 0;
215 grp = 0;
216 while (grp < ngroups) {
217 /* Skip primary superblock */
218 if (grp == primary_grp)
219 goto next_grp;
220
221 ret = ext4_update_backup_sb(sb, handle, grp);
222 if (ret < 0) {
223 err = ret;
224 goto out_journal;
225 }
226
227 i += ret;
228 if (handle && i > 1) {
229 /*
230 * We're only journalling primary superblock and
231 * two backup superblocks; the rest is not
232 * journalled.
233 */
234 err = ext4_journal_stop(handle);
235 if (err)
236 goto out;
237 handle = NULL;
238 }
239 next_grp:
240 grp = ext4_list_backups(sb, &three, &five, &seven);
241 }
242
243 out_journal:
244 if (handle) {
245 ret = ext4_journal_stop(handle);
246 if (ret && !err)
247 err = ret;
248 }
249 out:
250 clear_bit_unlock(EXT4_FLAGS_RESIZING, &sbi->s_ext4_flags);
251 smp_mb__after_atomic();
252 return err ? err : 0;
253 }
254
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH V2] net: bonding: Add support for IPV6 ns/na
by kernel test robot
Hi Sun,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.16-rc4 next-20211208]
[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/Sun-Shouxin/net-bonding-Add-supp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git c741e49150dbb0c0aebe234389f4aa8b47958fa8
config: nios2-randconfig-r026-20211210 (https://download.01.org/0day-ci/archive/20211211/202112110146.ZZvFe0rG-lk...)
compiler: nios2-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/f86d634c3ced7ec9b5af72e4b92bca681...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sun-Shouxin/net-bonding-Add-support-for-IPV6-ns-na/20211210-210940
git checkout f86d634c3ced7ec9b5af72e4b92bca681be033f7
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash drivers/net/bonding/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/bonding/bond_alb.c: In function 'alb_change_nd_option':
>> drivers/net/bonding/bond_alb.c:1318:47: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? [-Werror=implicit-function-declaration]
1318 | icmp6h->icmp6_cksum = csum_ipv6_magic(&ip6hdr->saddr,
| ^~~~~~~~~~~~~~~
| csum_tcpudp_magic
cc1: some warnings being treated as errors
vim +1318 drivers/net/bonding/bond_alb.c
1283
1284 static void alb_change_nd_option(struct sk_buff *skb, void *data)
1285 {
1286 struct nd_msg *msg = (struct nd_msg *)skb_transport_header(skb);
1287 struct nd_opt_hdr *nd_opt = (struct nd_opt_hdr *)msg->opt;
1288 struct net_device *dev = skb->dev;
1289 struct icmp6hdr *icmp6h = icmp6_hdr(skb);
1290 struct ipv6hdr *ip6hdr = ipv6_hdr(skb);
1291 u8 *lladdr = NULL;
1292 u32 ndoptlen = skb_tail_pointer(skb) - (skb_transport_header(skb) +
1293 offsetof(struct nd_msg, opt));
1294
1295 while (ndoptlen) {
1296 int l;
1297
1298 switch (nd_opt->nd_opt_type) {
1299 case ND_OPT_SOURCE_LL_ADDR:
1300 case ND_OPT_TARGET_LL_ADDR:
1301 lladdr = ndisc_opt_addr_data(nd_opt, dev);
1302 break;
1303
1304 default:
1305 lladdr = NULL;
1306 break;
1307 }
1308
1309 l = nd_opt->nd_opt_len << 3;
1310
1311 if (ndoptlen < l || l == 0)
1312 return;
1313
1314 if (lladdr) {
1315 memcpy(lladdr, data, dev->addr_len);
1316 icmp6h->icmp6_cksum = 0;
1317
> 1318 icmp6h->icmp6_cksum = csum_ipv6_magic(&ip6hdr->saddr,
1319 &ip6hdr->daddr,
1320 ntohs(ip6hdr->payload_len),
1321 IPPROTO_ICMPV6,
1322 csum_partial(icmp6h,
1323 ntohs(ip6hdr->payload_len), 0));
1324 }
1325 ndoptlen -= l;
1326 nd_opt = ((void *)nd_opt) + l;
1327 }
1328 }
1329
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH 1/2] ASoC: add ES8156 codec driver
by kernel test robot
Hi Shumin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on broonie-sound/for-next]
[also build test WARNING on v5.16-rc4 next-20211208]
[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/Shumin-Chen/This-patches-provide...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: x86_64-buildonly-randconfig-r003-20211210 (https://download.01.org/0day-ci/archive/20211211/202112110101.i4FDNZ9c-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/4ea33be548d361d7097073473fb018e01...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Shumin-Chen/This-patches-provide-ASoc-codec-support-for-ES8156/20211210-231527
git checkout 4ea33be548d361d7097073473fb018e016091622
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/soc/codecs/
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 >>):
>> sound/soc/codecs/es8156.c:402:5: warning: no previous prototype for 'es8156_headset_detect' [-Wmissing-prototypes]
402 | int es8156_headset_detect(int jack_insert)
| ^~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/es8156.c:421:13: warning: 'hp_work' defined but not used [-Wunused-function]
421 | static void hp_work(struct work_struct *work)
| ^~~~~~~
sound/soc/codecs/es8156.c:386:20: warning: 'es8156_irq_handler' defined but not used [-Wunused-function]
386 | static irqreturn_t es8156_irq_handler(int irq, void *data)
| ^~~~~~~~~~~~~~~~~~
vim +/es8156_headset_detect +402 sound/soc/codecs/es8156.c
395
396 /*
397 * Call from rk_headset_irq_hook_adc.c
398 *
399 * Enable micbias for HOOK detection and disable external Amplifier
400 * when jack insertion.
401 */
> 402 int es8156_headset_detect(int jack_insert)
403 {
404 struct es8156_priv *es8156;
405
406 if (!es8156_codec)
407 return -1;
408
409 es8156 = snd_soc_component_get_drvdata(es8156_codec);
410
411 es8156->hp_inserted = jack_insert;
412
413 /* enable micbias and disable PA */
414 if (jack_insert)
415 es8156_enable_spk(es8156, false);
416
417 return 0;
418 }
419 EXPORT_SYMBOL(es8156_headset_detect);
420
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks