Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  • Jens Axboe's avatar
    io_uring: fix warnings on shadow variables · 1da2f311
    Jens Axboe authored
    There are a few of those:
    
    io_uring/fdinfo.c:170:16: warning: declaration shadows a local variable [-Wshadow]
      170 |                 struct file *f = io_file_from_index(&ctx->file_table, i);
          |                              ^
    io_uring/fdinfo.c:53:67: note: previous declaration is here
       53 | __cold void io_uring_show_fdinfo(struct seq_file *m, struct file *f)
          |                                                                   ^
    io_uring/cancel.c:187:25: warning: declaration shadows a local variable [-Wshadow]
      187 |                 struct io_uring_task *tctx = node->task->io_uring;
          |                                       ^
    io_uring/cancel.c:166:31: note: previous declaration is here
      166 |                              struct io_uring_task *tctx,
          |                                                    ^
    io_uring/register.c:371:25: warning: declaration shadows a local variable [-Wshadow]
      371 |                 struct io_uring_task *tctx = no...
    1da2f311