diff options
| author | Luc Van Oostenryck <[email protected]> | 2019-01-19 16:15:23 +0000 |
|---|---|---|
| committer | Zhang Rui <[email protected]> | 2019-03-18 14:11:06 +0000 |
| commit | aa36e3616532f82a920b5ebf4e059fbafae63d88 (patch) | |
| tree | 8bf802701e99c78e1b91c02816606f494a0005a7 /drivers/fpga/fpga-region.c | |
| parent | Linux 5.1-rc1 (diff) | |
| download | kernel-aa36e3616532f82a920b5ebf4e059fbafae63d88.tar.gz kernel-aa36e3616532f82a920b5ebf4e059fbafae63d88.zip | |
thermal/intel_powerclamp: fix __percpu declaration of worker_data
This variable is declared as:
static struct powerclamp_worker_data * __percpu worker_data;
In other words, a percpu pointer to struct ...
But this variable not used like so but as a pointer to a percpu
struct powerclamp_worker_data.
So fix the declaration as:
static struct powerclamp_worker_data __percpu *worker_data;
This also quiets Sparse's warnings from __verify_pcpu_ptr(), like:
494:49: warning: incorrect type in initializer (different address spaces)
494:49: expected void const [noderef] <asn:3> *__vpp_verify
494:49: got struct powerclamp_worker_data *
Signed-off-by: Luc Van Oostenryck <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions
