Re: [PATCH RFC 2/3] rust: tty: add TTY subsystem abstractions

From: Greg Kroah-Hartman

Date: Mon Jan 26 2026 - 07:55:47 EST


On Mon, Jan 26, 2026 at 12:22:09PM +0000, SeungJong Ha via B4 Relay wrote:
> +/// Major device number for TTY aux devices.
> +pub const TTYAUX_MAJOR: i32 = bindings::TTYAUX_MAJOR as i32;

This does not belong in the rust bindings as something to export, sorry.
I see you wanting to use it in your example driver, but if you do need
it elsewhere, just declare and use it there, the rust layer should not
be the one exporting it.

You also are exporting lots of other stuff with these bindings that are
not needed or used. Are you sure that's the right thing to do?

thanks,

greg k-h