Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753403Ab0BIG11 (ORCPT ); Tue, 9 Feb 2010 01:27:27 -0500 Received: from mail-ww0-f46.google.com ([74.125.82.46]:63616 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751253Ab0BIG10 convert rfc822-to-8bit (ORCPT ); Tue, 9 Feb 2010 01:27:26 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=q3Kqk+UahC78c60axvny+6TYF4z42ugjVMcIw9XEO+VBb99zL6cfpDSezRigUFAZKM jqLWUTAKknSG3TbDpmQ2xtG8B2MMRc0/Pws2+PLSaUdup3G3T7dtpPOxIVGSZ6HAO46L VGN7T1VkKT8xrOLc2hkFH0Ia6fbrRNoiBH/v8= MIME-Version: 1.0 In-Reply-To: <20100208220753.61a39bab.akpm@linux-foundation.org> References: <20100206134056.GB2562@darkstar> <20100208135654.04b79bbc.akpm@linux-foundation.org> <20100208220753.61a39bab.akpm@linux-foundation.org> Date: Tue, 9 Feb 2010 14:27:25 +0800 Message-ID: Subject: Re: [PATCH 2/2] allow printk delay after multi lines From: Dave Young To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Ingo Molnar Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1358 Lines: 34 On Tue, Feb 9, 2010 at 2:07 PM, Andrew Morton wrote: > On Tue, 9 Feb 2010 13:56:34 +0800 Dave Young wrote: > >> BTW, for the sysctl variables. I found in kernel.h there's: >> printk/console_loglevel/panic related extern variables for sysctl. >> >> console_loglevel and panic related variables are used here and there, >> not just for sysctl, so I think it should stay in kernel.h. >> >> The printk related variables for sysctl and all the extern variables in >> sysctl.c can be move to sysctl.h. Seems no need new head file. >> >> Andrew, what's your opinion? > > Symbols which are defined in printk.c and which are used in other > compilation units should be declared in printk.h! > > We mucked up in the past by putting these things in kernel.h and as > externs in sysctl.c, but that's no reason to continue to do so.  As a > special-case, it makes convenience sense to declare printk() itself and > the loglevel strings etc in kernel.h, but that _is_ a special case. > Lazy is bad, hehe :) Will do that in a updated patchset, Thanks. -- Regards dave -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/