Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7360994rdb; Wed, 3 Jan 2024 13:15:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/vIJFvgYIVVkotBdxpMNXRO/oZ/Mr+IDH5FGA1pppIATePeEpGmzUMvSkonjH9xpQmPOs X-Received: by 2002:a62:5ec1:0:b0:6da:3437:f6fd with SMTP id s184-20020a625ec1000000b006da3437f6fdmr4790921pfb.47.1704316516185; Wed, 03 Jan 2024 13:15:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704316516; cv=none; d=google.com; s=arc-20160816; b=Aw7cK5ARiL0iRUN/i4BMr8eOmXSBdCfFj/Y2OLKzbiodiQzNtPacA2/UAwS6KiBnHO kh7OSkKnC5YVNrBg5PbG8sMNes4lqD3MrONmxMCYM6wn2ZoI7ehv2OAT+3QDcQ5jxjm0 YaYD2uvU5eM6tOt51dTZ2rTHzFamoH9qkYjoKhrm9If1wC59yP6yYd2mLqm/2BafJXda P7GBzZeZAQM9Y+/OdrynHZ01w7ESkLGG+XUaiO9Z1X2htBUX6yh640LnDOQkxsr51wgk SO3z0+p9liiLwA+Q8w9j0AoNSLWuEUtHg/KOa+JWZ4GYUYPlCg5BTLlg0TWzbEqtZ/qa DqnQ== ARC-Message-Signature: i=1; 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; bh=G4AM82oZYIXq2htDHH8TV1zOK+hr62MWik7xdTn6Olk=; fh=x3hY/hasug7bFu3R6sJrbhJoXBu9uvntF68lTXY4A4o=; b=XT4dB1/jK4M0/Ah4nzPV+UcZtdaohggg8UfQ1gas3FfWzWAUHh2j05SO4BkLN+Z4iL qFPODiUR/ciVbevyV+w7fEgBvzeOA5FDxRnlS0mNIksqJhQnzy80QzuAASGn/uxSmoEj tKHNekCC/Ey+imo4P8QK5/nVtSpc8Q0fWz42b23sZyDm0IFhOpjZpgsiHYFjVBOq6W/q 5hIWi1e9QgyjgF2xQdAHXY7m2ik/XlEuuf+3ifAsIcgCTt8ySD3hrC2ony0z32GCPKps erMi0COKBmpY7zvQ+MumvNafbyGoUVepEvSKEsIjWluk1VxHyxfnKj1ko01c/mUOJozo SWBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16011-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16011-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fc37-20020a056a002e2500b006da491f7abesi8626140pfb.274.2024.01.03.13.15.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 13:15:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16011-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16011-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16011-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D760C2872DC for ; Wed, 3 Jan 2024 21:15:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2CC21D699; Wed, 3 Jan 2024 21:15:10 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mx.skole.hr (mx1.hosting.skole.hr [161.53.165.185]) (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 5A8031D681 for ; Wed, 3 Jan 2024 21:15:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=skole.hr Received: from mx1.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id 88FFB83D74; Wed, 3 Jan 2024 22:08:57 +0100 (CET) From: =?UTF-8?q?Duje=20Mihanovi=C4=87?= To: Arnd Bergmann , Robert Jarzmik Cc: =?UTF-8?q?Duje=20Mihanovi=C4=87?= , Lubomir Rintel , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , zhang songyi , soc@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC RESEND] soc: pxa: ssp: Cast to enum pxa_ssp_type instead of int Date: Wed, 3 Jan 2024 22:06:03 +0100 Message-ID: <20240103210604.16877-1-duje.mihanovic@skole.hr> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On ARM64 platforms, id->data is a 64-bit value and casting it to a 32-bit integer causes build errors. Cast it to the corresponding enum instead. Signed-off-by: Duje Mihanović --- This patch is necessary for my Marvell PXA1908 series to compile successfully with allyesconfig: https://lore.kernel.org/all/20231102-pxa1908-lkml-v7-0-cabb1a0cb52b@skole.hr/ --- drivers/soc/pxa/ssp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/pxa/ssp.c b/drivers/soc/pxa/ssp.c index a1e8a07f7275..e2ffd8fd7e13 100644 --- a/drivers/soc/pxa/ssp.c +++ b/drivers/soc/pxa/ssp.c @@ -152,11 +152,11 @@ static int pxa_ssp_probe(struct platform_device *pdev) if (dev->of_node) { const struct of_device_id *id = of_match_device(of_match_ptr(pxa_ssp_of_ids), dev); - ssp->type = (int) id->data; + ssp->type = (enum pxa_ssp_type) id->data; } else { const struct platform_device_id *id = platform_get_device_id(pdev); - ssp->type = (int) id->driver_data; + ssp->type = (enum pxa_ssp_type) id->driver_data; /* PXA2xx/3xx SSP ports starts from 1 and the internal pdev->id * starts from 0, do a translation here -- 2.43.0