Skip to content

fix(kmod): embedded_function_name for checkpatch#1252

Merged
Koichi98 merged 10 commits intomainfrom
fix/embedded_function_name
Apr 16, 2026
Merged

fix(kmod): embedded_function_name for checkpatch#1252
Koichi98 merged 10 commits intomainfrom
fix/embedded_function_name

Conversation

@Koichi98
Copy link
Copy Markdown
Collaborator

@Koichi98 Koichi98 commented Apr 12, 2026

Description

Fix EMBEDDED_FUNCTION_NAME warning for checkpatch.
Also added scripts/run_checkpatch.bash to so that everyone can run checkpatch easily.

Related links

PR: validate checkpatch as required in github workflows #1251

Issue: fixing checkpatch warnings/errors #1253

Description for EMBEDDED_FUNCTION_NAME

How was this PR tested?

  • Autoware (required)
  • bash scripts/test/e2e_test_1to1.bash (required)
  • bash scripts/test/e2e_test_2to2.bash (required)
  • kunit tests (required when modifying the kernel module)
  • bash scripts/test/run_requires_kernel_module_tests.bash (required)
  • sample application

Notes for reviewers

Version Update Label (Required)

Please add exactly one of the following labels to this PR:

  • need-major-update: User API breaking changes
  • need-minor-update: Internal API breaking changes (heaphook/kmod/agnocastlib compatibility)
  • need-patch-update: Bug fixes and other changes

Important notes:

  • If you need need-major-update or need-minor-update, please include this in the PR title as well.
    • Example: fix(foo)[needs major version update]: bar or feat(baz)[needs minor version update]: qux
  • After receiving approval from reviewers, add the run-build-test label. The PR can only be merged after the build tests pass.

See CONTRIBUTING.md for detailed versioning rules.

Signed-off-by: Koichi Imai <koichi.imai.2@tier4.jp>
@Koichi98 Koichi98 added the need-patch-update Bug fixes and other changes - requires PATCH version update label Apr 12, 2026
Signed-off-by: Koichi Imai <koichi.imai.2@tier4.jp>
Signed-off-by: Koichi Imai <koichi.imai.2@tier4.jp>
@Koichi98 Koichi98 added the run-build-test Run build-test in CI label Apr 12, 2026
@Koichi98 Koichi98 marked this pull request as ready for review April 12, 2026 12:59
Copilot AI review requested due to automatic review settings April 12, 2026 12:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Linux kernel checkpatch.pl EMBEDDED_FUNCTION_NAME warnings in the kernel module by switching log messages to __func__, and adds a helper script to run checkpatch locally.

Changes:

  • Replace embedded function-name strings in agnocast_kmod log messages with __func__.
  • Add scripts/run_checkpatch.bash for running checkpatch against kernel-module sources.
  • Minor related message/comment touch-ups while addressing checkpatch warnings.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
scripts/run_checkpatch.bash Adds a convenience script to run checkpatch.pl against kernel module sources.
agnocast_kmod/agnocast_ioctl.c Updates many log messages to include __func__ to satisfy checkpatch.
agnocast_kmod/agnocast_internal.c Updates log messages to use __func__.
agnocast_kmod/agnocast_init.c Updates a log message to use __func__.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread agnocast_kmod/agnocast_ioctl.c Outdated
Comment thread scripts/run_checkpatch.bash Outdated
Comment thread scripts/run_checkpatch.bash Outdated
Koichi98 and others added 7 commits April 13, 2026 14:59
@Koichi98 Koichi98 removed the run-build-test Run build-test in CI label Apr 16, 2026
Copy link
Copy Markdown
Collaborator

@k1832 k1832 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Koichi98 Koichi98 added the run-build-test Run build-test in CI label Apr 16, 2026
@Koichi98 Koichi98 merged commit 25f84f0 into main Apr 16, 2026
13 of 14 checks passed
@Koichi98 Koichi98 deleted the fix/embedded_function_name branch April 16, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

need-patch-update Bug fixes and other changes - requires PATCH version update run-build-test Run build-test in CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants