> Checkpatch doesn't work well with the pattern
>
> #ifdef SOMETHING
>     if (foo) {
>         bar();
>     } else
> #endif
>     {
>         baz1();
>         baz2();
>     }
>
> Which is exactly the case for all three errors reported in this series.
> I know of no other good way to arrange this pattern.

    if (0) {
#ifdef SOMETHING
    } else if (foo) {
        bar();
#endif
    } else {
        baz1();
        baz2();
    }

Jay.

Reply via email to