Received: by 10.223.185.116 with SMTP id b49csp4895388wrg; Wed, 7 Mar 2018 02:58:59 -0800 (PST) X-Google-Smtp-Source: AG47ELu5QHyYBC7OFswep+VNrkU+3s8tYTjWrgm2bNSWixIn8LZXCEwRJb2YI2bY3+EPUEMgmINJ X-Received: by 10.101.67.198 with SMTP id n6mr17832589pgp.150.1520420339886; Wed, 07 Mar 2018 02:58:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520420339; cv=none; d=google.com; s=arc-20160816; b=0IgIrDRIjmPHAf2FRPFqCDAYNRQUUCz/wHsE2wCgeKLP61hdft0yzBeUrmDjJEr4TR WvNLUDsMslXwq9/BIGGFytaVJFgV3faegDAXD7JTeOlBp3SpPaaNucETVMKAVq/tl4Rw EzNB8PSFwefncpBiJHNcNzICRlLR7gIHTxvPqzu3jDPATy9ys6j/zHOdqfjlh4IPPa28 MI/HuoZMYLACked6rb1qBWMp3lAZpQbjlp285TmUbDrclflCHNPw5+ar7peNTxBkz5EH blsziwhhsg2xWjuXyJrt00y4JlCSph0LT7zumZkeWmZBRGX2n/buytqPgt2dlNUvM77c hZhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=kuhsMkI3/IhuPjJsvUUVoboLjXGQFtEuPn386uRtTdk=; b=yvUzkCgS/51d99AQz0y8BLUBFrsEmDYgawQR3flWvVXyWVI4J40zhoHnTrGX4DOY9E GR3BasDwElEEXrTdXW5QHU+hglYKEBDy/z6c63qVJDRuWQX791hV24CkNFw1IOn9YO+l OoZClEYZSPK1zl4mB2kMZwJVzgeBsxnDKfvbqePQad+S5O7Xt7IAU9iHEvikxrEFWltC Zl8uurWQ5dlU93mPuOr0UqmLqnXGf3JfVbvQ9H21vf1jN3BmRY9r1I35YlcEujyt4d6z t7fb9oF4hqSVMCCaMiwzXRZp5XV7sKPe9AJOzBCGlvGV/o5Qo6UMM1ZPvHFWsmxagVCT lIoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MmlxeO7V; 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 p2-v6si10957886pls.436.2018.03.07.02.58.45; Wed, 07 Mar 2018 02:58:59 -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=fail header.i=@gmail.com header.s=20161025 header.b=MmlxeO7V; 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 S1754333AbeCGK5o (ORCPT + 99 others); Wed, 7 Mar 2018 05:57:44 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:42866 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754293AbeCGK5h (ORCPT ); Wed, 7 Mar 2018 05:57:37 -0500 Received: by mail-qk0-f196.google.com with SMTP id b130so2052913qkg.9 for ; Wed, 07 Mar 2018 02:57:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=kuhsMkI3/IhuPjJsvUUVoboLjXGQFtEuPn386uRtTdk=; b=MmlxeO7VoV4GXZoQk7nY4VJpaG+w6jxOij0A/8Jcq+6TKWXUNOwWKCkJHfeVKTmzWH KAewBk9G/ZwqfZp20BoMRoJlNBRE5TE1zW/zJa+LH7BAbXK1muxpxAQGlTZSPIPna0K8 fZLirTZ8mZCLBvrmuuYFhg7WNWjc1Sv0sP/2SM8Rsx3mS45YyhQnytcI/0P8pHKEEyaZ c/4U/gSNek/2mzEseE6A+yYnX/OVnzNzuaWAAw4C85QpxZUHp7k965mAgndJUoaFw/wi olkvw9TIJgmLRU3uFPAnVLkS4iNa41zE2d7tFHmR33jeD4uaxyYsT5Ou7IsV0WEK7QZQ w98Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=kuhsMkI3/IhuPjJsvUUVoboLjXGQFtEuPn386uRtTdk=; b=GFHCf7ei98v4cqf7gLJTd7OAmLmcrZuGV33t1xb1TJ+1ZEk4DppnEPgENNOyYey209 yzSzbNf6Oy1cSoRTpRcO7MRRtvmv3Z3oy72UCUnm/Kbxmroca12JU3WPLrUnA7HYkWeV g4tUIPB51owJP1Aj5qPVI3rtXJFOB+FIKprwIA/Aa+tO7nyBMlPR+uSEkT4WL9D2t5yO bPp16HPoGsUomCmqHK7XE+pQ8P1+CFxOkitq6lkmqMxIAnzlDBUn4t5p7Nav/AWFxiA2 r1g0BkpLZ4j+5lf4arh3Sofr0ugJG6KDLhpHG+TRAV+prCBT8sKFSODC2HeHNwGca3/Z +xnw== X-Gm-Message-State: AElRT7EQooPF4qXxRul/9stL30mLBsvG3Lbosfkeqr6DncqQWOpaUaIi V7/f4RJgxhpsyKkJHDmevOLzgWMm2PWTAdhqgcU= X-Received: by 10.55.215.153 with SMTP id t25mr30864227qkt.343.1520420256310; Wed, 07 Mar 2018 02:57:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.185.46 with HTTP; Wed, 7 Mar 2018 02:57:35 -0800 (PST) In-Reply-To: <20180307104002.GA505@jagdpanzerIV> References: <20180305053742.9149-1-sergey.senozhatsky@gmail.com> <20180307022127.GB802@jagdpanzerIV> <20180307104002.GA505@jagdpanzerIV> From: Arnd Bergmann Date: Wed, 7 Mar 2018 11:57:35 +0100 X-Google-Sender-Auth: E15orKau_EbouSL7Rnahljlas_0 Message-ID: Subject: Re: [PATCH] dump_stack: convert generic dump_stack into a weak symbol To: Sergey Senozhatsky Cc: Petr Mladek , Tejun Heo , Steven Rostedt , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 7, 2018 at 11:40 AM, Sergey Senozhatsky wrote: > On (03/07/18 09:46), Arnd Bergmann wrote: >> > >> > When is this going to happen? 4.17? >> >> Originally I planned to wait a few more releases, but the last maintainer >> has commented that he will now send a patch for immediate removal, >> so 4.17 is almost certain at this point. > > Would be great to get it removed as soon as possible then. Otherwise we > will get broken blackfin build errors from Stephen (or would need to hold > off Dave's patch). You could also add a patch to your tree that removes the blackfin dump_stack() function, or we could ask Stephen and the other people operating build bots to stop building blackfin right now (they will have to do that anyway once the arch gets removed). >> With your patch, I would actually expect the lib/dump_stack.o file >> to still not be picked up, so now you have a missing EXPORT_SYMBOL() >> on the two unusual architectures until the point when you add another >> (referenced) symbol to it. > > Interesting point. Didn't check it. But I checked that we have at least > one reference to lib/dump_stack from every arch so __weak could work its > magic. The function is show_regs_print_info(). AFAICT, every arch calls > it (we have it in lib/dump_stack now, so we will link with lib/dump_stack). > Anyway, I'll be happy to drop my patch. Thanks for taking a look. Ah, right, that is after your second patch. So after the first one, it might be broken, but the follow-up patch fixes it. Since lib/dump_stack.c is mandatory then, I would suggest making it obj-y and moving it out of lib/ into kernel/printk/. Arnd