Files
Onelots e2e91efda3 [PATCH] fs: read_write: fix declaration-after-statement in read()
Kernel 4.9 is built as gnu89 (C90), which forbids declaring variables
after statements within a block. The read() path had a declaration:

    loff_t pos = file_pos_read(f.file);

following statements inside an if-block which also contains a KSU hook
guarded by #ifdef, triggering -Wdeclaration-after-statement with Clang
when -Werror is set.

Move the variable declaration to the top of the block and perform the
assignment afterwards.

This fixes:
  fs/read_write.c:600:10: error: mixing declarations and code is a C99 extension [-Werror,-Wdeclaration-after-statement]

No functional change.

Signed-off-by: Onelots <onelots@onelots.fr>
2025-08-20 00:02:47 +02:00
..
2022-06-28 16:46:38 +00:00
2020-01-29 10:47:55 +01:00
2023-01-07 13:07:00 +01:00
2019-08-06 18:29:38 +02:00
2024-08-13 23:08:16 +05:30
2023-01-07 12:07:31 +01:00
2022-11-06 13:29:01 +01:00
2020-12-29 14:16:49 +01:00
2019-03-13 14:04:52 -07:00
2023-01-07 13:07:00 +01:00
2022-09-20 15:24:35 +02:00
2022-08-25 12:09:51 +02:00
2025-08-20 00:02:41 +02:00
2024-08-13 23:08:15 +05:30
2025-08-19 19:33:58 +02:00
2023-01-07 13:07:00 +01:00
2021-12-14 10:04:48 +01:00
2023-01-07 13:07:00 +01:00