lkml.org 
[lkml]   [2022]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] staging: android: ashmem: Declared file operation with const keyword Warning found by checkpatch.pl script.
From
On 3/13/2022 2:57 AM, Joe Perches wrote:
> On Sun, 2022-03-13 at 03:11 +0530, shaikh kamal wrote:
> []
>> diff --git a/drivers/staging/android/ashmem.c b/drivers/staging/android/ashmem.c
> []
>> @@ -377,7 +377,7 @@ ashmem_vmfile_get_unmapped_area(struct file *file, unsigned long addr,
>>
>> static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)
>> {
>> - static struct file_operations vmfile_fops;
>> + static const struct file_operations vmfile_fops;
>
> Make sure to compile any files modified by your suggested patches
> _before_ sending the patches.
>
>

Thanks for your suggestion, Kernel build is failing.

\
 
 \ /
  Last update: 2022-03-14 12:21    [W:0.202 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site