btrfs-progs: ioctl: fix build failure if BUILD_ASSERT is not defined
authorDavid Sterba <dsterba@suse.com>
Mon, 24 Oct 2016 12:46:26 +0000 (14:46 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 25 Oct 2016 12:28:36 +0000 (14:28 +0200)
commitb2fbfc8cdd4ce4bf7d22e55695a4cc7e707c9ef3
tree36e203693b9f96ab5e78823436b4c987272b2991
parent36d02f3eb807e86c3b06ad78a9c99ddef2021076
btrfs-progs: ioctl: fix build failure if BUILD_ASSERT is not defined

The build fails if ioctl.h is included without kerncompat.h which
defines BUILD_ASSERT, as reported. The proposed patches add kerncompat.h
but I don't want to pull that header via ioctl.h, so the fix will
provide an empty macro instead.

Reported-by: Eric Sandeen <sandeen@redhat.com>
Reported-by: Sergei Trofimovich <slyfox@gentoo.org>
Reported-by: Mikhail Pukhlikov <cynede@gentoo.org>
Signed-off-by: David Sterba <dsterba@suse.com>
ioctl.h