From patchwork Thu Aug 10 09:59:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349196 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 8146BC001B0 for ; Thu, 10 Aug 2023 10:02:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235017AbjHJKCE (ORCPT ); Thu, 10 Aug 2023 06:02:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235200AbjHJKB1 (ORCPT ); Thu, 10 Aug 2023 06:01:27 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A9063C3C for ; Thu, 10 Aug 2023 03:00:07 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fe4ad22eb0so6089245e9.3 for ; Thu, 10 Aug 2023 03:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661606; x=1692266406; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QWK8jSm7OZOgtf/JSqZHgi2knmx1jBIVO9gs3YkEoNE=; b=Ey5doVBcOsn4Yza5LN+1bFuLD/arvUZtuYgdbEmBPTSfp3GzIueTCMVxhExuU/c0m7 oVfGdzGQpeU2bvetaaxAarPdT30QKXkq1K4yENdBMaB+nhA2VF8S1yj4Qi0W2FmDqHHJ /MJ5MZBuGkEcylWCs1+RJtGQRcCXW4IYbppWN40im3S1PM32W9kEzvEW5h7WFB9r7QOs AHsaFkXV9hWX3r6wlIprb4CgtnXhc8JV7KqJvTHtFK6FEsYyn2vSOfY0I0NPRF5X2uco qihncH/6tPk2VE1qiQyUDOzE09IfS3+z5GqHCoXj+t3S27uZC9Nj31w6hYznRK33AazV IbmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661606; x=1692266406; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QWK8jSm7OZOgtf/JSqZHgi2knmx1jBIVO9gs3YkEoNE=; b=byLrEizbUl9Kc1dWsaqmPMcUbREs2EBkikHXnc2PPfGbr8KQ6j8RpTO10PQy26NVtG EVkI80mqi7TnknygfePN3bCulVZtbr6QqKkdolHfid7vI0nIJOH204EYmrG8Dwwdp8Ci IeFUgFWJeLj6GYK6M+dJvNEpdamprMARsxvVMgNB/abZiuMGTr0gEk7qpk2VDMUYksD2 YvoTRU0fBn88QdiqoZ3JSXkDzhCSqE+djAwwAHPBQygR5eYR+K4NujToXfCZZO4RdHSx +Xuo0neoHFYcwH2leL3N46eMSGg0s90r6ktb6jH7MhMT7yEt/rGLRSCozK/AOIW7VOd0 go8w== X-Gm-Message-State: AOJu0YwnDBAAcZ4F32AcfZrA8EDandFtVvBFRSThsQiraySbHqRlN4kU Wha7rSGhXmS51izXnSpzWLIGZw== X-Google-Smtp-Source: AGHT+IEEVh8QZHoVHpvxYhNgkPw7Wd2mw7z2yO5JmlfgraMCtvSlLF7uV1u96DMiEdR/voWPpWT/1g== X-Received: by 2002:a1c:7518:0:b0:3fe:687a:abad with SMTP id o24-20020a1c7518000000b003fe687aabadmr1443541wmc.20.1691661605747; Thu, 10 Aug 2023 03:00:05 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 03:00:05 -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 1/2] dmaengine: qcom: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:59:59 +0200 Message-Id: <20230810100000.123515-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org 'cap' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: hidma.c:748:8: error: cast to smaller integer type 'enum hidma_cap' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/dma/qcom/hidma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index b5e3633e6a5e..499df3c83976 100644 --- a/drivers/dma/qcom/hidma.c +++ b/drivers/dma/qcom/hidma.c @@ -745,7 +745,7 @@ static bool hidma_test_capability(struct device *dev, enum hidma_cap test_cap) { enum hidma_cap cap; - cap = (enum hidma_cap) device_get_match_data(dev); + cap = (uintptr_t) device_get_match_data(dev); return cap ? ((cap & test_cap) > 0) : 0; } 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: 13349197 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 01C2EC04A94 for ; Thu, 10 Aug 2023 10:02:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234449AbjHJKCF (ORCPT ); Thu, 10 Aug 2023 06:02:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234902AbjHJKBa (ORCPT ); Thu, 10 Aug 2023 06:01:30 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 303BF270B for ; Thu, 10 Aug 2023 03:00:09 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fe5c0e58c0so6652175e9.3 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=StqiYlY4PJj3Q2JqfPZphz/ITh9QM8TnRfeOlmZWda54GHcLVeVXwQtAOn7/apj9ch gOdBO+wtYdNH3eCeMbbJ/UeQEKirXEg3l9dlY5MpKtJmlVGMHN5RBhEfioGuf9ZXJhjp JgNOm0sta+guMLpVQpcC+5aNxpfFf7LLo2psgJrCqKCE6NcJDXbFIBDmeChW5NwBf6Eo mngSBFifj4Cc2awGzwxnSf8Fv3Z0vnE4nisrxL0BR6qSEHG4LNsk2Aeki7AGrrV9K/Kp efQVQkiZCi5PTeOUol8cD4Cc+iM+E1sqev2EXKeAZ5toQJufdFV2ydeYzAPG9VPATVCE Ft+g== X-Gm-Message-State: AOJu0YzOSLLiaIJeJBjhTKUp4vz5+ExULQfKM+qQ9I6M4X0PrzAj7/94 jcn0CsvQ5OR1bKP9w9ypgJ/DtK5Y9dDwGPj4idk5Kg== 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: dmaengine@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;