Commit bbc4f40b authored by Jason Yan's avatar Jason Yan Committed by Michael Ellerman

powerpc/ps3: make two symbols static

This addresses the following sparse warning:

arch/powerpc/platforms/ps3/spu.c:451:33: warning: symbol
'spu_management_ps3_ops' was not declared. Should it be static?
arch/powerpc/platforms/ps3/spu.c:592:28: warning: symbol
'spu_priv1_ps3_ops' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200911020121.1464585-1-yanaijie@huawei.com
parent 4c42dc5c
...@@ -448,7 +448,7 @@ static void ps3_disable_spu(struct spu_context *ctx) ...@@ -448,7 +448,7 @@ static void ps3_disable_spu(struct spu_context *ctx)
ctx->ops->runcntl_stop(ctx); ctx->ops->runcntl_stop(ctx);
} }
const struct spu_management_ops spu_management_ps3_ops = { static const struct spu_management_ops spu_management_ps3_ops = {
.enumerate_spus = ps3_enumerate_spus, .enumerate_spus = ps3_enumerate_spus,
.create_spu = ps3_create_spu, .create_spu = ps3_create_spu,
.destroy_spu = ps3_destroy_spu, .destroy_spu = ps3_destroy_spu,
...@@ -589,7 +589,7 @@ static u64 resource_allocation_enable_get(struct spu *spu) ...@@ -589,7 +589,7 @@ static u64 resource_allocation_enable_get(struct spu *spu)
return 0; /* No support. */ return 0; /* No support. */
} }
const struct spu_priv1_ops spu_priv1_ps3_ops = { static const struct spu_priv1_ops spu_priv1_ps3_ops = {
.int_mask_and = int_mask_and, .int_mask_and = int_mask_and,
.int_mask_or = int_mask_or, .int_mask_or = int_mask_or,
.int_mask_set = int_mask_set, .int_mask_set = int_mask_set,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment