* Re: linux-next: build warnings after merge of the crypto tree
[not found] <20150310164417.540c18a4@canb.auug.org.au>
@ 2015-03-10 6:03 ` Herbert Xu
2015-03-10 6:44 ` Stephen Rothwell
2015-03-11 2:00 ` Tadeusz Struk
0 siblings, 2 replies; 7+ messages in thread
From: Herbert Xu @ 2015-03-10 6:03 UTC (permalink / raw)
To: Stephen Rothwell
Cc: linux-next, linux-kernel, Stephan Mueller, David S. Miller,
Linux Crypto Mailing List, netdev
On Tue, Mar 10, 2015 at 04:44:17PM +1100, Stephen Rothwell wrote:
> Hi Herbert,
>
> After merging the crypto tree, today's (and the past few days)
> linux-next build (powerpc allyesconfig) produced these warnings:
>
> crypto/algif_aead.c:561:2: warning: initialization from incompatible pointer type
> .sendmsg = aead_sendmsg,
> ^
> crypto/algif_aead.c:561:2: warning: (near initialization for 'algif_aead_ops.sendmsg')
> crypto/algif_aead.c:563:2: warning: initialization from incompatible pointer type
> .recvmsg = aead_recvmsg,
> ^
> crypto/algif_aead.c:563:2: warning: (near initialization for 'algif_aead_ops.recvmsg')
>
> Introduced by commit 400c40cf78da ("crypto: algif - add AEAD support").
This is a bit of a bummer. What happened is that net-next has
killed the kiocb argument to sendmsg/recvmsg. However, this
change is obviously not part of the crypto tree and algif_aead
only exists in the crypto tree.
So Stephen could you fix this by hand until one of them is merged
upstream (just kill the first argument in aead_sendmsg/aead_recvmsg)?
Thanks!
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build warnings after merge of the crypto tree
2015-03-10 6:03 ` linux-next: build warnings after merge of the crypto tree Herbert Xu
@ 2015-03-10 6:44 ` Stephen Rothwell
2015-03-10 7:02 ` Stephan Mueller
2015-03-11 0:56 ` Stephen Rothwell
2015-03-11 2:00 ` Tadeusz Struk
1 sibling, 2 replies; 7+ messages in thread
From: Stephen Rothwell @ 2015-03-10 6:44 UTC (permalink / raw)
To: Herbert Xu
Cc: linux-next, linux-kernel, Stephan Mueller, David S. Miller,
Linux Crypto Mailing List, netdev
[-- Attachment #1: Type: text/plain, Size: 1397 bytes --]
Hi Herbert,
On Tue, 10 Mar 2015 17:03:28 +1100 Herbert Xu <herbert@gondor.apana.org.au> wrote:
>
> On Tue, Mar 10, 2015 at 04:44:17PM +1100, Stephen Rothwell wrote:
> >
> > After merging the crypto tree, today's (and the past few days)
> > linux-next build (powerpc allyesconfig) produced these warnings:
> >
> > crypto/algif_aead.c:561:2: warning: initialization from incompatible pointer type
> > .sendmsg = aead_sendmsg,
> > ^
> > crypto/algif_aead.c:561:2: warning: (near initialization for 'algif_aead_ops.sendmsg')
> > crypto/algif_aead.c:563:2: warning: initialization from incompatible pointer type
> > .recvmsg = aead_recvmsg,
> > ^
> > crypto/algif_aead.c:563:2: warning: (near initialization for 'algif_aead_ops.recvmsg')
> >
> > Introduced by commit 400c40cf78da ("crypto: algif - add AEAD support").
>
> This is a bit of a bummer. What happened is that net-next has
> killed the kiocb argument to sendmsg/recvmsg. However, this
> change is obviously not part of the crypto tree and algif_aead
> only exists in the crypto tree.
>
> So Stephen could you fix this by hand until one of them is merged
> upstream (just kill the first argument in aead_sendmsg/aead_recvmsg)?
No worries, I will put a merge fix patch in from tomorrow (and send you
a copy just in case).
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build warnings after merge of the crypto tree
2015-03-10 6:44 ` Stephen Rothwell
@ 2015-03-10 7:02 ` Stephan Mueller
2015-03-11 0:56 ` Stephen Rothwell
1 sibling, 0 replies; 7+ messages in thread
From: Stephan Mueller @ 2015-03-10 7:02 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Herbert Xu, linux-next, linux-kernel, David S. Miller,
Linux Crypto Mailing List, netdev
Am Dienstag, 10. März 2015, 17:44:54 schrieb Stephen Rothwell:
Hi Stephen,
>Hi Herbert,
>
>On Tue, 10 Mar 2015 17:03:28 +1100 Herbert Xu
<herbert@gondor.apana.org.au> wrote:
>> On Tue, Mar 10, 2015 at 04:44:17PM +1100, Stephen Rothwell wrote:
>> > After merging the crypto tree, today's (and the past few days)
>> > linux-next build (powerpc allyesconfig) produced these warnings:
>> >
>> > crypto/algif_aead.c:561:2: warning: initialization from
>> > incompatible pointer type> >
>> > .sendmsg = aead_sendmsg,
>> > ^
>> >
>> > crypto/algif_aead.c:561:2: warning: (near initialization for
>> > 'algif_aead_ops.sendmsg') crypto/algif_aead.c:563:2: warning:
>> > initialization from incompatible pointer type> >
>> > .recvmsg = aead_recvmsg,
>> > ^
>> >
>> > crypto/algif_aead.c:563:2: warning: (near initialization for
>> > 'algif_aead_ops.recvmsg')
>> >
>> > Introduced by commit 400c40cf78da ("crypto: algif - add AEAD
>> > support").>
>> This is a bit of a bummer. What happened is that net-next has
>> killed the kiocb argument to sendmsg/recvmsg. However, this
>> change is obviously not part of the crypto tree and algif_aead
>> only exists in the crypto tree.
>>
>> So Stephen could you fix this by hand until one of them is merged
>> upstream (just kill the first argument in aead_sendmsg/aead_recvmsg)?
>
>No worries, I will put a merge fix patch in from tomorrow (and send you
>a copy just in case).
Thank you. Let me know if I should help.
Ciao
Stephan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build warnings after merge of the crypto tree
2015-03-10 6:44 ` Stephen Rothwell
2015-03-10 7:02 ` Stephan Mueller
@ 2015-03-11 0:56 ` Stephen Rothwell
2015-03-11 0:57 ` Herbert Xu
1 sibling, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2015-03-11 0:56 UTC (permalink / raw)
To: Herbert Xu
Cc: linux-next, linux-kernel, Stephan Mueller, David S. Miller,
Linux Crypto Mailing List, netdev
[-- Attachment #1: Type: text/plain, Size: 2569 bytes --]
Hi all,
On Tue, 10 Mar 2015 17:44:54 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> On Tue, 10 Mar 2015 17:03:28 +1100 Herbert Xu <herbert@gondor.apana.org.au> wrote:
> >
> > On Tue, Mar 10, 2015 at 04:44:17PM +1100, Stephen Rothwell wrote:
> > >
> > > After merging the crypto tree, today's (and the past few days)
> > > linux-next build (powerpc allyesconfig) produced these warnings:
> > >
> > > crypto/algif_aead.c:561:2: warning: initialization from incompatible pointer type
> > > .sendmsg = aead_sendmsg,
> > > ^
> > > crypto/algif_aead.c:561:2: warning: (near initialization for 'algif_aead_ops.sendmsg')
> > > crypto/algif_aead.c:563:2: warning: initialization from incompatible pointer type
> > > .recvmsg = aead_recvmsg,
> > > ^
> > > crypto/algif_aead.c:563:2: warning: (near initialization for 'algif_aead_ops.recvmsg')
> > >
> > > Introduced by commit 400c40cf78da ("crypto: algif - add AEAD support").
> >
> > This is a bit of a bummer. What happened is that net-next has
> > killed the kiocb argument to sendmsg/recvmsg. However, this
> > change is obviously not part of the crypto tree and algif_aead
> > only exists in the crypto tree.
> >
> > So Stephen could you fix this by hand until one of them is merged
> > upstream (just kill the first argument in aead_sendmsg/aead_recvmsg)?
>
> No worries, I will put a merge fix patch in from tomorrow (and send you
> a copy just in case).
This is what I applied:
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 11 Mar 2015 11:51:30 +1100
Subject: [PATCH] crypto: fix for sendmsg/recvmsg API change
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
crypto/algif_aead.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crypto/algif_aead.c b/crypto/algif_aead.c
index 527d27b023ab..001d8b5ad056 100644
--- a/crypto/algif_aead.c
+++ b/crypto/algif_aead.c
@@ -163,7 +163,7 @@ static void aead_data_wakeup(struct sock *sk)
rcu_read_unlock();
}
-static int aead_sendmsg(struct kiocb *unused, struct socket *sock,
+static int aead_sendmsg(struct socket *sock,
struct msghdr *msg, size_t size)
{
struct sock *sk = sock->sk;
@@ -348,7 +348,7 @@ unlock:
return err ?: size;
}
-static int aead_recvmsg(struct kiocb *unused, struct socket *sock,
+static int aead_recvmsg(struct socket *sock,
struct msghdr *msg, size_t ignored, int flags)
{
struct sock *sk = sock->sk;
--
2.1.4
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: linux-next: build warnings after merge of the crypto tree
2015-03-11 0:56 ` Stephen Rothwell
@ 2015-03-11 0:57 ` Herbert Xu
0 siblings, 0 replies; 7+ messages in thread
From: Herbert Xu @ 2015-03-11 0:57 UTC (permalink / raw)
To: Stephen Rothwell
Cc: linux-next, linux-kernel, Stephan Mueller, David S. Miller,
Linux Crypto Mailing List, netdev
On Wed, Mar 11, 2015 at 11:56:37AM +1100, Stephen Rothwell wrote:
>
> This is what I applied:
>
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Wed, 11 Mar 2015 11:51:30 +1100
> Subject: [PATCH] crypto: fix for sendmsg/recvmsg API change
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Looks good to me. Thanks Stephen!
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build warnings after merge of the crypto tree
2015-03-10 6:03 ` linux-next: build warnings after merge of the crypto tree Herbert Xu
2015-03-10 6:44 ` Stephen Rothwell
@ 2015-03-11 2:00 ` Tadeusz Struk
2015-03-11 2:05 ` Herbert Xu
1 sibling, 1 reply; 7+ messages in thread
From: Tadeusz Struk @ 2015-03-11 2:00 UTC (permalink / raw)
To: Herbert Xu, Stephen Rothwell
Cc: linux-next, linux-kernel, Stephan Mueller, David S. Miller,
Linux Crypto Mailing List, netdev
On 03/09/2015 11:03 PM, Herbert Xu wrote:
> This is a bit of a bummer. What happened is that net-next has
> killed the kiocb argument to sendmsg/recvmsg. However, this
> change is obviously not part of the crypto tree and algif_aead
> only exists in the crypto tree.
>
> So Stephen could you fix this by hand until one of them is merged
> upstream (just kill the first argument in aead_sendmsg/aead_recvmsg)?
So does it mean that aio operations will not be supported on sockets?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build warnings after merge of the crypto tree
2015-03-11 2:00 ` Tadeusz Struk
@ 2015-03-11 2:05 ` Herbert Xu
0 siblings, 0 replies; 7+ messages in thread
From: Herbert Xu @ 2015-03-11 2:05 UTC (permalink / raw)
To: Tadeusz Struk
Cc: Stephen Rothwell, linux-next, linux-kernel, Stephan Mueller,
David S. Miller, Linux Crypto Mailing List, netdev
On Tue, Mar 10, 2015 at 07:00:26PM -0700, Tadeusz Struk wrote:
> On 03/09/2015 11:03 PM, Herbert Xu wrote:
> > This is a bit of a bummer. What happened is that net-next has
> > killed the kiocb argument to sendmsg/recvmsg. However, this
> > change is obviously not part of the crypto tree and algif_aead
> > only exists in the crypto tree.
> >
> > So Stephen could you fix this by hand until one of them is merged
> > upstream (just kill the first argument in aead_sendmsg/aead_recvmsg)?
>
> So does it mean that aio operations will not be supported on sockets?
Indeed. If you want to have this ability you'll need to take
the discussion over to netdev.
Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-03-11 2:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20150310164417.540c18a4@canb.auug.org.au>
2015-03-10 6:03 ` linux-next: build warnings after merge of the crypto tree Herbert Xu
2015-03-10 6:44 ` Stephen Rothwell
2015-03-10 7:02 ` Stephan Mueller
2015-03-11 0:56 ` Stephen Rothwell
2015-03-11 0:57 ` Herbert Xu
2015-03-11 2:00 ` Tadeusz Struk
2015-03-11 2:05 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox