From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH 1/1] printk: Make it compile with !CONFIG_PRINTK Date: Mon, 14 May 2012 09:46:27 -0700 Message-ID: <1337013987.29436.16.camel@joe2Laptop> References: <1337012284-18680-1-git-send-email-hdoyu@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kay Sievers Cc: Hiroshi DOYU , linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Peter Zijlstra , Andrew Morton , Ingo Molnar , Greg Kroah-Hartman , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-tegra@vger.kernel.org On Mon, 2012-05-14 at 18:20 +0200, Kay Sievers wrote: > On Mon, May 14, 2012 at 6:18 PM, Hiroshi DOYU wrote: > > Add missing prepend_timestamp() dummy. > > That was fixed already last week: > http://git.kernel.org/?p=linux/kernel/git/gregkh/driver-core.git;a=commitdiff;h=1fce677971e29ceaa7c569741fa9c685a7b1052a Yup, but in my opinion, this particular fix shouldn't be necessary because the CONFIG_PRINTK bits should have better code separation. None of the code that calls prepend_timestamp should actually be compiled in when !CONFIG_PRINTK. The same is true for unnecessary uses like the existing per-cpu: static DEFINE_PER_CPU(int, printk_pending); static DEFINE_PER_CPU(char [PRINTK_BUF_SIZE], printk_sched_buf); After this patchset is accepted into mainline, I'll revive the modularization and move of kernel/printk.c and associated files into -> kernel/printk/* patch I did awhile ago. I'll follow-on to this message with the original patches just as an fyi/rfc. cheers, Joe