From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932862AbcGGBto (ORCPT ); Wed, 6 Jul 2016 21:49:44 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:39450 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755619AbcGGBtm (ORCPT ); Wed, 6 Jul 2016 21:49:42 -0400 Date: Wed, 06 Jul 2016 18:49:29 -0700 (PDT) Message-Id: <20160706.184929.373589229424928717.davem@davemloft.net> To: jbaron@akamai.com Cc: akpm@linux-foundation.org, joe@perches.com, peterz@infradead.org, linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH v3 3/7] sparc: support static_key usage in non-module __exit sections From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 06 Jul 2016 18:49:41 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jason Baron Date: Wed, 6 Jul 2016 17:42:32 -0400 > The jump table can reference text found in an __exit section. Thus, > instead of discarding it at build/link time, include EXIT_TEXT as part > of __init and release it at system boot time. > > Without this patch the link fails with: > > `.exit.text' referenced in section `__jump_table' of xxx.o: > defined in discarded section `.exit.text' of xxx.o > > Cc: "David S. Miller" > Cc: sparclinux@vger.kernel.org > Signed-off-by: Jason Baron Acked-by: David S. Miller