Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2910173iog; Mon, 27 Jun 2022 05:34:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tDnWcjvIgUQaQLDLBO+INMbAS4mJHLgY9ebY2eMSBbRnTRAuSvZfNj7fEXP86TZNMdm1up X-Received: by 2002:a17:906:99c5:b0:6df:8215:4ccd with SMTP id s5-20020a17090699c500b006df82154ccdmr12132933ejn.684.1656333295495; Mon, 27 Jun 2022 05:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656333295; cv=none; d=google.com; s=arc-20160816; b=QHxgR5NOewvkW+CcxQonV2BbTGJL3yJSbpmV4n9La/C3fWsESQTOFNDWHNSXAeCkKU Sx8vkvZjVl2lE/4H1F0HjUQ2OBKLj6GVMyBr2ExWRV1FtHgF2Ze8QqbZoVeuJuhqZqOZ 2673FgHmSUz4MSdHVspqJ+qht+szlEd9RGQ4WLa2Ly5gTgXx/uvGWNJWpJzl5gpsPqem UZMsWGw4mUGqizbTGK5PEEp+gxFTKglkf5sjMsEpOw141Rj7T1/Kb7TmOk1c8daXFc5p 9IBWX0zLXssaKo4ouia+1doVCqlwoxyz3l2JBM6f+qajc/vq1X/M8HeJ1RWJmDPxPtbr jdtQ== 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=ty8F0RUY8k65sFVbKKvxOK6o8gEey/MbXrHkR4xoEdO1VDUx1ucyEHMiuzvOuR5X8l PORdFFgqXZHrKlzYdnazhAkESgx1jFPO82+KQz4aJUKMABZJXirQFOjslVg2zyQxAp5p d5fq7GqyJzzMsrQb3EE+MO4W6McBirdr1Z8sbdzNT23lq3T7RB19S1nuFcRC9NakXRug XiAPO04UhawCvCL3MNuOgeif4gCntpXVupyGWTAwIvgY6PpKZd2HeB0xLzdWoEEExoGH bnphv5pJ8JSInt6TJtWB7g9fxarEWmVmVctjzNCQ7tpZyf94PFwXuLNwSNoaGj+eiQNA +cew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jTi8Znt5; 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 e12-20020a056402148c00b0042d83ceec4csi11833365edv.252.2022.06.27.05.34.30; Mon, 27 Jun 2022 05:34:55 -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=jTi8Znt5; 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 S234501AbiF0LcD (ORCPT + 99 others); Mon, 27 Jun 2022 07:32:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235509AbiF0Lbd (ORCPT ); Mon, 27 Jun 2022 07:31:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7E22F68; Mon, 27 Jun 2022 04:29:01 -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 EED40614F6; Mon, 27 Jun 2022 11:29:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBED3C3411D; Mon, 27 Jun 2022 11:28:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329340; bh=mQxZLlG1fnMhdpl5nNqIAaOfKrFy36I2HEN0sikocns=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jTi8Znt5M589g3bVbNmhwe7acP1CagXgi8DM2ZSFliJlym9EOaarCbRpLRCfhg+t/ hW8DOwbRJKsP7G1YbRgkNYWk9DA+iz7fEZuICds+t6LXwRhELGYZxl0WSLmViWlrII O/BtjZX8Yqb33KmgEPXGetlVox2H6aQGSzmt09t4= 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.4 26/60] MIPS: Remove repetitive increase irq_err_count Date: Mon, 27 Jun 2022 13:21:37 +0200 Message-Id: <20220627111928.456280316@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111927.641837068@linuxfoundation.org> References: <20220627111927.641837068@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