From patchwork Tue Jan 21 21:22:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Gortmaker X-Patchwork-Id: 3520601 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D7915C02DD for ; Tue, 21 Jan 2014 21:43:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A56020149 for ; Tue, 21 Jan 2014 21:43:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48C642015A for ; Tue, 21 Jan 2014 21:43:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932150AbaAUVnN (ORCPT ); Tue, 21 Jan 2014 16:43:13 -0500 Received: from mail1.windriver.com ([147.11.146.13]:50670 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754179AbaAUVYu (ORCPT ); Tue, 21 Jan 2014 16:24:50 -0500 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.5) with ESMTP id s0LLOmNB029040 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 21 Jan 2014 13:24:48 -0800 (PST) Received: from yow-lpgnfs-02.corp.ad.wrs.com (128.224.149.8) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.2.347.0; Tue, 21 Jan 2014 13:24:49 -0800 From: Paul Gortmaker To: CC: , Paul Gortmaker , Subject: [PATCH 32/73] logo: emit "#include in autogenerated C file Date: Tue, 21 Jan 2014 16:22:35 -0500 Message-ID: <1390339396-3479-33-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 1.8.4.1 In-Reply-To: <1390339396-3479-1-git-send-email-paul.gortmaker@windriver.com> References: <1390339396-3479-1-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The header linux_logo.h itself does not use any __init type directives, but the autogenerated C file itself does. Hence move the include directive into the autogenerated file. Cc: linux-fbdev@vger.kernel.org Signed-off-by: Paul Gortmaker --- include/linux/linux_logo.h | 3 --- scripts/pnmtologo.c | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/linux_logo.h b/include/linux/linux_logo.h index ca5bd91..aea584c 100644 --- a/include/linux/linux_logo.h +++ b/include/linux/linux_logo.h @@ -14,9 +14,6 @@ * but should contain %s to display the version */ -#include - - #define LINUX_LOGO_MONO 1 /* monochrome black/white */ #define LINUX_LOGO_VGA16 2 /* 16 colors VGA text palette */ #define LINUX_LOGO_CLUT224 3 /* 224 colors */ diff --git a/scripts/pnmtologo.c b/scripts/pnmtologo.c index 68bb4ef..06a4b4e 100644 --- a/scripts/pnmtologo.c +++ b/scripts/pnmtologo.c @@ -243,6 +243,7 @@ static void write_header(void) fputs(" *\n", out); fprintf(out, " * Linux logo %s\n", logoname); fputs(" */\n\n", out); + fputs("#include \n", out); fputs("#include \n\n", out); fprintf(out, "static unsigned char %s_data[] __initdata = {\n", logoname);