Skip to content

Commit

Permalink
staging: tidspbridge: use the right type for list_is_last
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Omar Ramirez Luna committed Feb 5, 2011
1 parent ba44df6 commit a994b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/tidspbridge/rmgr/rmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ int rmm_alloc(struct rmm_target_obj *target, u32 segid, u32 size,
new_sect->addr = addr;
new_sect->size = size;
new_sect->page = segid;
if (list_is_last(sect, &target->ovly_list))
if (list_is_last(&sect->list_elem, &target->ovly_list))
/* Put new section at the end of the list */
list_add_tail(&new_sect->list_elem,
&target->ovly_list);
Expand Down

0 comments on commit a994b05

Please sign in to comment.