Received: by 10.223.185.116 with SMTP id b49csp4532383wrg; Tue, 6 Mar 2018 18:22:41 -0800 (PST) X-Google-Smtp-Source: AG47ELsopqy0topUQP2brY5JsbwXPsQ4hg0he8Dhzgo+8EqvaIFIjeuDcEGMPzd6qmv9pLopsJz1 X-Received: by 10.99.174.5 with SMTP id q5mr16775766pgf.170.1520389361776; Tue, 06 Mar 2018 18:22:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520389361; cv=none; d=google.com; s=arc-20160816; b=PzRanw7oMZUXBMJpsAKb8G91CLPHZExDTJoNf+E3xudTycIO6tQrdVh4FkBj/v767m O1I2kRLvCmiOzzJcR9w5JIL1WI4hZ3pP1fYEckjQAGW8ezidcqMjWHNDZp10h/aFG3+3 Dsrg9NF01T7DwKD0RHrJDoyellPj2PzLjNuMr42QU4QLxSiGHupFGI6wBOCwL5D6zJVH bX0Urw3ZqVbY4cXaBzeud+EcZExk3tOFLR0nVpAYjntLpwMLw0zs6skl4udk/e3C7qvl 2c8mMYiIlJE3ZJqKclXiw5H9bEg5G4M2uzLmOCqXE+dHdDdJIXt7Hv21vKDUK08s7Xh5 QzpA== 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:arc-authentication-results; bh=70IKpSbbyQqVtWz0Z0amh1H+5ng8d4rBzlLjAuWZQQM=; b=ixyXsiNXZWle4hqm/At3ZwmmA/6PaolCQdXXWpmKUfw0hiBE6ZLlkIiL4V52fGK7+B TJ5JMe1l2Kot6c91HyPX0CKuEUBefBH+iumMvgs0NsQi1yaXEKub51C78aK2A9Us78kC 7LIMkFS0QnhtfZ7O3GBwJbD9dDmarR/jFjmb3eUm4+f4W5xvbV+bCdla6lrZ7Rt4ebSg 5X1+lvR0aG97pDStN9GKm5r5wafmTgKYyvGQRszVtd2nqFP54bSgeVlSjSTBOWLQF+9p Acml1/fypc8SW/wF5RsOhAVWAjtCYWq75sx1NfgfsLRQa3dJzO9yapEt4yv6yO2zqyLx WRLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mQdv9mwc; 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 j11si12762262pff.406.2018.03.06.18.22.26; Tue, 06 Mar 2018 18:22:41 -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=mQdv9mwc; 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 S1754080AbeCGCVe (ORCPT + 99 others); Tue, 6 Mar 2018 21:21:34 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:39381 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753878AbeCGCVd (ORCPT ); Tue, 6 Mar 2018 21:21:33 -0500 Received: by mail-pf0-f195.google.com with SMTP id u5so351464pfh.6 for ; Tue, 06 Mar 2018 18:21:32 -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=70IKpSbbyQqVtWz0Z0amh1H+5ng8d4rBzlLjAuWZQQM=; b=mQdv9mwcvVXOdx5FMEF1KuD96oIRcxblDsQzYuh5F5v9vKDKVP8V6HxS42G+aMdKuS ubik+o61+9PRHcLATUrBI+x5Xgyjkc12f9bygXlj5bZ/fPc24yZ8Cc1pc7jODuJd2XwZ CjfDZGGqjhxzZXnqxi/lXcM+isI6thcfWBdfa/wPNaQmKwdlJtLj8XbPVk8w+O5sJBcJ zfLpHlLdI+mzbx3uNfMBfCztNyeDF1Fj03VCV0d1F+obbbmfbs9FPT8SuwUEWFyNS5Ch 01bBluCzZ9UWwSW2jcIfpCyLzOW+ChhN2tc+xcR3U4UoFF423vPK8cFJKJ3odQINvo03 olrw== 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=70IKpSbbyQqVtWz0Z0amh1H+5ng8d4rBzlLjAuWZQQM=; b=KKc4HYRzB29/SPeRcViPx9CrrKz83fyqL51wT6Qn7OIvgMJOsRta7ySG6kWG3JrAmB jwuYYFGWQsjwlsy6Bg9Z0REPeWxK/HVaCSfsVCBujNBYXrYnrnVztd4u5WlOjpTjVK9k gZQWjtIGvHIDwm5yVXDBqUwsrlntMp9unMm7Xuc1qmmKVvIIKvnks6JsvexQW8JzSVnk U20fr7TlXDbIP3/lNbmf1F7uKCVJEg5+ixDDkKxn+M1eImVIIL+yzvxFRFhFx/OBXmjl FwfCknAVz3iM2Mtf4zFw9jEtGgW7yCczGyrDqqC6PLCizhxxleE7cQr91p9j/UM1Nosr OZgg== X-Gm-Message-State: APf1xPD61Zhb5Xv0MRC4lOqniO0cnVRha4hUE9tSS6LrqUc10hwgQfKv XxFLPbfdd5xWp6G/9zRxFCs= X-Received: by 10.101.99.205 with SMTP id n13mr17066752pgv.345.1520389292511; Tue, 06 Mar 2018 18:21:32 -0800 (PST) Received: from localhost ([110.70.52.8]) by smtp.gmail.com with ESMTPSA id u21sm28765107pfg.60.2018.03.06.18.21.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Mar 2018 18:21:31 -0800 (PST) Date: Wed, 7 Mar 2018 11:21:27 +0900 From: Sergey Senozhatsky To: Arnd Bergmann Cc: Sergey Senozhatsky , 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 Subject: Re: [PATCH] dump_stack: convert generic dump_stack into a weak symbol Message-ID: <20180307022127.GB802@jagdpanzerIV> References: <20180305053742.9149-1-sergey.senozhatsky@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Arnd, On (03/06/18 14:27), Arnd Bergmann wrote: [..] > As we are now removing blackfin, based on the latest discussion, this > part should no longer be necessary. When is this going to happen? 4.17? [..] > nds32 currently only exists in linux-next, not in the mainline kernel. > If it's the only architecture that does something different from everyone > else, I think we should change nds32. > > I looked at the nds32 show_stack() implementation now and it > seems to me that it is completely unnecessary, as the implementation > from lib/dump_stack.c does basically the same thing (by calling > show_stack(NULL, NULL)). Interesting point. I'll leave it to nds32 maintainers. OTOH blackfin is still in linux-next, so I assume we need that __weak dump_stack() for the time being. [..] > > +asmlinkage __weak __visible void dump_stack(void) > > { > > __dump_stack(); > > } > > Weak symbols are generally discouraged in the kernel. We have > them in a couple of places, but I find them rather confusing as they > make it harder to figure out what is actually going on. Honestly, I kind of find __weak less confusing than EXPORT_SYMBOL(dump_stack) in 3 different places. __weak hints that the symbol likely will be overridden somewhere, while EXPORT_SYMBOL() does not (at least not to me). Dunno. -ss