diff options
author | 2019-02-05 10:22:28 -0600 | |
---|---|---|
committer | 2019-02-06 17:32:02 +0000 | |
commit | f13d4b5f85e1c436c9bf21205509266b5a81a320 (patch) | |
tree | 5217e1153720fbddc4939289e599ba8a8ca5ee16 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'asoc-5.0' into asoc-5.1 for dapm table (diff) | |
download | wireguard-linux-f13d4b5f85e1c436c9bf21205509266b5a81a320.tar.xz wireguard-linux-f13d4b5f85e1c436c9bf21205509266b5a81a320.zip |
ASoC: dapm: harden use of lookup tables
To detect potential errors, let's add:
a) build-time warnings when the table size isn't aligned with the enum
list
b) run-time warnings when the values are not initialized. This
requires an increase by one of all values to avoid the default 0.
Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions