[RFC] staging: dgap: sparse warning question

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

 



I get the sparse warning:

drivers/staging/dgap/dgap.c:367:25: warning: too long initializer-string
for array of char

It's referring to INIT_C_CC in the following code segment.

static struct ktermios DgapDefaultTermios = {
        .c_iflag =      (DEFAULT_IFLAGS),       /* iflags */
        .c_oflag =      (DEFAULT_OFLAGS),       /* oflags */
        .c_cflag =      (DEFAULT_CFLAGS),       /* cflags */
        .c_lflag =      (DEFAULT_LFLAGS),       /* lflags */
        .c_cc =         INIT_C_CC,
        .c_line =       0,
};

>From include/uapi/asm-generic/termbits.h the c_cc member is 19 bytes.

>From include/asm-generic/termios.h
#define INIT_C_CC
"\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0" is 17 bytes.

So why am I getting this warning? Should I assume it is because sparse
doesn't know how to handle the ESC (\) char in this define?

Thanks
Mark
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux