Received: by 10.223.185.111 with SMTP id b44csp107146wrg; Fri, 9 Mar 2018 01:52:49 -0800 (PST) X-Google-Smtp-Source: AG47ELv5rclTcMFhcwlTo+ta1WDD4C/YaGb8snbL2t+25s7VFmJCAlFDmGmIsgLupogV+YWObLgO X-Received: by 2002:a17:902:ab89:: with SMTP id f9-v6mr26701559plr.369.1520589169424; Fri, 09 Mar 2018 01:52:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520589169; cv=none; d=google.com; s=arc-20160816; b=PiZpN70cRoML/LrXqWsMX6H9yXQHzTrkmS6wEGFTSd9mO7JUNtNzuywXe+mN6SFSQo GgYgCp4h9oFjNM9V7aoFZnCpK2lwy51Q6AfjMjWRiS7dLaI2YKX45+tAyhTRy8deZ06A Gqz/2oCJQyR9jCyc+93JmE6fPbeLmA5CMIsRtcWrqGrL3QccaaGQ7XnK3xWujUGZhvcc CSimPYPVaJtFYVPgMt3jmqd9AUE5LicTVd3DzpP555CJKaK3iPsScaGWeUTNp0VjC8b3 b+izx3N0Hhc721P+NykjACKY26IfEPGQgLx3oQB54F0GMSexBlU/MZFvrMhQOO3DgdBv AzcQ== 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=XX+grDCQC1hab/cKSwDiuTfiTICUVNVBtc/gSCiNE+s=; b=V/fCW2JaQdsj44rfznsYQ9f6KJ4OGZTEqMjsGFZ4HrCQwMYtQK86yD8r7Y5C19x2C7 qHv065jbQ4BQcYDUxmR2JgNv4P5b+sM4QXFGlxpB6D0BcRa2m95HhdMw9jLBCL84gywM x7O7ZDy1QsJkvT+M6PEoi9nnAhJuOUa4OFCpqXDEbrqJlzXY2HskRCbHHbvi7XIS4ju9 deiAA6MdWu2YapGQ+eLqwXiPMp2oZJA4r0xX76l/PqMucCJOaFMVbDUlEjeb9MNqqyYs gFsJzi1335Fxew5q5rU9USnnOQX4uVAFTDP6cjyQsuept3M2X54sXtUViL1+SeQVPuDU zV3g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 131si585826pfa.109.2018.03.09.01.52.35; Fri, 09 Mar 2018 01:52:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751246AbeCIJu6 (ORCPT + 99 others); Fri, 9 Mar 2018 04:50:58 -0500 Received: from mx2.suse.de ([195.135.220.15]:56287 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750909AbeCIJu5 (ORCPT ); Fri, 9 Mar 2018 04:50:57 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2EEE5AED5; Fri, 9 Mar 2018 09:50:56 +0000 (UTC) Date: Fri, 9 Mar 2018 10:50:55 +0100 From: Petr Mladek To: Steven Rostedt Cc: Arnd Bergmann , Tejun Heo , Sergey Senozhatsky , Dave Young , Andi Kleen , Greentime Hu , Vincent Chen , Peter Zijlstra , Andrew Morton , Stephen Rothwell , adi-buildroot-devel@lists.sourceforge.net, Linux Kernel Mailing List , Sergey Senozhatsky Subject: Re: [PATCH] dump_stack: convert generic dump_stack into a weak symbol Message-ID: <20180309095054.vrngc6fz7wo3hd4x@pathway.suse.cz> References: <20180305053742.9149-1-sergey.senozhatsky@gmail.com> <20180307022127.GB802@jagdpanzerIV> <20180307104002.GA505@jagdpanzerIV> <20180307114845.GA894@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180307114845.GA894@jagdpanzerIV> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2018-03-07 20:48:56, Sergey Senozhatsky wrote: > On (03/07/18 11:57), Arnd Bergmann wrote: > > Since lib/dump_stack.c is mandatory then, I would suggest making it > > obj-y and moving it out of lib/ into kernel/printk/. > > Totally agree on obj-y. And tend to agree on moving lib/dump_stack to > kernel/printk. lib/dump_stack depends on CONFIG_PRINTK and is partially > in printk.h. So it _mostly_ seems like the right place after all. I agree that we should define dump_stack.o as obj-y. Also it makes sense to move it to kernel/printk/. As Sergey said: it depends on CONFIG_PRINTK and is in printk.h. Steven, do you agree or would you suggest another location? It was you who suggested to move the several functions from printk.c to dump_stack.c. IMHO, the motivation was to fix responsibilities (maintainer-ship) of this stuff. This will not really happen if we move the file to printk directory. Best Regards, Petr