Received: by 10.223.176.5 with SMTP id f5csp410655wra; Fri, 9 Feb 2018 00:52:37 -0800 (PST) X-Google-Smtp-Source: AH8x226zrWuCt1qi3YW486bzrf+vvTI+JK6ax8sfUpcIP6AOekoMtK3IM0seTdee7UnrBVX7VaQ8 X-Received: by 10.98.218.77 with SMTP id w13mr2013890pfl.85.1518166356909; Fri, 09 Feb 2018 00:52:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518166356; cv=none; d=google.com; s=arc-20160816; b=yGENdCxNw4OqQi5wsK5+pShSmvmWHUI2GZ1Zklx47VtqJ+uqPumiTeJ8bTr8qWdsl0 MGUGDtMcpmcd82Oqzt6RiqCLeW/TFKHskzHkaTZYjAY5KIfWUUAR4sJl2K5XswJEffSa +J4itacXSF/rLEp9Pm2qCTQyapmD9WMUgWwetXSkXsK4Azq7BPMO2Pz1x9hoIu4yi6QB yL8iqmaX3Bi3ZfcEiuFkmKX3XLbr7/5rMDmu1QIUz4369Vk5LHy8oMIU9k9vM5VvQPl8 K92yYFQkO4TxY6AtgZpd51jCoU+Ks6h/KeXhl6DmOgN4O10SJsNCNWJtCsvAwAJSMz4y i2Pg== 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:arc-authentication-results; bh=bkGqfq3vY3gZs658QksrSzVi9HDPYQDeiFEvsFl0Prs=; b=jqJMZoPX6dm1rtNdRtfaZV+lEuPfuIt25N7pDknc+6K2PVSsiSIEFKHHmx4D8vqHNA JiZ4KVilr8D2hpVLUclzSwDCGQk+Wre8uAi07WmnHCCgicJGWrD+bNoY2nl7k6ETFzxf qzQuj4wppG2TKVHgXZzyFA+DZxcfy8LYBCLiPBu85XIqrnbXONDQreWYOjLApaeo9Qjw rUdD69F68wwWRe+d5SnaF0g8J0CNO05wQYqOEUaDi/4fM/qU6Kq23Sd4ufvcI3lZOMf2 dgK6tZyM6iGa2BImt34J6oKlADU8dT+6Ns5/lF70GpOuOpsSW6zliPufOl0YYqRHNADu ALcg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si1401540pfk.153.2018.02.09.00.52.19; Fri, 09 Feb 2018 00:52:36 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751201AbeBIIvZ (ORCPT + 99 others); Fri, 9 Feb 2018 03:51:25 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46648 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750933AbeBIIvY (ORCPT ); Fri, 9 Feb 2018 03:51:24 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 46093407604F; Fri, 9 Feb 2018 08:51:24 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-52.pek2.redhat.com [10.72.12.52]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5623C2026DFD; Fri, 9 Feb 2018 08:51:21 +0000 (UTC) Date: Fri, 9 Feb 2018 16:51:16 +0800 From: Dave Young To: Sergey Senozhatsky Cc: Steven Rostedt , Petr Mladek , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Andi Kleen Subject: Re: [PATCH] printk: move dump stack related code to lib/dump_stack.c Message-ID: <20180209085116.GB5454@dhcp-128-65.nay.redhat.com> References: <20180209080624.GA2607@dhcp-128-65.nay.redhat.com> <20180209081604.GE689@jagdpanzerIV> <20180209082743.GA14845@dhcp-128-65.nay.redhat.com> <20180209084235.GF689@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180209084235.GF689@jagdpanzerIV> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 09 Feb 2018 08:51:24 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 09 Feb 2018 08:51:24 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dyoung@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/09/18 at 05:42pm, Sergey Senozhatsky wrote: > On (02/09/18 16:27), Dave Young wrote: > > > Seems that those functions are still defined in printk header. > > > Did you test !CONFIG_PRINTK build? > > Apparently dump_stack(void) is also in printk.h > > extern asmlinkage void dump_stack(void) __cold; > > so it's "OK" to keep those functions in printk.h, I guess. I thought > that dump_stack() had its own header file... It has not unfortunately.. The build failed because we have dummy functions in printk.h and redefined in lib/dump_stack.c. I'm hesitating to add #ifdef CONFIG_PRINTK in lib/dump_stack.c. > > > !CONFIG_PRINTK will use the dummy functions in printk.h, I did not test > > the build, doing it now to double confirm.. > > Not sure. Please test. > > -ss Thanks Dave