Re: [PATCH] console: Don't prefer first registered if DT specifies stdout-path

From: kbuild test robot
Date: Tue Aug 09 2016 - 11:11:39 EST


Hi Paul,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.8-rc1 next-20160809]
[cannot apply to linux/master]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Paul-Burton/console-Don-t-prefer-first-registered-if-DT-specifies-stdout-path/20160809-205816
config: x86_64-randconfig-s2-08092115 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All warnings (new ones prefixed by >>):

>> include/linux/console.h:179: warning: 'console_set_by_of' declared 'static' but never defined
--
>> include/linux/console.h:179: warning: 'console_set_by_of' declared 'static' but never defined
kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl':
kernel/printk/printk.c:158: warning: 'old' may be used uninitialized in this function
--
>> include/linux/console.h:179: warning: 'console_set_by_of' declared 'static' but never defined
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c: In function 'amdgpu_debugfs_regs_read':
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:2182: warning: 'instance_bank' may be used uninitialized in this function
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:2182: warning: 'sh_bank' may be used uninitialized in this function
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:2182: warning: 'se_bank' may be used uninitialized in this function
--
>> include/linux/console.h:179: warning: 'console_set_by_of' declared 'static' but never defined
drivers/gpu/drm/bochs/bochs_mm.c: In function 'bochs_gem_create':
drivers/gpu/drm/bochs/bochs_mm.c:384: warning: 'bochsbo' may be used uninitialized in this function
--
>> include/linux/console.h:179: warning: 'console_set_by_of' declared 'static' but never defined
drivers/tty/serial/serial_core.c: In function 'uart_start':
drivers/tty/serial/serial_core.c:142: warning: 'flags' may be used uninitialized in this function
drivers/tty/serial/serial_core.c: In function 'uart_stop':
drivers/tty/serial/serial_core.c:121: warning: 'flags' may be used uninitialized in this function
drivers/tty/serial/serial_core.c: In function 'uart_chars_in_buffer':
drivers/tty/serial/serial_core.c:611: warning: 'flags' may be used uninitialized in this function
drivers/tty/serial/serial_core.c: In function 'uart_write_room':
drivers/tty/serial/serial_core.c:598: warning: 'flags' may be used uninitialized in this function
drivers/tty/serial/serial_core.c: In function 'uart_put_char':
drivers/tty/serial/serial_core.c:531: warning: 'flags' may be used uninitialized in this function
drivers/tty/serial/serial_core.c: In function 'uart_flush_buffer':
drivers/tty/serial/serial_core.c:624: warning: 'flags' may be used uninitialized in this function
drivers/tty/serial/serial_core.c: In function 'uart_write':
drivers/tty/serial/serial_core.c:559: warning: 'flags' may be used uninitialized in this function
--
>> include/linux/console.h:179: warning: 'console_set_by_of' declared 'static' but never defined
drivers/tty/vt/vt_ioctl.c: In function 'vt_ioctl':
drivers/tty/vt/vt_ioctl.c:825: warning: 'cc' may be used uninitialized in this function
--
>> include/linux/console.h:179: warning: 'console_set_by_of' declared 'static' but never defined
drivers/tty/vt/consolemap.c: In function 'conv_uni_to_pc':
drivers/tty/vt/consolemap.c:801: warning: 'h' may be used uninitialized in this function
--
>> include/linux/console.h:179: warning: 'console_set_by_of' declared 'static' but never defined
drivers/tty/serial/8250/8250_port.c: In function 'serial8250_console_write':
drivers/tty/serial/8250/8250_port.c:3110: warning: 'flags' may be used uninitialized in this function
--
>> include/linux/console.h:179: warning: 'console_set_by_of' declared 'static' but never defined
drivers/video/fbdev/aty/aty128fb.c: In function 'aty128_decode_var':
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.bpp' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.depth' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.yoffset' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.xoffset' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.vyres' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.vxres' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.offset_cntl' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.pitch' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.v_sync_strt_wid' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.h_sync_strt_wid' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.v_total' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.h_total' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1567: warning: 'crtc.gen_cntl' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1569: warning: 'fifo_reg.dda_on_off' may be used uninitialized in this function
drivers/video/fbdev/aty/aty128fb.c:1569: warning: 'fifo_reg.dda_config' may be used uninitialized in this function

vim +179 include/linux/console.h

163 extern void console_start(struct console *);
164 extern int is_console_locked(void);
165 extern int braille_register_console(struct console *, int index,
166 char *console_options, char *braille_options);
167 extern int braille_unregister_console(struct console *);
168 #ifdef CONFIG_TTY
169 extern void console_sysfs_notify(void);
170 #else
171 static inline void console_sysfs_notify(void)
172 { }
173 #endif
174 extern bool console_suspend_enabled;
175
176 #ifdef CONFIG_OF
177 extern void console_set_by_of(void);
178 #else
> 179 static inline void console_set_by_of(void);
180 #endif
181
182 /* Suspend and resume console messages over PM events */
183 extern void suspend_console(void);
184 extern void resume_console(void);
185
186 int mda_console_init(void);
187 void prom_con_init(void);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data