sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c:370:33: sparse: sparse: incorrect type in argument 3 (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6f513529296fd4f696afb4354c46508abe646541
commit: 18b13ff23fab34a9d35cec60ed19aceab61dc3f9 ASoC: mediatek: mt8192: add machine driver with mt6359, rt1015 and rt5682
date: 1 year, 1 month ago
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20211211/202112111533.zfKuKjio-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 18b13ff23fab34a9d35cec60ed19aceab61dc3f9
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mach-imx/ arch/arm/mach-mvebu/ arch/arm/mach-rockchip/ arch/arm/mach-socfpga/ arch/arm/mach-tegra/ drivers/dma/ drivers/edac/ drivers/gpu/drm/msm/ drivers/gpu/drm/tegra/ drivers/interconnect/qcom/ drivers/irqchip/ drivers/mtd/nand/onenand/ drivers/net/ethernet/mediatek/ drivers/net/vmxnet3/ drivers/net/wireless/mediatek/mt76/mt7915/ drivers/remoteproc/ drivers/scsi/bnx2fc/ drivers/scsi/lpfc/ drivers/soc/bcm/brcmstb/pm/ drivers/staging/ fs/proc/ net/sched/ sound/soc/mediatek/mt8192/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c:370:33: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int to @@ got restricted snd_pcm_format_t [usertype] @@
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c:370:33: sparse: expected unsigned int to
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c:370:33: sparse: got restricted snd_pcm_format_t [usertype]
vim +370 sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c
364
365 static int mt8192_i2s_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
366 struct snd_pcm_hw_params *params)
367 {
368 /* fix BE i2s format to 32bit, clean param mask first */
369 snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
> 370 0, SNDRV_PCM_FORMAT_LAST);
371
372 params_set_format(params, SNDRV_PCM_FORMAT_S24_LE);
373
374 return 0;
375 }
376
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH RFC v7 2/2] nfsd: Initial implementation of NFSv4 Courteous Server
by kernel test robot
Hi Dai,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[also build test WARNING on v5.16-rc4]
[cannot apply to cel-2.6/for-next jlayton/linux-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dai-Ngo/nfsd-Initial-implementat...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 9e65da135b39cabd82dc2f56b0db526b65a8d690
config: i386-randconfig-a011-20211210 (https://download.01.org/0day-ci/archive/20211211/202112111506.H3x5bYP2-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/cba406450190222281d46b185d17895e7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dai-Ngo/nfsd-Initial-implementation-of-NFSv4-Courteous-Server/20211211-090428
git checkout cba406450190222281d46b185d17895e76cf370b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/nfsd/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> fs/nfsd/nfs4state.c:6759:10: warning: expression which evaluates to zero treated as a null pointer constant of type 'void *' [-Wnon-literal-null-conversion]
return false;
^~~~~
1 warning generated.
vim +6759 fs/nfsd/nfs4state.c
6730
6731 /*
6732 * If testonly is true then check if the client owns the lock is a
6733 * courtesy client. If it is then return that client else return NULL.
6734 * If testonly is false then destroy the specified courtesy client.
6735 */
6736 static void *
6737 nfsd4_fl_expire_lock(void *cfl, bool testonly)
6738 {
6739 struct file_lock *fl;
6740 struct nfs4_lockowner *lo;
6741 struct nfs4_client *clp;
6742 struct nfsd_net *nn;
6743
6744 if (testonly) {
6745 fl = (struct file_lock *)cfl;
6746 lo = (struct nfs4_lockowner *)fl->fl_owner;
6747 clp = lo->lo_owner.so_client;
6748 if (test_bit(NFSD4_COURTESY_CLIENT, &clp->cl_flags))
6749 return clp;
6750 return NULL;
6751 }
6752 clp = (struct nfs4_client *)cfl;
6753
6754 nn = net_generic(clp->net, nfsd_net_id);
6755 spin_lock(&nn->client_lock);
6756 if (!test_bit(NFSD4_COURTESY_CLIENT, &clp->cl_flags) ||
6757 mark_client_expired_locked(clp)) {
6758 spin_unlock(&nn->client_lock);
> 6759 return false;
6760 }
6761 spin_unlock(&nn->client_lock);
6762 expire_client(clp);
6763 return (void *)true;
6764 }
6765
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[android-common:android12-5.10 6733/13830] arch/arm64/kvm/fpsimd.c:129:5: error: implicit declaration of function 'sve_cond_update_zcr_vq'
by kernel test robot
Hi Marc,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 2d6a43c0364d3bb0c5c00b0a32b27f4c7740e004
commit: b0e15c8c44275afef4aacfb1560e38b974b02ac8 [6733/13830] FROMGIT: KVM: arm64: Save/restore SVE state for nVHE
config: arm64-randconfig-r022-20211210 (https://download.01.org/0day-ci/archive/20211211/202112111458.lmt6objs-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout b0e15c8c44275afef4aacfb1560e38b974b02ac8
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/arm64/kvm/fpsimd.c:129:5: error: implicit declaration of function 'sve_cond_update_zcr_vq' [-Werror,-Wimplicit-function-declaration]
sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1,
^
1 error generated.
vim +/sve_cond_update_zcr_vq +129 arch/arm64/kvm/fpsimd.c
108
109 /*
110 * Write back the vcpu FPSIMD regs if they are dirty, and invalidate the
111 * cpu FPSIMD regs so that they can't be spuriously reused if this vcpu
112 * disappears and another task or vcpu appears that recycles the same
113 * struct fpsimd_state.
114 */
115 void kvm_arch_vcpu_put_fp(struct kvm_vcpu *vcpu)
116 {
117 unsigned long flags;
118 bool host_has_sve = system_supports_sve();
119 bool guest_has_sve = vcpu_has_sve(vcpu);
120
121 local_irq_save(flags);
122
123 if (vcpu->arch.flags & KVM_ARM64_FP_ENABLED) {
124 if (guest_has_sve) {
125 __vcpu_sys_reg(vcpu, ZCR_EL1) = read_sysreg_el1(SYS_ZCR);
126
127 /* Restore the VL that was saved when bound to the CPU */
128 if (!has_vhe())
> 129 sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
by kernel test robot
Hi Geert,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6f513529296fd4f696afb4354c46508abe646541
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date: 1 year, 1 month ago
config: mips-randconfig-r026-20211211 (https://download.01.org/0day-ci/archive/20211211/202112111334.EmMJpBTI-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/kmb/ fs/ mm/ sound/soc/samsung/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
^
>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
^
fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 14.0.0 (git://gitmirror/llvm_project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
Target: mipsel-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-097a1cb1d5/bin
clang-14: note: diagnostic msg:
Makefile arch drivers fs include kernel mm nr_bisected scripts sound source usr
vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 810
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 811 static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @812 set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 813 u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 814 u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 815 {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 816 /* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 817 * sr_osc_freq_target[7:0]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 818 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 819 test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 820 (freq & 0x7f));
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 821 }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 822
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 823 static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @824 set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 825 u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 826 u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 827 {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 828 u32 data;
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 829
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 830 /* Flag this as high nibble */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 831 data = ((freq >> 6) & 0x1f) | (1 << 7);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 832
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 833 /* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 834 * sr_osc_freq_target[11:7]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 835 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 836 test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 837 }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 838
:::::: The code at line 812 was first introduced by commit
:::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver
:::::: TO: Anitha Chrisanthus <anitha.chrisanthus(a)intel.com>
:::::: CC: Sam Ravnborg <sam(a)ravnborg.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[agd5f:drm-next 205/258] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:3248:27: error: 'struct dc_debug_options' has no member named 'set_mst_en_for_sst'
by kernel test robot
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: 8e00bea4bc1ae98ad8dec7c633175c0afd7ccc0c
commit: 99e574ca64d3b6046b960e06a0b16e7a328b0318 [205/258] drm/amd/display: Add Debugfs Entry to Force in SST Sequence
config: microblaze-randconfig-r014-20211210 (https://download.01.org/0day-ci/archive/20211211/202112111319.i3OFFWLM-lk...)
compiler: microblaze-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout 99e574ca64d3b6046b960e06a0b16e7a328b0318
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:33:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2918:26: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
2918 | uint64_t temp;
| ^~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c: In function 'dp_force_sst_set':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:3248:27: error: 'struct dc_debug_options' has no member named 'set_mst_en_for_sst'
3248 | adev->dm.dc->debug.set_mst_en_for_sst = val;
| ^
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c: In function 'dp_force_sst_get':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:3257:34: error: 'struct dc_debug_options' has no member named 'set_mst_en_for_sst'
3257 | *val = adev->dm.dc->debug.set_mst_en_for_sst;
| ^
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:34:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: warning: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Wunused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +3248 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c
3236
3237 DEFINE_DEBUGFS_ATTRIBUTE(disable_hpd_ops, disable_hpd_get,
3238 disable_hpd_set, "%llu\n");
3239
3240 /*
3241 * Force sst sequence in mst capable receiver.
3242 * Example usage: echo 1 > /sys/kernel/debug/dri/0/amdgpu_dm_dp_set_mst_en_for_sst
3243 */
3244 static int dp_force_sst_set(void *data, u64 val)
3245 {
3246 struct amdgpu_device *adev = data;
3247
> 3248 adev->dm.dc->debug.set_mst_en_for_sst = val;
3249
3250 return 0;
3251 }
3252
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PREEMPT_RT PATCH 1/2] block: Avoid sleeping function called from invalid context bug
by kernel test robot
Hi Wander,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on axboe-block/for-next]
[also build test ERROR on linux/master linus/master v5.16-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Wander-Lairson-Costa/Fix-warning...
base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: i386-randconfig-a016-20211210 (https://download.01.org/0day-ci/archive/20211211/202112111300.2jYSEVK1-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/37b10b13961fb1af60139789717a018f7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Wander-Lairson-Costa/Fix-warnings-in-blktrace/20211211-044405
git checkout 37b10b13961fb1af60139789717a018f788f714e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> block/blk-cgroup.c:1915:8: error: implicit declaration of function 'get_cpu_light' [-Werror,-Wimplicit-function-declaration]
cpu = get_cpu_light();
^
>> block/blk-cgroup.c:1932:2: error: implicit declaration of function 'put_cpu_light' [-Werror,-Wimplicit-function-declaration]
put_cpu_light();
^
block/blk-cgroup.c:1932:2: note: did you mean 'get_cpu_light'?
block/blk-cgroup.c:1915:8: note: 'get_cpu_light' declared here
cpu = get_cpu_light();
^
2 errors generated.
vim +/get_cpu_light +1915 block/blk-cgroup.c
1908
1909 void blk_cgroup_bio_start(struct bio *bio)
1910 {
1911 int rwd = blk_cgroup_io_type(bio), cpu;
1912 struct blkg_iostat_set *bis;
1913 unsigned long flags;
1914
> 1915 cpu = get_cpu_light();
1916 bis = per_cpu_ptr(bio->bi_blkg->iostat_cpu, cpu);
1917 flags = u64_stats_update_begin_irqsave(&bis->sync);
1918
1919 /*
1920 * If the bio is flagged with BIO_CGROUP_ACCT it means this is a split
1921 * bio and we would have already accounted for the size of the bio.
1922 */
1923 if (!bio_flagged(bio, BIO_CGROUP_ACCT)) {
1924 bio_set_flag(bio, BIO_CGROUP_ACCT);
1925 bis->cur.bytes[rwd] += bio->bi_iter.bi_size;
1926 }
1927 bis->cur.ios[rwd]++;
1928
1929 u64_stats_update_end_irqrestore(&bis->sync, flags);
1930 if (cgroup_subsys_on_dfl(io_cgrp_subsys))
1931 cgroup_rstat_updated(bio->bi_blkg->blkcg->css.cgroup, cpu);
> 1932 put_cpu_light();
1933 }
1934
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[superna9999:amlogic/v5.17/g12-dsi 20/23] drivers/gpu/drm/meson/meson_encoder_dsi.c:59:37: error: passing 'const struct drm_display_mode *' to parameter of type 'struct drm_display_mode *' discards qualifiers
by kernel test robot
tree: https://github.com/superna9999/linux amlogic/v5.17/g12-dsi
head: 62dac9179f2937dc08bffe08d15c6846bc4aedb4
commit: b186318175a12bdca613ee26b4b452964c795eb3 [20/23] fixup! WIP: drm/meson: add DSI encoder
config: arm-randconfig-r033-20211210 (https://download.01.org/0day-ci/archive/20211211/202112111247.XKv1vmaF-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/superna9999/linux/commit/b186318175a12bdca613ee26b4b45...
git remote add superna9999 https://github.com/superna9999/linux
git fetch --no-tags superna9999 amlogic/v5.17/g12-dsi
git checkout b186318175a12bdca613ee26b4b452964c795eb3
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/meson/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/meson/meson_encoder_dsi.c:59:37: error: passing 'const struct drm_display_mode *' to parameter of type 'struct drm_display_mode *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
meson_venc_mipi_dsi_mode_set(priv, mode);
^~~~
drivers/gpu/drm/meson/meson_venc.h:71:32: note: passing argument to parameter 'mode' here
struct drm_display_mode *mode);
^
drivers/gpu/drm/meson/meson_encoder_dsi.c:130:69: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
dev_err(priv->dev, "Failed to find DSI transceiver bridge: %d\n", ret);
^~~
include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err'
dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
_p_func(dev, fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
drivers/gpu/drm/meson/meson_encoder_dsi.c:109:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
1 warning and 1 error generated.
vim +59 drivers/gpu/drm/meson/meson_encoder_dsi.c
6b197be782e041 Neil Armstrong 2021-12-09 47
b186318175a12b Neil Armstrong 2021-12-10 48 static void meson_encoder_dsi_mode_set(struct drm_bridge *bridge,
b186318175a12b Neil Armstrong 2021-12-10 49 const struct drm_display_mode *mode,
b186318175a12b Neil Armstrong 2021-12-10 50 const struct drm_display_mode *adjusted_mode)
6b197be782e041 Neil Armstrong 2021-12-09 51 {
6b197be782e041 Neil Armstrong 2021-12-09 52 struct meson_encoder_dsi *encoder_dsi = bridge_to_meson_encoder_dsi(bridge);
6b197be782e041 Neil Armstrong 2021-12-09 53 struct meson_drm *priv = encoder_dsi->priv;
6b197be782e041 Neil Armstrong 2021-12-09 54
b186318175a12b Neil Armstrong 2021-12-10 55 pr_err("%s:%d\n", __func__, __LINE__);
6b197be782e041 Neil Armstrong 2021-12-09 56
b186318175a12b Neil Armstrong 2021-12-10 57 meson_vclk_setup(priv, MESON_VCLK_TARGET_DSI, mode->clock, 0, 0, 0, false);
6b197be782e041 Neil Armstrong 2021-12-09 58
d521159dd8a996 Neil Armstrong 2021-12-10 @59 meson_venc_mipi_dsi_mode_set(priv, mode);
e1e87e576f5bef Neil Armstrong 2021-12-09 60 meson_encl_load_gamma(priv);
6b197be782e041 Neil Armstrong 2021-12-09 61
b186318175a12b Neil Armstrong 2021-12-10 62 writel_relaxed(0, priv->io_base + _REG(ENCL_VIDEO_EN));
b186318175a12b Neil Armstrong 2021-12-10 63
e1e87e576f5bef Neil Armstrong 2021-12-09 64 writel_bits_relaxed(BIT(3), BIT(3), priv->io_base + _REG(ENCL_VIDEO_MODE_ADV));
e1e87e576f5bef Neil Armstrong 2021-12-09 65 writel_relaxed(0, priv->io_base + _REG(ENCL_TST_EN));
b186318175a12b Neil Armstrong 2021-12-10 66 }
b186318175a12b Neil Armstrong 2021-12-10 67
:::::: The code at line 59 was first introduced by commit
:::::: d521159dd8a996678230b50e4ecafcdf50648c52 fixup! WIP: drm/meson: add DSI encoder
:::::: TO: Neil Armstrong <narmstrong(a)baylibre.com>
:::::: CC: Neil Armstrong <narmstrong(a)baylibre.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [RFC] bus: mhi: core: Load firmware asynchronous
by kernel test robot
Hi "Thomas,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on 622e96fb58d63985b028abc2cb9a873124bdac1e]
url: https://github.com/0day-ci/linux/commits/Thomas-Wei-schuh/bus-mhi-core-Lo...
base: 622e96fb58d63985b028abc2cb9a873124bdac1e
config: sh-randconfig-r015-20211210 (https://download.01.org/0day-ci/archive/20211211/202112111112.sFiipK0A-lk...)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/bc1fbdf39b0c8e31c64a703307a4e88a5...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Thomas-Wei-schuh/bus-mhi-core-Load-firmware-asynchronous/20211211-001725
git checkout bc1fbdf39b0c8e31c64a703307a4e88a56efc8ca
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/bus/mhi/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/bus/mhi/core/boot.c: In function 'mhi_fw_load_callback':
>> drivers/bus/mhi/core/boot.c:463:15: warning: 'dma_addr' is used uninitialized [-Wuninitialized]
463 | ret = mhi_fw_load_bhi(mhi_cntrl, dma_addr, size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/dma_addr +463 drivers/bus/mhi/core/boot.c
cd457afb166705 Manivannan Sadhasivam 2020-02-20 434
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 435 static void mhi_fw_load_callback(const struct firmware *firmware, void *context)
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 436 {
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 437 struct mhi_fw_load_callback_ctx *ctx = context;
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 438 const char *fw_name = ctx->fw_name;
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 439 struct mhi_controller *mhi_cntrl = ctx->mhi_cntrl;
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 440 struct device *dev = &mhi_cntrl->mhi_dev->dev;
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 441 dma_addr_t dma_addr;
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 442 size_t size;
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 443 void *buf;
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 444 int ret;
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 445
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 446 kfree(context);
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 447
cd457afb166705 Manivannan Sadhasivam 2020-02-20 448 size = (mhi_cntrl->fbc_download) ? mhi_cntrl->sbl_size : firmware->size;
cd457afb166705 Manivannan Sadhasivam 2020-02-20 449
cd457afb166705 Manivannan Sadhasivam 2020-02-20 450 /* SBL size provided is maximum size, not necessarily the image size */
cd457afb166705 Manivannan Sadhasivam 2020-02-20 451 if (size > firmware->size)
cd457afb166705 Manivannan Sadhasivam 2020-02-20 452 size = firmware->size;
cd457afb166705 Manivannan Sadhasivam 2020-02-20 453
2e36190de69cb4 Bhaumik Bhatt 2021-08-02 454 buf = dma_alloc_coherent(mhi_cntrl->cntrl_dev, size, &dma_addr,
2e36190de69cb4 Bhaumik Bhatt 2021-08-02 455 GFP_KERNEL);
cd457afb166705 Manivannan Sadhasivam 2020-02-20 456 if (!buf) {
cd457afb166705 Manivannan Sadhasivam 2020-02-20 457 release_firmware(firmware);
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 458 mhi_fw_load_finish(mhi_cntrl, MHI_FW_ERROR_FW_LOAD);
cd457afb166705 Manivannan Sadhasivam 2020-02-20 459 }
cd457afb166705 Manivannan Sadhasivam 2020-02-20 460
1b55c16a5e4718 Bhaumik Bhatt 2020-11-09 461 /* Download image using BHI */
cd457afb166705 Manivannan Sadhasivam 2020-02-20 462 memcpy(buf, firmware->data, size);
1b55c16a5e4718 Bhaumik Bhatt 2020-11-09 @463 ret = mhi_fw_load_bhi(mhi_cntrl, dma_addr, size);
2e36190de69cb4 Bhaumik Bhatt 2021-08-02 464 dma_free_coherent(mhi_cntrl->cntrl_dev, size, buf, dma_addr);
cd457afb166705 Manivannan Sadhasivam 2020-02-20 465
cd457afb166705 Manivannan Sadhasivam 2020-02-20 466 /* Error or in EDL mode, we're done */
0a895f091ebd94 Bhaumik Bhatt 2020-05-21 467 if (ret) {
1b55c16a5e4718 Bhaumik Bhatt 2020-11-09 468 dev_err(dev, "MHI did not load image over BHI, ret: %d\n", ret);
12e050c77be036 Bhaumik Bhatt 2020-11-09 469 release_firmware(firmware);
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 470 mhi_fw_load_finish(mhi_cntrl, MHI_FW_ERROR_FW_LOAD);
0a895f091ebd94 Bhaumik Bhatt 2020-05-21 471 }
0a895f091ebd94 Bhaumik Bhatt 2020-05-21 472
4f214496ac7421 Bhaumik Bhatt 2021-03-29 473 /* Wait for ready since EDL image was loaded */
418bec695696ab Bhaumik Bhatt 2021-03-29 474 if (fw_name == mhi_cntrl->edl_image) {
12e050c77be036 Bhaumik Bhatt 2020-11-09 475 release_firmware(firmware);
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 476 mhi_fw_load_finish(mhi_cntrl, MHI_FW_LOAD_READY_STATE);
12e050c77be036 Bhaumik Bhatt 2020-11-09 477 }
cd457afb166705 Manivannan Sadhasivam 2020-02-20 478
cd457afb166705 Manivannan Sadhasivam 2020-02-20 479 write_lock_irq(&mhi_cntrl->pm_lock);
cd457afb166705 Manivannan Sadhasivam 2020-02-20 480 mhi_cntrl->dev_state = MHI_STATE_RESET;
cd457afb166705 Manivannan Sadhasivam 2020-02-20 481 write_unlock_irq(&mhi_cntrl->pm_lock);
cd457afb166705 Manivannan Sadhasivam 2020-02-20 482
cd457afb166705 Manivannan Sadhasivam 2020-02-20 483 /*
cd457afb166705 Manivannan Sadhasivam 2020-02-20 484 * If we're doing fbc, populate vector tables while
cd457afb166705 Manivannan Sadhasivam 2020-02-20 485 * device transitioning into MHI READY state
cd457afb166705 Manivannan Sadhasivam 2020-02-20 486 */
cd457afb166705 Manivannan Sadhasivam 2020-02-20 487 if (mhi_cntrl->fbc_download) {
cd457afb166705 Manivannan Sadhasivam 2020-02-20 488 ret = mhi_alloc_bhie_table(mhi_cntrl, &mhi_cntrl->fbc_image,
cd457afb166705 Manivannan Sadhasivam 2020-02-20 489 firmware->size);
12e050c77be036 Bhaumik Bhatt 2020-11-09 490 if (ret) {
12e050c77be036 Bhaumik Bhatt 2020-11-09 491 release_firmware(firmware);
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 492 mhi_fw_load_finish(mhi_cntrl, MHI_FW_ERROR_FW_LOAD);
12e050c77be036 Bhaumik Bhatt 2020-11-09 493 }
cd457afb166705 Manivannan Sadhasivam 2020-02-20 494
cd457afb166705 Manivannan Sadhasivam 2020-02-20 495 /* Load the firmware into BHIE vec table */
cd457afb166705 Manivannan Sadhasivam 2020-02-20 496 mhi_firmware_copy(mhi_cntrl, firmware, mhi_cntrl->fbc_image);
cd457afb166705 Manivannan Sadhasivam 2020-02-20 497 }
cd457afb166705 Manivannan Sadhasivam 2020-02-20 498
12e050c77be036 Bhaumik Bhatt 2020-11-09 499 release_firmware(firmware);
12e050c77be036 Bhaumik Bhatt 2020-11-09 500
bc1fbdf39b0c8e Thomas Weißschuh 2021-12-10 501 mhi_fw_load_finish(mhi_cntrl, MHI_FW_LOAD_READY_STATE);
0a895f091ebd94 Bhaumik Bhatt 2020-05-21 502 }
cd457afb166705 Manivannan Sadhasivam 2020-02-20 503
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[chanwoo:devfreq-testing 2/4] include/linux/devfreq.h:332:1: warning: no semicolon at end of struct or union
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git devfreq-testing
head: 5857e3d1820d85e10321ec180ed88e780fd0ec3e
commit: d678890dcdf858c25d2789793a35a81c4311e972 [2/4] PM / devfreq: Add cpu based scaling support to passive governor
config: um-allyesconfig (https://download.01.org/0day-ci/archive/20211211/202112111116.n71rjgZH-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git/commit/...
git remote add chanwoo https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git
git fetch --no-tags chanwoo devfreq-testing
git checkout d678890dcdf858c25d2789793a35a81c4311e972
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SHELL=/bin/bash drivers/devfreq/ drivers/memory/samsung/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/spinlock_up.h:8,
from include/linux/spinlock.h:95,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from drivers/devfreq/devfreq.c:11:
arch/um/include/asm/processor-generic.h:104:19: error: expected identifier or '(' before '&' token
104 | #define cpu_data (&boot_cpu_data)
| ^
include/linux/devfreq.h:331:27: note: in expansion of macro 'cpu_data'
331 | struct devfreq_cpu_data *cpu_data[NR_CPUS];
| ^~~~~~~~
In file included from include/linux/devfreq_cooling.h:13,
from drivers/devfreq/devfreq.c:14:
>> include/linux/devfreq.h:332:1: warning: no semicolon at end of struct or union
332 | };
| ^
--
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/spinlock_up.h:8,
from include/linux/spinlock.h:95,
from include/linux/mm_types.h:9,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/devfreq/governor_passive.c:10:
arch/um/include/asm/processor-generic.h:104:19: error: expected identifier or '(' before '&' token
104 | #define cpu_data (&boot_cpu_data)
| ^
include/linux/devfreq.h:331:27: note: in expansion of macro 'cpu_data'
331 | struct devfreq_cpu_data *cpu_data[NR_CPUS];
| ^~~~~~~~
In file included from drivers/devfreq/governor_passive.c:16:
>> include/linux/devfreq.h:332:1: warning: no semicolon at end of struct or union
332 | };
| ^
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/spinlock_up.h:8,
from include/linux/spinlock.h:95,
from include/linux/mm_types.h:9,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/devfreq/governor_passive.c:10:
drivers/devfreq/governor_passive.c: In function 'get_target_freq_with_cpufreq':
arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:58:29: note: in expansion of macro 'cpu_data'
58 | parent_cpu_data = p_data->cpu_data[cpu];
| ^~~~~~~~
>> drivers/devfreq/governor_passive.c:50:31: warning: variable 'p_data' set but not used [-Wunused-but-set-variable]
50 | struct devfreq_passive_data *p_data =
| ^~~~~~
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/spinlock_up.h:8,
from include/linux/spinlock.h:95,
from include/linux/mm_types.h:9,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/devfreq/governor_passive.c:10:
drivers/devfreq/governor_passive.c: In function 'cpufreq_passive_notifier_call':
arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:221:10: note: in expansion of macro 'cpu_data'
221 | !data->cpu_data[freqs->policy->cpu])
| ^~~~~~~~
arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:224:26: note: in expansion of macro 'cpu_data'
224 | parent_cpu_data = data->cpu_data[freqs->policy->cpu];
| ^~~~~~~~
drivers/devfreq/governor_passive.c: In function 'cpufreq_passive_unregister_notifier':
arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:258:29: note: in expansion of macro 'cpu_data'
258 | parent_cpu_data = p_data->cpu_data[cpu];
| ^~~~~~~~
drivers/devfreq/governor_passive.c: In function 'cpufreq_passive_register_notifier':
arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:291:15: note: in expansion of macro 'cpu_data'
291 | if (p_data->cpu_data[cpu])
| ^~~~~~~~
arch/um/include/asm/processor-generic.h:104:18: error: expected identifier before '(' token
104 | #define cpu_data (&boot_cpu_data)
| ^
drivers/devfreq/governor_passive.c:331:11: note: in expansion of macro 'cpu_data'
331 | p_data->cpu_data[cpu] = parent_cpu_data;
| ^~~~~~~~
vim +332 include/linux/devfreq.h
d678890dcdf858 Saravana Kannan 2021-03-02 296
996133119f5733 Chanwoo Choi 2016-03-22 297 /**
7a51320ecd3942 Mauro Carvalho Chehab 2020-03-17 298 * struct devfreq_passive_data - ``void *data`` fed to struct devfreq
996133119f5733 Chanwoo Choi 2016-03-22 299 * and devfreq_add_device
996133119f5733 Chanwoo Choi 2016-03-22 300 * @parent: the devfreq instance of parent device.
996133119f5733 Chanwoo Choi 2016-03-22 301 * @get_target_freq: Optional callback, Returns desired operating frequency
996133119f5733 Chanwoo Choi 2016-03-22 302 * for the device using passive governor. That is called
996133119f5733 Chanwoo Choi 2016-03-22 303 * when passive governor should decide the next frequency
996133119f5733 Chanwoo Choi 2016-03-22 304 * by using the new frequency of parent devfreq device
996133119f5733 Chanwoo Choi 2016-03-22 305 * using governors except for passive governor.
996133119f5733 Chanwoo Choi 2016-03-22 306 * If the devfreq device has the specific method to decide
996133119f5733 Chanwoo Choi 2016-03-22 307 * the next frequency, should use this callback.
d678890dcdf858 Saravana Kannan 2021-03-02 308 + * @parent_type parent type of the device
d678890dcdf858 Saravana Kannan 2021-03-02 309 + * @this: the devfreq instance of own device.
d678890dcdf858 Saravana Kannan 2021-03-02 310 + * @nb: the notifier block for DEVFREQ_TRANSITION_NOTIFIER list
d678890dcdf858 Saravana Kannan 2021-03-02 311 + * @cpu_data: the state min/max/current frequency of all online cpu's
996133119f5733 Chanwoo Choi 2016-03-22 312 *
996133119f5733 Chanwoo Choi 2016-03-22 313 * The devfreq_passive_data have to set the devfreq instance of parent
996133119f5733 Chanwoo Choi 2016-03-22 314 * device with governors except for the passive governor. But, don't need to
996133119f5733 Chanwoo Choi 2016-03-22 315 * initialize the 'this' and 'nb' field because the devfreq core will handle
996133119f5733 Chanwoo Choi 2016-03-22 316 * them.
996133119f5733 Chanwoo Choi 2016-03-22 317 */
996133119f5733 Chanwoo Choi 2016-03-22 318 struct devfreq_passive_data {
996133119f5733 Chanwoo Choi 2016-03-22 319 /* Should set the devfreq instance of parent device */
996133119f5733 Chanwoo Choi 2016-03-22 320 struct devfreq *parent;
996133119f5733 Chanwoo Choi 2016-03-22 321
996133119f5733 Chanwoo Choi 2016-03-22 322 /* Optional callback to decide the next frequency of passvice device */
996133119f5733 Chanwoo Choi 2016-03-22 323 int (*get_target_freq)(struct devfreq *this, unsigned long *freq);
996133119f5733 Chanwoo Choi 2016-03-22 324
d678890dcdf858 Saravana Kannan 2021-03-02 325 /* Should set the type of parent device */
d678890dcdf858 Saravana Kannan 2021-03-02 326 enum devfreq_parent_dev_type parent_type;
d678890dcdf858 Saravana Kannan 2021-03-02 327
996133119f5733 Chanwoo Choi 2016-03-22 328 /* For passive governor's internal use. Don't need to set them */
996133119f5733 Chanwoo Choi 2016-03-22 329 struct devfreq *this;
996133119f5733 Chanwoo Choi 2016-03-22 330 struct notifier_block nb;
d678890dcdf858 Saravana Kannan 2021-03-02 331 struct devfreq_cpu_data *cpu_data[NR_CPUS];
996133119f5733 Chanwoo Choi 2016-03-22 @332 };
996133119f5733 Chanwoo Choi 2016-03-22 333 #endif
996133119f5733 Chanwoo Choi 2016-03-22 334
:::::: The code at line 332 was first introduced by commit
:::::: 996133119f57334c38b020dbfaaac5b5eb127e29 PM / devfreq: Add new passive governor
:::::: TO: Chanwoo Choi <cw00.choi(a)samsung.com>
:::::: CC: MyungJoo Ham <myungjoo.ham(a)samsung.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week