[arm-integrator:kasan 6/6] arch/arm/mm/kasan_init.c:149:13: warning: no previous prototype for 'kasan_early_init'
by kernel test robot
Hi Andrey,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kasan
head: fb5e749f76335be35afcb3ea74ad3fa0926900db
commit: fb5e749f76335be35afcb3ea74ad3fa0926900db [6/6] ARM: Enable KASan for ARM
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.g...
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kasan
git checkout fb5e749f76335be35afcb3ea74ad3fa0926900db
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/arm/mm/kasan_init.c:149:13: warning: no previous prototype for 'kasan_early_init' [-Wmissing-prototypes]
149 | void __init kasan_early_init(void)
| ^~~~~~~~~~~~~~~~
vim +/kasan_early_init +149 arch/arm/mm/kasan_init.c
45e51f52af01a36 Linus Walleij 2018-06-05 148
45e51f52af01a36 Linus Walleij 2018-06-05 @149 void __init kasan_early_init(void)
45e51f52af01a36 Linus Walleij 2018-06-05 150 {
45e51f52af01a36 Linus Walleij 2018-06-05 151 struct proc_info_list *list;
45e51f52af01a36 Linus Walleij 2018-06-05 152
45e51f52af01a36 Linus Walleij 2018-06-05 153 /*
45e51f52af01a36 Linus Walleij 2018-06-05 154 * locate processor in the list of supported processor
45e51f52af01a36 Linus Walleij 2018-06-05 155 * types. The linker builds this table for us from the
45e51f52af01a36 Linus Walleij 2018-06-05 156 * entries in arch/arm/mm/proc-*.S
45e51f52af01a36 Linus Walleij 2018-06-05 157 */
45e51f52af01a36 Linus Walleij 2018-06-05 158 list = lookup_processor_type(read_cpuid_id());
45e51f52af01a36 Linus Walleij 2018-06-05 159 if (list) {
45e51f52af01a36 Linus Walleij 2018-06-05 160 #ifdef MULTI_CPU
45e51f52af01a36 Linus Walleij 2018-06-05 161 processor = *list->proc;
45e51f52af01a36 Linus Walleij 2018-06-05 162 #endif
45e51f52af01a36 Linus Walleij 2018-06-05 163 }
45e51f52af01a36 Linus Walleij 2018-06-05 164
45e51f52af01a36 Linus Walleij 2018-06-05 165 BUILD_BUG_ON((KASAN_SHADOW_END - (1UL << 29)) != KASAN_SHADOW_OFFSET);
45e51f52af01a36 Linus Walleij 2018-06-05 166 /*
45e51f52af01a36 Linus Walleij 2018-06-05 167 * We walk the page table and set all of the shadow memory to point
45e51f52af01a36 Linus Walleij 2018-06-05 168 * to the scratch page.
45e51f52af01a36 Linus Walleij 2018-06-05 169 */
45e51f52af01a36 Linus Walleij 2018-06-05 170 kasan_pgd_populate(KASAN_SHADOW_START, KASAN_SHADOW_END, true);
45e51f52af01a36 Linus Walleij 2018-06-05 171 }
45e51f52af01a36 Linus Walleij 2018-06-05 172
:::::: The code at line 149 was first introduced by commit
:::::: 45e51f52af01a36d42ccd7410649f86119b89bf4 ARM: Initialize the mapping of KASan shadow memory
:::::: TO: Linus Walleij <linus.walleij(a)linaro.org>
:::::: CC: Linus Walleij <linus.walleij(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[arm-integrator:kasan 1/6] arch/arm/mm/mmu.c:1302:13: warning: no previous prototype for 'arm_mm_clear_atag_pages'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kasan
head: fb5e749f76335be35afcb3ea74ad3fa0926900db
commit: 0ffa763acb72e5e1a0b75b27faa91767d971ba08 [1/6] ARM: Handle a device tree in lowmem
config: arm-spitz_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.g...
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kasan
git checkout 0ffa763acb72e5e1a0b75b27faa91767d971ba08
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm/mm/mmu.c:119:13: warning: no previous prototype for 'init_default_cache_policy' [-Wmissing-prototypes]
119 | void __init init_default_cache_policy(unsigned long pmd)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm/mm/mmu.c:1157:13: warning: no previous prototype for 'adjust_lowmem_bounds' [-Wmissing-prototypes]
1157 | void __init adjust_lowmem_bounds(void)
| ^~~~~~~~~~~~~~~~~~~~
>> arch/arm/mm/mmu.c:1302:13: warning: no previous prototype for 'arm_mm_clear_atag_pages' [-Wmissing-prototypes]
1302 | void __init arm_mm_clear_atag_pages(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/arm/mm/mmu.c:1667:13: warning: no previous prototype for 'paging_init' [-Wmissing-prototypes]
1667 | void __init paging_init(const struct machine_desc *mdesc)
| ^~~~~~~~~~~
arch/arm/mm/mmu.c:1691:13: warning: no previous prototype for 'early_mm_init' [-Wmissing-prototypes]
1691 | void __init early_mm_init(const struct machine_desc *mdesc)
| ^~~~~~~~~~~~~
vim +/arm_mm_clear_atag_pages +1302 arch/arm/mm/mmu.c
1301
> 1302 void __init arm_mm_clear_atag_pages(void)
1303 {
1304 unsigned long addr;
1305 unsigned long atags;
1306 phys_addr_t end;
1307
1308 /*
1309 * Clear out the kernel space mappings used by the attached DTB if
1310 * it happens to end up in lowmem.
1311 */
1312 end = memblock.memory.regions[0].base + memblock.memory.regions[0].size;
1313 if (end >= arm_lowmem_limit)
1314 end = arm_lowmem_limit;
1315 atags = __phys_to_virt(__atags_pointer);
1316 atags &= PMD_MASK;
1317 for (addr = __phys_to_virt(end);
1318 addr < VMALLOC_START; addr += PMD_SIZE) {
1319 if (addr >= atags && addr < (atags + 2 * PMD_SIZE)) {
1320 pr_info("Clear ATAGs/DTB PMD @0x%08lx\n", addr);
1321 pmd_clear(pmd_off_k(addr));
1322 }
1323 }
1324 }
1325
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH 1/4] of/fdt: Update zone_dma_bits when running in bcm2711
by kernel test robot
Hi Nicolas,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20201001]
[also build test WARNING on v5.9-rc7]
[cannot apply to robh/for-next arm64/for-next/core hnaz-linux-mm/master linus/master v5.9-rc7 v5.9-rc6 v5.9-rc5]
[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/Nicolas-Saenz-Julienne/arm64-Def...
base: d39294091fee6b89d9c4a683bb19441b25098330
config: arm64-randconfig-r005-20200930 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bcd05599d0e53977a963799d6ee4f6e0bc21331b)
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://github.com/0day-ci/linux/commit/7d073ab6c280772b1bcf9e337528be213...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Nicolas-Saenz-Julienne/arm64-Default-to-32-bit-wide-ZONE_DMA/20201002-002007
git checkout 7d073ab6c280772b1bcf9e337528be2138d0bc85
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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/of/fdt.c:1202:13: warning: no previous prototype for function 'early_init_dt_update_zone_dma_bits' [-Wmissing-prototypes]
void __init early_init_dt_update_zone_dma_bits(void)
^
drivers/of/fdt.c:1202:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init early_init_dt_update_zone_dma_bits(void)
^
static
1 warning generated.
vim +/early_init_dt_update_zone_dma_bits +1202 drivers/of/fdt.c
1201
> 1202 void __init early_init_dt_update_zone_dma_bits(void)
1203 {
1204 unsigned long dt_root = of_get_flat_dt_root();
1205
1206 if (of_flat_dt_is_compatible(dt_root, "brcm,bcm2711"))
1207 zone_dma_bits = 30;
1208 }
1209
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH net-next v2 1/2] Makefile.extrawarn: Add symbol for W=1 warnings for today
by kernel test robot
Hi Andrew,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Andrew-Lunn/driver-net-ethernet-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git e13dbc4f41db7f7b86f17a2efd7fbe19fc5b6d7a
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/b50d78df08d105cf0f0f2a1f4d2225656...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andrew-Lunn/driver-net-ethernet-W-1-by-default/20201001-091431
git checkout b50d78df08d105cf0f0f2a1f4d2225656fd531cc
# save the attached .config to linux build tree
make W=1 ARCH=i386
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/firmware/efi/libstub/x86-stub.c:669:15: warning: no previous prototype for 'efi_main' [-Wmissing-prototypes]
669 | unsigned long efi_main(efi_handle_t handle,
| ^~~~~~~~
vim +/efi_main +669 drivers/firmware/efi/libstub/x86-stub.c
291f36325f9f252 arch/x86/boot/compressed/eboot.c Matt Fleming 2011-12-12 663
9ca8f72a9297f20 arch/x86/boot/compressed/eboot.c Matt Fleming 2012-07-19 664 /*
8acf63efa1712fa drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 665 * On success, we return the address of startup_32, which has potentially been
8acf63efa1712fa drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 666 * relocated by efi_relocate_kernel.
8acf63efa1712fa drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 667 * On failure, we exit to the firmware via efi_exit instead of returning.
9ca8f72a9297f20 arch/x86/boot/compressed/eboot.c Matt Fleming 2012-07-19 668 */
8acf63efa1712fa drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 @669 unsigned long efi_main(efi_handle_t handle,
c3710de5065d63f arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2019-12-24 670 efi_system_table_t *sys_table_arg,
796eb8d26a57f91 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-01-13 671 struct boot_params *boot_params)
9ca8f72a9297f20 arch/x86/boot/compressed/eboot.c Matt Fleming 2012-07-19 672 {
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 673 unsigned long bzimage_addr = (unsigned long)startup_32;
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 674 unsigned long buffer_start, buffer_end;
9ca8f72a9297f20 arch/x86/boot/compressed/eboot.c Matt Fleming 2012-07-19 675 struct setup_header *hdr = &boot_params->hdr;
9ca8f72a9297f20 arch/x86/boot/compressed/eboot.c Matt Fleming 2012-07-19 676 efi_status_t status;
54b52d872680348 arch/x86/boot/compressed/eboot.c Matt Fleming 2014-01-10 677
ccc27ae77494252 drivers/firmware/efi/libstub/x86-stub.c Ard Biesheuvel 2020-04-16 678 efi_system_table = sys_table_arg;
9ca8f72a9297f20 arch/x86/boot/compressed/eboot.c Matt Fleming 2012-07-19 679
9ca8f72a9297f20 arch/x86/boot/compressed/eboot.c Matt Fleming 2012-07-19 680 /* Check if we were booted by the EFI firmware */
ccc27ae77494252 drivers/firmware/efi/libstub/x86-stub.c Ard Biesheuvel 2020-04-16 681 if (efi_system_table->hdr.signature != EFI_SYSTEM_TABLE_SIGNATURE)
3b8f44fc0810d51 drivers/firmware/efi/libstub/x86-stub.c Ard Biesheuvel 2020-02-16 682 efi_exit(handle, EFI_INVALID_PARAMETER);
9ca8f72a9297f20 arch/x86/boot/compressed/eboot.c Matt Fleming 2012-07-19 683
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 684 /*
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 685 * If the kernel isn't already loaded at a suitable address,
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 686 * relocate it.
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 687 *
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 688 * It must be loaded above LOAD_PHYSICAL_ADDR.
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 689 *
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 690 * The maximum address for 64-bit is 1 << 46 for 4-level paging. This
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 691 * is defined as the macro MAXMEM, but unfortunately that is not a
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 692 * compile-time constant if 5-level paging is configured, so we instead
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 693 * define our own macro for use here.
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 694 *
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 695 * For 32-bit, the maximum address is complicated to figure out, for
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 696 * now use KERNEL_IMAGE_SIZE, which will be 512MiB, the same as what
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 697 * KASLR uses.
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 698 *
21cb9b414301c76 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-09 699 * Also relocate it if image_offset is zero, i.e. the kernel wasn't
21cb9b414301c76 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-09 700 * loaded by LoadImage, but rather by a bootloader that called the
21cb9b414301c76 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-09 701 * handover entry. The reason we must always relocate in this case is
21cb9b414301c76 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-09 702 * to handle the case of systemd-boot booting a unified kernel image,
21cb9b414301c76 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-09 703 * which is a PE executable that contains the bzImage and an initrd as
21cb9b414301c76 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-09 704 * COFF sections. The initrd section is placed after the bzImage
21cb9b414301c76 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-09 705 * without ensuring that there are at least init_size bytes available
21cb9b414301c76 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-09 706 * for the bzImage, and thus the compressed kernel's startup code may
21cb9b414301c76 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-09 707 * overwrite the initrd unless it is moved out of the way.
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 708 */
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 709
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 710 buffer_start = ALIGN(bzimage_addr - image_offset,
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 711 hdr->kernel_alignment);
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 712 buffer_end = buffer_start + hdr->init_size;
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 713
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 714 if ((buffer_start < LOAD_PHYSICAL_ADDR) ||
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 715 (IS_ENABLED(CONFIG_X86_32) && buffer_end > KERNEL_IMAGE_SIZE) ||
d5cdf4cfeac9146 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 716 (IS_ENABLED(CONFIG_X86_64) && buffer_end > MAXMEM_X86_64_4LEVEL) ||
21cb9b414301c76 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-09 717 (image_offset == 0)) {
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 718 status = efi_relocate_kernel(&bzimage_addr,
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 719 hdr->init_size, hdr->init_size,
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 720 hdr->pref_address,
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 721 hdr->kernel_alignment,
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 722 LOAD_PHYSICAL_ADDR);
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 723 if (status != EFI_SUCCESS) {
36bdd0a78d56831 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-04-30 724 efi_err("efi_relocate_kernel() failed!\n");
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 725 goto fail;
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 726 }
1887c9b653f9957 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 727 /*
1887c9b653f9957 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 728 * Now that we've copied the kernel elsewhere, we no longer
1887c9b653f9957 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 729 * have a set up block before startup_32(), so reset image_offset
1887c9b653f9957 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 730 * to zero in case it was set earlier.
1887c9b653f9957 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 731 */
1887c9b653f9957 drivers/firmware/efi/libstub/x86-stub.c Arvind Sankar 2020-03-08 732 image_offset = 0;
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 733 }
04a7d0e15606769 arch/x86/boot/compressed/eboot.c Ard Biesheuvel 2020-02-10 734
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[djwong-xfs:iomap-5.10-merge 70/91] fs/xfs/xfs_xattr.c:118:2: error: 'strncpy' output may be truncated copying between 5 and 9 bytes from a string of length 9
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git iomap-5.10-merge
head: 3bfd4af9a31788601d0c60073549afeb4bf0f11c
commit: 1375f8893c8259259c3028bfb6720ce833cdcbd2 [70/91] xfs: don't crash with assfail
config: c6x-randconfig-r024-20201002 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/comm...
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs iomap-5.10-merge
git checkout 1375f8893c8259259c3028bfb6720ce833cdcbd2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x
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 function '__xfs_xattr_put_listent',
inlined from 'xfs_xattr_put_listent' at fs/xfs/xfs_xattr.c:180:2:
>> fs/xfs/xfs_xattr.c:118:2: error: 'strncpy' output may be truncated copying between 5 and 9 bytes from a string of length 9 [-Werror=stringop-truncation]
118 | strncpy(offset, prefix, prefix_len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/strncpy +118 fs/xfs/xfs_xattr.c
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 93
f7a136aee3c1c3f fs/xfs/xfs_xattr.c Eric Sandeen 2016-12-05 94 static void
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 95 __xfs_xattr_put_listent(
a9273ca5c6814f3 fs/xfs/linux-2.6/xfs_xattr.c Dave Chinner 2010-01-20 96 struct xfs_attr_list_context *context,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 97 char *prefix,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 98 int prefix_len,
a9273ca5c6814f3 fs/xfs/linux-2.6/xfs_xattr.c Dave Chinner 2010-01-20 99 unsigned char *name,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 100 int namelen)
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 101 {
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 102 char *offset;
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 103 int arraytop;
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 104
3b50086f0c0d78c fs/xfs/xfs_xattr.c Darrick J. Wong 2019-02-13 105 if (context->count < 0 || context->seen_enough)
3b50086f0c0d78c fs/xfs/xfs_xattr.c Darrick J. Wong 2019-02-13 106 return;
3b50086f0c0d78c fs/xfs/xfs_xattr.c Darrick J. Wong 2019-02-13 107
a9c8c69b4961179 fs/xfs/xfs_xattr.c Christoph Hellwig 2020-02-26 108 if (!context->buffer)
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 109 goto compute_size;
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 110
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 111 arraytop = context->count + prefix_len + namelen + 1;
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 112 if (arraytop > context->firstu) {
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 113 context->count = -1; /* insufficient space */
791cc43b36eb1f8 fs/xfs/xfs_xattr.c Artem Savkov 2016-09-14 114 context->seen_enough = 1;
f7a136aee3c1c3f fs/xfs/xfs_xattr.c Eric Sandeen 2016-12-05 115 return;
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 116 }
a9c8c69b4961179 fs/xfs/xfs_xattr.c Christoph Hellwig 2020-02-26 117 offset = context->buffer + context->count;
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 @118 strncpy(offset, prefix, prefix_len);
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 119 offset += prefix_len;
a9273ca5c6814f3 fs/xfs/linux-2.6/xfs_xattr.c Dave Chinner 2010-01-20 120 strncpy(offset, (char *)name, namelen); /* real name */
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 121 offset += namelen;
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 122 *offset = '\0';
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 123
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 124 compute_size:
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 125 context->count += prefix_len + namelen + 1;
f7a136aee3c1c3f fs/xfs/xfs_xattr.c Eric Sandeen 2016-12-05 126 return;
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 127 }
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 128
f7a136aee3c1c3f fs/xfs/xfs_xattr.c Eric Sandeen 2016-12-05 129 static void
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 130 xfs_xattr_put_listent(
a9273ca5c6814f3 fs/xfs/linux-2.6/xfs_xattr.c Dave Chinner 2010-01-20 131 struct xfs_attr_list_context *context,
a9273ca5c6814f3 fs/xfs/linux-2.6/xfs_xattr.c Dave Chinner 2010-01-20 132 int flags,
a9273ca5c6814f3 fs/xfs/linux-2.6/xfs_xattr.c Dave Chinner 2010-01-20 133 unsigned char *name,
a9273ca5c6814f3 fs/xfs/linux-2.6/xfs_xattr.c Dave Chinner 2010-01-20 134 int namelen,
e5bd12bfea60af4 fs/xfs/xfs_xattr.c Eric Sandeen 2016-04-06 135 int valuelen)
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 136 {
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 137 char *prefix;
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 138 int prefix_len;
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 139
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 140 ASSERT(context->count >= 0);
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 141
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 142 if (flags & XFS_ATTR_ROOT) {
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 143 #ifdef CONFIG_XFS_POSIX_ACL
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 144 if (namelen == SGI_ACL_FILE_SIZE &&
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 145 strncmp(name, SGI_ACL_FILE,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 146 SGI_ACL_FILE_SIZE) == 0) {
f7a136aee3c1c3f fs/xfs/xfs_xattr.c Eric Sandeen 2016-12-05 147 __xfs_xattr_put_listent(
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 148 context, XATTR_SYSTEM_PREFIX,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 149 XATTR_SYSTEM_PREFIX_LEN,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 150 XATTR_POSIX_ACL_ACCESS,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 151 strlen(XATTR_POSIX_ACL_ACCESS));
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 152 } else if (namelen == SGI_ACL_DEFAULT_SIZE &&
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 153 strncmp(name, SGI_ACL_DEFAULT,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 154 SGI_ACL_DEFAULT_SIZE) == 0) {
f7a136aee3c1c3f fs/xfs/xfs_xattr.c Eric Sandeen 2016-12-05 155 __xfs_xattr_put_listent(
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 156 context, XATTR_SYSTEM_PREFIX,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 157 XATTR_SYSTEM_PREFIX_LEN,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 158 XATTR_POSIX_ACL_DEFAULT,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 159 strlen(XATTR_POSIX_ACL_DEFAULT));
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 160 }
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 161 #endif
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 162
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 163 /*
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 164 * Only show root namespace entries if we are actually allowed to
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 165 * see them.
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 166 */
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 167 if (!capable(CAP_SYS_ADMIN))
f7a136aee3c1c3f fs/xfs/xfs_xattr.c Eric Sandeen 2016-12-05 168 return;
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 169
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 170 prefix = XATTR_TRUSTED_PREFIX;
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 171 prefix_len = XATTR_TRUSTED_PREFIX_LEN;
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 172 } else if (flags & XFS_ATTR_SECURE) {
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 173 prefix = XATTR_SECURITY_PREFIX;
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 174 prefix_len = XATTR_SECURITY_PREFIX_LEN;
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 175 } else {
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 176 prefix = XATTR_USER_PREFIX;
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 177 prefix_len = XATTR_USER_PREFIX_LEN;
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 178 }
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 179
f7a136aee3c1c3f fs/xfs/xfs_xattr.c Eric Sandeen 2016-12-05 @180 __xfs_xattr_put_listent(context, prefix, prefix_len, name,
5d92b75c753ae27 fs/xfs/xfs_xattr.c Andreas Gruenbacher 2015-12-02 181 namelen);
f7a136aee3c1c3f fs/xfs/xfs_xattr.c Eric Sandeen 2016-12-05 182 return;
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 183 }
f9e09f095f32394 fs/xfs/linux-2.6/xfs_xattr.c Lachlan McIlroy 2008-06-23 184
:::::: The code at line 118 was first introduced by commit
:::::: 5d92b75c753ae27578ee764df3be650c67fa5877 xfs: Change how listxattr generates synthetic attributes
:::::: TO: Andreas Gruenbacher <agruenba(a)redhat.com>
:::::: CC: Al Viro <viro(a)zeniv.linux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[djwong-xfs:iomap-5.10-merge 70/91] cc1: error: arch/um/include/uapi: No such file or directory
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git iomap-5.10-merge
head: 3bfd4af9a31788601d0c60073549afeb4bf0f11c
commit: 1375f8893c8259259c3028bfb6720ce833cdcbd2 [70/91] xfs: don't crash with assfail
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/comm...
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs iomap-5.10-merge
git checkout 1375f8893c8259259c3028bfb6720ce833cdcbd2
# save the attached .config to linux build tree
make W=1 ARCH=um SUBARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
cc1: all warnings being treated as errors
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
fs/pipe.c:760:15: error: no previous prototype for 'account_pipe_buffers' [-Werror=missing-prototypes]
760 | unsigned long account_pipe_buffers(struct user_struct *user,
| ^~~~~~~~~~~~~~~~~~~~
fs/pipe.c:766:6: error: no previous prototype for 'too_many_pipe_buffers_soft' [-Werror=missing-prototypes]
766 | bool too_many_pipe_buffers_soft(unsigned long user_bufs)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
fs/pipe.c:773:6: error: no previous prototype for 'too_many_pipe_buffers_hard' [-Werror=missing-prototypes]
773 | bool too_many_pipe_buffers_hard(unsigned long user_bufs)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
fs/pipe.c:780:6: error: no previous prototype for 'pipe_is_unprivileged_user' [-Werror=missing-prototypes]
780 | bool pipe_is_unprivileged_user(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
fs/pipe.c:1211:5: error: no previous prototype for 'pipe_resize_ring' [-Werror=missing-prototypes]
1211 | int pipe_resize_ring(struct pipe_inode_info *pipe, unsigned int nr_slots)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
fs/d_path.c:311:7: error: no previous prototype for 'simple_dname' [-Werror=missing-prototypes]
311 | char *simple_dname(struct dentry *dentry, char *buffer, int buflen)
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
fs/fs_parser.c:192:5: error: no previous prototype for 'fs_param_bad_value' [-Werror=missing-prototypes]
192 | int fs_param_bad_value(struct p_log *log, struct fs_parameter *param)
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
In file included from include/linux/elf.h:6,
from include/linux/module.h:18,
from fs/binfmt_elf.c:13:
fs/binfmt_elf.c: In function 'load_elf_binary':
arch/x86/um/asm/elf.h:215:32: warning: suggest braces around empty body in 'do' statement [-Wempty-body]
215 | #define SET_PERSONALITY(ex) do ; while(0)
| ^
include/linux/elf.h:22:2: note: in expansion of macro 'SET_PERSONALITY'
22 | SET_PERSONALITY(ex)
| ^~~~~~~~~~~~~~~
fs/binfmt_elf.c:980:2: note: in expansion of macro 'SET_PERSONALITY2'
980 | SET_PERSONALITY2(*elf_ex, &arch_state);
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[drm-intel:drm-intel-next-queued 14/14] drivers/gpu/drm/i915/display/intel_lspcon.c:533:6: error: no previous prototype for function 'lspcon_init'
by kernel test robot
tree: git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head: f542d671ffcec772a561cd41c7e2394392d9dafb
commit: f542d671ffcec772a561cd41c7e2394392d9dafb [14/14] drm/i915: Init lspcon after HPD in intel_dp_detect()
config: x86_64-randconfig-a005-20201001 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bcd05599d0e53977a963799d6ee4f6e0bc21331b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add drm-intel git://anongit.freedesktop.org/drm-intel
git fetch --no-tags drm-intel drm-intel-next-queued
git checkout f542d671ffcec772a561cd41c7e2394392d9dafb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/display/intel_lspcon.c:533:6: error: no previous prototype for function 'lspcon_init' [-Werror,-Wmissing-prototypes]
bool lspcon_init(struct intel_digital_port *dig_port)
^
drivers/gpu/drm/i915/display/intel_lspcon.c:533:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool lspcon_init(struct intel_digital_port *dig_port)
^
static
1 error generated.
vim +/lspcon_init +533 drivers/gpu/drm/i915/display/intel_lspcon.c
357c0ae9198ad7f drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-11-21 532
7801f3b792b0fd1 drivers/gpu/drm/i915/display/intel_lspcon.c Lucas De Marchi 2020-06-30 @533 bool lspcon_init(struct intel_digital_port *dig_port)
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 534 {
7801f3b792b0fd1 drivers/gpu/drm/i915/display/intel_lspcon.c Lucas De Marchi 2020-06-30 535 struct intel_dp *dp = &dig_port->dp;
7801f3b792b0fd1 drivers/gpu/drm/i915/display/intel_lspcon.c Lucas De Marchi 2020-06-30 536 struct intel_lspcon *lspcon = &dig_port->lspcon;
668b6c176c33f44 drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 537 struct drm_connector *connector = &dp->attached_connector->base;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 538
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 539 lspcon->active = false;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 540 lspcon->mode = DRM_LSPCON_MODE_INVALID;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 541
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 542 if (!lspcon_probe(lspcon)) {
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 543 DRM_ERROR("Failed to probe lspcon\n");
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 544 return false;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 545 }
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 546
b9936121d95b012 drivers/gpu/drm/i915/display/intel_lspcon.c Lyude Paul 2020-08-26 547 if (drm_dp_read_dpcd_caps(&dp->aux, dp->dpcd) != 0) {
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-10-24 548 DRM_ERROR("LSPCON DPCD read failed\n");
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-10-24 549 return false;
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-10-24 550 }
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-10-24 551
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 552 if (!lspcon_detect_vendor(lspcon)) {
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 553 DRM_ERROR("LSPCON vendor detection failed\n");
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 554 return false;
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 555 }
12a47a422862214 drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-10-24 556
668b6c176c33f44 drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 557 connector->ycbcr_420_allowed = true;
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 558 lspcon->active = true;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 559 DRM_DEBUG_KMS("Success: LSPCON init\n");
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 560 return true;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 561 }
f542d671ffcec77 drivers/gpu/drm/i915/display/intel_lspcon.c Kai-Heng Feng 2020-06-10 562
:::::: The code at line 533 was first introduced by commit
:::::: 7801f3b792b0fd171b02f2cb974e758295e68e0f drm/i915/display: prefer dig_port to reference intel_digital_port
:::::: TO: Lucas De Marchi <lucas.demarchi(a)intel.com>
:::::: CC: Lucas De Marchi <lucas.demarchi(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[drm-intel:drm-intel-next-queued 14/14] drivers/gpu/drm/i915/display/intel_lspcon.c:533:6: warning: no previous prototype for function 'lspcon_init'
by kernel test robot
tree: git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head: f542d671ffcec772a561cd41c7e2394392d9dafb
commit: f542d671ffcec772a561cd41c7e2394392d9dafb [14/14] drm/i915: Init lspcon after HPD in intel_dp_detect()
config: x86_64-randconfig-a003-20201001 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bcd05599d0e53977a963799d6ee4f6e0bc21331b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add drm-intel git://anongit.freedesktop.org/drm-intel
git fetch --no-tags drm-intel drm-intel-next-queued
git checkout f542d671ffcec772a561cd41c7e2394392d9dafb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/display/intel_lspcon.c:533:6: warning: no previous prototype for function 'lspcon_init' [-Wmissing-prototypes]
bool lspcon_init(struct intel_digital_port *dig_port)
^
drivers/gpu/drm/i915/display/intel_lspcon.c:533:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool lspcon_init(struct intel_digital_port *dig_port)
^
static
1 warning generated.
vim +/lspcon_init +533 drivers/gpu/drm/i915/display/intel_lspcon.c
357c0ae9198ad7f drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-11-21 532
7801f3b792b0fd1 drivers/gpu/drm/i915/display/intel_lspcon.c Lucas De Marchi 2020-06-30 @533 bool lspcon_init(struct intel_digital_port *dig_port)
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 534 {
7801f3b792b0fd1 drivers/gpu/drm/i915/display/intel_lspcon.c Lucas De Marchi 2020-06-30 535 struct intel_dp *dp = &dig_port->dp;
7801f3b792b0fd1 drivers/gpu/drm/i915/display/intel_lspcon.c Lucas De Marchi 2020-06-30 536 struct intel_lspcon *lspcon = &dig_port->lspcon;
668b6c176c33f44 drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 537 struct drm_connector *connector = &dp->attached_connector->base;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 538
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 539 lspcon->active = false;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 540 lspcon->mode = DRM_LSPCON_MODE_INVALID;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 541
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 542 if (!lspcon_probe(lspcon)) {
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 543 DRM_ERROR("Failed to probe lspcon\n");
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 544 return false;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 545 }
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 546
b9936121d95b012 drivers/gpu/drm/i915/display/intel_lspcon.c Lyude Paul 2020-08-26 547 if (drm_dp_read_dpcd_caps(&dp->aux, dp->dpcd) != 0) {
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-10-24 548 DRM_ERROR("LSPCON DPCD read failed\n");
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-10-24 549 return false;
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-10-24 550 }
24e807e79f103cd drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-10-24 551
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 552 if (!lspcon_detect_vendor(lspcon)) {
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 553 DRM_ERROR("LSPCON vendor detection failed\n");
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 554 return false;
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 555 }
12a47a422862214 drivers/gpu/drm/i915/intel_lspcon.c Imre Deak 2016-10-24 556
668b6c176c33f44 drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 557 connector->ycbcr_420_allowed = true;
96e35598cead98d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2018-10-12 558 lspcon->active = true;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 559 DRM_DEBUG_KMS("Success: LSPCON init\n");
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 560 return true;
dbe9e61b8e4306d drivers/gpu/drm/i915/intel_lspcon.c Shashank Sharma 2016-10-14 561 }
f542d671ffcec77 drivers/gpu/drm/i915/display/intel_lspcon.c Kai-Heng Feng 2020-06-10 562
:::::: The code at line 533 was first introduced by commit
:::::: 7801f3b792b0fd171b02f2cb974e758295e68e0f drm/i915/display: prefer dig_port to reference intel_digital_port
:::::: TO: Lucas De Marchi <lucas.demarchi(a)intel.com>
:::::: CC: Lucas De Marchi <lucas.demarchi(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months