Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753280AbdHUKGu (ORCPT ); Mon, 21 Aug 2017 06:06:50 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36634 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752744AbdHUKGs (ORCPT ); Mon, 21 Aug 2017 06:06:48 -0400 From: Arvind Yadav To: gregkh@linuxfoundation.org, michael.thayer@oracle.com, daniel@ffwll.ch, hdegoede@redhat.com Cc: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH] staging: vboxvideo: constify drm_fb_helper_funcs Date: Mon, 21 Aug 2017 15:36:34 +0530 Message-Id: <1ec6b9eca12e894181fd05876481c7eef7eff691.1503309844.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 921 Lines: 25 drm_fb_helper_funcs are not supposed to change at runtime. All functions working with drm_fb_helper_funcs provided by work with const drm_fb_helper_funcs. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/staging/vboxvideo/vbox_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vboxvideo/vbox_fb.c b/drivers/staging/vboxvideo/vbox_fb.c index 35f6d9f..70d99b7 100644 --- a/drivers/staging/vboxvideo/vbox_fb.c +++ b/drivers/staging/vboxvideo/vbox_fb.c @@ -330,7 +330,7 @@ static void vbox_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, *blue = regno; } -static struct drm_fb_helper_funcs vbox_fb_helper_funcs = { +static const struct drm_fb_helper_funcs vbox_fb_helper_funcs = { .gamma_set = vbox_fb_gamma_set, .gamma_get = vbox_fb_gamma_get, .fb_probe = vboxfb_create, -- 1.9.1