From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFFAB1F2366 for ; Tue, 7 Jan 2025 11:23:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736248987; cv=none; b=Awu39SFaz8BlVNS5bqV0Wdeoy1cSFuwm9uXkv8P16NPSl+k/9MR7Kpj7icG8YgiSPfq109Cf3Xje6VA3Mta8PCh0b2UTGkSqd8bYumxATHUqCLygFe0SByLKwUvVko2MtJhCLubuma3/z+hvvZS0Z9UirRApCgcXtLcEQxtSyqU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736248987; c=relaxed/simple; bh=tFTJTbLEdeHvFXuVjX+TFVFRiMUYqNKqGsL8FVajwVU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KUzz7pm2XR6XbpJhY2DEYQWFh1mfJvid7Cq10d0ekgisJsJkBxHbs1huwaS6Ej3nv+Z437O3/rg7w7JKGp+/MvpMiFNmSchiqW7AcqURePgV9blEZMhXz8cZaRd8h/q6EDr5ioA+p28SvhUZdGsuJBpmlt+FlcudYa/YE6iCPes= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=f3mE8vAy; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="f3mE8vAy" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2163dc5155fso221063625ad.0 for ; Tue, 07 Jan 2025 03:23:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736248984; x=1736853784; darn=vger.kernel.org; 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=H48pFuB51FzsnvAB5ojR6La/szgVG1aOsMJ1JHDym5o=; b=f3mE8vAy+HZKjkJslPqmhOO7vcdGEfVzCTuQtpItjxphs+YvieIlkenKkqL7eNay1j CQmSiia6QgFaln0iXi8YjPTMEk5ToOKuv55zsH7P82+qu2d/EcS0InH8AHzDEvNhjIvA 5K0MT978SDGOxPZzLzfRN2fjiQV5LBxE6UMDlHhl85ov6EcGsfwbR1RdFIOOnBJKY/60 l+/sim7XZvo43qdUVQU25UH4GrUMYmXsNsCqyJVwEA872y/QqbNuJxhwANDCUE1yvurH Zh9jc7CNK8qtiDFjmC2nC+UfJt1UhV2GIj1NtjHDSElkSGEzi6rVaNnXCnv6OpLd11uy oOqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736248984; x=1736853784; 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=H48pFuB51FzsnvAB5ojR6La/szgVG1aOsMJ1JHDym5o=; b=bOvxpuIT+QOJDi/kD5emCh+GzJr6HHfqCScQHYKlM2kl0ScMttYbzrKVYDsHLZjXZd lfxmjqNeiXlWtYLzH3GwAV4agoBvYxoRXaZvO5ar6zjg0h+oQpGyIvvIZg4UiseKmogx veQV2mpW9lSKr+W5C3sjDqF/m6+erUcZd005QxifKeP2Cq4fySsmrUepFtl3oeTHvpl9 Mo7BNaX5jsHk73F0jBvI5bbuwjAkr4zmnGtGfQlIp/opCCT+w2wpjyM14xNiWrlFK65R ptciJhHo8S7BKz2lvZ4UA2utpdx2EO68wBX1USCXifGfUXT3SDdYXeV9jV7t6N0iKQv9 5gZw== X-Forwarded-Encrypted: i=1; AJvYcCUwRa0bA0LdZLWhBL5Y8J/6P2n4SBxuZ3l7caro8D7AQjZN6JxUNMzyZ2i1PIM+2sdSAYp8s27ckvh8knE=@vger.kernel.org X-Gm-Message-State: AOJu0YyDbKMiG09pH+D9LWf4jcsiOF2f+CUDBAO8A/ZEyEEyY350XNaI kwCicV9bOkgeAYTVVS1rNUIOs8bmufFnAlioDGcQi8B4J3ND6YDd3W2mFwwIuXs= X-Gm-Gg: ASbGnctsChbEq4wv/ekL1mcRewf/UgpTQ6xp+r48Y+0F4MLIXyYQvMYSGiYTWVUltHs ItPW4ur3uYI2bjbytU3AsuUakaJuQyxLsAkx86wl1kMt46huwzq8HaRfHoeTb9ED5DfPjn4cyvv 44WMy1Fx2qtzuTayjL8pQqQXxJlXsbJgFSAKCCk2iuyZ89qKdRQlX9u54KbLNSBJa+mliNyva4U TEPlNakhHD+X6o+IT6tPIvgcT2PqE0Smm+RGGUtZtmg2abglRm7hsHA8N8= X-Google-Smtp-Source: AGHT+IE0VLVku8xsDJpwDp2mHFnWuLopMmkq2+92QaKH8cWC1XmAZlfGo1VglqLtglys6t3AAvvRhA== X-Received: by 2002:a17:902:cf07:b0:216:5561:70d7 with SMTP id d9443c01a7336-219e6f2702fmr1031684115ad.52.1736248984121; Tue, 07 Jan 2025 03:23:04 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc96eb83sm309145025ad.97.2025.01.07.03.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 03:23:03 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Miguel Ojeda , Danilo Krummrich , Viresh Kumar , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross Cc: linux-pm@vger.kernel.org, Vincent Guittot , Stephen Boyd , Nishanth Menon , rust-for-linux@vger.kernel.org, Manos Pitsidianakis , Erik Schilling , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Joakim Bech , Rob Herring , linux-kernel@vger.kernel.org Subject: [PATCH V6 15/15] DO-NOT_MERGE: cpufreq: Rename cpufreq-dt platdev Date: Tue, 7 Jan 2025 16:51:48 +0530 Message-Id: <742d39ea8aa48790c2efbb79507e9d6255c82771.1736248242.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The module! implementation in the Rust code expects a module name without a '-' symbol, else it fails to compile with following errors: error: expected one of `:`, `;`, or `=`, found `-` --> drivers/cpufreq/rcpufreq_dt.rs:247:1 | 247 | / module_platform_driver! { 248 | | type: CPUFreqDTDriver, 249 | | name: "cpufreq-dt", 250 | | author: "Viresh Kumar ", 251 | | description: "Generic CPUFreq DT driver", 252 | | license: "GPL v2", 253 | | } | |_^ expected one of `:`, `;`, or `=` | = note: this error originates in the macro `$crate::prelude::module` which comes from the expansion of the macro `module_platform_driver` (in Nightly builds, run with -Z macro-backtrace for more info) This must be fixed properly in the Rust code instead. Not to be merged. Not-Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-dt-platdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 2a3e8bd317c9..e69ff11eccbc 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -230,7 +230,7 @@ static int __init cpufreq_dt_platdev_init(void) return -ENODEV; create_pdev: - return PTR_ERR_OR_ZERO(platform_device_register_data(NULL, "cpufreq-dt", + return PTR_ERR_OR_ZERO(platform_device_register_data(NULL, "cpufreq_dt", -1, data, sizeof(struct cpufreq_dt_platform_data))); } -- 2.31.1.272.g89b43f80a514