From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.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 344EB1DF261 for ; Fri, 14 Aug 2026 00:21:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786666866; cv=none; b=hZXmnl/BrNgtYsZldS9bsuKavS+BB2yQUyU7qAWWRZc1j+rj6RNtSG684jAFoMXizTPVFVFdKHNG/l7BR7SyRRVYAKbrYN1pQ0m0nw+p56XzxpWk45uJ5HJ2gRjmHnT+wTsQ0C39VXw9vjmgxc0TCJyUap7NBuu6RlJp9KFQWBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786666866; c=relaxed/simple; bh=nJ7OubLFY74JWz9b/FzrjGaEYnYtjlBAvUbpzRy6CDs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZR7CGcOjp7ESLOAVEYDZPJd5Xfx6Gioj8JWdRXC2tYt4RPSquTuxzG4hOFS4fj2tMMzWV/y0RKFO+it/K1m51MUEXB62jnPlJjeTTLLwq4eoAE5vKxERC/KFUrbT/4V9TG7Iw2wrkG+Uc58K8SwDRoBPDSmbFw28M/TgM+xr+yc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=I5mdBOZo; arc=none smtp.client-ip=95.215.58.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="I5mdBOZo" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=nJ7OubLFY74JWz9b/FzrjGaEYnYtjlBAvUbpzRy6CDs=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1786666859; v=1; x=1787271659; b=I5mdBOZoAx27msaHgxQX/5yPo3JpzHcbzjXmN0QxG6fRCV2UXXeVrclHJCtKaFEk1lpRlu81 z3rrrX4V9vbKpYMwMIGCGR+SQzgpXc4fzsGR0YfCQXKc0/9WPuv0eB/DMZGa65SekzkP/bXQwA9 VBuEDq+sMh70kmyjmDmKxthA= X-Envelope-To: linux-kernel@vger.kernel.org Received: from [10.0.11.3] (2a11:3:200::10a9) by smtp.migadu.com with ESMTPS id 5c944f90e8f084a3; Fri, 14 Aug 2026 00:20:58 +0000 X-Migadu-Flow: FLOW_OUT Message-ID: <54ae4fe4-963d-4ae9-ac75-15b5448621eb@linux.dev> Date: Fri, 14 Aug 2026 08:20:46 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH -next] rust_binder: use `LocalModule` for `THIS_MODULE` To: Gary Guo , Mark Brown , Greg Kroah-Hartman , =?UTF-8?Q?Arve_Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Christian Brauner , Carlos Llamas , Alice Ryhl , Miguel Ojeda , Boqun Feng , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , =?UTF-8?Q?Onur_=C3=96zkan?= Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org References: <20260813163951.1102583-1-gary@kernel.org> From: Alvin Sun In-Reply-To: <20260813163951.1102583-1-gary@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/14/26 00:39, Gary Guo wrote: > From: Gary Guo > > Replace the `THIS_MODULE` static reference in the binder netlink code with > `this_module::()`, consistent with the move of `THIS_MODULE` > into the `ModuleMetadata` trait. > > Cc: Alvin Sun > Signed-off-by: Gary Guo Reviewed-by: Alvin Sun > --- > This is to resolve the semantic conflict between rust-next and > char-misc-next. > --- > drivers/android/binder/netlink.rs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/android/binder/netlink.rs b/drivers/android/binder/netlink.rs > index beb7ea2edaff..f34e1009432c 100644 > --- a/drivers/android/binder/netlink.rs > +++ b/drivers/android/binder/netlink.rs > @@ -13,7 +13,7 @@ > }; > > pub static BINDER_NL_FAMILY: Family = Family::const_new( > - &crate::THIS_MODULE, > + kernel::module::this_module::(), > kernel::uapi::BINDER_FAMILY_NAME, > kernel::uapi::BINDER_FAMILY_VERSION, > &BINDER_NL_FAMILY_MCGRPS, > > base-commit: 2697ef8943c9985c14708a6429e21812693857b2