From patchwork Fri Aug 18 17:41:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 9909663 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 7037B600CC for ; Fri, 18 Aug 2017 17:42:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 604E828C88 for ; Fri, 18 Aug 2017 17:42:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5385828C9F; Fri, 18 Aug 2017 17:42:04 +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=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CC4CA28C88 for ; Fri, 18 Aug 2017 17:42:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-version:In-reply-to: Message-id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2pHLSuIJ8NTTgWimQSmJUEi+WyHYkAHNpt18S9RNOMs=; b=uAKj4rOkxmyowP x2++p1UQphWaaucNC7lpVmAQNvHZAXKaVnJFyDQ4YpeRDfx0ajsrpOdltVtuz0lYgN9dJHX3A0r0T 8AYhkUtdu+oovw5gi6Kq7HQxDRmxnYdC5Z0r+lQ+D/7ygg5h+GHCNJbi+89kixBnMp7LXDb8Ma51g /r3hoiS8jI1L66zmljOLMcNHygsR23qq7FZqU8f2b5WIX1YDOzj5u/aP3l9JS21adFNKIaZaHSalB IpE5Wg8QA1SgVMfrigeEYUbRTVh8+uKMEUGdFeTKnSpNqEq9kl+wr86dYHvY8cBSCt8OIxTqL6xds OBCGjeLi8RqEIECyeHlA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dilHT-00065q-G9; Fri, 18 Aug 2017 17:41:59 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dilHO-0005xz-Ol for linux-arm-kernel@lists.infradead.org; Fri, 18 Aug 2017 17:41:57 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20170818174119epoutp033931bed755cc53f3c7f37f36ee8b15b5~cAYytk7f02407924079epoutp03z; Fri, 18 Aug 2017 17:41:19 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.42.55]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170818174119epcas1p2aea9d67777a97a2cd13f2faa630c7147~cAYykiZJQ1915519155epcas1p2z; Fri, 18 Aug 2017 17:41:19 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 13.83.20246.FB627995; Sat, 19 Aug 2017 02:41:19 +0900 (KST) Received: from epsmgms2p1.samsung.com (unknown [182.195.42.79]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170818174118epcas1p4df3e53100b86a310c091cec62b0e5611~cAYyGQwzf0642306423epcas1p4C; Fri, 18 Aug 2017 17:41:18 +0000 (GMT) X-AuditID: b6c32a37-f79886d000004f16-04-599726bf13cb Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 6B.E7.06213.EB627995; Sat, 19 Aug 2017 02:41:18 +0900 (KST) Received: from amdc3058.localnet ([106.120.53.102]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OUW00A286GT8D50@mmp2.samsung.com>; Sat, 19 Aug 2017 02:41:18 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Julia Lawall Subject: Re: [PATCH] video: fbdev: constify copied structures Date: Fri, 18 Aug 2017 19:41:16 +0200 Message-id: <7127868.v7Fj1TocLv@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: <1501664679-10356-1-git-send-email-Julia.Lawall@lip6.fr> MIME-version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgleLIzCtJLcpLzFFi42LZdlhTV3e/2vRIgzWXuSyWPTjNaLH1lrTF psfXWC1O9H1gtbi8aw6bxbuXERY3d2xmd2D32Lsly2PzknqPz5vkPPZ+/s0SwBLFZZOSmpNZ llqkb5fAlfFl6immgvu8FR1bfRoYH3B3MXJySAiYSCydcZkFwhaTuHBvPVsXIxeHkMAORolz h64wQzifGSV+/5nIAtMx4dAMRojEWkaJHT++QrV8ZZR4P+EAG0gVm4CVxMT2VYwgtoiAukTr hl1gHcwgo1b/W8oKkhAWsJV4NbMNzGYRUJVYc2cJWDOvgKbE8nnLmEBsUQEviS372sFsTgFX iY//FjJC1AhK/Jh8D+wkZgF5iX37p7JC2DoSZ4+tA1smITCZXeL18+XsXYwcQI6sxKYDzBCm i8Sq+9EQ3whLvDq+hR3ClpJofPmQCcKeziix/bcExJjNjBKrdk+AKrKWOHz8ItQuPol3X3tY IWbySnS0CUGYHh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x cEo1MMYyJqvXZEwKPBgwv4Ol82HDkUkxsTr37WOrn05lubT0adK7u2yFdye7hht0nK5+wewd VqEU8dlihvKmvAtaK7XldsguF1zPksBk0bX7wBJr/m9qh3UYJ2izHFtv2lmyMqBVeuJb5Z/z 1eQ25mdt8fJY/Kef17fS4cpcUdfta07/zS9PmFQXoMRSnJFoqMVcVJwIACpKSty9AgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170818174118epcas1p4df3e53100b86a310c091cec62b0e5611 X-Msg-Generator: CA X-Sender-IP: 182.195.42.79 X-Local-Sender: =?UTF-8?B?QmFydGxvbWllaiBab2xuaWVya2lld2ljehtTUlBPTC1LZXJu?= =?UTF-8?B?ZWwgKFRQKRvsgrzshLHsoITsnpAbU2VuaW9yIFNvZnR3YXJlIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?QmFydGxvbWllaiBab2xuaWVya2lld2ljehtTUlBPTC1LZXJu?= =?UTF-8?B?ZWwgKFRQKRtTYW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBF?= =?UTF-8?B?bmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 101P X-CMS-RootMailID: 20170802093008epcas2p48a98827ec2c27fbd6f6de8913d47c02b X-RootMTR: 20170802093008epcas2p48a98827ec2c27fbd6f6de8913d47c02b References: <1501664679-10356-1-git-send-email-Julia.Lawall@lip6.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170818_104155_080527_A64C7FE9 X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, kernel-janitors@vger.kernel.org, Michal Simek , linux-kernel@vger.kernel.org, =?ISO-8859-1?Q?S=F6ren?= Brinkmann , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, On Wednesday, August 02, 2017 11:04:39 AM Julia Lawall wrote: > Make const some structures that are only copied into other structures. > > Signed-off-by: Julia Lawall fb_fix_screeninfo and fb_var_screeninfo structures were already const-ified by commit 40445365a43f ("video: xilinxfb: constify fb_fix_screeninfo and fb_var_screeninfo structures") in my -next tree (git://github.com/bzolnier/linux.git fbdev-for-next) so I just applied xilinx_fb_default_pdata part (patch included below for reference). Best regards, --- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics From: Julia Lawall Subject: [PATCH] video: fbdev: xilinxfb: constify copied structure Make const xilinx_fb_default_pdata structure that is only copied into other structure. Signed-off-by: Julia Lawall Cc: Michal Simek Cc: Soren Brinkmann , [b.zolnierkie: split from a bigger patch] Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/xilinxfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/drivers/video/fbdev/xilinxfb.c =================================================================== --- a/drivers/video/fbdev/xilinxfb.c 2017-08-18 19:34:11.383004874 +0200 +++ b/drivers/video/fbdev/xilinxfb.c 2017-08-18 19:34:35.383005478 +0200 @@ -100,7 +100,7 @@ struct xilinxfb_platform_data { /* * Default xilinxfb configuration */ -static struct xilinxfb_platform_data xilinx_fb_default_pdata = { +static const struct xilinxfb_platform_data xilinx_fb_default_pdata = { .xres = 640, .yres = 480, .xvirt = 1024,