From patchwork Thu Aug 10 10:00:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 712775 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E74EBC04E69 for ; Thu, 10 Aug 2023 10:02:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234721AbjHJKCF (ORCPT ); Thu, 10 Aug 2023 06:02:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235201AbjHJKBb (ORCPT ); Thu, 10 Aug 2023 06:01:31 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 332244203 for ; Thu, 10 Aug 2023 03:00:09 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fe4cdb727cso6864475e9.0 for ; Thu, 10 Aug 2023 03:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661608; x=1692266408; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=d8XAqj3aGEtdE6at3bi6u1wUfJ6SEiB57bY3VUBfMBk=; b=AG6E5H6ARz4vDKIOAGnjdR9hy/OpJScVKRNmRp3Wrzato1I1GaRyliztyM/u+kxjBY NmapSqKcXSoGm4VRp5Bcx7OJHLVjwwxBuukJVIk0b/vHRCab8t/Bn8ksmpXzDkX5dDUO zkXPpery89e86DPj6aaoNVZx4gzyUXgW38Kam9l/bdVqlE9ZgzxZ9II0vsMcW31uI6TM OZ9g3tH8ci9G3OqQZZwzh+r9405im+nwFmoPnZwXaOnz+Of/KRnmTTk2bZw392Q2BIdt kcW0UgPFOMEx7iM1iBmfMljPLuDIJ7STqtz85oHazTk8vwf2KM7sjOG/tfyST0tvphNy nbbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661608; x=1692266408; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d8XAqj3aGEtdE6at3bi6u1wUfJ6SEiB57bY3VUBfMBk=; b=d2rSqVP1ecJX+Tn4KgTp32sHjVjTU7hPnAo9STP8Z+BOTWitINScY5eOw9vAw/5mAr xQ5gv0b8COt2a+qakvq2R09XgSckubdAXyhvM+chHMDjbgpzEZIH0FxQaWKhTsTIF+RZ 0hnBYHorXFVGNOxwGK+dEeRO3e6+9XYwpoEaC0Z0Rf4vA5iV7mNhV2CryVxfjQEI4R+0 jLim+s088jFj5PXGZdGLG24HD0oFdkuR1nu125715e/1URPfViWXu4iW8fQ7e0GExUNx GxaGik7tRErb11W0wd9onQk0/In5dDQWCSPUOrrvhBjH6lzu4lO+t1GYZQDnYYE0beva AwhA== X-Gm-Message-State: AOJu0YwTQqPLWIz5g0HB9xKAVFUs+FKVTp1z10BGj5AXdbmdukgb/2xU 2Otbl2uHsNg+Uv7GAADgnK7TSA== X-Google-Smtp-Source: AGHT+IHliYy2HqHHgp/KIkQzMp24rK41dN7k1g4MIPlcQ9M6boir9waqqJgGDx9oq9DBIp3zWCJsbQ== X-Received: by 2002:a05:600c:c3:b0:3fb:c9f4:1506 with SMTP id u3-20020a05600c00c300b003fbc9f41506mr1548236wmm.1.1691661607672; Thu, 10 Aug 2023 03:00:07 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id y9-20020a7bcd89000000b003fba6a0c881sm4498953wmj.43.2023.08.10.03.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 03:00:07 -0700 (PDT) From: Krzysztof Kozlowski To: Vinod Koul , Sinan Kaya , Andy Gross , Bjorn Andersson , Konrad Dybcio , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 2/2] dmaengine: mmp: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 12:00:00 +0200 Message-Id: <20230810100000.123515-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810100000.123515-1-krzysztof.kozlowski@linaro.org> References: <20230810100000.123515-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: mmp_tdma.c:649:10: error: cast to smaller integer type 'enum mmp_tdma_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- 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 d49fa6bc6775..52b726fc5f04 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c @@ -646,7 +646,7 @@ static int mmp_tdma_probe(struct platform_device *pdev) of_id = of_match_device(mmp_tdma_dt_ids, &pdev->dev); if (of_id) - type = (enum mmp_tdma_type) of_id->data; + type = (uintptr_t) of_id->data; else type = platform_get_device_id(pdev)->driver_data;