]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: vc04_services: Change fields of page list structure to fixed length
authorMichael Zoran <mzoran@crowfest.net>
Wed, 19 Oct 2016 22:58:27 +0000 (15:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2016 13:21:26 +0000 (15:21 +0200)
The arm processor core and the GPU have shared data structures.
One of these structures is a list of pages of data for messages.
This structure can not change since it is dependent on the GPU
firmware which is external to the kernel.  Convert the fields
of this structure to fixed length fields.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_pagelist.h

index 54a3ecec69ef6702c382a7af339d21b87ec8a346..12c304ceb952442a9b5040916bcde96da5a0e0c2 100644 (file)
 #define PAGELIST_READ_WITH_FRAGMENTS 2
 
 typedef struct pagelist_struct {
-       unsigned long length;
-       unsigned short type;
-       unsigned short offset;
-       unsigned long addrs[1]; /* N.B. 12 LSBs hold the number of following
-                                  pages at consecutive addresses. */
+       u32 length;
+       u16 type;
+       u16 offset;
+       u32 addrs[1];   /* N.B. 12 LSBs hold the number
+                        * of following pages at consecutive
+                        * addresses.
+                        */
 } PAGELIST_T;
 
 typedef struct fragments_struct {