mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
davinci: sram warning fix
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>
This commit is contained in:
parent
f28f03bba4
commit
1d3bba61f6
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ static int __init sram_init(void)
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
||||||
if (len) {
|
if (len) {
|
||||||
len = min(len, SRAM_SIZE);
|
len = min_t(unsigned, len, SRAM_SIZE);
|
||||||
sram_pool = gen_pool_create(ilog2(SRAM_GRANULARITY), -1);
|
sram_pool = gen_pool_create(ilog2(SRAM_GRANULARITY), -1);
|
||||||
if (!sram_pool)
|
if (!sram_pool)
|
||||||
status = -ENOMEM;
|
status = -ENOMEM;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue