Skip to content

Commit

Permalink
davinci: sram warning fix
Browse files Browse the repository at this point in the history
CC      arch/arm/mach-davinci/sram.o
arch/arm/mach-davinci/sram.c: In function 'sram_init':
arch/arm/mach-davinci/sram.c:63: warning: comparison of distinct pointer types lacks a cast

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
  • Loading branch information
David Brownell authored and Kevin Hilman committed Aug 26, 2009
1 parent f28f03b commit 1d3bba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-davinci/sram.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static int __init sram_init(void)
int status = 0;

if (len) {
len = min(len, SRAM_SIZE);
len = min_t(unsigned, len, SRAM_SIZE);
sram_pool = gen_pool_create(ilog2(SRAM_GRANULARITY), -1);
if (!sram_pool)
status = -ENOMEM;
Expand Down

0 comments on commit 1d3bba6

Please sign in to comment.