Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2599601lqp; Mon, 25 Mar 2024 04:07:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRHiJ2wC1xUwINj0E+kPeklFZMalSR/wWcCatxZYBPgbUNmqjKCbR+ncX8t9GEn66Hl/hviCrg7tdUi2czqMdyXe6kJ0YC1aEKLG1cCA== X-Google-Smtp-Source: AGHT+IF1V6COiV+wHbxOAYfDgYioNFG88o23D/e0BgA0+88f4Kn/2y83K89wmeClSEmAV6PFncb7 X-Received: by 2002:a05:6e02:1d01:b0:368:9137:33dc with SMTP id i1-20020a056e021d0100b00368913733dcmr2878346ila.8.1711364870345; Mon, 25 Mar 2024 04:07:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711364870; cv=pass; d=google.com; s=arc-20160816; b=MxD58B2tcxOqOIJ/GWQrI/ZlLEB4OLNUleosXOd60qwAnRLvUHuTUXIwfySM5fp3Co bwnYMD14Xd7Y8v4MES9ZTbfpbxPfGpPXPdyhgrGzdB3dIgS1zzkqQq4J3PAlobDDZQ/E gQegsQDJtt/GMv7W7G+Ee/c6hyPgObNx6ZG7+U4qyavMWlXbDi2iA7doQRscRNrTA2HQ cQ2c8VqQcvzdFYQKIYPxfdcjqvqlAQxKtevr+cVoRI9e/HaajaBsW1HV0+6O/oaACx1n 6KQQ9culhpQswQ1NLgR1IRxKc0ZjIMRveoM7MwFcpbunlESViL/ftBzy4O6L6Xo+1gw9 t5pg== 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=VdPZ+VmjUtbRQw57Dn5cNhynQPceN8jp4QT9mFU2flQCobkD2uvCRHGNsOymx/aH3R 65BFnWWKe19RjpTyUBnN3Awx1vorGQUOZA+XwMcmlZY8nqzlCOGzUmEaYOwQcZQ+DBPQ A75oqrYC/uB7MrqxJ2p0xx1Mec4JykB3FyHCzTJmZ1sSp2C44nD4A338y/Sefr8XFr0j Enm7htJkGco1xJTgG/V20c31D2pNzLN1C13n8HZBVBBSkS5oPDNuZOn7K4ccPFoWd+vK zg8ZhXgsE63spzVT10hGVgQxZgHKr1qB1O+OhN5RwmUCoQz0b9qgkjbgWp1b+6esJLia c5Xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qeBicQWO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115503-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n28-20020a635c5c000000b005cd82e43aa3si7216216pgm.321.2024.03.25.04.07.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 04:07:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115503-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qeBicQWO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115503-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115503-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 010F52E4D75 for ; Mon, 25 Mar 2024 11:07:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 493A4234D8C; Mon, 25 Mar 2024 02:41:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qeBicQWO" 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 E36BF12A163; Sun, 24 Mar 2024 22:55:45 +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=1711320946; cv=none; b=pdKkkeTZu86dH/rGyx2bwhDt5kH1ljaZzlhfhtPYJqCyzpOBAFW5eeEJNh2YposVeZE4Gq6xBqgsJwZRn/No1pKV6IdrMiyA8/3E53EC9eR9pT47OktvJqtut1ccajG8rNPwRMrEqZv6j3vlyIe3kJn0tGF5V4AZHbaYcUZ75Ak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320946; c=relaxed/simple; bh=88D2h7ESbBu8z6z2H1BIcpBwdPI4hxWEwZy8Q42aC84=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kguz0EnvBp0AQDU9AuhiSrZcHV7qA7KHN/d+T5m4Z0qb5TGTPDZGGTinhUO4kzT4Lx5dmH/MnANlUyfbpMJ5rc6dPtZgngbuq29Uq3gQYCsGVl4XbONKlfGUaR7vyc5MyasC8IvgS9dc+j1FLCF6B3tT6u+eP0PqaWcVBZtCnVs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qeBicQWO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DE67C43399; Sun, 24 Mar 2024 22:55:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320945; bh=88D2h7ESbBu8z6z2H1BIcpBwdPI4hxWEwZy8Q42aC84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qeBicQWOoIzJlzD5YiHgv+l0CiaIjVDKLGKYMCIQnh+VvXcWDp01Ep4vJH1/zTRzz IT0l1+69WDx2CqQLtS3FJGUqUAfnEqcO/N5bsqFy/+bCDdQwz2snpc2XL2J+/w/fxk QsrO8dJ90SccvQHxJbO3GHSDokqU0ISeDpP9ctmqkLb7+w4h0S+C3iJNw5K81FHXpi fvNQM581//M7IWYHF8cn+0NL2dfRgcyWuOZzSmQ74DqHTYbRlEf777GCiJK4Ysn3Px y7sQI4itVUxj3oGbCZ8lhaX4DayG3yqOp7H95Q+1f7gNLisktJxUs9+dP77zwP7agS /2pkhirth7cMA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Miquel Raynal , Sasha Levin Subject: [PATCH 6.7 509/713] mtd: rawnand: lpc32xx_mlc: fix irq handler prototype Date: Sun, 24 Mar 2024 18:43:55 -0400 Message-ID: <20240324224720.1345309-510-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324224720.1345309-1-sashal@kernel.org> References: <20240324224720.1345309-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