Skip to content

-Wbitwise-conditional-parentheses in kernel/resource.c #1159

Closed

Description

@nathanchance
kernel/resource.c:1281:53: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses]
        new_res = alloc_resource(GFP_KERNEL | alloc_nofail ? __GFP_NOFAIL : 0);
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
kernel/resource.c:1281:53: note: place parentheses around the '|' expression to silence this warning
        new_res = alloc_resource(GFP_KERNEL | alloc_nofail ? __GFP_NOFAIL : 0);
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
kernel/resource.c:1281:53: note: place parentheses around the '?:' expression to evaluate it first
        new_res = alloc_resource(GFP_KERNEL | alloc_nofail ? __GFP_NOFAIL : 0);
                                                           ^
                                              (                              )
1 warning generated.

Patch submitted: https://lore.kernel.org/r/[email protected]

Activity

  1. added
    [PATCH] Submitted
    [BUG] linux-next
    on Sep 22, 2020
  2. self-assigned this
    on Sep 22, 2020
  3. added
    [FIXED][LINUX] development cycle
    and removed
    [PATCH] Submitted
    on Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

-Wbitwise-conditional-parentheses[BUG] linux-next[FIXED][LINUX] development cycle

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions