From patchwork Sun Jul 15 07:32:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 1198541 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 707CDE007A for ; Sun, 15 Jul 2012 07:46:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751549Ab2GOHqO (ORCPT ); Sun, 15 Jul 2012 03:46:14 -0400 Received: from fallback8.mail.ru ([94.100.176.136]:35264 "EHLO fallback8.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060Ab2GOHqN (ORCPT ); Sun, 15 Jul 2012 03:46:13 -0400 X-Greylist: delayed 827 seconds by postgrey-1.27 at vger.kernel.org; Sun, 15 Jul 2012 03:46:13 EDT Received: from smtp25.mail.ru (smtp25.mail.ru [94.100.176.178]) by fallback8.mail.ru (mPOP.Fallback_MX) with ESMTP id 885914CAF3F6 for ; Sun, 15 Jul 2012 11:32:46 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Message-Id:Date:Subject:Cc:To:From; bh=YSoTsNsoNgEgFHlck5VmS2CuP8pvHlgNaSx8IfMfyls=; b=uBlyd2iYjiXJy4rVKZtvYHs3JBxkC7vE6T8QjLEqdfDKs/q5Mxf8xkml9jyOLs5pW2/oAz9fi1Q3we7zJ8UcULb8/yZLOKHH57I66zvA71TBNc3LXVoBXodrXXP6DHfe; Received: from [188.134.41.72] (port=13807 helo=localhost.localdomain) by smtp25.mail.ru with esmtpa (envelope-from ) id 1SqJJY-0001m7-PR; Sun, 15 Jul 2012 11:32:24 +0400 From: Alexander Shiyan To: linux-fbdev@vger.kernel.org Cc: Christopher Hoover , Florian Tobias Schandinat , Alexander Shiyan Subject: [PATCH] fb: epson1355fb: Fix section mismatch Date: Sun, 15 Jul 2012 11:32:38 +0400 Message-Id: <1342337558-9912-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.7.3.4 X-Spam: Not detected X-Mras: Ok Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org This patch fixes "section mismatch" warning in the epson1355fb driver. WARNING: vmlinux.o(.devinit.text+0x184): Section mismatch in reference from the function epson1355fb_probe() to the function .init.text:fetch_hw_state() The function __devinit epson1355fb_probe() references a function __init fetch_hw_state(). If fetch_hw_state is only used by epson1355fb_probe then annotate fetch_hw_state with a matching annotation. Signed-off-by: Alexander Shiyan --- drivers/video/epson1355fb.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/epson1355fb.c b/drivers/video/epson1355fb.c index a268cbf..68b9b51 100644 --- a/drivers/video/epson1355fb.c +++ b/drivers/video/epson1355fb.c @@ -477,11 +477,11 @@ static __init unsigned int get_fb_size(struct fb_info *info) return size; } -static int epson1355_width_tab[2][4] __initdata = +static int epson1355_width_tab[2][4] __devinitdata = { {4, 8, 16, -1}, {9, 12, 16, -1} }; -static int epson1355_bpp_tab[8] __initdata = { 1, 2, 4, 8, 15, 16 }; +static int epson1355_bpp_tab[8] __devinitdata = { 1, 2, 4, 8, 15, 16 }; -static void __init fetch_hw_state(struct fb_info *info, struct epson1355_par *par) +static void __devinit fetch_hw_state(struct fb_info *info, struct epson1355_par *par) { struct fb_var_screeninfo *var = &info->var; struct fb_fix_screeninfo *fix = &info->fix; @@ -601,7 +601,7 @@ static int epson1355fb_remove(struct platform_device *dev) return 0; } -int __devinit epson1355fb_probe(struct platform_device *dev) +static int __devinit epson1355fb_probe(struct platform_device *dev) { struct epson1355_par *default_par; struct fb_info *info;