diff options
author | Omar Ramirez Luna <omar.ramirez@ti.com> | 2010-12-08 17:20:23 -0500 |
---|---|---|
committer | Omar Ramirez Luna <omar.ramirez@ti.com> | 2011-02-04 21:11:47 -0500 |
commit | a994b051b6cb246bb8843b3fbb7dea4185a01399 (patch) | |
tree | 5ba09e4a7572b1260c3103e9b0ae68a8c6b33c38 /drivers/staging/tidspbridge | |
parent | ba44df6f8875c0e56d5923d742face59d81b8dc7 (diff) |
staging: tidspbridge: use the right type for list_is_last
Removes the following warning:
CC [M] drivers/staging/tidspbridge/rmgr/rmm.o
drivers/staging/tidspbridge/rmgr/rmm.c: In function 'rmm_alloc':
drivers/staging/tidspbridge/rmgr/rmm.c:147: warning: passing
argument 1 of 'list_is_last' from incompatible pointer type
include/linux/list.h:170: note: expected 'const struct list_head *'
but argument is of type 'struct rmm_ovly_sect *'
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Ionut Nicu <ionut.nicu@mindbit.ro>
Diffstat (limited to 'drivers/staging/tidspbridge')
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/rmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/rmm.c b/drivers/staging/tidspbridge/rmgr/rmm.c index aae86570035..5a3f09c4574 100644 --- a/drivers/staging/tidspbridge/rmgr/rmm.c +++ b/drivers/staging/tidspbridge/rmgr/rmm.c | |||
@@ -144,7 +144,7 @@ int rmm_alloc(struct rmm_target_obj *target, u32 segid, u32 size, | |||
144 | new_sect->addr = addr; | 144 | new_sect->addr = addr; |
145 | new_sect->size = size; | 145 | new_sect->size = size; |
146 | new_sect->page = segid; | 146 | new_sect->page = segid; |
147 | if (list_is_last(sect, &target->ovly_list)) | 147 | if (list_is_last(§->list_elem, &target->ovly_list)) |
148 | /* Put new section at the end of the list */ | 148 | /* Put new section at the end of the list */ |
149 | list_add_tail(&new_sect->list_elem, | 149 | list_add_tail(&new_sect->list_elem, |
150 | &target->ovly_list); | 150 | &target->ovly_list); |