diff options
| author | Mauro Carvalho Chehab <[email protected]> | 2019-06-20 17:23:02 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-06-21 14:57:45 +0000 |
| commit | 2e7ce05593b39f0a947819ca8b73f2185f372f12 (patch) | |
| tree | edd7d37cffc69f26d090b29dd1429baffededca1 /drivers/fpga/of-fpga-region.c | |
| parent | scripts/get_abi.pl: fix parse issues with some files (diff) | |
| download | kernel-2e7ce05593b39f0a947819ca8b73f2185f372f12.tar.gz kernel-2e7ce05593b39f0a947819ca8b73f2185f372f12.zip | |
scripts/get_abi.pl: avoid creating duplicate names
The file the Documentation/ABI/testing/sysfs-class-power has
voltage_min, voltage_max and voltage_now symbols duplicated.
They are defined first for "General Properties" and then for
"USB Properties".
This cause those warnings:
get_abi.pl rest --dir $srctree/Documentation/ABI/testing:26933: WARNING: Duplicate explicit target name: "abi_sys_class_power_supply_supply_name_voltage_max".
get_abi.pl rest --dir $srctree/Documentation/ABI/testing:26968: WARNING: Duplicate explicit target name: "abi_sys_class_power_supply_supply_name_voltage_min".
get_abi.pl rest --dir $srctree/Documentation/ABI/testing:27008: WARNING: Duplicate explicit target name: "abi_sys_class_power_supply_supply_name_voltage_now".
And, as the references are not valid, it will also generate
warnings about links to undefined references.
Fix it by storing labels into a hash table and, when a duplicated
one is found, appending random characters at the end.
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/of-fpga-region.c')
0 files changed, 0 insertions, 0 deletions
