Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3425681pxf; Mon, 29 Mar 2021 01:44:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAIED19Gpbk0qSfxaPMBiJzG3cEzXxP1nxW0vzC74z596OADB2GH+QEE69DXiMyHkpcVlY X-Received: by 2002:a17:906:2b46:: with SMTP id b6mr27179964ejg.521.1617007441941; Mon, 29 Mar 2021 01:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617007441; cv=none; d=google.com; s=arc-20160816; b=gYZ1+4ODpkqDLPqgM4gsnbnkDpYgoJsLyZLLwnOBBHQi2FLrk1bbos9sVZeGDsMBwc rQSa4/1T7CpQxNt0VJHrwIkrZS4OXxIvMhvn2ElksVRMBQXRnz3YX8INou93X8fy8CvX NjDaLvURZw1Ijd2kx2VU2W505HklOEbnCjljCaaxM1fWOP2amaE/VJiXEUSMspvFdSgo axlXkE35cdYaQcX/oCx6hDf6y9qNDCr3qWMwgu7uSf4vInnpIc7hTaRIqzax5A2J0kMf +Rd+nFYWa9Rf3Fno8n1AGNOYDyPlZuMSbK9BX4Pb+20kolW3X01Z6Sn5QRqNtQScFH+f Sl+g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tqZFMaG2OrARX8wexintO3lTDN9il8cvshWgmeOqO7k=; b=wUGQIKKLnlR40uGv3Ai5oht81f81qIaDDZc3YEZDyt2mJ942lL8RC747vaGYibmZ6z qJ0Rm6gU9YmLbAognu6K9NsXB9GTfnmOoxyGsOPbYjjdG1sbuOos05QdtlipHwvaZNxu kDtRrStNNoqaU8aOq83CWQPwQMDG8UZFo1ZO5nQN0TqnuuSQ3IfQ9TVafR3n8soNJw89 8Ze3o7X7tHlAgP3yFTPzcYlkSVSJpZGyLOuL1OjqH05mZsCk/nXtr5AkNY2jd8l6jltC RgjRsNDEw+0pzeRCXEZNk6VKeIPC5SfNMu0WNL+HJKlihulfkogBJHkZIN8b/ezwmMPO e57Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Fujx+/6o"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f21si11894916edy.337.2021.03.29.01.43.38; Mon, 29 Mar 2021 01:44:01 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b="Fujx+/6o"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234344AbhC2IlU (ORCPT + 99 others); Mon, 29 Mar 2021 04:41:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:57846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233341AbhC2IRb (ORCPT ); Mon, 29 Mar 2021 04:17:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D79786197C; Mon, 29 Mar 2021 08:17:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617005832; bh=JQUZyqb78MXj8z49UGNMLLgCd8q5U5XxGdDhNop6REE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fujx+/6oar2UiETR3n0Ziw+q9REbpXbowK53Ukpx0U2AGrlaO6Wy0idu3vwLxAjYi HvBEOKI+ktrChjbkxQvh/iY7RkTPSqBV47XAB9iRWKwYm9diAO1AGjdF7RA9uqyS/Q RzE7N0BlRyIj7eDNjg2GGvv27qDW9qh33H6o6XhM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Abaci Robot , Yang Li , Andy Shevchenko , Sasha Levin Subject: [PATCH 5.10 021/221] gpiolib: acpi: Add missing IRQF_ONESHOT Date: Mon, 29 Mar 2021 09:55:52 +0200 Message-Id: <20210329075629.895499764@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Li [ Upstream commit 6e5d5791730b55a1f987e1db84b078b91eb49e99 ] fixed the following coccicheck: ./drivers/gpio/gpiolib-acpi.c:176:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Make sure threaded IRQs without a primary handler are always request with IRQF_ONESHOT Reported-by: Abaci Robot Signed-off-by: Yang Li Acked-by: Andy Shevchenko Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/gpio/gpiolib-acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 49a1f8ce4baa..863f059bc498 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -174,7 +174,7 @@ static void acpi_gpiochip_request_irq(struct acpi_gpio_chip *acpi_gpio, int ret, value; ret = request_threaded_irq(event->irq, NULL, event->handler, - event->irqflags, "ACPI:Event", event); + event->irqflags | IRQF_ONESHOT, "ACPI:Event", event); if (ret) { dev_err(acpi_gpio->chip->parent, "Failed to setup interrupt handler for %d\n", -- 2.30.1