diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-09-27 12:44:47 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2021-10-12 11:21:20 +0300 |
commit | 4853396f03c3019eccf5cd113e464231e9ddf0b3 (patch) | |
tree | 34e90e70b9de045507711c4a740a4c0dd36a0ebf /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7f00917a82331d4a3a22acce5076cb40fa7be668 (diff) | |
download | linux-4853396f03c3019eccf5cd113e464231e9ddf0b3.tar.xz |
memstick: avoid out-of-range warning
clang-14 complains about a sanity check that always passes when the
page size is 64KB or larger:
drivers/memstick/core/ms_block.c:1739:21: error: result of comparison of constant 65536 with expression of type 'unsigned short' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
if (msb->page_size > PAGE_SIZE) {
~~~~~~~~~~~~~~ ^ ~~~~~~~~~
This is fine, it will still work on all architectures, so just shut
up that warning with a cast.
Fixes: 0ab30494bc4f ("memstick: add support for legacy memorysticks")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210927094520.696665-1-arnd@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions