Received: by 10.223.176.5 with SMTP id f5csp2836305wra; Mon, 5 Feb 2018 10:40:18 -0800 (PST) X-Google-Smtp-Source: AH8x226BLsGyadIZRgV2HBgT7MAtaD2L2LtU0n2d3WAGGEA0LKM8yIxqYHe7dCH26h1bvRl7h07F X-Received: by 10.99.95.150 with SMTP id t144mr9089654pgb.59.1517856017854; Mon, 05 Feb 2018 10:40:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517856017; cv=none; d=google.com; s=arc-20160816; b=yaZf4zsZRQ8VWhRfYsuGlBzKNCw0ccEHhfBPce4IrGs7MNibSBgp0Z3gnI8kfBCs1Z FPBv2uOtkSfXiUqc3GgWcGdjNCBfDziaJ9g6tqN6fM2b6kTYBrFsxA4MR7MO3c1L874y 6Gg+hjB69xB1o9+TfClAQpmsJmxkR408vTOIPB2ers6oslaJfzQqNCh9sYtoH7SVeb6w j8je4ViN6ZEnF78pqAIZbhEs5IiMbHbupCfa8T10QklkWx2UtxZ55jDemrl9eTAqiffD 3Qyzm6wSAU1ZD3Nt7tWkndd1QWyLrMN2B3Y892fillbZwdRYqJkG1GpWn7Z+cUHrETfe yE5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=zQHY5nwGaxK4NRSz567Qq1RhisFpqmP+0NvKkhGsQMc=; b=0F3cRUZPkfoHgSeg8xLv7UtO5AniyVs6VKmez3tIHlUSovBOAZYDySZ+ofp5eSxKcq LsFXhtr95nwtg43lILjRiqGWFaVF9GvjPRwfSHRYrH4h/MNyptrDQuKmZyGqMO9urzBn lNH9C0RZVV0VXQr+UT4HYCbWjxGSWpmDy0PjzQ4M8X+HtjuzhFobSD14I+9KyBKWe31N SnJZqEBHQvK0xQvQHtTbEXt7jasDHChzA5V6E5Yku2NnxnKeqwAhwIH0HAnsz/HXhO8V 69Y3eL+8MbiYhgOvoFqyvbTZGZE8SntnO4Q80AkdSfKP7Utngk8+E4Yfs8IXfcHHaVXB Pl4Q== 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 y73-v6si2373076plh.48.2018.02.05.10.40.03; Mon, 05 Feb 2018 10:40:17 -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 S1753919AbeBESjR (ORCPT + 99 others); Mon, 5 Feb 2018 13:39:17 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:54282 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753926AbeBES0n (ORCPT ); Mon, 5 Feb 2018 13:26:43 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 73DE5E29; Mon, 5 Feb 2018 18:26:31 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans-Werner Hilse , Richard Weinberger , Greg Hackmann , Bernie Innocenti , Lorenzo Colitti Subject: [PATCH 3.18 04/36] um: Remove copy&paste code from init.h Date: Mon, 5 Feb 2018 10:23:32 -0800 Message-Id: <20180205182351.958233875@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180205182351.774761393@linuxfoundation.org> References: <20180205182351.774761393@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 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 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Richard Weinberger commit 30b11ee9ae23d78de66b9ae315880af17a64ba83 upstream. As we got rid of the __KERNEL__ abuse, we can directly include linux/compiler.h now. This also allows gcc 5 to build UML. Reported-by: Hans-Werner Hilse Signed-off-by: Richard Weinberger Cc: Greg Hackmann Cc: Bernie Innocenti Cc: Lorenzo Colitti Signed-off-by: Greg Kroah-Hartman --- arch/um/include/shared/init.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) --- a/arch/um/include/shared/init.h +++ b/arch/um/include/shared/init.h @@ -40,28 +40,8 @@ typedef int (*initcall_t)(void); typedef void (*exitcall_t)(void); -#ifdef __UM_HOST__ -#ifndef __section -# define __section(S) __attribute__ ((__section__(#S))) -#endif - -#if __GNUC__ == 3 - -#if __GNUC_MINOR__ >= 3 -# define __used __attribute__((__used__)) -#else -# define __used __attribute__((__unused__)) -#endif - -#else -#if __GNUC__ == 4 -# define __used __attribute__((__used__)) -#endif -#endif - -#else #include -#endif + /* These are for everybody (although not all archs will actually discard it in modules) */ #define __init __section(.init.text)