-
由 Meng Li 提交于
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: NMeng Li <li.meng@amd.com> Reported-by: Nkernel test robot <lkp@intel.com> Acked-by: NHuang Rui <ray.huang@amd.com> Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
ce29a148