| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/sh/kernel/cpu/sh4/sq.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (C) 2001 - 2006 Paul Mundt |
|---|
| 7 | 8 | * Copyright (C) 2001, 2002 M. R. Brown |
|---|
| 8 | | - * |
|---|
| 9 | | - * This file is subject to the terms and conditions of the GNU General Public |
|---|
| 10 | | - * License. See the file "COPYING" in the main directory of this archive |
|---|
| 11 | | - * for more details. |
|---|
| 12 | 9 | */ |
|---|
| 13 | 10 | #include <linux/init.h> |
|---|
| 14 | 11 | #include <linux/cpu.h> |
|---|
| .. | .. |
|---|
| 106 | 103 | #if defined(CONFIG_MMU) |
|---|
| 107 | 104 | struct vm_struct *vma; |
|---|
| 108 | 105 | |
|---|
| 109 | | - vma = __get_vm_area(map->size, VM_ALLOC, map->sq_addr, SQ_ADDRMAX); |
|---|
| 106 | + vma = __get_vm_area_caller(map->size, VM_ALLOC, map->sq_addr, |
|---|
| 107 | + SQ_ADDRMAX, __builtin_return_address(0)); |
|---|
| 110 | 108 | if (!vma) |
|---|
| 111 | 109 | return -ENOMEM; |
|---|
| 112 | 110 | |
|---|
| .. | .. |
|---|
| 383 | 381 | if (unlikely(!sq_cache)) |
|---|
| 384 | 382 | return ret; |
|---|
| 385 | 383 | |
|---|
| 386 | | - sq_bitmap = kzalloc(size, GFP_KERNEL); |
|---|
| 384 | + sq_bitmap = kcalloc(size, sizeof(long), GFP_KERNEL); |
|---|
| 387 | 385 | if (unlikely(!sq_bitmap)) |
|---|
| 388 | 386 | goto out; |
|---|
| 389 | 387 | |
|---|