From nobody Tue Feb 10 15:45:49 2026 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (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 B9B7232D0EC for ; Tue, 28 Oct 2025 12:23:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761654203; cv=none; b=t6fVY5K9cz/edB3no7iCHJkQMXEe/sffCkcDyffm+RFSRSrbKzGFdzc02Y52o5qL319gJDs59Sx7vlGg7WBwHSobU0tZ4suUXFVYNhkU1TvA4qaCxtPzL50OJmYaw3EaZo6XAaDhvx3bptT5RFyLjp6Nyj4i4gBYkiG2U2DAuyA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761654203; c=relaxed/simple; bh=CcfjXkudmcRMkM5k4FnFQVn2Pj1DpNZz1VwIHs0i84c=; h=From:Date:Subject:MIME-Version:Message-Id:In-Reply-To:To:Cc: Content-Type:References; b=KA8I3ivb7Yv+eDixYl6RxoXebbT+qOP9jFpTYFaXFqBixe6xsbAbkox92vocojZYnKlFxCvnej/NTqcnD5v77b/7FOgFr1F4bx36BG7GMDL+uZmkqaSfsn3ulRD0WHD9CBvuMJBQjU3IV0G2G306gNucevUKygIY9C5Uic17DlA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=LkN5orKn; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="LkN5orKn" Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20251028122318euoutp0242cb6fb8f07ad3db4e735a6c61ace25c~ypyj0t17s0282502825euoutp02V for ; Tue, 28 Oct 2025 12:23:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20251028122318euoutp0242cb6fb8f07ad3db4e735a6c61ace25c~ypyj0t17s0282502825euoutp02V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1761654198; bh=uWMsqhhcsDbSWAzMcyI6QgsDz6D9C7w2POWICu7CupQ=; h=From:Date:Subject:In-Reply-To:To:Cc:References:From; b=LkN5orKn9XHXubVcNTl/1nuQvVq/uHBE3gmWBWr+njVfDGe1qwKGccWy7Qxfxhm73 49AfQbivz9L/BefYPWUM7iENdKJsXJn+iYMhWgpqv5OdVk9PjyvmIJ89YOoRJsA+UY s/oYE8G8ywiXZMSqRTFvuNEigb0hGQsnDHVhhI6c= Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20251028122318eucas1p17161f0e1f2281c868688e8a4cc3d8f68~ypyjVyJo80564105641eucas1p1P; Tue, 28 Oct 2025 12:23:18 +0000 (GMT) Received: from AMDC4942.eu.corp.samsungelectronics.net (unknown [106.210.136.40]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20251028122317eusmtip2563abe71fe7499c4e71a7162653a7e76~ypyih3a7n2998829988eusmtip2H; Tue, 28 Oct 2025 12:23:17 +0000 (GMT) From: Michal Wilczynski Date: Tue, 28 Oct 2025 13:22:34 +0100 Subject: [PATCH 3/4] pwm: th1520: Use module_pwm_platform_driver! macro Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <20251028-pwm_fixes-v1-3-25a532d31998@samsung.com> In-Reply-To: <20251028-pwm_fixes-v1-0-25a532d31998@samsung.com> To: Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Michal Wilczynski , Drew Fustini , Guo Ren , Fu Wei , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: Stephen Rothwell , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-riscv@lists.infradead.org X-Mailer: b4 0.15-dev X-CMS-MailID: 20251028122318eucas1p17161f0e1f2281c868688e8a4cc3d8f68 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20251028122318eucas1p17161f0e1f2281c868688e8a4cc3d8f68 X-EPHeader: CA X-CMS-RootMailID: 20251028122318eucas1p17161f0e1f2281c868688e8a4cc3d8f68 References: <20251028-pwm_fixes-v1-0-25a532d31998@samsung.com> The `pwm_th1520` Rust driver calls C functions from the `PWM` namespace, triggering `modpost` warnings due to missing namespace import declarations in its `.modinfo` section. Fix these warnings and simplify the module declaration by switching from the generic `kernel::module_platform_driver!` macro to the newly introduced PWM-specific `kernel::module_pwm_platform_driver!` macro. The new macro automatically handles the required `imports_ns: ["PWM"]` declaration. Signed-off-by: Michal Wilczynski Reviewed-by: Elle Rhumsaa Reviewed-by: Troy Mitchell --- drivers/pwm/pwm_th1520.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs index 0ad38b78be854ab3c10268fb20763d9962f59c0f..5fb123f5e9c6dc3a8ee9a7a47fa= 778c23213e957 100644 --- a/drivers/pwm/pwm_th1520.rs +++ b/drivers/pwm/pwm_th1520.rs @@ -369,7 +369,7 @@ fn probe( } } =20 -kernel::module_platform_driver! { +kernel::module_pwm_platform_driver! { type: Th1520PwmPlatformDriver, name: "pwm-th1520", authors: ["Michal Wilczynski "], --=20 2.34.1