Skip to content

Commit

Permalink
coding guidelines: comply with MISRA Rule 11.8
Browse files Browse the repository at this point in the history
- modified parameter types to receive a const pointer when a
  non-const pointer is not needed

Signed-off-by: Hess Nathan <nhess@baumer.com>
  • Loading branch information
DeHess committed May 13, 2024
1 parent 64f4130 commit 08c5b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/arch/common/ramfunc/src/ramfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ZTEST(ramfunc, test_ramfunc)
* ram_function(.) is user (read) accessible.
*/
#if defined(CONFIG_USERSPACE)
zassert_true(arch_buffer_validate((void *)&__ramfunc_start,
zassert_true(arch_buffer_validate((const void *)&__ramfunc_start,
(size_t)&__ramfunc_size, 0) == 0 /* Success */,
".ramfunc section not user accessible");
#endif /* CONFIG_USERSPACE */
Expand Down
2 changes: 1 addition & 1 deletion tests/kernel/device/src/mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ DEVICE_DEFINE(foo0, "foo0", foo_single_init, NULL,
*/
ZTEST(device, test_mmio_single)
{
struct z_device_mmio_rom *rom;
const struct z_device_mmio_rom *rom;
const struct device *dev = device_get_binding("foo0");
mm_reg_t regs;

Expand Down

0 comments on commit 08c5b8b

Please sign in to comment.