From patchwork Thu Aug 10 09:13:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349081 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 770B6C001B0 for ; Thu, 10 Aug 2023 09:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+ODJEg9tAJACaI1rAUoupL6A662A3XZnucXXNPF67Q8=; b=Xpy2UXT2muzwp2 0aKOifdNJvpbq+PpoV9P7cqrxr83IBzucTl5MxPBse2nMHd+UHDZFKiI9qq28xgva0nTr0oiRsE8K 6o/rCjfXRzwJCNrk0iqlOl6qgYlAWpLryx7gufzDRBq+MOMYiCva49wJ/QXqV53fM+cuLkKMsV8b6 ZiYz2Ag0RzgiUGEaT2OLvgDXXvtFrPT1noF4xhyBFO81PAa9mOQUFSziBs+XD+1WY7OUEFr60AjkS qiA8brDbufFiBfBQwehL+8ZeJxZrqLbE5OyP8ISLtAzNuHQJksH94HYKDAp+BwCd0tXUOpfFaCHvE 7iOWQqczcq7s+XHJCJug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU1jS-006x8x-0W; Thu, 10 Aug 2023 09:13:26 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU1jP-006x6f-0W for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2023 09:13:24 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-52327d63d7cso811700a12.1 for ; Thu, 10 Aug 2023 02:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691658801; x=1692263601; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=g3SpD5yxs/exW7oqYDwh6NeT5Hd31MRlZzqVBk8xwU8=; b=D4wxknROpd8rYS825uf312+KYogA9ZDVqxH9TibWxJxmTZJ5j8iG47lwgyvoR8H1tc Q3m15P8P2+lfhcFyAyjk/1NE6W32I9+COf/UbrQ4lwwa+VqWxFfwlvde/UKZqI5o7rRv wsyEKqRZhupBg4Qg0Gfp+yPO53U1ZFHOJWKZ2pjE3uT+GRpzuPwLPV+TNqxqiSyMNfOQ apDmXv+SmiridApSDYDwwh6LNbizRROmBeJWuM9hJtVX6OZE38IJbZJ+g7NNLC7dFTtA WtLQnwyYmrD8rlTOz1wlz4BKy52xwMdwtj3Fuxc3jvT5Z8uDvzv+BV8elKyPD+PRKipq n5UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691658801; x=1692263601; 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=g3SpD5yxs/exW7oqYDwh6NeT5Hd31MRlZzqVBk8xwU8=; b=VU83k6Oy6Xso/Gl9ZRNsb77vcJl6r48YXV5OJf+CTs4JMMOTEIfHWsQqEEKEjmOhUU VF4t42stundkIzU+J10UwKNn9Yi38b3JRugeovN4ZMFebqpfK5/CS1e9oge6x1CBjiig Pt9I7L5IVdXtX/fKTJb8b9u5JBvs+Iofc4nEqJ8AIdGjZRKeSPFd+urX5+xddSt5H0yR rCNcuoSFqvaF1+fvJszEJkSfFk5RtRfcFf1e/2OpR+Gqrs44ejYY6bYM+qdvFqzn8bRh 1QGt6rm63RsKjXt3nu5vHXG7je/aw4awawMrhAmVOE7+I4G5KulWWvFSKAIkH0S4cnUz b8PA== X-Gm-Message-State: AOJu0Yw2FpcbUGChbz99b+xPn/XstRwXIZt4xMwgvFYft8H+8as7VpoU aCAzosdxMxNN3vVDKssda2MdLw== X-Google-Smtp-Source: AGHT+IEAg+m9R2DlQPa4LDbgsuO3OxpClGBb4Zy/Wi4GmUdfNIwkALvNZ+bxZDFUMnc+zmgzgZgiZQ== X-Received: by 2002:a17:906:cc54:b0:99c:a23b:b4f5 with SMTP id mm20-20020a170906cc5400b0099ca23bb4f5mr1499184ejb.53.1691658801041; Thu, 10 Aug 2023 02:13:21 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id a18-20020a170906469200b00993150e5325sm653868ejr.60.2023.08.10.02.13.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:13:20 -0700 (PDT) From: Krzysztof Kozlowski To: Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Alim Akhtar , linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andi Shyti Subject: [PATCH net-next] thermal: samsung: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:13:18 +0200 Message-Id: <20230810091318.70261-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230810_021323_202233_6E86CCEF X-CRM114-Status: GOOD ( 11.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 'soc' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: exynos_tmu.c:890:14: error: cast to smaller integer type 'enum soc_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/thermal/samsung/exynos_tmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 58f4d8f7a3fd..e5bc2c82010f 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -887,7 +887,7 @@ static int exynos_map_dt_data(struct platform_device *pdev) return -EADDRNOTAVAIL; } - data->soc = (enum soc_type)of_device_get_match_data(&pdev->dev); + data->soc = (uintptr_t)of_device_get_match_data(&pdev->dev); switch (data->soc) { case SOC_ARCH_EXYNOS4210: