diff options
author | Peng Wang <rocking@linux.alibaba.com> | 2021-02-26 04:21:44 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-26 20:41:04 +0300 |
commit | 35cdcbfc5cfc30012b790d9b077bd949ad46f1dd (patch) | |
tree | 9967484ff24c47b6b95197805797aab0ab61574f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b5e8736a954aecd33adf276a2680dc24a36a2420 (diff) | |
download | linux-35cdcbfc5cfc30012b790d9b077bd949ad46f1dd.tar.xz |
checkpatch: ignore warning designated initializers using NR_CPUS
Some max_length wants to hold as large room as possible to ensure enough
size to tackle with the biggest NR_CPUS. An example below:
kernel/cgroup/cpuset.c:
static struct cftype legacy_files[] = {
{
.name = "cpus",
.seq_show = cpuset_common_seq_show,
.write = cpuset_write_resmask,
.max_write_len = (100U + 6 * NR_CPUS),
.private = FILE_CPULIST,
},
...
}
Link: https://lkml.kernel.org/r/5d4998aa8a8ac7efada2c7daffa9e73559f8b186.1609331255.git.rocking@linux.alibaba.com
Signed-off-by: Peng Wang <rocking@linux.alibaba.com>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions