Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp652504iog; Thu, 30 Jun 2022 07:43:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vSHOI9aJRyp0DLDEsDWABSwtQYRKKIjy4psA5mPnTAqFIDa11iz3brqyc+1yWpHJXo8McC X-Received: by 2002:a17:907:2d0c:b0:726:9a23:9318 with SMTP id gs12-20020a1709072d0c00b007269a239318mr9460678ejc.238.1656600226025; Thu, 30 Jun 2022 07:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656600226; cv=none; d=google.com; s=arc-20160816; b=LYCNec9HFOpMIQwlMpoERV1LKFGt9MZGe1owiqH43Q89g14vtBqqc0Y6Ka4Z2HJUVO M9qkOYBFpFYM1G+D3WmFZi8jqBkpGQneUWoL4SH2AY7JBt2ET7ornrWI9X3jYXOYe1Zq 019OI2w2nC2CzSb1ZSpT2H7oW7S96URFtUYLDk4FWV9YtmSjBjylXClpbahM+I+U778O 3e86SfUFqAucU+thMurErJHSf2hlcot57bxYeZPWvIO0dK75r9qV09oHO5X0328SVu8v M8THFRfm701fd+KLQbBC6MqQCT3z6ZpXQ0qbzxDUrlHjD7MwZ5ltEOGMcGk40QhBijeV awTw== 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=0hfr1a4hErg2EUgtQq2vaNH+gymxCiLfyY/qbEpECEc=; b=rEpTLsneqTEsHvcT8AkszMHZyRjqGehAoJu1a393imeP9vX/DIhwt8jl9XOBhLEjUJ LkXaaAa/mEeAnW09pVmLUFTVh81lpSI0KNNm6n0hJ70Hoqdoh3GWeqOdHQu6+2GBoLQs jjk31TQeGcTWiLk5Sp0a2rAOer42BhdJQuMM6NecgQdmBXMUgggYvcXNRs9I1hdj+1Qp CVhngZruAuYGrvuVnBzJPfrh2T+T0jN8Zm3E5H8g2tcZFzFocvO0KyVIEVFaZ0CxtfYw ukLrdWvLDQkoFMmEvXgrzaQNMslosaKSI73jjEu/5SMfDwSFgoRim1oakkZ58eTIcqiw qOsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="iBrE/bye"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw5-20020a1709066a0500b00722e8821ff6si6537805ejc.514.2022.06.30.07.43.21; Thu, 30 Jun 2022 07:43:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="iBrE/bye"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236102AbiF3ODw (ORCPT + 99 others); Thu, 30 Jun 2022 10:03:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236613AbiF3OCr (ORCPT ); Thu, 30 Jun 2022 10:02:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B53068A2C; Thu, 30 Jun 2022 06:53:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7C8BEB82AD8; Thu, 30 Jun 2022 13:53:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0374C34115; Thu, 30 Jun 2022 13:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656597180; bh=JOD3wDxT/JvV14ZI7sRweLRuU0c8/XY3206htf3O+v8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iBrE/byeDCiCMIQ49FK8CbyNIWvgnKe7DgmZebqLBrdihG7TVDjE5UQJSSflkCQos SJV6OjMlQwaKe0TzjFMy1L17YWqRfOCzimNGtEla+lYnHh25Kg7xExghK0ajB1zypy rml3QosgNdaty1Gye42Luofn8JmuAkNlnu/TF1d4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, k2ci , huhai , Genjian Zhang , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 4.19 16/49] MIPS: Remove repetitive increase irq_err_count Date: Thu, 30 Jun 2022 15:46:29 +0200 Message-Id: <20220630133234.384214777@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220630133233.910803744@linuxfoundation.org> References: <20220630133233.910803744@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: huhai [ Upstream commit c81aba8fde2aee4f5778ebab3a1d51bd2ef48e4c ] commit 979934da9e7a ("[PATCH] mips: update IRQ handling for vr41xx") added a function irq_dispatch, and it'll increase irq_err_count when the get_irq callback returns a negative value, but increase irq_err_count in get_irq was not removed. And also, modpost complains once gpio-vr41xx drivers become modules. ERROR: modpost: "irq_err_count" [drivers/gpio/gpio-vr41xx.ko] undefined! So it would be a good idea to remove repetitive increase irq_err_count in get_irq callback. Fixes: 27fdd325dace ("MIPS: Update VR41xx GPIO driver to use gpiolib") Fixes: 979934da9e7a ("[PATCH] mips: update IRQ handling for vr41xx") Reported-by: k2ci Signed-off-by: huhai Signed-off-by: Genjian Zhang Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/vr41xx/common/icu.c | 2 -- drivers/gpio/gpio-vr41xx.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/arch/mips/vr41xx/common/icu.c b/arch/mips/vr41xx/common/icu.c index 745b7b436961..42f77b318974 100644 --- a/arch/mips/vr41xx/common/icu.c +++ b/arch/mips/vr41xx/common/icu.c @@ -653,8 +653,6 @@ static int icu_get_irq(unsigned int irq) printk(KERN_ERR "spurious ICU interrupt: %04x,%04x\n", pend1, pend2); - atomic_inc(&irq_err_count); - return -1; } diff --git a/drivers/gpio/gpio-vr41xx.c b/drivers/gpio/gpio-vr41xx.c index 027699cec911..217b077838af 100644 --- a/drivers/gpio/gpio-vr41xx.c +++ b/drivers/gpio/gpio-vr41xx.c @@ -230,8 +230,6 @@ static int giu_get_irq(unsigned int irq) printk(KERN_ERR "spurious GIU interrupt: %04x(%04x),%04x(%04x)\n", maskl, pendl, maskh, pendh); - atomic_inc(&irq_err_count); - return -EINVAL; } -- 2.35.1