From patchwork Wed Feb 14 16:24:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Th=C3=A9o_Lebrun?= X-Patchwork-Id: 201028 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1337771dyb; Wed, 14 Feb 2024 08:34:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlxbdgcfLbarRstYeNT2yC71PYa+agqgBpi38w+fibdmhhvFH+TF9uuANdGoO6khkCAFw6gL78J+cEgejbvtDDwc2bkw== X-Google-Smtp-Source: AGHT+IF3hmxMykNyvJ92iXsFGnMYImgKyylumCv8TlfWpQ+oHXVc3ULFP0KlrGjtKC+42r24Z2s/ X-Received: by 2002:a05:6a20:c995:b0:19e:957c:f7e6 with SMTP id gy21-20020a056a20c99500b0019e957cf7e6mr3613654pzb.13.1707928441607; Wed, 14 Feb 2024 08:34:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707928441; cv=pass; d=google.com; s=arc-20160816; b=z+6XvH2LC+dik3pzkJe6NCj2FiJKAR8Zi6Hnwx8QcMyiWv1GtrH5zlgfkeYD2cRswy Yq++4rN1XXxAQTEgR6tSVdeN0t/+BEz+0DOn18t506RH/uq0fglATBoGzTQEB0qhn0yx yVI8Xr8L/7unmKSu7ExCE6i9p3qPtMUnE/osi0kA7G6nKJQSqCabVvbTrh1tCPovxhzr huIg50Z2cC93vBrfzCsfffivfsZBsvjeVWwxz9KRVw4ZJZQZuJ1vhfzFvoiS5ZgPEZus fsChBL38Y7WMx7BrtFDemZgk9cGgHpI4wDau8Ol/9yohNOLFH/wBjWcw29xBqCQsJ/Mx rmRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=FPaEKDZRsqQg1o2M83ZjHSqgMFpHL4FJm1MMwf5vGg8=; fh=i0ASZZfyWGuWt1IezimcL6lEhJi2gSHWp1Cq2a2vVyY=; b=E+UoRxdSpODKrsfN5YfsN7XV9m7brx00ahh7wm3NNJnRrnIve4TMbOcsYcngEABmeJ A8T2dx+4IeNexnciaT8wUlQS/zywaAw5VgDEO5SV7Hv2BSnNtIUvP4oj3rAINCMujrdt Dtytamtff9yXDmUZhjqJH4BhcWwX7NCF42fWard4ZZe07FflkDeEXJxRNQQzvFEwkKSU LoSWfEiN6qoPzo+T//yP/qrycsS2HAlHJw/geLgSTBkPpqJwIzwykLaTmdL4+dmfHqr8 oq8ek5prtsyRsSV4pgOucX++dB0t7BG2Tx1F0abfs5ZqfdpqEz1lbFMmTL26tTBTbBQm Ekbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fbvKoBri; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-65542-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65542-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCVNLPYE1xAmBZSpCeN3Pt0TsY4BbPIRJ1xAk3IFOX1brHaXFEIQb/z/l/9/UwGgamdNDso4AOq8IfQRFDQtkHV4OVMonQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t8-20020a056a00138800b006e0cff575c1si6580452pfg.397.2024.02.14.08.34.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:34:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65542-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fbvKoBri; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-65542-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65542-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 BD92D2832BA for ; Wed, 14 Feb 2024 16:33:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 033816DCF8; Wed, 14 Feb 2024 16:28:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="fbvKoBri" Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (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 DDE6860ED7; Wed, 14 Feb 2024 16:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707928083; cv=none; b=WcbZt2peQgzAbVE7C463xgdZezWbOjRUJ6fXEKiKJGCbM0x4bbWnVMvojCI2yzFCqLMbctCbTolj8At84VBI1cDOdmw4FxvD2r057VtqXNGX766Dk7FHhOl4qVmuxEWcsFF/nKVRSLvzs74Sz71BlaEeTkhHGzNYrOJ/RVGo6fE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707928083; c=relaxed/simple; bh=zHzoNBjvcRL7OWs7kGXGyXjhEkGly7HUA37dQMH48mg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YywEB7S17OGRgFCXP6X6JnPVtXjEMk0qGhng92yQNYi3Z05iK6kzJJzYD1HSLmxSdz0YP2YT2yNNUYxf2P2DsmXBs6SW+9/KB9FTwKQej37F7bB23hoss9tvSvPm7cs71g/daCf9kqYV1pQWbCaqWCZy9Ufzlq3pwfsiJ9lr0yc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=fbvKoBri; arc=none smtp.client-ip=217.70.178.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: from relay3-d.mail.gandi.net (unknown [217.70.183.195]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 12878C3900; Wed, 14 Feb 2024 16:24:58 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 342AE60012; Wed, 14 Feb 2024 16:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707927889; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FPaEKDZRsqQg1o2M83ZjHSqgMFpHL4FJm1MMwf5vGg8=; b=fbvKoBrirsLJ2R6bh/URlGt9prJA9TbLFcs2zj+csdVV2KQ+Knfv9hzvvXCpBOETgnAmPT jm8nug3kP9SrZOI40+Ne1dU+/o7jmcdcOsM+fZ6K5SnTn+ZnBiHa8lvecg63vzqjt4A20D 2rviWyAk54uCK+k6lYV6CqdgL8qp5a9fVUPYeTqBr7pr87eMbmU+kLpatmK+8GURs8jyh8 CWL3wOZ6Eo3BuoAv2MFhOFtb4NRx3rwcEBFRH6co5L1mNCnJuulQBQfTFAhR2O37QuuOCD qhkwAhDCFeyQTtTUzDztwpZkvTw8CGA8s/EFwFM1dkQx05/vuv2o6Y2EE1kZFw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 14 Feb 2024 17:24:00 +0100 Subject: [PATCH 07/23] pinctrl: nomadik: fix build warning (-Wpointer-to-int-cast) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240214-mbly-gpio-v1-7-f88c0ccf372b@bootlin.com> References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> In-Reply-To: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Thomas Bogendoerfer Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.12.4 X-GND-Sasl: theo.lebrun@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790892773311337063 X-GMAIL-MSGID: 1790892773311337063 Fix compiler warning found in the pinctrl-nomadik platform driver. GCC message is as such: drivers/pinctrl/nomadik/pinctrl-nomadik.c:1169:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Théo Lebrun --- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c index d2a40c3dd0f6..60443de439fd 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c @@ -1174,14 +1174,14 @@ static int nmk_pinctrl_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; struct device_node *prcm_np; struct nmk_pinctrl *npct; - unsigned int version = 0; + uintptr_t version = 0; int i; npct = devm_kzalloc(&pdev->dev, sizeof(*npct), GFP_KERNEL); if (!npct) return -ENOMEM; - version = (unsigned int)device_get_match_data(&pdev->dev); + version = (uintptr_t)device_get_match_data(&pdev->dev); /* Poke in other ASIC variants here */ if (version == PINCTRL_NMK_STN8815)