diff options
author | 2024-02-02 12:39:21 -0800 | |
---|---|---|
committer | 2024-02-06 14:30:47 +0100 | |
commit | e769779c0c2c3a475c6b7313d35ff0aa3aceb780 (patch) | |
tree | e05f0c83bcba7080304b80ff5b849d6764fb9b18 /scripts/generate_rust_analyzer.py | |
parent | fs: Fix rw_hint validation (diff) | |
download | linux-rng-e769779c0c2c3a475c6b7313d35ff0aa3aceb780.tar.xz linux-rng-e769779c0c2c3a475c6b7313d35ff0aa3aceb780.zip |
fs: Verify write lifetime constants at compile time
The code in fs/fcntl.c converts RWH_* constants to and from WRITE_LIFE_*
constants using casts. Verify at compile time that these casts will yield
the intended effect.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240202203926.2478590-3-bvanassche@acm.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions