Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2957540rdb; Tue, 13 Feb 2024 02:28:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWFpu7mkTV7qSPo92frWbKRjzhjaAt/iFJqXCmGFqFHolpuGE5YANcSacAYRRlidkF8YntMNferbCSDopiQ4nXcFLjg3Ksxlm20iPpW7w== X-Google-Smtp-Source: AGHT+IHsR33gIE8sc1fbknIKgbgyFusHSKeOAt89F4ADjkDAhqGYoU0oSz4El2S1Fnziv9+PKy4N X-Received: by 2002:a05:6a21:3942:b0:19e:cce1:ed7e with SMTP id ac2-20020a056a21394200b0019ecce1ed7emr5611436pzc.62.1707820080259; Tue, 13 Feb 2024 02:28:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707820080; cv=pass; d=google.com; s=arc-20160816; b=tUd8H6utkHpuU1gcn7A72tBYkxitWqjOH6gLhlEPCb0Ruvv4I4tZPdlkvIZd7vdk3L zgB5iDsbqsUPDWRMGqSwOS4BUcMkSfshx2wF78sHO1o5hxcudc2is5uHJNXx5yfuv1DZ JZNbay2msjjfZMETUQdMiwKzBn8udqZLVURyJejgQ0QxjwWsbZ6ksB6gkUC+fOG+g/uY 2/RgLTa8T5swp2nbOu9jVooKPr9+HwEm5PavIGy/EULoA67bIha32F8J4HVgd6SKyghV j5O75x3k/Jj/wguhcE5XmzfycIHB4euvhlKhjCBqtctOCr0JKZCZLjmn+s8QscWKM2OI 2wqw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=oIDLI3pS9+9efCDo020zHNOr09bs/yhDlITOcQvdzFo=; fh=jNE4st/KqlXlcevMECZxSDHA9VdYfCCcNaYdP0u6b9c=; b=qRj3vJ5ssiCUkZFcEZ23/nSQ5Tjjd1cM0TyDbnJ5ng060gDORWWD1VuJUypd7TOw4p 6EQ/0MAr42xBpeCUQWMquITxC9BOJg/9AvibHii4x4SE63SRGpKWipcT4caP87ujqpQb 6XHZwsLq+8RrIBf9gQVrwFNJZND3M6CypSjGagyOBpFeX0ZVg7G5XZrxiZjsTu+jh72E LfDoujugf1XU4RcVki7ulCSZ4zgExgMZFpAEYqDBotXnFmgYIYqtriM98Q3oHcev5pBn oqYVW5qBDUtSJifnAF94Zge6IaWwVifM6GqSl87AOvodmBb/vpmu+96FSQ0oIKxH/sdX WyEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Czb4jvH3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-63298-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63298-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUA/wL7YIP4hMGpXH5jnYnPVbGXcsexDfs2SDLDdWiBakpYha3vztI6J4DWY80yp7g5s8LWOi2uRD9f2hhNsgqg8cJz6vvmxpzQjK+gPA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q9-20020a170902dac900b001d9c14d7575si1884130plx.333.2024.02.13.02.27.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 02:28:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63298-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Czb4jvH3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-63298-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63298-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 81A92B2A032 for ; Tue, 13 Feb 2024 10:03:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87364374DB; Tue, 13 Feb 2024 10:01:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Czb4jvH3" 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 AC23F37152; Tue, 13 Feb 2024 10:01:55 +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=1707818515; cv=none; b=VSX2WmivFhPV5hL2ET3PyJWgzIwKttyjzMoPCvGSPiRE64nllGms11eHDhO9V8Joyc6lJwPnV4RwvCvt55i/YZwvEtHn3+kUiFkmPP93Czd631dKi1J3AZGjPVzv9g/8Cn5qqk7SxG6lPlTaENhSQsmOXuOLTVOOUMVMyAOTkRQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707818515; c=relaxed/simple; bh=UU+zpA7I6z15NuI2JwEPZ/xh+eLMAyrqwwsqp31LEJg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gO0thIpzbGuqxH0YGeZoLGtpmVCKi30BlMapNiQcIU8nL1nVyUF4lgLODoQG3JrAcWeza4ydj6Nzg7O3LnEvCGBD7Ah/QeHBxrD3mVnEOsYgn1y6qBKPuVXGMNmVJqnssQSeOtPgfb8fv3lOMeKGeXM1XVQq7batcayPFgkNGHA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Czb4jvH3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBAECC433F1; Tue, 13 Feb 2024 10:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707818515; bh=UU+zpA7I6z15NuI2JwEPZ/xh+eLMAyrqwwsqp31LEJg=; h=From:To:Cc:Subject:Date:From; b=Czb4jvH3IBvNqc4VVgfDnGhlWAHmrbg0er9XeuGRTRJyBYbX1aLruGawaJ/efSjbN hvx3wypXmh45CQpK34csnhnhCrGdyiVZ5watoCo/kn1e8vUUhAPsI3NPdZqkhsqPFR 8LjDk5B483FVmf6LNZ3ctHxF2AwjQ6F4cgKbjl1YUdRG1KKMLi2rHQQFpxbv/lK121 qZUlVKOoNld+fAIHMdg1qe/44wJjux8c1gsbpy6uIVATHgdLsb8aIDVSext6PzV/rB A/JqmINItFaOMmStnFRpOTMhI+s5xGAvrZUaZ5g6Alg0yCBFdWEjiwqnqj/hJSYd18 SfSeF0dZ3x38Q== From: Arnd Bergmann To: Miquel Raynal , Vladimir Zapolskiy Cc: Arnd Bergmann , Richard Weinberger , Vignesh Raghavendra , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Martin Blumenstingl , Roland Stigge , David Woodhouse , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] mtd: rawnand: lpc32xx_mlc: fix irq handler prototype Date: Tue, 13 Feb 2024 11:00:09 +0100 Message-Id: <20240213100146.455811-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann 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 --- 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 488fd452611a..677fcb03f9be 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.39.2