Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2390474lqp; Sun, 24 Mar 2024 17:19:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdgAmumF0/xZiRo3fjXzAgWexdHJdTbtlXztj8QqCOiBE/gJM63aaVu3goH3C04VAlwilw/7ngVmuDNTBimS5jeBjHpgRPyUlkNJmBbQ== X-Google-Smtp-Source: AGHT+IHDK63ykEV5IV3vJcuXrDryKZ3HklsIfmJODxsQxA9Eb19Fi2/kVl6kT+epgnp37ULIyQ1J X-Received: by 2002:a17:906:f9d8:b0:a47:499b:d735 with SMTP id lj24-20020a170906f9d800b00a47499bd735mr2709226ejb.14.1711325996701; Sun, 24 Mar 2024 17:19:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325996; cv=pass; d=google.com; s=arc-20160816; b=XpQhAkWPBhhhbVP5IgfL5QqhCTTAw3AMevxahB8fmqvzC4xPyihCS+Bj8B4UqyzVG8 eu0varcG9JGazYp1TVASNCTC2c8ZAdq3V2ALAQdkzi3Fvva0NE9DDrV615Y8ZOBnB6iH olmnj7zZICyRorOfxlxk3L2ikCYe6rSk+YKsI7Er1jEkNQpMjYziA7mVV2aQatLBLGff Vi7H9xHIwH3D2iRcEsjwIJ2D8ZQCFXBgDkF7cMxPajzkPb7S4g1Pn9fiuvK++ODEfmfs YV2LMPRsOH5Nb8FdtNHrJC6fMMwod55aM8uZHHS+wzr0jTnHTvtwO7KiY+k7T05d5OGd SbCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=d7kcRY1fsfRysaFrzbVztmzWhQQM1DM5+HQgQAIHn8A=; fh=KQEfnsbQqpabimwl1563L+YxRy7qklxfehcb2N4N94Q=; b=ITh67ga4KQsD/8oTCwewvzbwWubLamfgYXuJd0prdgcGEgeBahsWKvJhunYMawExVA gaqGGLdSK1tTFyja/x2s5+Ku1QEQJWSdDtOVdwmkQC4VTBNyPkqLdYi/WziX0nyqdbPQ oYPHOYIyuZuv04rmvriBQbVHQ0PUJveU6bYd8N+7ooELpU/pO3DfKgMnU1dWiBofDKL6 snMixRFlFpENi5/FZaiAVl8GIV4rGr5Ep3uwA61wOTd2e0k5+izhFvYh07Ha9ESTTAun E2TKmoZQGyC1UkBDODracRRHdMCZav0Sb3AD87Pe5PoJ81tD00496Xfn00WI7BR6xzfE tuPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ox3PRS0g; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113369-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l2-20020a1709062a8200b00a4737ad5b74si2017595eje.544.2024.03.24.17.19.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:19:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ox3PRS0g; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113369-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6F47B1F25853 for ; Mon, 25 Mar 2024 00:19:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 644BC19DF50; Sun, 24 Mar 2024 22:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ox3PRS0g" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79D8A19D8D1; Sun, 24 Mar 2024 22:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320170; cv=none; b=hea736+YSpGxMAru/zbKnTB6lQ3TqYtbVETVtzWUevDkYZvv4IFoRQvgOYSFtKPQydrwLrOjbfOa4MDO0KBwPwlGr8hP3K4ijXDFeiVvUBmvCNX0/ld3m/hKA7W9XqJIOuIXXDlUpr8rRgmt0+L2vJ+fFY71VMFH8XpDjuYn/7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320170; c=relaxed/simple; bh=88D2h7ESbBu8z6z2H1BIcpBwdPI4hxWEwZy8Q42aC84=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ODhz3M7rudrOaH/DVNStMwtJdqBU6ZB3f3YMYR3ZnZQKLjtkQJCLbASVzQO4QOc4ecXF5cWumSDNUVUCmvh1aQNb7w342UF5l9vadQyEClCzrWv/TJOrRiI/ANitIZqx/fHN/5TKPdZ/+MtmF3nr7BX+LHswmUbjvR6u6JTcdAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ox3PRS0g; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABD3EC433C7; Sun, 24 Mar 2024 22:42:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320170; bh=88D2h7ESbBu8z6z2H1BIcpBwdPI4hxWEwZy8Q42aC84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ox3PRS0g1PNlFGBOMynOKaveZfiHinz1Kr6HNGtkpc7nKJHPvjKaNzqZzX0lm4LoD OIsYYsz7bRbnAaKOxt7tNB3T+6HUuWJJa/eyEmMEXbxTl2c1IV97ers+kq6rMsXtfH 42Ti7432qB/4ahqTSw1bzRxV/H1ZCMCmWSUgpK2GfYlfWZtPTQMC0aWITYw8ZzjwHC fAb3VhlXuunKbYUBO22zjBNs6mt35C9i53OUjny4QCScHPxE+r3ruUoZenlcwJpOXc lakjY7iNuZmHs/O1kM+nfyL1laAUTXZCzFuTK4+aWspPzJzYbEZk1dGA4QMj78dcZM eNCftgA0Npl6w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Miquel Raynal , Sasha Levin Subject: [PATCH 6.8 478/715] mtd: rawnand: lpc32xx_mlc: fix irq handler prototype Date: Sun, 24 Mar 2024 18:30:57 -0400 Message-ID: <20240324223455.1342824-479-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Arnd Bergmann [ Upstream commit 347b828882e6334690e7003ce5e2fe5f233dc508 ] clang-16 warns about mismatched function prototypes: drivers/mtd/nand/raw/lpc32xx_mlc.c:783:29: error: cast from 'irqreturn_t (*)(int, struct lpc32xx_nand_host *)' (aka 'enum irqreturn (*)(int, struct lpc32xx_nand_host *)') to 'irq_handler_t' (aka 'enum irqreturn (*)(int, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict] Change the interrupt handler to the normal way of just passing a void* pointer and converting it inside the function.. Fixes: 70f7cb78ec53 ("mtd: add LPC32xx MLC NAND driver") Signed-off-by: Arnd Bergmann Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20240213100146.455811-1-arnd@kernel.org Signed-off-by: Sasha Levin --- drivers/mtd/nand/raw/lpc32xx_mlc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/lpc32xx_mlc.c b/drivers/mtd/nand/raw/lpc32xx_mlc.c index 488fd452611a6..677fcb03f9bef 100644 --- a/drivers/mtd/nand/raw/lpc32xx_mlc.c +++ b/drivers/mtd/nand/raw/lpc32xx_mlc.c @@ -303,8 +303,9 @@ static int lpc32xx_nand_device_ready(struct nand_chip *nand_chip) return 0; } -static irqreturn_t lpc3xxx_nand_irq(int irq, struct lpc32xx_nand_host *host) +static irqreturn_t lpc3xxx_nand_irq(int irq, void *data) { + struct lpc32xx_nand_host *host = data; uint8_t sr; /* Clear interrupt flag by reading status */ @@ -780,7 +781,7 @@ static int lpc32xx_nand_probe(struct platform_device *pdev) goto release_dma_chan; } - if (request_irq(host->irq, (irq_handler_t)&lpc3xxx_nand_irq, + if (request_irq(host->irq, &lpc3xxx_nand_irq, IRQF_TRIGGER_HIGH, DRV_NAME, host)) { dev_err(&pdev->dev, "Error requesting NAND IRQ\n"); res = -ENXIO; -- 2.43.0