Received: by 10.223.176.5 with SMTP id f5csp3438091wra; Mon, 29 Jan 2018 13:10:43 -0800 (PST) X-Google-Smtp-Source: AH8x2251w5k11iIntWuH4gBh3GjH8f1SRSTkwsPR4zLICHbEgnXiVWhbP3uEmoPHvY64z2BFqgQ6 X-Received: by 2002:a17:902:2865:: with SMTP id e92-v6mr22070930plb.267.1517260243655; Mon, 29 Jan 2018 13:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517260243; cv=none; d=google.com; s=arc-20160816; b=IfhN2pKF8y9ycjXGFX833XodynjJaVKBhq+KkfbhsKibvpl2piEAL+6kWmqEVHO1XS bBNszPDFi2aGjf1KhAakwEVtZachht/jt+qTQhR6GqFSg2GJDJa2z6fgz2kMW7G2koHi 7hDHgRFrYDNz9vs98V9d4PBtz4NN2xbJD7Wo4JWQlQAbZ5B8Y4j0JKulSKiCcNYq1yiq OGX+xlXkETxnaX6cpkucEwBfj8AoAcB+a++DQkCwi+CfpZxJJ6iJD1BpGIIqbDJlt4qH jnmfdKSvZiF3/GvYiqtEExPDT6Ewfd1CdEIPDdCLwCjRSc8nuMMBUaQDwIy85oLD6lpL Msvw== 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=lEvT9VwtwSBjwwCOTrJ/vrsipkN6CCK/gWZV2/P0YbI8tFrqPQYdmERBV1BSdtWAH7 w8ZMfNnGrXOP1z87wino+epXq0dbI6pXeh6ZiXalogg2Doqy3EOpcImOHa7DEqqUAQcO Pf+rl2mOhjCvcZ2wtYJN5rOu+dFJWieIZYEV4H81I0y2P2Xwq6dRINyOcnKdrAnCfZ3Y 1ffdXPRddyDN2UihKDp0JspZqslvfBblYz/kMQ7JUdj1a72Vg27Chx/6Udxrri9Kysyv fvN+09ki2/BnVibAxGyX19evYGA6ZB9dA9VDqS2FZQi7WLaQ45FG0x7e/9++J6MvyAsb XKNg== 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 g14-v6si4138188plj.292.2018.01.29.13.10.28; Mon, 29 Jan 2018 13:10:43 -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 S1752669AbeA2UGX (ORCPT + 99 others); Mon, 29 Jan 2018 15:06:23 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47804 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752066AbeA2UGQ (ORCPT ); Mon, 29 Jan 2018 15:06:16 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 00D672EB4; Mon, 29 Jan 2018 12:59:33 +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 39/52] um: Remove copy&paste code from init.h Date: Mon, 29 Jan 2018 13:56:57 +0100 Message-Id: <20180129123629.898971218@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123628.168904217@linuxfoundation.org> References: <20180129123628.168904217@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)