From patchwork Tue Jun 18 15:18:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 2742911 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 C84FBC0AB1 for ; Tue, 18 Jun 2013 15:20:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 96E1720499 for ; Tue, 18 Jun 2013 15:20:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 595D42047C for ; Tue, 18 Jun 2013 15:20:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756076Ab3FRPUw (ORCPT ); Tue, 18 Jun 2013 11:20:52 -0400 Received: from mail-db8lp0189.outbound.messaging.microsoft.com ([213.199.154.189]:54394 "EHLO db8outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755567Ab3FRPUv convert rfc822-to-8bit (ORCPT ); Tue, 18 Jun 2013 11:20:51 -0400 Received: from mail113-db8-R.bigfish.com (10.174.8.251) by DB8EHSOBE038.bigfish.com (10.174.4.101) with Microsoft SMTP Server id 14.1.225.23; Tue, 18 Jun 2013 15:20:50 +0000 Received: from mail113-db8 (localhost [127.0.0.1]) by mail113-db8-R.bigfish.com (Postfix) with ESMTP id 207D81C006D; Tue, 18 Jun 2013 15:20:50 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzc89bhzz1f42h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ah1fc6hzz8275bhz2dh2a8h668h839h93fhd24he5bhf0ah1288h12a5h12a9h12bdh137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1d0ch1d2eh1d3fh1dc1h1dfeh1dffh1e23h1155h) Received: from mail113-db8 (localhost.localdomain [127.0.0.1]) by mail113-db8 (MessageSwitch) id 1371568848931197_27143; Tue, 18 Jun 2013 15:20:48 +0000 (UTC) Received: from DB8EHSMHS022.bigfish.com (unknown [10.174.8.240]) by mail113-db8.bigfish.com (Postfix) with ESMTP id DEF1526006E; Tue, 18 Jun 2013 15:20:48 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB8EHSMHS022.bigfish.com (10.174.4.32) with Microsoft SMTP Server (TLS) id 14.16.227.3; Tue, 18 Jun 2013 15:20:48 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.2.328.11; Tue, 18 Jun 2013 15:19:41 +0000 Received: from fabio-OptiPlex-7010.am.freescale.net ([10.29.244.86]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id r5IFJVsh003374; Tue, 18 Jun 2013 08:19:31 -0700 From: Fabio Estevam To: CC: , , , Fabio Estevam , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Daniel Vetter , Dave Airlie Subject: [PATCH v2 1/2] video: fbmem: Use 'const char' in fb_get_options() Date: Tue, 18 Jun 2013 12:18:42 -0300 Message-ID: <1371568723-27486-1-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.8.1.2 MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-8.1 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 Commit d20d31748 (drm: Constify the pretty-print functions) causes the following build warning: drivers/gpu/drm/drm_fb_helper.c:127:3: warning: passing argument 1 of 'fb_get_options' discards 'const' qualifier from pointer target type [enabled by default] Let's change the first argument of fb_get_options from 'char *' to 'const char *' so that we can get rid of this warning. Cc: Ville Syrjälä Cc: Daniel Vetter Cc: Dave Airlie Signed-off-by: Fabio Estevam --- Changes since v1: - None drivers/video/fbmem.c | 2 +- include/linux/fb.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 098bfc6..d8d5779 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c @@ -1881,7 +1881,7 @@ static int ofonly __read_mostly; * * NOTE: Needed to maintain backwards compatibility */ -int fb_get_options(char *name, char **option) +int fb_get_options(const char *name, char **option) { char *opt, *options = NULL; int retval = 0; diff --git a/include/linux/fb.h b/include/linux/fb.h index d49c60f..ffac70a 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -624,7 +624,7 @@ extern void fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch, u3 extern void fb_set_suspend(struct fb_info *info, int state); extern int fb_get_color_depth(struct fb_var_screeninfo *var, struct fb_fix_screeninfo *fix); -extern int fb_get_options(char *name, char **option); +extern int fb_get_options(const char *name, char **option); extern int fb_new_modelist(struct fb_info *info); extern struct fb_info *registered_fb[FB_MAX];