Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5515564ybv; Tue, 11 Feb 2020 17:34:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyesykRnXf+qfwdCnK8vUoD3Oxzp/lcNHiSXAurrQfdY3d4i6sWwfrefyJy/iHkyJtU7MOe X-Received: by 2002:aca:4e02:: with SMTP id c2mr4899138oib.142.1581471295867; Tue, 11 Feb 2020 17:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581471295; cv=none; d=google.com; s=arc-20160816; b=vsQ6x+Tv7R5EpYcD8dGoEOwUjKPIRHrtUCFy3bkEU/ag8ibSMhaT5/FLR71RLkxXZD TLC0CIkXf8fQ03t4yj9slUzMrhabgvAe73pXW/k1JaCPvwPLD5Kdre9vGj3Z2QRrj6++ Uir19WITv8VeD8ZMa1qjkyfFgefcgCOm5PIsvNi+6D5K8yKNpehRYpDKpkNuE5v+1zaw dA+oFzW0ILosLvofWj/UxxL8b7kyegvgbknlgncBLVWFrXBcEDvB9HyKDl2eXyDjNBel 9DttaZdo3ek716eDbp6f4sTbZMSIeyxjlYZIMeYuAdoNyRV3Okwm3/CSU67mowkMs6S2 XiiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+DK3X5s5bAedOsctDapXXhz9ixgced4ShaVeh1Nqq2I=; b=XewlXEe9AipTXi6QHCu61yyFgMG+y6Qx4+TBf1eC+X8HvyY9ioYUvHoEcaFdEynkvT iUtKWgJumvcMms8K/NNFG3yBhjMRJjszP+8WqyzlQCVv4WVY+JGSDRfFDzE6FJwtTWxO hXx+q7Afgb34kni7RMiVGg0n9UNa/2H/efmqyULTYA+/d5YW16DUU4RXDIsp9RTV7GMp 1A0MW6ZcCaYJRYXkre4BDbBZ4LraWQ4rxib/2wSu0cApsStRoFzvhAmUcjb/Il+pXpEu Ql8gZ6kTwKu7kyyng3gPeOB7cJTfQ99lETf6uf5L9UCETQ56LkVsBenmrCXjuUV6Yada 0CAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dAB4762+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si2499801oie.95.2020.02.11.17.34.42; Tue, 11 Feb 2020 17:34:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dAB4762+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728137AbgBLBbg (ORCPT + 99 others); Tue, 11 Feb 2020 20:31:36 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38307 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727330AbgBLBbg (ORCPT ); Tue, 11 Feb 2020 20:31:36 -0500 Received: by mail-pg1-f193.google.com with SMTP id d6so324197pgn.5 for ; Tue, 11 Feb 2020 17:31:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+DK3X5s5bAedOsctDapXXhz9ixgced4ShaVeh1Nqq2I=; b=dAB4762+JGtjVgDtbWgl6TV1oc/2qyuIF85pCzS7p9b9WdxpKj8ThZD7/UeTOV2e24 S6YvHkv1/5FrtrQGoU3Fd2Q2MIPUDGt2qPIk5vwrhYMG/JqajxXPB4Mv6GDx054ayrjh U7Xhx1EG9og17M3a6l5NJNiEqrRzUWLSNt9YHXDyh7DJpYCpqEbV3k4WgT8eAgseNRRg ltc79n5Opl7aCrARS3bZhht/ILrJJ7KlTHdUSx+6/MtCWzs2dk2eNgN+mCNlMTuGgG9v zLv09C8bxWhILUPV0mXb01xHQxrW+xH8BqA50B+hEhmbRf9dvOz8bfDpG/MRXvP4d+Jq iaOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+DK3X5s5bAedOsctDapXXhz9ixgced4ShaVeh1Nqq2I=; b=Vj79wDns7PCaTFQAd3earp/nj+cDklwK2c050comx9lJPjF2yaJthu1wQyq4bkxm+K hZ3LI8jPHkBKMZo84vG8nu3TVDX1RXQ+RZiMqiXf0KkAZ8Ag3I2BxeS413kXrp0gU4LN 86DIMoeHXm3im6X/WLwRMCx2VoWml+a6ulMzgGBOPcINESIaQXuv7wMz7+Fq1v/VXHt8 1EetSFUc5vKeSvo8DITgMNtC7mHGNtofmAf+gRmFTt4MfN5f7Bw5O4Li/tyEN4Vxji1E NYl9zT0ZG551OOxF47i9BbeyEP+aAsvqAmORINXbSl06N8aciyAzLtGZVlWeB0mbnywi kkRw== X-Gm-Message-State: APjAAAUckPt96JXfreZdzKx3u3yPHA7wKyotXSgdFIsZKcvwc+EI4YvI fAwppukz5HBnV+JC3qt7tRE= X-Received: by 2002:a63:d0d:: with SMTP id c13mr5816064pgl.388.1581471095840; Tue, 11 Feb 2020 17:31:35 -0800 (PST) Received: from localhost ([2401:fa00:8f:203:5bbb:c872:f2b1:f53b]) by smtp.gmail.com with ESMTPSA id r198sm5871499pfr.54.2020.02.11.17.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 17:31:35 -0800 (PST) Date: Wed, 12 Feb 2020 10:31:33 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Andy Shevchenko , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Steven Rostedt Subject: Re: [PATCH v1] printk: Declare log_wait as external variable Message-ID: <20200212013133.GB13208@google.com> References: <20200203131528.52825-1-andriy.shevchenko@linux.intel.com> <20200211124317.x5erhl7kvxj2nq6a@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200211124317.x5erhl7kvxj2nq6a@pathway.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/02/11 13:43), Petr Mladek wrote: > > Even better solution might be to move fs/proc/kmsg.c to > kernel/printk/proc_kmsg.c and declare printk_log_wait only > in kernel/printk/internal.h. I think that this is what > Sergey suggested. Yes, right. > Another great thing would be to extract devkmsg stuff from > kernel/printk/printk.c and put it into kernel/printk/dev_kmsg.c. Yeah, can do, I would still prefer proc_kmsg to "move in". Either both can live in printk.c (won't make it much worse), or in kernel/printk/dev_kmsg.c and kernel/printk/proc_kmsg.c I can take a look at dev_ksmg.c/proc_kmsg.c option, unless someone else wants to spend their time on this. -ss