From patchwork Tue Mar 10 08:45:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5975591 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5C836BF440 for ; Tue, 10 Mar 2015 08:46:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 996132012E for ; Tue, 10 Mar 2015 08:46:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B48AB20220 for ; Tue, 10 Mar 2015 08:46:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752369AbbCJIq2 (ORCPT ); Tue, 10 Mar 2015 04:46:28 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:46821 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752635AbbCJIqX (ORCPT ); Tue, 10 Mar 2015 04:46:23 -0400 Received: by pabli10 with SMTP id li10so21471pab.13; Tue, 10 Mar 2015 01:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hRw98Ay17H1YI5+jsqROH+VvUCfA+vKJCaGU6AwaaPw=; b=q8O6/FZICC43RagYwVg3N5hWEZktwsljaAadIiyS4uyLYJ/eg4dUSJaL42ME27lrM0 rWanx+hZkeGfWHY5C8vA1ClGTZy6ryXc4PAISPx/TKAA2GhkziYcosxvRoNEoG5vO/rG DJKqRzeCWa8uhJYplM2eYdtz5ftzuCFeSfCmQaMnQnGX3wIEqZoltDKgD+w7ffzipLCo E/7YSHTQc+r16QmaFSvzXEtSxVnQl2WTaR49R/1IBV2rdgl6nBXXxdtSskAQO0RVDC+I hQoTAJAeMJYM61lcSws8K453AmFX16MIWHLbUb6NoTtUt/iVyC0xQ3Qkt4EEl1u1ba/J sJew== X-Received: by 10.66.234.2 with SMTP id ua2mr42061497pac.137.1425977182958; Tue, 10 Mar 2015 01:46:22 -0700 (PDT) Received: from localhost.localdomain ([122.169.145.94]) by mx.google.com with ESMTPSA id v2sm22937994pdm.77.2015.03.10.01.46.20 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Mar 2015 01:46:22 -0700 (PDT) From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [PATCH v3 5/5] staging: sm750fb: fix build failure Date: Tue, 10 Mar 2015 14:15:39 +0530 Message-Id: <1425977139-25285-5-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1425977139-25285-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1425977139-25285-1-git-send-email-sudipm.mukherjee@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_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 for powerpc-allyesconfig build failed with an error of g_option undeclared. we will get this error on all architecture if MODULE is not defined. fixed the declaration of g_option. Reported-by: Stephen Rothwell Signed-off-by: Sudip Mukherjee --- v3: new entry in the series, it was not there till v2. drivers/staging/sm750fb/sm750.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 476dc5c..8c260ee 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -54,9 +54,7 @@ static const char * g_fbmode[] = {NULL,NULL}; static const char * g_def_fbmode = "800x600-16@60"; static char * g_settings = NULL; static int g_dualview = 0; -#ifdef MODULE static char * g_option = NULL; -#endif /* if not use spin_lock,system will die if user load driver * and immediatly unload driver frequently (dual)*/