linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SPARC{,64}: kernel_termios_to_user_termios_1 missing
@ 2007-09-15 21:37 Horst H. von Brand
  2007-09-15 22:36 ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Horst H. von Brand @ 2007-09-15 21:37 UTC (permalink / raw)
  To: sparclinux, Linux Kernel Mailing List

git-describe says this is v2.6.23-rc6-168-g53a3f30
I'm getting:

  drivers/char/tty_ioctl.c: In function 'n_tty_ioctl':
  drivers/char/tty_ioctl.c:799: error: implicit declaration of function 'kernel_termios_to_user_termios_1'

This is a macro at the very end of include/asm-<foo>/termios.h for i686, on
SPARC and SPARC64 it is missing. Sorry, I've got no clue on how to define
this correctly here.

It is also missing on alpha, blackfin, parisc, sh64, sh, xtensa
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239
Casilla 110-V, Valparaiso, Chile               Fax:  +56 32 2797513


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SPARC{,64}: kernel_termios_to_user_termios_1 missing
  2007-09-15 21:37 SPARC{,64}: kernel_termios_to_user_termios_1 missing Horst H. von Brand
@ 2007-09-15 22:36 ` David Miller
  2007-09-16  7:42   ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2007-09-15 22:36 UTC (permalink / raw)
  To: vonbrand; +Cc: sparclinux, linux-kernel

From: "Horst H. von Brand" <vonbrand@inf.utfsm.cl>
Date: Sat, 15 Sep 2007 17:37:55 -0400

> git-describe says this is v2.6.23-rc6-168-g53a3f30
> I'm getting:
> 
>   drivers/char/tty_ioctl.c: In function 'n_tty_ioctl':
>   drivers/char/tty_ioctl.c:799: error: implicit declaration of function 'kernel_termios_to_user_termios_1'
> 
> This is a macro at the very end of include/asm-<foo>/termios.h for i686, on
> SPARC and SPARC64 it is missing. Sorry, I've got no clue on how to define
> this correctly here.
> 
> It is also missing on alpha, blackfin, parisc, sh64, sh, xtensa

This has been reported and discussed extensively on the lists
over the past 4 or 5 days.

It is a well known issue, and if you just need to get the sparc64
build working so you can test it out just use the patch below:

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 */

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: SPARC{,64}: kernel_termios_to_user_termios_1 missing
  2007-09-15 22:36 ` David Miller
@ 2007-09-16  7:42   ` Andrew Morton
  2007-09-16 16:49     ` David Miller
  2007-09-16 17:03     ` Adrian McMenamin
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew Morton @ 2007-09-16  7:42 UTC (permalink / raw)
  To: David Miller; +Cc: vonbrand, sparclinux, linux-kernel

On Sat, 15 Sep 2007 15:36:02 -0700 (PDT) David Miller <davem@davemloft.net> wrote:

> From: "Horst H. von Brand" <vonbrand@inf.utfsm.cl>
> Date: Sat, 15 Sep 2007 17:37:55 -0400
> 
> > git-describe says this is v2.6.23-rc6-168-g53a3f30
> > I'm getting:
> > 
> >   drivers/char/tty_ioctl.c: In function 'n_tty_ioctl':
> >   drivers/char/tty_ioctl.c:799: error: implicit declaration of function 'kernel_termios_to_user_termios_1'
> > 
> > This is a macro at the very end of include/asm-<foo>/termios.h for i686, on
> > SPARC and SPARC64 it is missing. Sorry, I've got no clue on how to define
> > this correctly here.
> > 
> > It is also missing on alpha, blackfin, parisc, sh64, sh, xtensa
> 
> This has been reported and discussed extensively on the lists
> over the past 4 or 5 days.

Hopefully bb8bd3a52a5dbca8bea31bfc72dacfb384170e69 (merged six hours ago)
will have fixed this.  It Works For Me.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SPARC{,64}: kernel_termios_to_user_termios_1 missing
  2007-09-16  7:42   ` Andrew Morton
@ 2007-09-16 16:49     ` David Miller
  2007-09-16 17:03     ` Adrian McMenamin
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2007-09-16 16:49 UTC (permalink / raw)
  To: akpm; +Cc: vonbrand, sparclinux, linux-kernel

From: Andrew Morton <akpm@linux-foundation.org>
Date: Sun, 16 Sep 2007 00:42:31 -0700

> Hopefully bb8bd3a52a5dbca8bea31bfc72dacfb384170e69 (merged six hours ago)
> will have fixed this.  It Works For Me.

Yep, looks good here too.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SPARC{,64}: kernel_termios_to_user_termios_1 missing
  2007-09-16  7:42   ` Andrew Morton
  2007-09-16 16:49     ` David Miller
@ 2007-09-16 17:03     ` Adrian McMenamin
  1 sibling, 0 replies; 5+ messages in thread
From: Adrian McMenamin @ 2007-09-16 17:03 UTC (permalink / raw)
  To: Andrew Morton; +Cc: David Miller, vonbrand, sparclinux, linux-kernel

On 16/09/2007, Andrew Morton <akpm@linux-foundation.org> wrote:

>
> Hopefully bb8bd3a52a5dbca8bea31bfc72dacfb384170e69 (merged six hours ago)
> will have fixed this.  It Works For Me.

It also works on SH4

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-09-16 17:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-15 21:37 SPARC{,64}: kernel_termios_to_user_termios_1 missing Horst H. von Brand
2007-09-15 22:36 ` David Miller
2007-09-16  7:42   ` Andrew Morton
2007-09-16 16:49     ` David Miller
2007-09-16 17:03     ` Adrian McMenamin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).