|
@@ -447,14 +447,14 @@ unsigned long vmalloc_to_pfn(const void *addr);
|
|
* On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there
|
|
* On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there
|
|
* is no special casing required.
|
|
* is no special casing required.
|
|
*/
|
|
*/
|
|
-static inline int is_vmalloc_addr(const void *x)
|
|
|
|
|
|
+static inline bool is_vmalloc_addr(const void *x)
|
|
{
|
|
{
|
|
#ifdef CONFIG_MMU
|
|
#ifdef CONFIG_MMU
|
|
unsigned long addr = (unsigned long)x;
|
|
unsigned long addr = (unsigned long)x;
|
|
|
|
|
|
return addr >= VMALLOC_START && addr < VMALLOC_END;
|
|
return addr >= VMALLOC_START && addr < VMALLOC_END;
|
|
#else
|
|
#else
|
|
- return 0;
|
|
|
|
|
|
+ return false;
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
#ifdef CONFIG_MMU
|
|
#ifdef CONFIG_MMU
|