diff options
| author | Bartosz Golaszewski <[email protected]> | 2025-06-24 14:32:18 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2025-06-30 07:06:12 +0000 |
| commit | 5bcfc4ef40dabcd16a0b736fea7f0d00a9efdbfb (patch) | |
| tree | 023de38a340d0afb1af8a1ebc693c91c6d550cca /rust/helpers/dma.c | |
| parent | power: sequencing: Add T-HEAD TH1520 GPU power sequencer driver (diff) | |
| download | kernel-5bcfc4ef40dabcd16a0b736fea7f0d00a9efdbfb.tar.gz kernel-5bcfc4ef40dabcd16a0b736fea7f0d00a9efdbfb.zip | |
power: sequencing: thead-gpu: add missing header
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: d4c2d9b5b7ce ("power: sequencing: Add T-HEAD TH1520 GPU power sequencer driver")
Reviewed-by: Ulf Hansson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'rust/helpers/dma.c')
0 files changed, 0 insertions, 0 deletions
