public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] Linux 3.0 commit 3627924acf70a broke include/mtd/ubi_user.h.
@ 2011-08-14 17:45 Rob Landley
  2011-08-14 18:03 ` Stefan Richter
  0 siblings, 1 reply; 6+ messages in thread
From: Rob Landley @ 2011-08-14 17:45 UTC (permalink / raw)
  To: linux-kernel, Artem.Bityutskiy, busybox

"make headers_install" copies include/mtd/ubi_user.h to userspace, where
things like busybox link against it.  With 3.0, building defconfig
busybox gets this error:

In file included from miscutils/ubi_tools.c:63:
/home/landley/aboriginal/aboriginal/build/simple-cross-compiler-i686/bin/../include/mtd/ubi-user.h:329:
error: conflicting types for '__packed'
/home/landley/aboriginal/aboriginal/build/simple-cross-compiler-i686/bin/../include/mtd/ubi-user.h:313:
error: previous declaration of '__packed' was here

This is due to the Linux 3.0 commit in the title:

    UBI: use __packed instead of __attribute__((packed))

This relies on __packed being defined in:

  include/linux/compiler-gcc.h:
  #define __packed			__attribute__((packed))

Which is not exported to userspace.

I.E. this "cleanup" broke the ability for userspace to use this header,
even though the header is exported to userspace by headers_install.

Rob

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-08-15  3:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-14 17:45 [BUG] Linux 3.0 commit 3627924acf70a broke include/mtd/ubi_user.h Rob Landley
2011-08-14 18:03 ` Stefan Richter
2011-08-14 19:11   ` Rob Landley
2011-08-14 19:16   ` Rob Landley
2011-08-15  3:39     ` Artem Bityutskiy
2011-08-15  3:42       ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox