Tag: 9b95d95d5eba5a077283423616b4ec3329d6ab00

char: constify tty_port_operations structs

Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> Constifies tty_port_operations structure in the char driver since it is not modified after its initialization. Detected and found using Coccinelle. Suggested-by: Julia Lawall Signed-off-by: Aya Mahfouz Acked-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman — drivers/char/ttyprintk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/char/ttyprintk.c b/drivers/char/ttyprintk.c index a15ce4e..b098d2d …

Continue reading