Re: tty compile warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 01 Sep 2008 09:27:14 -0400
Robert Reif <reif@xxxxxxxxxxxxx> wrote:

> I have been getting these compile warnings on sparc32 for a few weeks now:

gcc is complaining about some nasty hacks the sparc32 tree does with
termios.

        cc_t c_cc[NCCS];                /* control characters */
#ifdef __KERNEL__
#define SIZEOF_USER_TERMIOS sizeof (struct termios) - (2*sizeof (cc_t))
        cc_t _x_cc[2];                  /* We need them to hold
vmin/vtime */ #endif


struct ktermios {
        tcflag_t c_iflag;               /* input mode flags */
        tcflag_t c_oflag;               /* output mode flags */
        tcflag_t c_cflag;               /* control mode flags */
        tcflag_t c_lflag;               /* local mode flags */
        cc_t c_line;                    /* line discipline */  
        cc_t c_cc[NCCS];                /* control characters */
        cc_t _x_cc[2];                  /* We need them to hold
vmin/vtime */ speed_t c_ispeed;               /* input speed */
        speed_t c_ospeed;               /* output speed */
};



You could try removing _x_cc[2] and changing [NCCS] to [NCCS+2] which
might work depending upon the alignment you get.

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux