linux-stable/tools
Arkadiusz Kubalewski fcbfd96a1e tools: ynl-gen: fix enum index in _decode_enum(..)
[ Upstream commit d7ddf5f426 ]

Remove wrong index adjustment, which is leftover from adding
support for sparse enums.
enum.entries_by_val() function shall not subtract the start-value, as
it is indexed with real enum value.

Fixes: c311aaa74c ("tools: ynl: fix enum-as-flags in the generic CLI")
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20230725101642.267248-2-arkadiusz.kubalewski@intel.com
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-03 10:25:53 +02:00
..
accounting
arch
bootconfig
bpf tools/resolve_btfids: Fix setting HOSTCFLAGS 2023-07-19 16:35:26 +02:00
build
certs
cgroup
counter
debugging
edid
firewire
firmware
gpio
hv
iio
include tools/nolibc: ensure stack protector guard is never zero 2023-07-27 08:56:48 +02:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: fix offsetof() and container_of() to work with CO-RE 2023-07-19 16:35:23 +02:00
memory-model
mm
net/ynl tools: ynl-gen: fix enum index in _decode_enum(..) 2023-08-03 10:25:53 +02:00
objtool
pci
pcmcia
perf perf build: Fix library not found error when using CSLIBS 2023-07-27 08:56:54 +02:00
power
rcu
scripts
spi
testing maple_tree: add __init and __exit to test module 2023-08-03 10:25:46 +02:00
thermal
time
tracing rtla/hwnoise: Reduce runtime to 75% 2023-07-19 16:36:36 +02:00
usb
verification
virtio tools/virtio: fix build break for aarch64 2023-07-19 16:36:41 +02:00
wmi
Makefile