Commit 8e37079
tools: ynl-gen: always append ULL/LL to range types
32bit builds generate the following warning when we use a u32-max
in range validation:
warning: decimal constant 4294967295 is between LONG_MAX and ULONG_MAX. For C99 that means long long, C90 compilers are very likely to produce unsigned long (and a warning) here
The range values are u64, slap ULL/LL on all of them just
to avoid such noise.
There's currently no code using full range validation, but
it will matter in the upcoming page-pool introspection.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent d1d3470 commit 8e37079
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2070 | 2070 | | |
2071 | 2071 | | |
2072 | 2072 | | |
| 2073 | + | |
2073 | 2074 | | |
2074 | 2075 | | |
2075 | 2076 | | |
2076 | | - | |
| 2077 | + | |
2077 | 2078 | | |
2078 | | - | |
| 2079 | + | |
2079 | 2080 | | |
2080 | 2081 | | |
2081 | 2082 | | |
| |||
0 commit comments