All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Re: [PATCH] DLM: Fix static buffer alignment
Date: Tue, 15 Jan 2008 13:33:02 +0000	[thread overview]
Message-ID: <1200403982.22038.139.camel@quoit> (raw)
In-Reply-To: <Pine.LNX.4.64.0801150544550.6826@trider-g7>

Hi,

There is something not quite right about this patch... it doesn't seem
to apply and I suspect whitespace, but I can't see what the problem is
at the moment,

Steve.

On Tue, 2008-01-15 at 05:51 +0100, Fabio M. Di Nitto wrote:
> Hi Steven,
> 
> gcc does not guarantee that a static buffer is 64bit aligned. This change 
> allows sparc64 to mount and use gfs2.
> 
> Signed-off-by: Fabio M. Di Nitto <fabbione@ubuntu.com>
> 
> diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c
> index f8c69dd..da653b5 100644
> --- a/fs/dlm/midcomms.c
> +++ b/fs/dlm/midcomms.c
> @@ -58,7 +58,7 @@ static void copy_from_cb(void *dst, const void *base, unsigned offset,
>   int dlm_process_incoming_buffer(int nodeid, const void *base,
>   				unsigned offset, unsigned len, unsigned limit)
>   {
> -	unsigned char __tmp[DLM_INBUF_LEN];
> +	unsigned char __tmp[DLM_INBUF_LEN] __attribute__((aligned(64)));
>   	struct dlm_header *msg = (struct dlm_header *) __tmp;
>   	int ret = 0;
>   	int err = 0;
> 
> 
> --
> I'm going to make him an offer he can't refuse.



  reply	other threads:[~2008-01-15 13:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-15  4:51 [Cluster-devel] [PATCH] DLM: Fix static buffer alignment Fabio M. Di Nitto
2008-01-15 13:33 ` Steven Whitehouse [this message]
2008-01-15 18:50   ` [Cluster-devel] " Fabio M. Di Nitto
2008-01-15 19:28     ` Fabio M. Di Nitto
2008-01-15 22:45       ` David Teigland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1200403982.22038.139.camel@quoit \
    --to=swhiteho@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.