* [PATCH 2/2] Staging: android: Fix struct definition warning from static to const
@ 2012-01-20 21:33 Kashyap Gada
2012-01-20 22:43 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Kashyap Gada @ 2012-01-20 21:33 UTC (permalink / raw)
To: gregkh
Cc: john.stultz, arve, ccross, bringert, devel, linux-kernel, Kashyap Gada
diff --git a/drivers/staging/android/ashmem.c b/drivers/staging/android/ashmem.c
index b4bc03e..4a00174a5 100644
--- a/drivers/staging/android/ashmem.c
+++ b/drivers/staging/android/ashmem.c
@@ -680,7 +680,7 @@ static long ashmem_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
return ret;
}
-static struct file_operations ashmem_fops = {
+const struct file_operations ashmem_fops = {
.owner = THIS_MODULE,
.open = ashmem_open,
.release = ashmem_release,
--
1.7.5.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] Staging: android: Fix struct definition warning from static to const
2012-01-20 21:33 [PATCH 2/2] Staging: android: Fix struct definition warning from static to const Kashyap Gada
@ 2012-01-20 22:43 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2012-01-20 22:43 UTC (permalink / raw)
To: Kashyap Gada
Cc: gregkh, john.stultz, arve, ccross, bringert, devel, linux-kernel
On Fri, 20 Jan 2012 21:33:17 +0000
Kashyap Gada <gada.kashyap@gmail.com> wrote:
> diff --git a/drivers/staging/android/ashmem.c b/drivers/staging/android/ashmem.c
> index b4bc03e..4a00174a5 100644
> --- a/drivers/staging/android/ashmem.c
> +++ b/drivers/staging/android/ashmem.c
> @@ -680,7 +680,7 @@ static long ashmem_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
> return ret;
> }
>
> -static struct file_operations ashmem_fops = {
> +const struct file_operations ashmem_fops = {
You've lost the static ?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-20 22:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-20 21:33 [PATCH 2/2] Staging: android: Fix struct definition warning from static to const Kashyap Gada
2012-01-20 22:43 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®