Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2809003pxb; Sun, 15 Nov 2020 19:06:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwep868IyQaXQ6q+9fHF4VKF4bSIgjcne3CQFixwrRmHElu8C5MTQrgk122Uk+A/GjV3ac5 X-Received: by 2002:a17:906:c312:: with SMTP id s18mr12545094ejz.185.1605496007460; Sun, 15 Nov 2020 19:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605496007; cv=none; d=google.com; s=arc-20160816; b=IlAt+4XoEPclbRBww8Ep+gc53wCPDDKkcbG3F4ddfzUaGRDx+UtLcGWiRV7s0Dxksv KErWAMdoy4DTdC354ygokXEDWV3yLkjOh1TNCVvydL+hSlWC2kORALKj0LXFcAILJo/g Lz5HHUOf+jd+AqCaWI/jROi8HAhnFc/UP9wayzSUM73CYvGkoppGiumTryII2dTMf83u RmZvme//OT1lGx+S+vHfUFl8/WLMtCS3eyrtSlsxHqyJ1d/HyUtj6iHPAd0CfihyQcJD Hn9wXR1KG5vK1wZxuqvBXEWfR4PQ9FPIaPjAH9NNbfYaGWBhM9L6kWaE7LFGRFbd/nu4 ugPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from; bh=sW8mAtSXAywopzCVUUAwSV/CU7LWhteF8792ca80V5A=; b=ufi1jL6oSepFnU5PAihMQ0FFzwV+lPhpjySi1DkDFgx1PdId23m6aClWOrjkk9h6QZ dbUKxlZHZGwi/xzWZRN6QFjLx5g9Sy84NymBrFHYD6ByNOI4gHAwOHNn8M6wSXYIY72/ nDiFsDeUCYq8vrpDb8kUW0L4KzKkwy19Zt+J9uRMlf0QAu0Ccu0DBHYKCYxr1UEPcTnU rQwfjKRy0n3XrMzvzZKxfDfcQMZX+/3yUaA6ipKDAdONc+Af22kszfSkHSzSi6y7MifJ 1PA2WvosiQRW8Tdm1+8PCu6dWdi0RYBCws61cAfXyGNqhfyjzFh7Ag46WYVhH9nFsFch T3Gw== ARC-Authentication-Results: i=1; mx.google.com; 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 cc13si11557769edb.104.2020.11.15.19.06.25; Sun, 15 Nov 2020 19:06:47 -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; 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 S1728324AbgKPBHD (ORCPT + 99 others); Sun, 15 Nov 2020 20:07:03 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:7500 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728319AbgKPBHD (ORCPT ); Sun, 15 Nov 2020 20:07:03 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CZ9rj2dJvzhbBv; Mon, 16 Nov 2020 09:06:45 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 16 Nov 2020 09:06:51 +0800 From: Tian Tao To: , , Subject: [PATCH] power: supply: Fix missing IRQF_ONESHOT as only threaded handler Date: Mon, 16 Nov 2020 09:07:19 +0800 Message-ID: <1605488839-44453-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Coccinelle noticed: drivers/power/supply/ab8500_btemp.c:1107:8-28: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT. Signed-off-by: Tian Tao --- drivers/power/supply/ab8500_btemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/ab8500_btemp.c b/drivers/power/supply/ab8500_btemp.c index 909f024..e0b662b 100644 --- a/drivers/power/supply/ab8500_btemp.c +++ b/drivers/power/supply/ab8500_btemp.c @@ -1105,7 +1105,7 @@ static int ab8500_btemp_probe(struct platform_device *pdev) } ret = request_threaded_irq(irq, NULL, ab8500_btemp_irq[i].isr, - IRQF_SHARED | IRQF_NO_SUSPEND, + IRQF_SHARED | IRQF_NO_SUSPEND | IRQF_ONESHOT, ab8500_btemp_irq[i].name, di); if (ret) { -- 2.7.4