Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4468459ybx; Mon, 4 Nov 2019 13:56:49 -0800 (PST) X-Google-Smtp-Source: APXvYqzhWY5ZXv4eNYUdVyieDkxf1SCnwdKJ5PB0tJb1iADgNO3DfS0kYIMolYFZzaPvlzNe0PBY X-Received: by 2002:a05:6402:339:: with SMTP id q25mr11614867edw.80.1572904609416; Mon, 04 Nov 2019 13:56:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572904609; cv=none; d=google.com; s=arc-20160816; b=xs2kRdOVicBqbGUb490piTvSomOV1GP+U48fv7jKqkU+drxfENcMgHphmVOxwuzhzd yEhg8waVTafSuOS7eAJa2GweC6Lny7oDQAj7/yysT7X/NDi0PBzpRzEATgDfTVkj6Fne lZrKk3ThmdPjXNE+uE3fOPE/TxrBvStzmB6pUQfvlvkrolsfpJ1DRrByADZxdimNQAi9 5Cjh2SYIakYEEUoZJrKXEXWtMzyaTpv41kGkiQBjwGmE4NubiWjS6DQBVAeMBDP4WNTd H4Sqhg9OA3PWh0Ec6oSg+0PAKUk2R/1KTRX8NLoCfp6DVwVxMQa7YpEqvHCp9LF8By2y 11iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rzJ9F9X71ubTq2YdoSBHorIFFk2p58RjOeHM7lZuELs=; b=w38sGSDbT8nmZHF9b5ipY7mQB5bkDvhbKkAls/Enr1/RRmWB9cZZcToeZi7JxaO6Fl T0Z9t/m12DINj2kwJINb16bgJSB8CEV5RJf7yuSt2yetwGe+RHN0SYg5NPC9PS/lj+SD +6T7emETSJ/K6bzckrnqlvwyxyireKkyUhQw3Rt+VdJEx+DR5PS8OGDcl+sPjoofsRg/ TTAV5mqGWbBLhz3yq1IWUh04tuo2FlO/O8NaJKvaTK/OTq8IWu+l093Wl7uy3p+RdX5F nSeGCxHX3QmpHI9eQvmSAid/93PZWytksIcJcCfWUWScON/i3Ckj3FWeQYV2j40mersz Yfrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CaepKYIY; 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 f31si8146910edf.75.2019.11.04.13.56.26; Mon, 04 Nov 2019 13:56: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; dkim=pass header.i=@kernel.org header.s=default header.b=CaepKYIY; 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 S1731027AbfKDVxh (ORCPT + 99 others); Mon, 4 Nov 2019 16:53:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:47586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731013AbfKDVxf (ORCPT ); Mon, 4 Nov 2019 16:53:35 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F18492184C; Mon, 4 Nov 2019 21:53:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572904414; bh=xLXdFi8n6WZrtC00jlEDcjziMRoPWb3Glh6aR0819tU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CaepKYIYwsDyM+TKp3VBxPt7oEsKWXYuvGeZGQ2X1Rjm9Iz9tCLuhJsgVc6gkIBUG gEEt8QLGeUloYEQWRmuDX1y3kIejOfySIS9yR/KVNTnoLK7Wibp35EogRnHaQskvMu 5zldfQ5XSXtgw8OBz6PYRMWLeGXdtf4eR1UMdca0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Randy Dunlap , Kees Cook , "David S. Miller" , Andrew Morton , Sasha Levin Subject: [PATCH 4.14 37/95] tty: n_hdlc: fix build on SPARC Date: Mon, 4 Nov 2019 22:44:35 +0100 Message-Id: <20191104212101.283597989@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212038.056365853@linuxfoundation.org> References: <20191104212038.056365853@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 47a7e5e97d4edd7b14974d34f0e5a5560fad2915 ] Fix tty driver build on SPARC by not using __exitdata. It appears that SPARC does not support section .exit.data. Fixes these build errors: `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o Reported-by: kbuild test robot Fixes: 063246641d4a ("format-security: move static strings to const") Signed-off-by: Randy Dunlap Cc: Kees Cook Cc: Greg Kroah-Hartman Cc: "David S. Miller" Cc: Andrew Morton Link: https://lore.kernel.org/r/675e7bd9-955b-3ff3-1101-a973b58b5b75@infradead.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/n_hdlc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/tty/n_hdlc.c b/drivers/tty/n_hdlc.c index 08bd6b965847f..e83dea8d6633a 100644 --- a/drivers/tty/n_hdlc.c +++ b/drivers/tty/n_hdlc.c @@ -969,6 +969,11 @@ static int __init n_hdlc_init(void) } /* end of init_module() */ +#ifdef CONFIG_SPARC +#undef __exitdata +#define __exitdata +#endif + static const char hdlc_unregister_ok[] __exitdata = KERN_INFO "N_HDLC: line discipline unregistered\n"; static const char hdlc_unregister_fail[] __exitdata = -- 2.20.1