xfs
[Top] [All Lists]

Re: [fengguang.wu@xxxxxxxxx: [pnfs:xfs-nfsd-clone] 57b7d25bf4c57ebe0fbd2

To: Christoph Hellwig <hch@xxxxxx>
Subject: Re: [fengguang.wu@xxxxxxxxx: [pnfs:xfs-nfsd-clone] 57b7d25bf4c57ebe0fbd2d8c5b37edf503175e1f BUILD DONE]
From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Date: Thu, 18 Feb 2016 15:06:14 +0100
Cc: xfs@xxxxxxxxxxx, "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>, linux-m68k <linux-m68k@xxxxxxxxxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=exzyPnEaggQTDK99GpQ0BQJ9uTePBsaFM7k3PnqsyqA=; b=V+92gKEGvuuoEyvui+6btbApc2Voy9oZ1A1cTNrVFoZ++mGa8l5LwE5VYK38LNdfj/ AI+21uJHde5h1DrBv9GFOHHekHwV7UMlxDPvwHUmCQYvBw74wTJnjg8VLeXeGbHH78s0 bbur/glG+ZOfUC7y7kOuXQV6mfcQzDe/4HYI7MFgxK5djDFvSfQTVFtnEMh48Vs0xFWX IVtLOjpLF4O4KcwE35l9TdEt9yR9b/TmuCoNfyzmSHQnmYceMINzTWINaFAALqW57XWC tjc9kF9u7j+yokAIGm3Yd99gZIINH4W5VZYumz0FIj/F7VL/tQYk54wps/1sD8MtpJny 5/Ww==
In-reply-to: <20160218133240.GA5228@xxxxxx>
References: <20160218133240.GA5228@xxxxxx>
Sender: geert.uytterhoeven@xxxxxxxxx
Hi Christoph,

On Thu, Feb 18, 2016 at 2:32 PM, Christoph Hellwig <hch@xxxxxx> wrote:
> Looks like the structure size checker found it's first victim on m68k,
> which doesn't seem to pad to 4 byte boundaries.  I don't think it actually
> matters in practice as we'll always the hacky appromiation of a variable
> sized array behind it.  I guess we should move this to a modern C99 VLA
> and mark it as __packed?

Marking it __packed causes the compiler to assume that the other 32-bit
values may not be aligned.

You can add 2 padding bytes to struct xfs_attr_leaf_name_remote.
Or change name[1] to name[3].

> ----- Forwarded message from kbuild test robot <fengguang.wu@xxxxxxxxx> -----
>
> Date: Thu, 18 Feb 2016 21:26:23 +0800
> From: kbuild test robot <fengguang.wu@xxxxxxxxx>
> Subject: [pnfs:xfs-nfsd-clone] 57b7d25bf4c57ebe0fbd2d8c5b37edf503175e1f
>         BUILD DONE
> To: Christoph Hellwig <hch@xxxxxx>
>
> git://git.infradead.org/users/hch/pnfs.git  xfs-nfsd-clone
> 57b7d25bf4c57ebe0fbd2d8c5b37edf503175e1f  nfs4: fix stateid handling for the 
> NFS v4.2 operations
>
> fs/xfs/xfs_ondisk.h:22:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
> fs/xfs/xfs_ondisk.h:74:2: note: in expansion of macro 'XFS_CHECK_STRUCT_SIZE'
> include/linux/compiler.h:502:38: error: call to '__compiletime_assert_74' 
> declared with attribute error: XFS: sizeof(xfs_attr_leaf_name_remote_t) is 
> wrong, expected 12

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

<Prev in Thread] Current Thread [Next in Thread>