All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Geoff Levand <geoffrey.levand@am.sony.com>
Cc: Masato Noguchi <Masato.Noguchi@jp.sony.com>,
	"linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>,
	Paul Mackerras <paulus@samba.org>
Subject: Re: [patch 2/2] Cell: Wrap master run control bit
Date: Sat, 8 Sep 2007 01:01:01 +0200	[thread overview]
Message-ID: <200709080101.02043.arnd@arndb.de> (raw)
In-Reply-To: <46E0A9E8.3050701@am.sony.com>

On Friday 07 September 2007, Geoff Levand wrote:
> >> @@ -178,6 +179,8 @@ struct spu_management_ops {
> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0int (*enumerate_spus)(int (*fn)(void *da=
ta));
> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0int (*create_spu)(struct spu *spu, void =
*data);
> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0int (*destroy_spu)(struct spu *spu);
> >> +=C2=A0=C2=A0=C2=A0=C2=A0int (*enable_spu)(struct spu_context *ctx);
> >> +=C2=A0=C2=A0=C2=A0=C2=A0int (*disable_spu)(struct spu_context *ctx);
> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0int (*init_affinity)(void);
> >> =C2=A0};
> >=20
> > Also, I think you should make the return type of the callback
> > 'void' since the result is not used anywhere.
>=20
> Noguchi-san was hesitant to do this. =C2=A0I also thought lets leave it
> as is until we consider the unmapping support, as maybe a return
> value might make sense.=20

Sorry for having to reply twice on this. I first only got the
other mail because of a mail server hickup.

In general, I think we should follow the rule of keeping the interfaces
as simple as possible. If nobody is using the return value here,
we probably won't need it in the future either. And if we do, we
can still change it.

	Arnd <><

  reply	other threads:[~2007-09-07 23:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-04 11:54 [patch 2/2] Cell: Wrap master run control bit Geoff Levand
2007-09-04 22:42 ` Arnd Bergmann
2007-09-04 22:44   ` Arnd Bergmann
2007-09-07  1:26   ` [patch v2] " Geoff Levand
2007-09-07 22:46     ` Arnd Bergmann
2007-09-07  1:31   ` [patch 2/2] " Geoff Levand
2007-09-07 23:01     ` Arnd Bergmann [this message]
2007-09-23 20:50 ` [patch v3] " Geoff Levand
2007-10-24 15:53   ` Geert Uytterhoeven

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=200709080101.02043.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=Masato.Noguchi@jp.sony.com \
    --cc=geoffrey.levand@am.sony.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.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 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.