diff options
Diffstat (limited to 'samples/binderfs')
-rw-r--r-- | samples/binderfs/Makefile | 9 | ||||
-rw-r--r-- | samples/binderfs/binderfs_example.c | 1 |
2 files changed, 4 insertions, 6 deletions
diff --git a/samples/binderfs/Makefile b/samples/binderfs/Makefile index a3ac5476338a..989e4badaee2 100644 --- a/samples/binderfs/Makefile +++ b/samples/binderfs/Makefile @@ -1,6 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -ifndef CROSS_COMPILE -ifdef CONFIG_SAMPLE_ANDROID_BINDERFS -hostprogs := binderfs_example -endif -endif +userprogs := binderfs_example +always-y := $(userprogs) + +userccflags += -I usr/include diff --git a/samples/binderfs/binderfs_example.c b/samples/binderfs/binderfs_example.c index 5bbd2ebc0aea..0fd92cdda460 100644 --- a/samples/binderfs/binderfs_example.c +++ b/samples/binderfs/binderfs_example.c @@ -18,7 +18,6 @@ int main(int argc, char *argv[]) { int fd, ret, saved_errno; - size_t len; struct binderfs_device device = { 0 }; ret = unshare(CLONE_NEWNS); |