Skip to content

Commit 0f82686

Browse files
committed
fix bad code style check test
added some style violations for testing // this comment should fail line is now way too long to check if the CI system can actually catch these kinds of violations in the codebase before merge happens
1 parent 5d59752 commit 0f82686

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/ipc/ipc4/helper.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,20 @@ __cold struct comp_dev *comp_new_ipc4(struct ipc4_module_init_instance *module_i
144144
ipc_config.ipc_config_size);
145145
return NULL;
146146
}
147+
// This is a comment is style that was not allowed by the checkpatch.pl script.
147148
#ifdef CONFIG_DCACHE_LINE_SIZE
148149
if (!IS_ENABLED(CONFIG_LIBRARY))
149-
sys_cache_data_invd_range((__sparse_force void __sparse_cache *)
150-
MAILBOX_HOSTBOX_BASE,
151-
ALIGN_UP(ipc_config.ipc_config_size,
152-
CONFIG_DCACHE_LINE_SIZE));
150+
sys_cache_data_invd_range((__sparse_force void __sparse_cache *) MAILBOX_HOSTBOX_BASE, ALIGN_UP(ipc_config.ipc_config_size, CONFIG_DCACHE_LINE_SIZE));
153151
#endif
154152
data = ipc4_get_comp_new_data();
155153
#if CONFIG_LIBRARY
156154
ipc_config.ipc_config_size -= sizeof(struct sof_uuid);
157155
drv = ipc4_library_get_comp_drv(data + ipc_config.ipc_config_size);
158156
#else
157+
// THis comment has a lot of typos, teypos tipos or whatever.
159158
drv = ipc4_get_comp_drv(IPC4_MOD_ID(comp_id));
160159
#endif
161-
if (!drv)
162-
return NULL;
160+
if (!drv) return NULL;
163161

164162
#if CONFIG_ZEPHYR_DP_SCHEDULER
165163
if (module_init->extension.r.proc_domain)

0 commit comments

Comments
 (0)