soc/intel/common/block: Make integer literal unsigned long

Fix the warning below by making the integer literal unsigned.

```
    CC         bootblock/soc/intel/common/block/*/lpc_lib.o
src/soc/intel/common/block/lpc/lpc_lib.c:91:17: warning: The result of the \
'<<' expression is undefined
                alignment = 1 << (log2_ceil(window_size));
                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Found-by: Clang static analyzer scan-build
          (clang version 4.0.1-6 (tags/RELEASE_401/final))
Fixes: e237f8b7 (soc/apollolake/lpc: Open I/O to LPC based on resource allocation)

Change-Id: I094fb469f020f3c1fae936e304b4458858842a8e
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/22198
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
Paul Menzel 2017-10-27 11:05:14 +02:00 committed by Nico Huber
parent b843c5e3f3
commit 64e83409a1
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ void fast_spi_cache_bios_region(void)
return; return;
/* Round to power of two */ /* Round to power of two */
alignment = 1 << (log2_ceil(bios_size)); alignment = 1UL << (log2_ceil(bios_size));
bios_size = ALIGN_UP(bios_size, alignment); bios_size = ALIGN_UP(bios_size, alignment);
base = 4ULL*GiB - bios_size; base = 4ULL*GiB - bios_size;