mirror of
https://github.com/torvalds/linux.git
synced 2026-08-05 06:47:51 +02:00
When using kcalloc(), kfree() etc., we need to include linux/slab.h.
While on some architectures it may work fine because the header is
pulled in implicitly, on others it triggers the following errors:
drivers/power/sequencing/pwrseq-thead-gpu.c: In function ‘pwrseq_thead_gpu_match’:
drivers/power/sequencing/pwrseq-thead-gpu.c:147:21: error: implicit declaration of function ‘kcalloc’ [-Wimplicit-function-declaration]
147 | ctx->clks = kcalloc(ctx->num_clks, sizeof(*ctx->clks), GFP_KERNEL);
Fixes:
|
||
|---|---|---|
| .. | ||
| reset | ||
| sequencing | ||
| supply | ||
| Kconfig | ||
| Makefile | ||