From: David Woodhouse <dwmw2@infradead.org>
To: paulus@samba.org
Cc: akpm@osdl.org, linuxppc-dev@ozlabs.org, torvalds@osdl.org,
rmk@arm.linux.org.uk, linux-arch@vger.kernel.org
Subject: Re: [PATCH] Wire up sys_sync_file_range() on powerpc
Date: Sat, 16 Jun 2007 19:20:44 +0100 [thread overview]
Message-ID: <1182018044.2808.75.camel@pmac.infradead.org> (raw)
In-Reply-To: <1181992681.25228.683.camel@pmac.infradead.org>
On Sat, 2007-06-16 at 12:18 +0100, David Woodhouse wrote:
> Every time I build a ppc kernel it bitches at me that
> sys_sync_file_range is unimplemented. Shut it up...
>
> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
>
> ---
> The compat bit is untested although the assembly looks right, when
> compared with 32-bit calls to sys_sync_file_range(). Test kernel
> building now, although I leave for the airport within 24 hours and may
> not get round to actually testing it.
+asmlinkage long compat_sys_sync_file_range(int fd, int dummy,
+ unsigned offset_hi, unsigned offset_lo,
+ unsigned nbytes_hi, unsigned nbytes_lo,
+ int flags)
Pants. It doesn't work because the 'flags' argument ends up in r9, and
we can only use r3-r8 for syscall arguments. We'll need to do it the
same way as ARM does, with the flags as the second argument.
I _wish_ people would remember that not all the world's an i386 when
they add new syscalls.
And I wish Linus would refuse to merge anything which just says "I wired
it up on i386" without even thinking about 32-on-64 compatibility.
Once we've merged it, it's too late to change the ABI to be sane.
Or is it? Can we ditch sys_sync_file_range now and implement a new
sys_sync_file_range2 with the two 32-bit arguments first?
--
dwmw2
next prev parent reply other threads:[~2007-06-16 18:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-16 11:18 [PATCH] Wire up sys_sync_file_range() on powerpc David Woodhouse
2007-06-16 18:20 ` David Woodhouse [this message]
2007-06-18 5:37 ` Paul Mackerras
2007-06-18 9:25 ` David Woodhouse
2007-06-18 9:41 ` Russell King
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=1182018044.2808.75.camel@pmac.infradead.org \
--to=dwmw2@infradead.org \
--cc=akpm@osdl.org \
--cc=linux-arch@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
--cc=rmk@arm.linux.org.uk \
--cc=torvalds@osdl.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).