Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4862585ybl; Tue, 4 Feb 2020 03:23:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwEXQDQAXEK3zhxZhQ1THPBhGvywhinK050pWVEvHm+NNvCpQmHx7qHKHZRMzwvu86U/8yn X-Received: by 2002:a9d:1706:: with SMTP id i6mr22729484ota.151.1580815398658; Tue, 04 Feb 2020 03:23:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580815398; cv=none; d=google.com; s=arc-20160816; b=hESpgUT7Zf6NvfEhakS0hlqi7t3XB+iHJQw5oXVd1/Z75gHNJ0gqi+TC6NbfrHMa9a 3hr9VwdTKpRotHQud2/hoHD8CvJMucLK7kDIvVRojA1PBg2WfZKFkZekZ7cLatkddXL5 3s687aOLeAv/mdPiL1ZmD1WHynKTo+Bx4BM7YYiZpY3Kemfe/fI7TAbx/EHqt+2RkRpq cKKnH5uuPOgg5dyTsKDA0NP2ZR4acOJpaNkRIMnYJUOp8wRaHzMs4489ajCelMg0G8te 6P6KzEnvRMGzxRQYoNxBswmZdnnW8JsgImZ0vHfdP50xMQUBBrC/GnGdmjH5AAm7k2Uc MIKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=1W+3zsnEU6ZNkubtrp4GhFh9NK/nPnnv+lTC1XegvP8=; b=HBSWyggnoQTHZotJ1BPib4iY5jDcfGYTmAQsdyO8o/juSd96vhJkrod7jt1JWziJyD j+SSJZUrRo86UR8UhluHR5zLPwSTI5NWVKke1BHOzXQBlajb/BXhfDx0LLRQX00L3bER IChOlMux2BmUGS1w7i9KsX7hWD+lW3sf0/+3IFNdGytKxlhWkIQHrQRhhK7MErb0VnW9 QuikFNBe1dD5QwSUiUddMPpObVxIRiVW+ykVRuJGTDlJLwXKIxe4kYzU+BF0pUj3do0E 3rOpDVJET1ykTYPOrbbWrcxV8ROXVN7WtPuq75pYga7xiSdDdeQgXLMFb4UIWBFx+K2Q UgrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OeAfttWg; 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 d20si11979314oti.311.2020.02.04.03.23.06; Tue, 04 Feb 2020 03:23:18 -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=OeAfttWg; 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 S1727072AbgBDLWR (ORCPT + 99 others); Tue, 4 Feb 2020 06:22:17 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:35969 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726965AbgBDLWQ (ORCPT ); Tue, 4 Feb 2020 06:22:16 -0500 Received: by mail-pj1-f67.google.com with SMTP id gv17so1245449pjb.1 for ; Tue, 04 Feb 2020 03:22:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1W+3zsnEU6ZNkubtrp4GhFh9NK/nPnnv+lTC1XegvP8=; b=OeAfttWgeChdF9jpkkVhU+wvcxHefjsWiwdrj2bhSZJT0Dr1h7Haz2ILIGKxW1pati jWehdM8enEg1fnOfj9k14OETsvT058yy816xDBSWLLtwX+6W1U5uxSs+Ky/n54JVHLza myy+gxjwYaoR9mx27dDhk7ftGOgtfkSEeGOqu/l/8TTSEDXHy2danjBrVVObAhyab/l4 fONNsjAJMbhlGJu5zMdNxQRoky60xsHUA6R9Z4Hth10regafKyM62/8owbTUUwJ2IePx K8LLcFp79iMIdloo7KQX5AWzEXfzXU1IJms7gbAYpmL9bFSNOuCfi6eWUWztTNeNQsr2 9wLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1W+3zsnEU6ZNkubtrp4GhFh9NK/nPnnv+lTC1XegvP8=; b=ja80OpgmTxeRjUld+5JcvSeXijhXSEbiPl2kyqnAqsd6oVX/FKYEgkQo1hTGj1DkRW 6m5uqMqvPz1XVnra9wPNlYiNV81hOL9J9fP7qCrKDhhClk+GjT/SEy9sr1bkOwurLtTQ vIbvbTPiLWVQ7zRkVtYRV7fEVtwK6S/PINp8FgNTY5Ac+5mOmgNEybWlydRVJP177yUp uzfNnu0hmLDcsasmLwDTW3EfdyQ1I9SaX4a/GaIi3NMltRJ2HQYCTlgZgXEDdhc9Zpod T5M+cfMpX8Ff+ZwVSOX+HVDGYvJ0I2wAaCNzoko2JOHxtJg6n7XPBznkJcjc9IL7zRxe Ud0Q== X-Gm-Message-State: APjAAAVOTV9JETa5pspPX1e75+Gk45JRH3KyrLTMurUHCYtVv6xuco+O 9DVmtbvE1MgU2DEkaYgzaq8= X-Received: by 2002:a17:90a:8a08:: with SMTP id w8mr5823926pjn.125.1580815336037; Tue, 04 Feb 2020 03:22:16 -0800 (PST) Received: from localhost (167.117.30.125.dy.iij4u.or.jp. [125.30.117.167]) by smtp.gmail.com with ESMTPSA id z14sm22336409pgj.43.2020.02.04.03.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 03:22:14 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky Date: Tue, 4 Feb 2020 20:22:11 +0900 To: Andy Shevchenko Cc: Sergey Senozhatsky , Petr Mladek , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Steven Rostedt Subject: Re: [PATCH v1] printk: Declare log_wait as external variable Message-ID: <20200204112211.GA2009@jagdpanzerIV.localdomain> References: <20200203131528.52825-1-andriy.shevchenko@linux.intel.com> <20200204021620.GD41358@google.com> <20200204090533.GM32742@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200204090533.GM32742@smile.fi.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/02/04 11:05), Andy Shevchenko wrote: > > > --- a/kernel/printk/printk.c > > > +extern wait_queue_head_t log_wait; /* Used in fs/proc/kmsg.c */ > > > DECLARE_WAIT_QUEUE_HEAD(log_wait); > > > +#else > > > +static DECLARE_WAIT_QUEUE_HEAD(log_wait); > > > +#endif /* CONFIG_PROC_FS */ > > > > [..] > > > > Since we are now introducing CONFIG_PROC_FS dependency to printk (and > > proc/kmsg already has CONFIG_PRINTK dependency), > > I'm not sure I understood. The above does not introduce any dependencies. kernel/printk/printk.c +#ifdef CONFIG_PROC_FS .. Not exactly "dependency"... what is the correct word here. -ss