lkml.org 
[lkml]   [2011]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subjectcheckpatch.pl misreporting bugs with array fillings
    Date
    Hi,

    the following testcase is probably misreported by checkpatch.pl:

    static const unsigned char pci_irq_swizzle[2][PCI_MAX_DEVICES] = {
    {0, 0, 0, 0, 0, 0, 0, 27, 27, [9 ... PCI_MAX_DEVICES - 1] = 0 },
    {0, 0, 0, 0, 0, 0, 0, 29, 29, [9 ... PCI_MAX_DEVICES - 1] = 0 },
    };

    The result is:

    ERROR: space prohibited before open square bracket '['
    #2: FILE: testcase.c:2:
    + {0, 0, 0, 0, 0, 0, 0, 27, 27, [9 ... PCI_MAX_DEVICES - 1] = 0 },

    ERROR: space prohibited before open square bracket '['
    #3: FILE: testcase.c:3:
    + {0, 0, 0, 0, 0, 0, 0, 29, 29, [9 ... PCI_MAX_DEVICES - 1] = 0 },

    total: 2 errors, 0 warnings, 5 lines checked

    NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX
    MULTISTATEMENT_MACRO_USE_DO_WHILE

    testcase.c has style problems, please review.

    If any of these errors are false positives, please report
    them to the maintainer, see CHECKPATCH in MAINTAINERS.

    Cheers!
    M


    \
     
     \ /
      Last update: 2011-12-16 23:01    [W:0.019 / U:1.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site