1. 09 Mar, 2021 1 commit
    • Arnd Bergmann's avatar
      leds: lgm: fix gpiolib dependency · 34731ed1
      Arnd Bergmann authored
      Without gpiolib, the driver fails to build:
      
          drivers/leds/blink/leds-lgm-sso.c:123:19: error: field has incomplete type 'struct gpio_chip'
                  struct gpio_chip chip;
                                   ^
          include/linux/gpio.h:107:8: note: forward declaration of 'struct gpio_chip'
          struct gpio_chip;
                 ^
          drivers/leds/blink/leds-lgm-sso.c:263:3: error: implicit declaration of function 'gpiod_set_value' [-Werror,-Wimplicit-function-declaration]
                          gpiod_set_value(led->gpiod, val);
                          ^
          drivers/leds/blink/leds-lgm-sso.c:263:3: note: did you mean 'gpio_set_value'?
          include/linux/gpio.h:168:20: note: 'gpio_set_value' declared here
          static inline void gpio_set_value(unsigned gpio, int value)
                             ^
          drivers/leds/blink/leds-lgm-sso.c:345:3: error: implicit declaration of function 'gpiod_set_value' [-Werror,-Wimplicit-function-declaration]
                          gpiod_set_value(led->gpiod, 1);
                          ^
      
      Add the dependency in Kconfig.
      
      Fixes: c3987cd2 ("leds: lgm: Add LED controller driver for LGM SoC")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
      34731ed1
  2. 06 Mar, 2021 4 commits
  3. 05 Mar, 2021 33 commits
  4. 04 Mar, 2021 2 commits
    • Jens Axboe's avatar
      kernel: provide create_io_thread() helper · cc440e87
      Jens Axboe authored
      Provide a generic helper for setting up an io_uring worker. Returns a
      task_struct so that the caller can do whatever setup is needed, then call
      wake_up_new_task() to kick it into gear.
      
      Add a kernel_clone_args member, io_thread, which tells copy_process() to
      mark the task with PF_IO_WORKER.
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      cc440e87
    • Pavel Begunkov's avatar
      io_uring: reliably cancel linked timeouts · dd59a3d5
      Pavel Begunkov authored
      Linked timeouts are fired asynchronously (i.e. soft-irq), and use
      generic cancellation paths to do its stuff, including poking into io-wq.
      The problem is that it's racy to access tctx->io_wq, as
      io_uring_task_cancel() and others may be happening at this exact moment.
      Mark linked timeouts with REQ_F_INLIFGHT for now, making sure there are
      no timeouts before io-wq destraction.
      Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      dd59a3d5