Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758103AbXINSgi (ORCPT ); Fri, 14 Sep 2007 14:36:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755946AbXINSgU (ORCPT ); Fri, 14 Sep 2007 14:36:20 -0400 Received: from 74-93-104-98-Washington.hfc.comcastbusiness.net ([74.93.104.98]:43404 "EHLO picasso.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1755829AbXINSgT (ORCPT ); Fri, 14 Sep 2007 14:36:19 -0400 Date: Fri, 14 Sep 2007 11:33:24 -0700 (PDT) Message-Id: <20070914.113324.104043149.davem@davemloft.net> To: akpm@linux-foundation.org Cc: lethal@linux-sh.org, mikey@neuling.org, jdi@l4x.org, paulus@samba.org, torvalds@linux-foundation.org, tony@bakeyournoodle.com, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, alan@redhat.com, heiko.carstens@de.ibm.com, hskinnemoen@atmel.com, dhowells@redhat.com Subject: Re: Define termios_1 functions for powerpc, s390, avr32 and frv From: David Miller In-Reply-To: <20070913035506.b599e84f.akpm@linux-foundation.org> References: <5058.1189668156@neuling.org> <20070913095346.GA28194@linux-sh.org> <20070913035506.b599e84f.akpm@linux-foundation.org> X-Mailer: Mew version 5.2 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2134 Lines: 63 From: Andrew Morton Date: Thu, 13 Sep 2007 03:55:06 -0700 > I think we need to go with Tony's patch. sparc32 and sparc64 are > presently broken too, and the patch which converts sparc to use the > new interfaces introduces a few build errors. The problem with the asm-generic/termios.h thing is it only works if your copying functions are just a copy_{to,from}_user() and you can define that __ARCH_* macro. In retrospect what that header should do is, outside of the ARCH_* block, define the foo_1 interfaces plainly to foo. Alternatively, here is a patch that gets sparc compiling and working again in the current tree. This whole termios thing hasn't been handled very well, and it's maybe not what we should be doing so late in the -rc cycle. And yes, this is coming from the guy who added the TCP oops'er two weeks ago :-P [SPARC]: Fix build due to termios changes. Signed-off-by: David S. Miller diff --git a/include/asm-sparc/termios.h b/include/asm-sparc/termios.h index d767f20..25e9cbb 100644 --- a/include/asm-sparc/termios.h +++ b/include/asm-sparc/termios.h @@ -142,6 +142,11 @@ struct winsize { 0; \ }) +#define user_termios_to_kernel_termios_1(k, u) \ + user_termios_to_kernel_termios(k, u) +#define kernel_termios_to_user_termios_1(u, k) \ + kernel_termios_to_user_termios(u, k) + #endif /* __KERNEL__ */ #endif /* _SPARC_TERMIOS_H */ diff --git a/include/asm-sparc64/termios.h b/include/asm-sparc64/termios.h index f05d390..6fc71e6 100644 --- a/include/asm-sparc64/termios.h +++ b/include/asm-sparc64/termios.h @@ -145,6 +145,11 @@ struct winsize { err; \ }) +#define user_termios_to_kernel_termios_1(k, u) \ + user_termios_to_kernel_termios(k, u) +#define kernel_termios_to_user_termios_1(u, k) \ + kernel_termios_to_user_termios(u, k) + #endif /* __KERNEL__ */ #endif /* _SPARC64_TERMIOS_H */ - 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/