diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2025-04-01 16:36:37 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2025-04-07 10:05:31 +0300 |
commit | 1c1fd374a2fe72b8a6dde62d3c3a9fd153e7581c (patch) | |
tree | ff05e0f31512aaf26f6fdce6562c103f162b53f4 /tools/perf/scripts/python/check-perf-trace.py | |
parent | b79fe1829975556854665258cf4d2476784a89db (diff) | |
download | linux-1c1fd374a2fe72b8a6dde62d3c3a9fd153e7581c.tar.xz |
mtd: spinand: Fix build with gcc < 7.5
__VA_OPT__ is a macro that is useful when some arguments can be present
or not to entirely skip some part of a definition. Unfortunately, it
is a too recent addition that some of the still supported old GCC
versions do not know about, and is anyway not part of C11 that is the
version used in the kernel.
Find a trick to remove this macro, typically '__VA_ARGS__ + 0' is a
workaround used in netlink.h which works very well here, as we either
expect:
- 0
- A positive value
- No value, which means the field should be 0.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202503181330.YcDXGy7F-lkp@intel.com/
Fixes: 7ce0d16d5802 ("mtd: spinand: Add an optional frequency to read from cache macros")
Cc: stable@vger.kernel.org
Tested-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions