lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0e1e8c9e-932c-72eb-347f-ff95fc79164b@gmail.com>
Date:   Thu, 31 Aug 2017 15:20:05 +0530
From:   Arvind Yadav <arvind.yadav.cs@...il.com>
To:     hubcap@...ibond.com
Cc:     linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: vboxvideo: constify drm_fb_helper_funcs

Sorry for noise, Please Ignore this. :(


On Thursday 31 August 2017 03:16 PM, Arvind Yadav wrote:
> drm_fb_helper_funcs are not supposed to change at runtime.
> All functions working with drm_fb_helper_funcs provided by
> <drm/drm_fb_helper.h> work with const drm_fb_helper_funcs.
> So mark the non-const structs as const.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
> ---
>   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,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ