Commit f3a30a02 authored by Carlos Llamas's avatar Carlos Llamas Committed by Todd Kjos
Browse files

ANDROID: fuse: fix struct path zero initialization



It seems gcc is too strict and doesn't recognize {0} as a valid implicit
zero initialization for structs with randomize layouts. This triggers
the following build issue:

  ./include/linux/fsnotify.h:105:51: error: positional initialization of
      field in ‘struct’ declared with ‘designated_init’ attribute
      [-Werror=designated-init]
    105 |                         struct path lower_path = {0};

Instead of calling for the first positional member to be explicitly zero
use {} as a zero initializer for the whole struct and make gcc happy.

Fixes: 44a94ece ("ANDROID: fuse: Support errors from fuse daemon in canonical path")
Change-Id: I6b474f44657b5add16a8df5fdb3a4a0919377c2c
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
parent ee002ea6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment