From patchwork Sun Jan 1 16:36:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9492903 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5F36660416 for ; Sun, 1 Jan 2017 16:36:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A42320246 for ; Sun, 1 Jan 2017 16:36:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EB8D223B2; Sun, 1 Jan 2017 16:36:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE4D020246 for ; Sun, 1 Jan 2017 16:36:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932215AbdAAQgj (ORCPT ); Sun, 1 Jan 2017 11:36:39 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34135 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932066AbdAAQgi (ORCPT ); Sun, 1 Jan 2017 11:36:38 -0500 Received: by mail-pg0-f67.google.com with SMTP id b1so28089389pgc.1; Sun, 01 Jan 2017 08:36:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Pdl8Ee38vM3wl+EMHH7F8LApic7/JuQyLkS90mS+svo=; b=b6oPGS8UyEJEEu6wTUM4LkH3Yvh/GgBKYtw5utKHgKXw4npPPMY1zpY6dYmE3QiLu6 rnDxIA0T8aYs5w4xOmAH3CfBAx43JV9eC5QyacIxpTXt83fTqSD/hTLVMUJkBXulUcjF 4Y7SMmzvblrPB5dP/76R4zpBHdl5EgyzHODpXd9XZdrc5h7ugMHL2kC3m3t1yZ+YIbfO XLb/JV725pKiq//teqd66oc8CkkzpfylnfOZn2ANuiQcPiYPwpbtnpcPzLi9Ry6jShjE V4ePq+66ij+Tlv375n1dJmuFshg0AaJgOpqxdNFM2vzmEBoQkNb8dVp86gFlmt8oF4NJ Yj8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Pdl8Ee38vM3wl+EMHH7F8LApic7/JuQyLkS90mS+svo=; b=AzD7lFkpCuOSzIbR16iAjbcBe0tHPNctZ/e5NOkxrrdjZi/YXikW+fAXZfaoQ7k1TZ zhhyBZcJDnfK58xN91nsrtMK/K8OfklPSxyPNGUnit7foiLmJSZ9tbB+X/oeD4YRbtE7 BaRd685uaTf8xCalFvDvdOXAtnIp3lk2qIVvq8n65Z1S4tgo+MCLwHDu8qlqXfB3a0vn D1HHKMKWwrSv9rincvV4Hh47ohJtx07XMyPDMYrFssCVl1skM3c3OKWsHIUehSVwFs9x Ndv8S3Fdq5aVP0YiMwWDnhX8rHuCb8yLrq/L4/O9Ib9/JtkeltiCyCHPs9MToQB3U3pA Mhvw== X-Gm-Message-State: AIkVDXLFLNqgjCy85x2t+dG3DBAQxooN7gp/E+C7HVqo9rFhYYrBFfcTK0gR5BXBLzF/mw== X-Received: by 10.99.178.89 with SMTP id t25mr100576647pgo.131.1483288597657; Sun, 01 Jan 2017 08:36:37 -0800 (PST) Received: from gmail.com ([2405:204:5205:5646:5fa:4721:650:924f]) by smtp.gmail.com with ESMTPSA id c64sm81767449pfa.91.2017.01.01.08.36.33 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 01 Jan 2017 08:36:36 -0800 (PST) Received: by gmail.com (sSMTP sendmail emulation); Sun, 01 Jan 2017 22:06:29 +0530 From: Bhumika Goyal To: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: julia.lawall@lip6.fr, tomi.valkeinen@ti.com, Bhumika Goyal Subject: [PATCH] video: fbdev: maxinefb: add __initdata to maxinefb_fix Date: Sun, 1 Jan 2017 22:06:17 +0530 Message-Id: <1483288577-17122-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The object maxinefb_fix of type fb_fix_screeninfo is never referenced after initialization by maxinefb_init. In the init function, the object and one of its fields is only stored into another variable. So, the object and its fields are never referenced anywhere after initialization and therefore add __initdata to its declaration. Signed-off-by: Bhumika Goyal --- drivers/video/fbdev/maxinefb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/maxinefb.c b/drivers/video/fbdev/maxinefb.c index 5cf52d3..cab7333 100644 --- a/drivers/video/fbdev/maxinefb.c +++ b/drivers/video/fbdev/maxinefb.c @@ -51,7 +51,7 @@ .vmode = FB_VMODE_NONINTERLACED, }; -static struct fb_fix_screeninfo maxinefb_fix = { +static struct fb_fix_screeninfo maxinefb_fix __initdata = { .id = "Maxine", .smem_len = (1024*768), .type = FB_TYPE_PACKED_PIXELS,