Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261510AbTIKUgP (ORCPT ); Thu, 11 Sep 2003 16:36:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261511AbTIKUgP (ORCPT ); Thu, 11 Sep 2003 16:36:15 -0400 Received: from home.linuxhacker.ru ([194.67.236.68]:20618 "EHLO linuxhacker.ru") by vger.kernel.org with ESMTP id S261510AbTIKUgM (ORCPT ); Thu, 11 Sep 2003 16:36:12 -0400 Date: Fri, 12 Sep 2003 00:31:46 +0400 From: Oleg Drokin To: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org Subject: [PATCH] [2.4] Rocketport driver compile fix Message-ID: <20030911203146.GA28291@linuxhacker.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 903 Lines: 28 Hello! Rocketport driver does not compile in latest 2.4 bk, it seems to assume that tty->count is of atomic type which is no longer true. Seems that this patch is needed now. ===== drivers/char/rocket.c 1.9 vs edited ===== --- 1.9/drivers/char/rocket.c Wed Aug 13 17:22:04 2003 +++ edited/drivers/char/rocket.c Thu Sep 11 15:22:06 2003 @@ -1052,7 +1052,7 @@ restore_flags(flags); return; } - if ((atomic_read(&tty->count) == 1) && (info->count != 1)) { + if ((tty->count == 1) && (info->count != 1)) { /* * Uh, oh. tty->count is 1, which means that the tty * structure will be freed. Info->count should always Bye, Oleg - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/