All of lore.kernel.org
 help / color / mirror / Atom feed
* Question re. <linux/sizes.h> required since btrfs-progs-4.10
@ 2017-03-11 16:04 Holger Hoffstätte
  2017-03-13 15:05 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Holger Hoffstätte @ 2017-03-11 16:04 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I'm on Gentoo and wanted to update Docker to 17.03.0, which failed when it
couldn't build the btrfs driver due to a missing <linux/sizes.h>.
This worked fine on another machine the other day, so I dug in and found that
the only difference was an intermediate update to btrfs-progs 4.10.
Sure enough: since 4.10 ctree.h includes <linux/sizes.h>, which is nowhere
to be found in my package of linux-headers-4.10 (also not in 4.9).

Simply copying sizes.h from the 4.9 kernel sources made everything work,
but I'm curious whether this is actually correct - hence my question whether
<linux/sizes.h> _should_ actually be installed? Is this a bug with
Gentoo's kernel header package or a new problem with btrfs-progs?

I don't see any good reason why sizes.h should not be installed, but wanted
to verify since there are probably users of other distributions here as
well. :)

Thanks,
Holger

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

* Re: Question re. <linux/sizes.h> required since btrfs-progs-4.10
  2017-03-11 16:04 Question re. <linux/sizes.h> required since btrfs-progs-4.10 Holger Hoffstätte
@ 2017-03-13 15:05 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2017-03-13 15:05 UTC (permalink / raw)
  To: Holger Hoffstätte; +Cc: linux-btrfs

On Sat, Mar 11, 2017 at 05:04:52PM +0100, Holger Hoffstätte wrote:
> I'm on Gentoo and wanted to update Docker to 17.03.0, which failed when it
> couldn't build the btrfs driver due to a missing <linux/sizes.h>.
> This worked fine on another machine the other day, so I dug in and found that
> the only difference was an intermediate update to btrfs-progs 4.10.
> Sure enough: since 4.10 ctree.h includes <linux/sizes.h>, which is nowhere
> to be found in my package of linux-headers-4.10 (also not in 4.9).
> 
> Simply copying sizes.h from the 4.9 kernel sources made everything work,
> but I'm curious whether this is actually correct - hence my question whether
> <linux/sizes.h> _should_ actually be installed? Is this a bug with
> Gentoo's kernel header package or a new problem with btrfs-progs?

That's a bug in btrfs-progs, the build tests do not cover that. There's
a local copy of sizes.h that's supposed to be used. The patch was ported
from kernel where linus/sizes.h is present but is probably not (yet)
part of the public linux-headers.

> I don't see any good reason why sizes.h should not be installed, but wanted
> to verify since there are probably users of other distributions here as
> well. :)

The build would fail on any distro. I'll commit a fix and update the
tests so this gets caught early. Thanks for the report.

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

end of thread, other threads:[~2017-03-13 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-11 16:04 Question re. <linux/sizes.h> required since btrfs-progs-4.10 Holger Hoffstätte
2017-03-13 15:05 ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.