Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp592513pxb; Wed, 27 Jan 2021 16:06:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLuN8xGZdpZnGzDsi2aKHkSYCnX//z4ndV4hwDaGEblElolXdrUlWquMlIoTBPJS/7i7Oe X-Received: by 2002:a17:906:19c3:: with SMTP id h3mr8492476ejd.429.1611792415304; Wed, 27 Jan 2021 16:06:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611792415; cv=none; d=google.com; s=arc-20160816; b=ADOfJj/r3Axoa+z9/eE2+UOCV/kl0GdqCw2bxCQSIUKGWFrd5jQ6yfafq4nxDBF9yc szZJ0jv4axTjlucjBdwOPERIF6BrBLz+Pot2U6ERIwUm6znjPNZ9GUzVoemlqb3XWTLh uUPDmJATLxX4nGTf3wlqiqKk5JbA9cZg1T8F5fcGCpf7N3G2KnZDHDiNM+fGsDfEzl2S Fhw+QjtI2E6JqXNuz085B+WZuf1urlt+ZXVFKLwhDTQKjcLyZqHiYAsLwzQUrGPZopRK yL5SjegUX0p2SOkNb2FlJYD0bvIYRkaDIM7QEJ/7Kkb8580L2ytLfdm9N/vimv9mUJbf 1MGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=1tAiaXaGj8nHlfWbqmlwZJ7XE36ne8Bkm3mEzlMeH+s=; b=vIpB5xH3F50EugvdFan28HeyUO9qnOdxKchKzmm5YAf053lweoBrjW3okQWdzQOHN1 L8el/I6tlLNHNooiA0KvFisj/OnsXL/vhH0DLcAg1nK+Ra3k0d8uLw5cRbxnQd901riE zqkfABmVbCrMWR2fwQTKOCtWGN9H40InQJ0qZ4AvV+8kQiAJC4vKZcvoWFAjTW5lJHD3 01atzABNKtlCd41u+r4eup+r3YPqXoLU4onqPGlveGTu9d9JBQjOrvCUj/aCxWLabHHR 7eTE2FSgHVxNkoKXbbf8blvY42MBSZieqn6DCIuUo/sfZv9ILHUQNRkO1VgrlpDbisZr 5gzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P+0mGfun; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si1796526edn.332.2021.01.27.16.06.30; Wed, 27 Jan 2021 16:06:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P+0mGfun; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232632AbhA0Qnb (ORCPT + 99 others); Wed, 27 Jan 2021 11:43:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231452AbhA0QnP (ORCPT ); Wed, 27 Jan 2021 11:43:15 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB300C06178A for ; Wed, 27 Jan 2021 08:42:34 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id 7so2626487wrz.0 for ; Wed, 27 Jan 2021 08:42:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1tAiaXaGj8nHlfWbqmlwZJ7XE36ne8Bkm3mEzlMeH+s=; b=P+0mGfun2o4zL7Q0f89TXYvYd/8EqS+VkEdJjuz4aONa0EX9u8YUrxBiTE8yFTvino W50gjZrMuri2xFbtqqkjMKKiFjxvzitXi+xOa/uqKK0TiWVZwbTMjAvK8xTbJPIuuNLH CyD29eEn7O+mLnegXf0cI5/vcu0enw/ZaJ9akwxT9dUZalQMoiITLHjtiAb0a8cnV4sb 4xn9iUNaSjbrg2gAekgDuHewFyeo9K1iYuDXKdUEkC+fBjYhfeiKAXIm4qSTUaggkMat rGhN8g/tFFAf54nS+i/jDXqoiqOcQWY3TpPyPB4BPO+XySIzMXOSUShhfQewfzVGaXUF BjWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=1tAiaXaGj8nHlfWbqmlwZJ7XE36ne8Bkm3mEzlMeH+s=; b=uj2HBKC6pYOtmICoh0uY1pznLe+GtPZSFC1QO17LLmV55DCgRLjh7hbppFosthXNS3 Txt4RPJhlmD7zlDSI9eVn/GwYPGvQvOVBbqUILVyoxIgGLnoitByh4jv/6Bp1Olqe0tp En88k1K3H4lxIY6etYELrQ/DyHNYoS+hIB3RMHfkefBuMFxFsL18QB/nCjYoCaSHnS96 fKGTx3zD0ghUpb8VxdfPoKBQ88kc42Yl84uSblQwlOeHoaNv3NET0KdYxRQBSTqSqXhU TcufQ/ke2AwiGZ37nKKXyEBju+Ry2IU2nUzQVY5wdc/0ufSykOssVsdAokCjqqiaP8Cp iryg== X-Gm-Message-State: AOAM530J/sVTEXXL/jFkovs/Y7Gg7bP3TLQeUzxC3k51+OWMKI3oOFCp qeBP9zH7Pi/BqTwo/JnHIz1A43HqVKae/g== X-Received: by 2002:adf:f1cd:: with SMTP id z13mr7998974wro.126.1611765753511; Wed, 27 Jan 2021 08:42:33 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id t8sm3109580wmq.36.2021.01.27.08.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 08:42:32 -0800 (PST) Sender: Emil Renner Berthing From: Emil Renner Berthing To: linux-kernel@vger.kernel.org, Greg Kroah-Hartman Cc: Emil Renner Berthing , Jiri Slaby , Andy Shevchenko , Dmitry Torokhov Subject: [PATCH v2] vt: keyboard, use new API for keyboard_tasklet Date: Wed, 27 Jan 2021 17:42:22 +0100 Message-Id: <20210127164222.13220-1-kernel@esmil.dk> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts the keyboard_tasklet to use the new API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") The new API changes the argument passed to the callback function, but fortunately the argument isn't used so it is straight forward to use DECLARE_TASKLET_DISABLED() rather than DECLARE_TASKLET_DISABLED_OLD(). Signed-off-by: Emil Renner Berthing --- v2: Rebased on Greg's tty/tty-next tree. --- drivers/tty/vt/keyboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c index 9f2eaa104ebc..77638629c562 100644 --- a/drivers/tty/vt/keyboard.c +++ b/drivers/tty/vt/keyboard.c @@ -131,8 +131,8 @@ static const unsigned char max_vals[] = { static const int NR_TYPES = ARRAY_SIZE(max_vals); -static void kbd_bh(unsigned long dummy); -static DECLARE_TASKLET_DISABLED_OLD(keyboard_tasklet, kbd_bh); +static void kbd_bh(struct tasklet_struct *unused); +static DECLARE_TASKLET_DISABLED(keyboard_tasklet, kbd_bh); static struct input_handler kbd_handler; static DEFINE_SPINLOCK(kbd_event_lock); @@ -1245,7 +1245,7 @@ void vt_kbd_con_stop(int console) * handle the scenario when keyboard handler is not registered yet * but we already getting updates from the VT to update led state. */ -static void kbd_bh(unsigned long dummy) +static void kbd_bh(struct tasklet_struct *unused) { unsigned int leds; unsigned long flags; -- 2.30.0