From mboxrd@z Thu Jan 1 00:00:00 1970 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 D21952FFDDC; Tue, 12 Aug 2025 18:45:14 +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=1755024314; cv=none; b=cAvpSUxrSmxDd8drxbeqwU9WHMy0wUxYcD8RjmUFaOqDy6caV1r2Ngli9kgj+vgzl1yN7sh0+sQe6WLQ938ATFiZpiVw0Kki/46zrdhkmROKYBcyQticmc/NHVzkv2WfZQAMhbGgriZl+3gX5ROXsdz8VS+hUs7muIiv29277Bo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755024314; c=relaxed/simple; bh=O1fn+HoTP2l91tw3oARj5BmsvbUzMYqvkDvLmkfzizE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TYnQk42WayuyJOfaKBq1/g98pzM1yDg73SPAMsoqPsgDWwZn6xaL8yNLix3+cDHHM+7uzzrBezDXGCCI8DKAlSUGqgzXnc2rUhWTmp8gmmO/K5hypTIxTmyvXzX38G+x4e4o3FIPfNARxgOBxwLKrkMNjzGXL6oh4jq70T/Epxo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fXs3ClaY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fXs3ClaY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F854C4CEF1; Tue, 12 Aug 2025 18:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755024314; bh=O1fn+HoTP2l91tw3oARj5BmsvbUzMYqvkDvLmkfzizE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fXs3ClaYpFdrRqfHEDss6dDDyBroTCUiZM4dqyVU3xQxa9FIuv/rOVzeYvpKv9Hcl Z358Pl3CGeobYBoi7SqpPepgyxJVDSCFskXCQpu9px2/1sY0FV/lD4z0SdOGv7s7vj hxwk4yuFSwq5DWd22NSsCPDvDiu1yi28CsMd7T/4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Krzysztof Kozlowski , Vinod Koul , Sasha Levin Subject: [PATCH 6.16 336/627] dmaengine: mmp: Fix again Wvoid-pointer-to-enum-cast warning Date: Tue, 12 Aug 2025 19:30:31 +0200 Message-ID: <20250812173432.067181025@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250812173419.303046420@linuxfoundation.org> References: <20250812173419.303046420@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Kozlowski [ Upstream commit a0b1589b62e2fcfb112996e0f4d5593bd2edf069 ] This was fixed and re-introduced. 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: mmp_tdma.c:644:9: error: cast to smaller integer type 'enum mmp_tdma_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Fixes: a67ba97dfb30 ("dmaengine: Use device_get_match_data()") Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20250525-dma-fixes-v1-5-89d06dac9bcb@linaro.org Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/mmp_tdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index c8dc504510f1..b7fb843c67a6 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c @@ -641,7 +641,7 @@ static int mmp_tdma_probe(struct platform_device *pdev) int chan_num = TDMA_CHANNEL_NUM; struct gen_pool *pool = NULL; - type = (enum mmp_tdma_type)device_get_match_data(&pdev->dev); + type = (kernel_ulong_t)device_get_match_data(&pdev->dev); /* always have couple channels */ tdev = devm_kzalloc(&pdev->dev, sizeof(*tdev), GFP_KERNEL); -- 2.39.5