* [chrome-os:chromeos-6.6 57/57] drivers/soc/mediatek/mtk-mutex.c:1062:15: warning: variable 'sof_id' set but not used
@ 2025-02-03 12:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-03 12:02 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.6
head: 11792abed5949b15f434d0a53e21e51d5c56e28c
commit: 8039abd30dc699d1936f13fdc3edd18fc9a1952d [57/57] BACKPORT: FROMLIST: soc: mediatek: mutex: add mutex support for MT8196
config: arm-randconfig-001-20250203 (https://download.01.org/0day-ci/archive/20250203/202502031914.YGP7AWsU-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250203/202502031914.YGP7AWsU-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502031914.YGP7AWsU-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/soc/mediatek/mtk-mutex.c:1062:15: warning: variable 'sof_id' set but not used [-Wunused-but-set-variable]
1062 | unsigned int sof_id;
| ^
1 warning generated.
vim +/sof_id +1062 drivers/soc/mediatek/mtk-mutex.c
1055
1056 void mtk_mutex_remove_comp(struct mtk_mutex *mutex,
1057 enum mtk_ddp_comp_id id)
1058 {
1059 struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx,
1060 mutex[mutex->id]);
1061 unsigned int reg;
> 1062 unsigned int sof_id;
1063 unsigned int offset;
1064 bool is_output_comp = true;
1065
1066 WARN_ON(&mtx->mutex[mutex->id] != mutex);
1067
1068 switch (id) {
1069 case DDP_COMPONENT_DSI0:
1070 sof_id = MUTEX_SOF_DSI0;
1071 break;
1072 case DDP_COMPONENT_DSI1:
1073 sof_id = MUTEX_SOF_DSI0;
1074 break;
1075 case DDP_COMPONENT_DSI2:
1076 sof_id = MUTEX_SOF_DSI2;
1077 break;
1078 case DDP_COMPONENT_DSI3:
1079 sof_id = MUTEX_SOF_DSI3;
1080 break;
1081 case DDP_COMPONENT_DPI0:
1082 sof_id = MUTEX_SOF_DPI0;
1083 break;
1084 case DDP_COMPONENT_DPI1:
1085 sof_id = MUTEX_SOF_DPI1;
1086 break;
1087 case DDP_COMPONENT_DP_INTF0:
1088 sof_id = MUTEX_SOF_DP_INTF0;
1089 break;
1090 case DDP_COMPONENT_DP_INTF1:
1091 sof_id = MUTEX_SOF_DP_INTF1;
1092 break;
1093 case DDP_COMPONENT_DVO0:
1094 sof_id = MUTEX_SOF_DVO0;
1095 break;
1096 default:
1097 is_output_comp = false;
1098 break;
1099 }
1100
1101 if (!is_output_comp || mtx->data->need_sof_mod) {
1102 if (mtx->data->mutex_mod[id] < 32) {
1103 offset = DISP_REG_MUTEX_MOD(mtx->data->mutex_mod_reg,
1104 mutex->id);
1105 reg = readl_relaxed(mtx->regs + offset);
1106 reg &= ~(1 << mtx->data->mutex_mod[id]);
1107 writel_relaxed(reg, mtx->regs + offset);
1108 } else {
1109 offset = DISP_REG_MUTEX_MOD1(mtx->data->mutex_mod_reg,
1110 mutex->id);
1111 reg = readl_relaxed(mtx->regs + offset);
1112 reg &= ~(1 << (mtx->data->mutex_mod[id] - 32));
1113 writel_relaxed(reg, mtx->regs + offset);
1114 }
1115 }
1116
1117 if (is_output_comp) {
1118 offset = DISP_REG_MUTEX_SOF(mtx->data->mutex_sof_reg, mutex->id);
1119 reg = readl_relaxed(mtx->regs + offset);
1120 reg &= ~(1 << mtx->data->mutex_sof[id]);
1121 writel_relaxed(reg, mtx->regs + offset);
1122 }
1123 }
1124 EXPORT_SYMBOL_GPL(mtk_mutex_remove_comp);
1125
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-03 12:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 12:02 [chrome-os:chromeos-6.6 57/57] drivers/soc/mediatek/mtk-mutex.c:1062:15: warning: variable 'sof_id' set but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.