Skip to content

include: Add noinline attribute helper - #1337

Closed
giri256 wants to merge 1 commit into
linux-test-project:masterfrom
giri256:fix/profil-noinline-attribute
Closed

giri256 wants to merge 1 commit into
linux-test-project:masterfrom
giri256:fix/profil-noinline-attribute

Conversation

@giri256

@giri256 giri256 commented Jul 20, 2026

Copy link
Copy Markdown

Summary

  • add LTP_ATTRIBUTE_NOINLINE alongside the existing common compiler attribute helpers
  • replace all current raw noinline compiler attribute uses in LTP tests
  • keep compiler-specific syntax centralized and avoid checkpatch warnings at call sites

Verification

  • configured LTP in an isolated Debian 13 container
  • built profil01, pkey01, mmap18, stack_clash, and meltdown
  • ran the repository checkpatch configuration against the patch
  • ran git diff --check

Closes #1318

Add LTP_ATTRIBUTE_NOINLINE alongside the existing common compiler attribute helpers and use it for all current noinline functions. This keeps compiler-specific syntax in one place and avoids checkpatch warnings at call sites.

Closes: linux-test-project#1318
Signed-off-by: Pavan G <giridharpavan593@gmail.com>
@acerv

acerv commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

LGTM @pevik maybe we can merge this one?

@pevik

pevik commented Jul 21, 2026

Copy link
Copy Markdown
Member

FYI this would not fix #1318 (see #1318 (comment)), but it's a cleanup (to be consistent) therefore merged anyway, also with Andrea's RBT in adaa013.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync attributes in include/tst_common.h with kernel

3 participants