[mcgrof-next:20210708-block-fixes-v2 44/89] drivers/block/swim.c:780:26: error: 'swd' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210708-block-fixes-v2
head: db0174e39de7dc941f158ce53ee3af95b1635b62
commit: 7c4874d9d55df4c25a06b1c9004b1a29429a8f6b [44/89] block/swim: add a helper to remove disks
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210708-block-fixes-v2
git checkout 7c4874d9d55df4c25a06b1c9004b1a29429a8f6b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/block/
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/block/swim.c: In function 'swim_del_disks':
>> drivers/block/swim.c:780:26: error: 'swd' undeclared (first use in this function)
780 | for (drive = 0; drive < swd->floppy_count; drive++) {
| ^~~
drivers/block/swim.c:780:26: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/block/swim.c:783:8: error: 'fw' undeclared (first use in this function); did you mean 'fs'?
783 | if (fw->registered)
| ^~
| fs
>> drivers/block/swim.c:787:7: error: used struct type value where scalar is required
787 | if (fs->tag_set)
| ^~
drivers/block/swim.c: In function 'swim_floppy_init':
drivers/block/swim.c:851:19: warning: statement with no effect [-Wunused-value]
851 | swd->unit[drive].registered true;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~
>> drivers/block/swim.c:851:30: error: expected ';' before 'true'
851 | swd->unit[drive].registered true;
| ^ ~~~~
| ;
vim +/swd +780 drivers/block/swim.c
774
775 static void swim_del_disks(void)
776 {
777 int drive;
778 struct floppy_state *fs;
779
> 780 for (drive = 0; drive < swd->floppy_count; drive++) {
781 fs = swd->unit[drive];
782 if (fs->disk) {
> 783 if (fw->registered)
784 del_gendisk(fs->disk);
785 blk_cleanup_disk(fs->disk);
786 }
> 787 if (fs->tag_set)
788 blk_mq_free_tag_set(&fs->tag_set);
789 }
790
791 unregister_blkdev(FLOPPY_MAJOR, "fd");
792 }
793
794 static int swim_floppy_init(struct swim_priv *swd)
795 {
796 int err;
797 int drive;
798 struct swim __iomem *base = swd->base;
799
800 /* scan floppy drives */
801
802 swim_drive(base, INTERNAL_DRIVE);
803 if (swim_readbit(base, DRIVE_PRESENT) &&
804 !swim_readbit(base, ONEMEG_DRIVE))
805 swim_add_floppy(swd, INTERNAL_DRIVE);
806 swim_drive(base, EXTERNAL_DRIVE);
807 if (swim_readbit(base, DRIVE_PRESENT) &&
808 !swim_readbit(base, ONEMEG_DRIVE))
809 swim_add_floppy(swd, EXTERNAL_DRIVE);
810
811 /* register floppy drives */
812
813 err = register_blkdev(FLOPPY_MAJOR, "fd");
814 if (err) {
815 printk(KERN_ERR "Unable to get major %d for SWIM floppy\n",
816 FLOPPY_MAJOR);
817 return -EBUSY;
818 }
819
820 spin_lock_init(&swd->lock);
821
822 for (drive = 0; drive < swd->floppy_count; drive++) {
823 err = blk_mq_alloc_sq_tag_set(&swd->unit[drive].tag_set,
824 &swim_mq_ops, 2, BLK_MQ_F_SHOULD_MERGE);
825 if (err)
826 goto exit_put_disks;
827
828 swd->unit[drive].disk =
829 blk_mq_alloc_disk(&swd->unit[drive].tag_set,
830 &swd->unit[drive]);
831 if (IS_ERR(swd->unit[drive].disk)) {
832 blk_mq_free_tag_set(&swd->unit[drive].tag_set);
833 err = PTR_ERR(swd->unit[drive].disk);
834 goto exit_put_disks;
835 }
836
837 swd->unit[drive].swd = swd;
838 }
839
840 for (drive = 0; drive < swd->floppy_count; drive++) {
841 swd->unit[drive].disk->flags = GENHD_FL_REMOVABLE;
842 swd->unit[drive].disk->major = FLOPPY_MAJOR;
843 swd->unit[drive].disk->first_minor = drive;
844 swd->unit[drive].disk->minors = 1;
845 sprintf(swd->unit[drive].disk->disk_name, "fd%d", drive);
846 swd->unit[drive].disk->fops = &floppy_fops;
847 swd->unit[drive].disk->events = DISK_EVENT_MEDIA_CHANGE;
848 swd->unit[drive].disk->private_data = &swd->unit[drive];
849 set_capacity(swd->unit[drive].disk, 2880);
850 add_disk(swd->unit[drive].disk);
> 851 swd->unit[drive].registered true;
852 }
853
854 return 0;
855
856 exit_put_disks:
857 unregister_blkdev(FLOPPY_MAJOR, "fd");
858 do {
859 struct gendisk *disk = swd->unit[drive].disk;
860
861 if (!disk)
862 continue;
863 blk_cleanup_disk(disk);
864 blk_mq_free_tag_set(&swd->unit[drive].tag_set);
865 } while (drive--);
866 return err;
867 }
868
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[xlnx:xlnx_rebase_v5.4 906/1765] ld.lld: error: duplicate symbol: dwc3_simple_check_quirks
by kernel test robot
Hi Piyush,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: 2f686fa6c0bf7fa168dc45dd7ce1359217212911
commit: 782658c51bbcd85a39a5d9a51b57224f185d7670 [906/1765] usb: dwc3: Correct errors when dwc3 loaded as module
config: x86_64-randconfig-r013-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 87039c048c0cbc3d8cbba86187269b006bf2f373)
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/Xilinx/linux-xlnx/commit/782658c51bbcd85a39a5d9a51b572...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 782658c51bbcd85a39a5d9a51b57224f185d7670
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash M=drivers/usb/dwc3
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/usb/dwc3/core.c:36:
drivers/usb/dwc3/core.h:1429:6: warning: no previous prototype for function 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
drivers/usb/dwc3/core.h:1429:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
static
drivers/usb/dwc3/core.h:1431:6: warning: no previous prototype for function 'dwc3_set_simple_data' [-Wmissing-prototypes]
void dwc3_set_simple_data(struct dwc3 *dwc)
^
drivers/usb/dwc3/core.h:1431:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_set_simple_data(struct dwc3 *dwc)
^
static
>> drivers/usb/dwc3/core.h:1433:6: warning: no previous prototype for function 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
void dwc3_simple_check_quirks(struct dwc3 *dwc)
^
drivers/usb/dwc3/core.h:1433:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_simple_check_quirks(struct dwc3 *dwc)
^
static
3 warnings generated.
--
>> ld.lld: error: duplicate symbol: dwc3_simple_check_quirks
>>> defined at core.c
>>> drivers/usb/dwc3/core.o:(dwc3_simple_check_quirks)
>>> defined at host.c
>>> drivers/usb/dwc3/host.o:(.text+0x20)
--
>> ld.lld: error: duplicate symbol: dwc3_simple_check_quirks
>>> defined at core.c
>>> drivers/usb/dwc3/core.o:(dwc3_simple_check_quirks)
>>> defined at debugfs.c
>>> drivers/usb/dwc3/debugfs.o:(.text+0x20)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v2 09/12] mm/vm_debug_pgtable: Use struct pgtable_debug_args in PUD modifying tests
by kernel test robot
Hi Gavin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.14-rc2]
[cannot apply to hnaz-linux-mm/master linux/master next-20210719]
[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/Gavin-Shan/mm-debug_vm_pgtable-E...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2734d6c1b1a089fb593ef6a23d4b70903526fe0c
config: x86_64-randconfig-c002-20210719 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/69db26024e6bd48423ebc83b0f83b7b52...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Gavin-Shan/mm-debug_vm_pgtable-Enhancements/20210719-134236
git checkout 69db26024e6bd48423ebc83b0f83b7b52217b624
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
mm/debug_vm_pgtable.c: In function 'pud_huge_tests':
>> mm/debug_vm_pgtable.c:445:8: warning: variable 'pud' set but not used [-Wunused-but-set-variable]
445 | pud_t pud;
| ^~~
mm/debug_vm_pgtable.c: In function 'debug_vm_pgtable':
mm/debug_vm_pgtable.c:1143:42: warning: variable 'pgd_aligned' set but not used [-Wunused-but-set-variable]
1143 | unsigned long pud_aligned, p4d_aligned, pgd_aligned;
| ^~~~~~~~~~~
mm/debug_vm_pgtable.c:1143:29: warning: variable 'p4d_aligned' set but not used [-Wunused-but-set-variable]
1143 | unsigned long pud_aligned, p4d_aligned, pgd_aligned;
| ^~~~~~~~~~~
mm/debug_vm_pgtable.c:1143:16: warning: variable 'pud_aligned' set but not used [-Wunused-but-set-variable]
1143 | unsigned long pud_aligned, p4d_aligned, pgd_aligned;
| ^~~~~~~~~~~
mm/debug_vm_pgtable.c:1142:36: warning: variable 'pmd_aligned' set but not used [-Wunused-but-set-variable]
1142 | unsigned long vaddr, pte_aligned, pmd_aligned;
| ^~~~~~~~~~~
mm/debug_vm_pgtable.c:1140:17: warning: variable 'protnone' set but not used [-Wunused-but-set-variable]
1140 | pgprot_t prot, protnone;
| ^~~~~~~~
mm/debug_vm_pgtable.c:1140:11: warning: variable 'prot' set but not used [-Wunused-but-set-variable]
1140 | pgprot_t prot, protnone;
| ^~~~
vim +/pud +445 mm/debug_vm_pgtable.c
5fe77be6bf14bf Shixin Liu 2021-06-30 442
69db26024e6bd4 Gavin Shan 2021-07-19 443 static void __init pud_huge_tests(struct pgtable_debug_args *args)
a5c3b9ffb0f404 Anshuman Khandual 2020-08-06 444 {
5fe77be6bf14bf Shixin Liu 2021-06-30 @445 pud_t pud;
5fe77be6bf14bf Shixin Liu 2021-06-30 446
69db26024e6bd4 Gavin Shan 2021-07-19 447 if (!arch_vmap_pud_supported(args->page_prot))
5fe77be6bf14bf Shixin Liu 2021-06-30 448 return;
5fe77be6bf14bf Shixin Liu 2021-06-30 449
5fe77be6bf14bf Shixin Liu 2021-06-30 450 pr_debug("Validating PUD huge\n");
5fe77be6bf14bf Shixin Liu 2021-06-30 451 /*
5fe77be6bf14bf Shixin Liu 2021-06-30 452 * X86 defined pud_set_huge() verifies that the given
5fe77be6bf14bf Shixin Liu 2021-06-30 453 * PUD is not a populated non-leaf entry.
5fe77be6bf14bf Shixin Liu 2021-06-30 454 */
69db26024e6bd4 Gavin Shan 2021-07-19 455 WRITE_ONCE(*(args->pudp), __pud(0));
69db26024e6bd4 Gavin Shan 2021-07-19 456 WARN_ON(!pud_set_huge(args->pudp, __pfn_to_phys(args->fixed_pud_pfn),
69db26024e6bd4 Gavin Shan 2021-07-19 457 args->page_prot));
69db26024e6bd4 Gavin Shan 2021-07-19 458 WARN_ON(!pud_clear_huge(args->pudp));
69db26024e6bd4 Gavin Shan 2021-07-19 459 pud = READ_ONCE(*(args->pudp));
a5c3b9ffb0f404 Anshuman Khandual 2020-08-06 460 }
5fe77be6bf14bf Shixin Liu 2021-06-30 461 #else /* !CONFIG_HAVE_ARCH_HUGE_VMAP */
54b1f4b50ddb0f Gavin Shan 2021-07-19 462 static void __init pmd_huge_tests(struct pgtable_debug_args *args) { }
69db26024e6bd4 Gavin Shan 2021-07-19 463 static void __init pud_huge_tests(struct pgtable_debug_args *args) { }
5fe77be6bf14bf Shixin Liu 2021-06-30 464 #endif /* CONFIG_HAVE_ARCH_HUGE_VMAP */
399145f9eb6c67 Anshuman Khandual 2020-06-04 465
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [RFC 2/2] drm/amd/display: Use PPC FPU functions
by kernel test robot
Hi Anson,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on powerpc/next]
[also build test ERROR on linus/master v5.14-rc2 next-20210720]
[cannot apply to paulus-powerpc/kvm-ppc-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/Anson-Jacob/Add-generic-FPU-api-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: alpha-buildonly-randconfig-r002-20210720 (attached as .config)
compiler: alpha-linux-gcc (GCC) 10.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/0day-ci/linux/commit/46ec3bc66107042f3b73b08f66d88f233...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Anson-Jacob/Add-generic-FPU-api-similar-to-x86/20210720-143354
git checkout 46ec3bc66107042f3b73b08f66d88f233c86f8f3
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash
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/amd/amdgpu/../display/dc/dm_services_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:66,
from drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:66,
from drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:66,
from drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:29:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h: In function 'dc_fixpt_shl':
>> drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:212:2: error: implicit declaration of function 'ASSERT' [-Werror=implicit-function-declaration]
212 | ASSERT(((arg.value >= 0) && (arg.value <= LLONG_MAX >> shift)) ||
| ^~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/irq_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:34,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:66,
from drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:29:
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h: At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dp_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:66,
from drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_hw_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:66,
from drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
cc1: some warnings being treated as errors
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:29:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h: In function 'dc_fixpt_shl':
>> drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:212:2: error: implicit declaration of function 'ASSERT' [-Werror=implicit-function-declaration]
212 | ASSERT(((arg.value >= 0) && (arg.value <= LLONG_MAX >> shift)) ||
| ^~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/irq_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:34,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:29:
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h: At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dp_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_hw_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:30:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/hw_shared.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/opp.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:38,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:30:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:37:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/modules/inc/mod_hdcp.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:49:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_atomic_commit_tail':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:8983:5: error: implicit declaration of function 'DC_ERR'; did you mean 'IS_ERR'? [-Werror=implicit-function-declaration]
8983 | DC_ERR("got no status for stream %p on acrtc%p\n", dm_new_crtc_state->stream, acrtc);
| ^~~~~~
| IS_ERR
cc1: some warnings being treated as errors
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_irq.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_irq.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_irq.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h: In function 'dc_fixpt_shl':
>> drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:212:2: error: implicit declaration of function 'ASSERT' [-Werror=implicit-function-declaration]
212 | ASSERT(((arg.value >= 0) && (arg.value <= LLONG_MAX >> shift)) ||
| ^~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/irq_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:34,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_irq.c:26:
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h: At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dp_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_irq.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_hw_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_irq.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_irq.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/hw_shared.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/opp.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:38,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_irq.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
cc1: some warnings being treated as errors
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:29:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h: In function 'dc_fixpt_shl':
>> drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:212:2: error: implicit declaration of function 'ASSERT' [-Werror=implicit-function-declaration]
212 | ASSERT(((arg.value >= 0) && (arg.value <= LLONG_MAX >> shift)) ||
| ^~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/irq_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:34,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:29:
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h: At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dp_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_hw_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/include/logger_interface.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
cc1: some warnings being treated as errors
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/modules/inc/mod_hdcp.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h: In function 'dc_fixpt_shl':
>> drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:212:2: error: implicit declaration of function 'ASSERT' [-Werror=implicit-function-declaration]
212 | ASSERT(((arg.value >= 0) && (arg.value <= LLONG_MAX >> shift)) ||
| ^~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/irq_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:34,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.c:26:
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h: At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dp_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_hw_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/hw_shared.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/opp.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:38,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35,
from drivers/gpu/drm/amd/amdgpu/../display/include/bios_parser_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/clock_source.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw_sequencer.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:40,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.h:31,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_hdcp.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:27: error: unterminated #ifndef
27 | #ifndef _OS_TYPES_H_
|
cc1: some warnings being treated as errors
..
vim +27 drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h
4562236b3bc0a2 Harry Wentland 2017-09-12 @27 #ifndef _OS_TYPES_H_
4562236b3bc0a2 Harry Wentland 2017-09-12 28 #define _OS_TYPES_H_
4562236b3bc0a2 Harry Wentland 2017-09-12 29
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[xlnx:xlnx_rebase_v5.4 904/1765] ld.lld: error: duplicate symbol: dwc3_set_simple_data
by kernel test robot
Hi Michal,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: 2f686fa6c0bf7fa168dc45dd7ce1359217212911
commit: 3d600fd776cbda29abdea084f7437f7d9102b2a5 [904/1765] usb: dwc3: Add support for removing vbus when suspended
config: x86_64-randconfig-r013-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 87039c048c0cbc3d8cbba86187269b006bf2f373)
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/Xilinx/linux-xlnx/commit/3d600fd776cbda29abdea084f7437...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 3d600fd776cbda29abdea084f7437f7d9102b2a5
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash M=drivers/usb/dwc3
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/usb/dwc3/core.c:35:
drivers/usb/dwc3/core.h:1419:6: warning: no previous prototype for function 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
drivers/usb/dwc3/core.h:1419:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
static
>> drivers/usb/dwc3/core.h:1421:6: warning: no previous prototype for function 'dwc3_set_simple_data' [-Wmissing-prototypes]
void dwc3_set_simple_data(struct dwc3 *dwc)
^
drivers/usb/dwc3/core.h:1421:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_set_simple_data(struct dwc3 *dwc)
^
static
2 warnings generated.
--
>> ld.lld: error: duplicate symbol: dwc3_set_simple_data
>>> defined at core.c
>>> drivers/usb/dwc3/core.o:(dwc3_set_simple_data)
>>> defined at host.c
>>> drivers/usb/dwc3/host.o:(.text+0x10)
--
>> ld.lld: error: duplicate symbol: dwc3_set_simple_data
>>> defined at core.c
>>> drivers/usb/dwc3/core.o:(dwc3_set_simple_data)
>>> defined at debugfs.c
>>> drivers/usb/dwc3/debugfs.o:(.text+0x10)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[xlnx:xlnx_rebase_v5.4 903/1765] ld.lld: error: duplicate symbol: dwc3_simple_wakeup_capable
by kernel test robot
Hi Michal,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: 2f686fa6c0bf7fa168dc45dd7ce1359217212911
commit: 6d0468b837bc2b3cce625f59904d137e63637b5d [903/1765] usb: dwc3: Add support for clock disabling during suspend
config: x86_64-randconfig-r013-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 87039c048c0cbc3d8cbba86187269b006bf2f373)
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/Xilinx/linux-xlnx/commit/6d0468b837bc2b3cce625f59904d1...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 6d0468b837bc2b3cce625f59904d137e63637b5d
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash M=drivers/usb/dwc3
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/usb/dwc3/core.c:35:
>> drivers/usb/dwc3/core.h:1418:6: warning: no previous prototype for function 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
drivers/usb/dwc3/core.h:1418:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
static
1 warning generated.
--
>> ld.lld: error: duplicate symbol: dwc3_simple_wakeup_capable
>>> defined at core.c
>>> drivers/usb/dwc3/core.o:(dwc3_simple_wakeup_capable)
>>> defined at host.c
>>> drivers/usb/dwc3/host.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: dwc3_simple_wakeup_capable
>>> defined at core.c
>>> drivers/usb/dwc3/core.o:(dwc3_simple_wakeup_capable)
>>> defined at debugfs.c
>>> drivers/usb/dwc3/debugfs.o:(.text+0x0)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[sound:for-next 92/92] sound/isa/sc6000.c:534:35: sparse: sparse: incorrect type in initializer (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head: 9b7843d1e125dca0d6ed0af9e8dd709d41eb25ad
commit: 9b7843d1e125dca0d6ed0af9e8dd709d41eb25ad [92/92] ALSA: sc6000: Assign vport directly on card's private_data
config: x86_64-randconfig-s021-20210718 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?i...
git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
git fetch --no-tags sound for-next
git checkout 9b7843d1e125dca0d6ed0af9e8dd709d41eb25ad
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
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 >>)
>> sound/isa/sc6000.c:534:35: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char [noderef] __iomem *vport @@ got void *private_data @@
sound/isa/sc6000.c:534:35: sparse: expected char [noderef] __iomem *vport
sound/isa/sc6000.c:534:35: sparse: got void *private_data
>> sound/isa/sc6000.c:585:28: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *private_data @@ got char [noderef] __iomem *[assigned] vport @@
sound/isa/sc6000.c:585:28: sparse: expected void *private_data
sound/isa/sc6000.c:585:28: sparse: got char [noderef] __iomem *[assigned] vport
vim +534 sound/isa/sc6000.c
531
532 static void snd_sc6000_free(struct snd_card *card)
533 {
> 534 char __iomem *vport = card->private_data;
535
536 if (vport)
537 sc6000_setup_board(vport, 0);
538 }
539
540 static int snd_sc6000_probe(struct device *devptr, unsigned int dev)
541 {
542 static const int possible_irqs[] = { 5, 7, 9, 10, 11, -1 };
543 static const int possible_dmas[] = { 1, 3, 0, -1 };
544 int err;
545 int xirq = irq[dev];
546 int xdma = dma[dev];
547 struct snd_card *card;
548 struct snd_wss *chip;
549 struct snd_opl3 *opl3;
550 char __iomem *vport;
551 char __iomem *vmss_port;
552
553 err = snd_devm_card_new(devptr, index[dev], id[dev], THIS_MODULE,
554 0, &card);
555 if (err < 0)
556 return err;
557
558 if (xirq == SNDRV_AUTO_IRQ) {
559 xirq = snd_legacy_find_free_irq(possible_irqs);
560 if (xirq < 0) {
561 snd_printk(KERN_ERR PFX "unable to find a free IRQ\n");
562 return -EBUSY;
563 }
564 }
565
566 if (xdma == SNDRV_AUTO_DMA) {
567 xdma = snd_legacy_find_free_dma(possible_dmas);
568 if (xdma < 0) {
569 snd_printk(KERN_ERR PFX "unable to find a free DMA\n");
570 return -EBUSY;
571 }
572 }
573
574 if (!devm_request_region(devptr, port[dev], 0x10, DRV_NAME)) {
575 snd_printk(KERN_ERR PFX
576 "I/O port region is already in use.\n");
577 return -EBUSY;
578 }
579 vport = devm_ioport_map(devptr, port[dev], 0x10);
580 if (!vport) {
581 snd_printk(KERN_ERR PFX
582 "I/O port cannot be iomapped.\n");
583 return -EBUSY;
584 }
> 585 card->private_data = vport;
586
587 /* to make it marked as used */
588 if (!devm_request_region(devptr, mss_port[dev], 4, DRV_NAME)) {
589 snd_printk(KERN_ERR PFX
590 "SC-6000 port I/O port region is already in use.\n");
591 return -EBUSY;
592 }
593 vmss_port = devm_ioport_map(devptr, mss_port[dev], 4);
594 if (!vmss_port) {
595 snd_printk(KERN_ERR PFX
596 "MSS port I/O cannot be iomapped.\n");
597 return -EBUSY;
598 }
599
600 snd_printd("Initializing BASE[0x%lx] IRQ[%d] DMA[%d] MIRQ[%d]\n",
601 port[dev], xirq, xdma,
602 mpu_irq[dev] == SNDRV_AUTO_IRQ ? 0 : mpu_irq[dev]);
603
604 err = sc6000_init_board(vport, vmss_port, dev);
605 if (err < 0)
606 return err;
607 card->private_free = snd_sc6000_free;
608
609 err = snd_wss_create(card, mss_port[dev] + 4, -1, xirq, xdma, -1,
610 WSS_HW_DETECT, 0, &chip);
611 if (err < 0)
612 return err;
613
614 err = snd_wss_pcm(chip, 0);
615 if (err < 0) {
616 snd_printk(KERN_ERR PFX
617 "error creating new WSS PCM device\n");
618 return err;
619 }
620 err = snd_wss_mixer(chip);
621 if (err < 0) {
622 snd_printk(KERN_ERR PFX "error creating new WSS mixer\n");
623 return err;
624 }
625 err = snd_sc6000_mixer(chip);
626 if (err < 0) {
627 snd_printk(KERN_ERR PFX "the mixer rewrite failed\n");
628 return err;
629 }
630 if (snd_opl3_create(card,
631 0x388, 0x388 + 2,
632 OPL3_HW_AUTO, 0, &opl3) < 0) {
633 snd_printk(KERN_ERR PFX "no OPL device at 0x%x-0x%x ?\n",
634 0x388, 0x388 + 2);
635 } else {
636 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL);
637 if (err < 0)
638 return err;
639 }
640
641 if (mpu_port[dev] != SNDRV_AUTO_PORT) {
642 if (mpu_irq[dev] == SNDRV_AUTO_IRQ)
643 mpu_irq[dev] = -1;
644 if (snd_mpu401_uart_new(card, 0,
645 MPU401_HW_MPU401,
646 mpu_port[dev], 0,
647 mpu_irq[dev], NULL) < 0)
648 snd_printk(KERN_ERR "no MPU-401 device at 0x%lx ?\n",
649 mpu_port[dev]);
650 }
651
652 strcpy(card->driver, DRV_NAME);
653 strcpy(card->shortname, "SC-6000");
654 sprintf(card->longname, "Gallant SC-6000 at 0x%lx, irq %d, dma %d",
655 mss_port[dev], xirq, xdma);
656
657 err = snd_card_register(card);
658 if (err < 0)
659 return err;
660
661 dev_set_drvdata(devptr, card);
662 return 0;
663 }
664
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v5 2/3] clocksource: Rewrite Xilinx AXI timer driver
by kernel test robot
Hi Sean,
I love your patch! Perhaps something to improve:
[auto build test WARNING on tip/timers/core]
[also build test WARNING on pwm/for-next linus/master v5.14-rc2 next-20210720]
[cannot apply to xlnx/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/Sean-Anderson/dt-bindings-pwm-Ad...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 2d0a9eb23ccfdf11308bec6db0bc007585d919d2
config: microblaze-randconfig-r003-20210720 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 10.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/0day-ci/linux/commit/94fdaff6f9a931388dfbeecb76ea7b50e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sean-Anderson/dt-bindings-pwm-Add-Xilinx-AXI-Timer/20210720-144903
git checkout 94fdaff6f9a931388dfbeecb76ea7b50eaa06711
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash
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 >>, old ones prefixed by <<):
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x530e8): Section mismatch in reference from the function xilinx_clocksource_init() to the function .init.text:sched_clock_register()
The function xilinx_clocksource_init() references
the function __init sched_clock_register().
This is often because xilinx_clocksource_init lacks a __init
annotation or the annotation of sched_clock_register is wrong.
The below error/warnings are from parent commit:
<< WARNING: modpost: vmlinux.o(.text+0xc650): Section mismatch in reference from the function pcibios_allocate_bus_resources() to the function .init.text:reparent_resources()
<< WARNING: modpost: vmlinux.o(.text.unlikely+0x1698): Section mismatch in reference from the function mm_cmdline_setup() to the variable .meminit.data:memblock
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[arnd-playground:asm-generic-uaccess-4 5/7] csky-linux-ld: reboot.c:undefined reference to `strncpy_from_user'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git asm-generic-uaccess-4
head: d7d80410412f516869e09904cffd817acaeec742
commit: 198667ecde061778d6236eb5f8fa4233929f4805 [5/7] asm-generic: uaccess: remove inline strncpy_from_user/strnlen_user
config: csky-defconfig (attached as .config)
compiler: csky-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground asm-generic-uaccess-4
git checkout 198667ecde061778d6236eb5f8fa4233929f4805
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash
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 >>):
csky-linux-ld: kernel/reboot.o: in function `__do_sys_reboot':
reboot.c:(.text+0x54e): undefined reference to `strncpy_from_user'
>> csky-linux-ld: reboot.c:(.text+0x610): undefined reference to `strncpy_from_user'
csky-linux-ld: kernel/module.o: in function `__do_sys_delete_module.constprop.0':
>> module.c:(.text+0x24b0): undefined reference to `strncpy_from_user'
>> csky-linux-ld: module.c:(.text+0x255c): undefined reference to `strncpy_from_user'
csky-linux-ld: fs/binfmt_elf.o: in function `$t':
>> binfmt_elf.c:(.text+0x13dc): undefined reference to `strnlen_user'
csky-linux-ld: fs/binfmt_elf.o: in function `$d':
binfmt_elf.c:(.text+0x1424): undefined reference to `strnlen_user'
csky-linux-ld: fs/binfmt_elf.o: in function `$t':
binfmt_elf.c:(.text+0x1484): undefined reference to `strnlen_user'
csky-linux-ld: fs/binfmt_elf.o: in function `$d':
binfmt_elf.c:(.text+0x1540): undefined reference to `strnlen_user'
csky-linux-ld: drivers/tty/vt/vt.o: in function `con_font_op':
>> vt.c:(.text+0x55d8): undefined reference to `strncpy_from_user'
>> csky-linux-ld: vt.c:(.text+0x5640): undefined reference to `strncpy_from_user'
csky-linux-ld: net/ipv4/tcp.o: in function `$t':
>> tcp.c:(.text+0x5732): undefined reference to `strncpy_from_user'
>> csky-linux-ld: tcp.c:(.text+0x5774): undefined reference to `strncpy_from_user'
csky-linux-ld: net/ipv4/tcp.o: in function `$d':
tcp.c:(.text+0x57e4): undefined reference to `strncpy_from_user'
csky-linux-ld: kernel/sys.o:sys.c:(.text+0x1f6e): more undefined references to `strncpy_from_user' follow
csky-linux-ld: kernel/auditsc.o: in function `audit_log_execve_info':
>> auditsc.c:(.text+0x536): undefined reference to `strnlen_user'
>> csky-linux-ld: auditsc.c:(.text+0x630): undefined reference to `strncpy_from_user'
>> csky-linux-ld: auditsc.c:(.text+0x638): undefined reference to `strnlen_user'
csky-linux-ld: mm/maccess.o: in function `strncpy_from_user_nofault':
>> maccess.c:(.text+0x2cc): undefined reference to `strncpy_from_user'
csky-linux-ld: mm/maccess.o: in function `strnlen_user_nofault':
>> maccess.c:(.text+0x332): undefined reference to `strnlen_user'
csky-linux-ld: mm/maccess.o: in function `$d':
maccess.c:(.text+0x354): undefined reference to `strncpy_from_user'
>> csky-linux-ld: maccess.c:(.text+0x358): undefined reference to `strnlen_user'
csky-linux-ld: mm/util.o: in function `strndup_user':
>> util.c:(.text+0x4f6): undefined reference to `strnlen_user'
>> csky-linux-ld: util.c:(.text+0x558): undefined reference to `strnlen_user'
csky-linux-ld: mm/memfd.o: in function `__do_sys_memfd_create':
>> memfd.c:(.text+0x1a): undefined reference to `strnlen_user'
>> csky-linux-ld: memfd.c:(.text+0x118): undefined reference to `strnlen_user'
csky-linux-ld: fs/exec.o:exec.c:(.text+0x12c8): more undefined references to `strnlen_user' follow
csky-linux-ld: fs/namei.o: in function `getname_flags.part.0':
>> namei.c:(.text+0x4604): undefined reference to `strncpy_from_user'
>> csky-linux-ld: namei.c:(.text+0x467a): undefined reference to `strncpy_from_user'
csky-linux-ld: namei.c:(.text+0x46c0): undefined reference to `strncpy_from_user'
csky-linux-ld: fs/xattr.o: in function `removexattr':
xattr.c:(.text+0x5ce): undefined reference to `strncpy_from_user'
csky-linux-ld: fs/xattr.o: in function `$d':
xattr.c:(.text+0x700): undefined reference to `strncpy_from_user'
csky-linux-ld: fs/xattr.o:xattr.c:(.text+0x928): more undefined references to `strncpy_from_user' follow
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months