From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751638AbcJJBbw (ORCPT ); Sun, 9 Oct 2016 21:31:52 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:34552 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbcJJBbv (ORCPT ); Sun, 9 Oct 2016 21:31:51 -0400 Date: Sat, 8 Oct 2016 04:08:29 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Sergey Senozhatsky , Jan Kara , Andrew Morton , Tejun Heo , Calvin Owens , Thomas Gleixner , Mel Gorman , Steven Rostedt , linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: Re: [RFC][PATCHv2 4/7] printk: make alt_printk available when config printk set Message-ID: <20161007190829.GD486@swordfish> References: <20160930151758.8965-1-sergey.senozhatsky@gmail.com> <20160930151758.8965-5-sergey.senozhatsky@gmail.com> <20161006152335.GI13369@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161006152335.GI13369@pathway.suse.cz> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (10/06/16 17:23), Petr Mladek wrote: > This line should be added already in the 3rd patch. [..] > Also the initialization of both irq works should be done already > in the 3rd patch. indeed. my bad. thanks. > BTW: I have tried to simulate the compilation on an architecture > without NMI (commented out HAVE_NMI in arch/x86/Kconfig > and I have got the following build error with the first three > patches only: > > LD init/built-in.o > kernel/built-in.o: In function `vprintk': > /prace/kernel/linux/kernel/printk/printk.c:1914: undefined reference to `vprintk_func' > kernel/built-in.o: In function `printk': > /prace/kernel/linux/kernel/printk/printk.c:1976: undefined reference to `vprintk_func' > Makefile:949: recipe for target 'vmlinux' failed Fengguang Wu reported a build error for V1 on some .configs, I thought it was fixed in V2. thanks a lot! -ss > Where the two lines are in: > > asmlinkage int vprintk(const char *fmt, va_list args) > { > return vprintk_func(fmt, args); > } > > and > > asmlinkage __visible int printk(const char *fmt, ...) > { > va_list args; > int r; > > va_start(args, fmt); > r = vprintk_func(fmt, args); > va_end(args); > > return r; > } > > > I know that it is a pain to make it all correctly. I suffered from headaches > when preparing the WARN_*DEFERRED() patchset :-)