aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorFUJITA Tomonori <[email protected]>2024-09-30 13:40:37 +0000
committerJakub Kicinski <[email protected]>2024-10-03 16:42:18 -0700
commit3ed8d344e061f382069c27705543c1882aca468a (patch)
tree00aafbfd619f511cf716dda0ee35176b3cb55ef6 /tools/perf/scripts/python/task-analyzer.py
parent5fad1c1a09accf13abf4c22cf08445c2649c9d69 (diff)
rust: net::phy always define device_table in module_phy_driver macro
device_table in module_phy_driver macro is defined only when the driver is built as a module. So a PHY driver imports phy::DeviceId module in the following way then hits `unused import` warning when it's compiled as built-in: use kernel::net::phy::DeviceId; kernel::module_phy_driver! { drivers: [PhyQT2025], device_table: [ DeviceId::new_with_driver::<PhyQT2025>(), ], Put device_table in a const. It's not included in the kernel image if unused (when the driver is compiled as built-in), and the compiler doesn't complain. Signed-off-by: FUJITA Tomonori <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions