diff options
author | Meng Li <[email protected]> | 2022-09-06 10:48:26 +0800 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2022-10-05 11:05:18 -0600 |
commit | ce29a148f34fe93601dab835ec25ada1d95aac02 (patch) | |
tree | 7b63e1ce2fa055148b7404b38e7a24185adeb290 /lib/test-string_helpers.c | |
parent | 7fe3629729ce5466f865b75c506d7cb6223838ba (diff) |
cpufreq: amd-pstate: modify type in argument 2 for filp_open
Modify restricted FMODE_PREAD to experted int O_RDONLY to
fix the sparse warnings below:
sparse warnings: (new ones prefixed by >>)
>> drivers/cpufreq/amd-pstate-ut.c:74:40: sparse: sparse: incorrect type
>> in argument 2 (different base types) @@ expected int @@ got
>> restricted fmode_t [usertype] @@
drivers/cpufreq/amd-pstate-ut.c:74:40: sparse: expected int
drivers/cpufreq/amd-pstate-ut.c:74:40: sparse: got restricted
fmode_t [usertype]
Signed-off-by: Meng Li <[email protected]>
Reported-by: kernel test robot <[email protected]>
Acked-by: Huang Rui <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions