From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762569AbYFDVxT (ORCPT ); Wed, 4 Jun 2008 17:53:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751934AbYFDVxL (ORCPT ); Wed, 4 Jun 2008 17:53:11 -0400 Received: from mtiwmhc12.worldnet.att.net ([204.127.131.116]:43937 "EHLO mtiwmhc12.worldnet.att.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751797AbYFDVxK (ORCPT ); Wed, 4 Jun 2008 17:53:10 -0400 Message-ID: <48470ED2.6030307@lwfinger.net> Date: Wed, 04 Jun 2008 16:53:22 -0500 From: Larry Finger User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Alan Cox , Linus Torvalds CC: LKML Subject: Compiler warning in v2.6.26-rc4-213-ge97dcb0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the version given in the subject, I get the following warning: CC drivers/serial/serial_core.o drivers/serial/serial_core.c:2300: warning: initialization from incompatible pointer type The problem arises in commit 64e9159f5d2c which has uart_set_ldisc as follows: static void uart_set_ldisc(struct tty_struct *tty, int ldisc) The set_ldisc routine has only one argument: void (*set_ldisc)(struct uart_port *); I think this additional patch fixes the problem: Index: linux-2.6/drivers/serial/serial_core.c =================================================================== --- linux-2.6.orig/drivers/serial/serial_core.c +++ linux-2.6/drivers/serial/serial_core.c @@ -1165,7 +1165,7 @@ out: return ret; } -static void uart_set_ldisc(struct tty_struct *tty, int ldisc) +static void uart_set_ldisc(struct tty_struct *tty) { struct uart_state *state = tty->driver_data; struct uart_port *port = state->port; Larry