Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2907603iog; Mon, 27 Jun 2022 05:32:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7OD1vN4HWIMFvU3+yvsdFrT7vF1KRPj2a81OenbCPoFesXBG0eTnHVDbpYmONwhNifm66 X-Received: by 2002:a17:906:4fd6:b0:70c:9284:cc01 with SMTP id i22-20020a1709064fd600b0070c9284cc01mr12658941ejw.553.1656333141043; Mon, 27 Jun 2022 05:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656333141; cv=none; d=google.com; s=arc-20160816; b=UUffNtDSGMNKuIYo+dMJLL2wJAUzULIh46FTR2BSsJCjvftytAIzIQVlcBW6wW1z0i ncf0KijN2BqnwKWmhdqxgkUoTAicwAP7gYZ24jxGytbtA6DPKWashWxUbQ0FHAsfIRUC 0liY233Qt5V91cM6ZpAi2oFlwrMknd7kmIiFttDveD/e/i/SJP10aYw/JqSxraW/fTjk ce9qedEeD4LUi6+JPa83T04kzTD3Y254qZ/dQrpLAPLoTvxg/Sx7RfiQZP7TgIJSH9ye LUzcRI4xW4uEaF+ZwUwvuDV+KJNPG8yT+0joWjALy8TGfHBwPTJQ3+Nc84nagyqyuXRq uCCA== 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=RHpF1dSRuGlvw5xGj/LzEkLiBMFdLp7e70ifDnCfGSU=; b=Xeu/thPeQturFuma5KyTDdpRLO/wKRw0G/6cXUmrGEnvKD44U+Lw/om3i670AWBWEr eC5RkcBGC+YWQUJ8A8tApoohtSlESZOSZwvf6S172ETWKp7E/Zh3pxPOcnogr+U1xCSC EuoM/U1f+CT5qIotjlsVQTY1STkRzcy/aMPXJmxsTsJtUgotQoqpYQ5j0uBhQYXWi3iW Q1naI+DjCSTb1BTS0Yk1YTNl79JN417z+Y5s8+qPQgaRdmGsTGjLESYF/Y9L1tHdm63M orz2g3oNQOL4bV9XFKSneD3BMBY7GF+IUmaEPO4naBn6FHa9o1BzpBrMOtPYHkvaTUhz r6ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lXHwJwy7; 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 g14-20020a1709065d0e00b00711ca931feasi12945307ejt.998.2022.06.27.05.31.56; Mon, 27 Jun 2022 05:32:21 -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=lXHwJwy7; 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 S235365AbiF0L2j (ORCPT + 99 others); Mon, 27 Jun 2022 07:28:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235151AbiF0L05 (ORCPT ); Mon, 27 Jun 2022 07:26:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AE8565C3; Mon, 27 Jun 2022 04:26:52 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 21095612D8; Mon, 27 Jun 2022 11:26:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DCE5C3411D; Mon, 27 Jun 2022 11:26:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329211; bh=mQxZLlG1fnMhdpl5nNqIAaOfKrFy36I2HEN0sikocns=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lXHwJwy7519xBVaNe4PTGQiMsioMdej0TBc88e52TDdyRTox9hWl3S5AFE/Ku1+3w qxAzPsbjXz7mc18wJrFS7yYQlPQrErS2JxGVrN8n6sy523RW+GOrEYnGgBJulAE0lZ 6GJy+lnMB7gnEQfUytEFcBATg6w0LR2NZ6Q/wbKM= 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 5.10 047/102] MIPS: Remove repetitive increase irq_err_count Date: Mon, 27 Jun 2022 13:20:58 +0200 Message-Id: <20220627111934.867533399@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111933.455024953@linuxfoundation.org> References: <20220627111933.455024953@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 7b7f25b4b057..9240bcdbe74e 100644 --- a/arch/mips/vr41xx/common/icu.c +++ b/arch/mips/vr41xx/common/icu.c @@ -640,8 +640,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 98cd715ccc33..8d09b619c166 100644 --- a/drivers/gpio/gpio-vr41xx.c +++ b/drivers/gpio/gpio-vr41xx.c @@ -217,8 +217,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