diff options
| author | Nicolás Antinori <nico.antinori.7@gmail.com> | 2026-05-21 16:08:50 -0300 |
|---|---|---|
| committer | Igor Korotin <igor.korotin@linux.dev> | 2026-08-09 12:04:34 +0100 |
| commit | 61ddec70c9bcc3d4b0471c8683e57d3b03cecf0a (patch) | |
| tree | 3807347d53cebd672bd6b96cfccad9f1e3ae0ca4 /scripts/objdiff | |
| parent | 527dd7fb6209857f8ff4426055b3a418e60faa8b (diff) | |
| download | linux-next-61ddec70c9bcc3d4b0471c8683e57d3b03cecf0a.tar.gz linux-next-61ddec70c9bcc3d4b0471c8683e57d3b03cecf0a.zip | |
i2c: rust: mark I2cAdapter methods as inline
When building the kernel using llvm-19.1.7-rust-1.85.0-x86_64, the
following symbols are generated:
$ nm vmlinux | grep ' _R'.*I2cAdapter | rustfilt
ffffffff817ff380 T <kernel::i2c::I2cAdapter>::get
ffffffff817ff400 T <kernel::i2c::I2cAdapter as kernel::sync::aref::AlwaysRefCounted>::dec_ref
ffffffff817ff3e0 T <kernel::i2c::I2cAdapter as kernel::sync::aref::AlwaysRefCounted>::inc_ref
However, these Rust symbols are trivial wrappers around the
`i2c_get_adapter` and `i2c_put_adapter` functions. It doesn't make sense
to go through a trivial wrapper for these functions.
Link: https://github.com/Rust-for-Linux/linux/issues/1145
Suggested-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Nicolás Antinori <nico.antinori.7@gmail.com>
Reviewed-by: Onur Özkan <work@onurozkan.dev>
Reviewed-by: Igor Korotin <igor.korotin@linux.dev>
Signed-off-by: Igor Korotin <igor.korotin@linux.dev>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
