Skip to content
Snippets Groups Projects
Select Git revision
  • b90cb1053190353cc30f0fef0ef1f378ccc063c5
  • apu_kernel default
  • mesh_mac_filter
  • wiptp_patch
  • master protected
  • v6.7-rc6
  • v6.7-rc5
  • v6.7-rc4
  • v6.7-rc3
  • v6.7-rc2
  • v6.7-rc1
  • v6.6
  • v6.6-rc7
  • v6.6-rc6
  • v6.6-rc5
  • v6.6-rc4
  • v6.6-rc3
  • v6.6-rc2
  • v6.6-rc1
  • v6.5
  • v6.5-rc7
  • v6.5-rc6
  • v6.5-rc5
  • v6.5-rc4
  • v6.5-rc3
25 results

common

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Randy Dunlap authored and Thomas Bogendoerfer committed
    LOONGSON_UART_BASE depends on EARLY_PRINTK || SERIAL_8250, but when
    neither of these Kconfig symbols is set, the kernel build has errors:
    
    ../arch/mips/loongson2ef/common/serial.c: In function 'serial_init':
    ../arch/mips/loongson2ef/common/serial.c:66:25: error: 'loongson_uart_base' undeclared (first use in this function)
       66 |                         loongson_uart_base;
    ../arch/mips/loongson2ef/common/serial.c:66:25: note: each undeclared identifier is reported only once for each function it appears in
    ../arch/mips/loongson2ef/common/serial.c:68:41: error: '_loongson_uart_base' undeclared (first use in this function)
       68 |                         (void __iomem *)_loongson_uart_base;
    
    Fix this by building serial.o only when one (or both) of these
    Kconfig symbols is enabled.
    
    Tested with:
    	(a) EARLY_PRINTK=y, SERIAL_8250 not set;
    	(b) EARLY_PRINTK=y, SERIAL_8250=y;
    	(c) EARLY_PRINTK=y, SERIAL_8250=m.
    	(d) EARLY_PRINTK not set, SERIAL_8250=y;
    	(e) EARLY_PRINTK not set, SERIAL_8250=m;
    	(f) EARLY_PRINTK not set, SERIAL_8250 not set.
    
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
    Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
    Cc: linux-mips@vger.kernel.org
    Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
    ad548993
    History