Skip to contentSkip to conversation

Fix kernel compile error: drivers/crypto/ixp4xx_crypto.c.

ARM Krzysztof Hałasa 9 participants 13 messages Dec 31, 2013 – Jan 2, 2014 Crypto API

lore
Share & tools
lore
#0 lore raw

drivers/crypto/ixp4xx_crypto.c: In function 'ixp_module_init':
drivers/crypto/ixp4xx_crypto.c:1419:2: error: 'dev' undeclared (first use in this function)

Now builds. Not tested on real hw.

drivers/crypto/ixp4xx_crypto.c +1 -3
@@ -1410,14 +1410,12 @@ static const struct platform_device_info ixp_dev_info __initdata = {
 static int __init ixp_module_init(void)
 {
 	int num = ARRAY_SIZE(ixp4xx_algos);
-	int i, err ;
+	int i, err;
 
 	pdev = platform_device_register_full(&ixp_dev_info);
 	if (IS_ERR(pdev))
 		return PTR_ERR(pdev);
 
-	dev = &pdev->dev;
-
 	spin_lock_init(&desc_lock);
 	spin_lock_init(&emerg_lock);
 
Signature · 4 lines
Krzysztof Halasa

Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland
#1 lore raw
Quoted 7 lines · Krzysztof Ha?asa

drivers/crypto/ixp4xx_crypto.c: In function 'ixp_module_init':
drivers/crypto/ixp4xx_crypto.c:1419:2: error: 'dev' undeclared (first use in this function)

Now builds. Not tested on real hw.

I understood that a 'Fixes: <hash> <subject>' line is suggested when you can clearly identify what broke what you fix. Is it 27c1789ca6a6 "DMA-API: crypto: remove last references to 'static struct device *dev'"? Then v3.13-rc1 would have been affected.

Quoted 7 lines
drivers/crypto/ixp4xx_crypto.c +0 -1
@@ -1410,14 +1410,12 @@ static const struct platform_device_info ixp_dev_info __initdata = {
 static int __init ixp_module_init(void)
 {
 	int num = ARRAY_SIZE(ixp4xx_algos);
-	int i, err ;

drivers/crypto/ixp4xx_crypto.c static const struct platform_device_info ixp_dev_info __initdata = { · line 1420

Quoted 10 lines
drivers/crypto/ixp4xx_crypto.c +1 -2
+	int i, err;
 
 	pdev = platform_device_register_full(&ixp_dev_info);
 	if (IS_ERR(pdev))
 		return PTR_ERR(pdev);
 
-	dev = &pdev->dev;
-
 	spin_lock_init(&desc_lock);
 	spin_lock_init(&emerg_lock);

virtually yours
Gerhard Sittig

Signature · 3 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
#2 lore raw
Quoted 5 lines · Gerhard Sittig
Quoted 4 lines · Krzysztof Ha?asa

drivers/crypto/ixp4xx_crypto.c: In function 'ixp_module_init':
drivers/crypto/ixp4xx_crypto.c:1419:2: error: 'dev' undeclared (first use in this function)

Quoted 8 lines
Quoted 3 lines

Now builds. Not tested on real hw.

I understood that a 'Fixes: <hash> <subject>' line is suggested when you can clearly identify what broke what you fix. Is it 27c1789ca6a6 "DMA-API: crypto: remove last references to 'static struct device *dev'"? Then v3.13-rc1 would have been affected.

is 'Fixes: <whatever>' documented somewhere?

thanks,

Signature · 1 line
~Randy
#3 lore raw
Quoted 9 lines · Randy Dunlap
Quoted 7 lines · Gerhard Sittig
Quoted 6 lines · Krzysztof Ha?asa

drivers/crypto/ixp4xx_crypto.c: In function 'ixp_module_init':
drivers/crypto/ixp4xx_crypto.c:1419:2: error: 'dev' undeclared (first use in this function)

Now builds. Not tested on real hw.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

I understood that a 'Fixes: <hash> <subject>' line is suggested when you can clearly identify what broke what you fix. Is it 27c1789ca6a6 "DMA-API: crypto: remove last references to 'static struct device *dev'"? Then v3.13-rc1 would have been affected.

is 'Fixes: <whatever>' documented somewhere?

Last time I checked (few days ago, 'git grep -w Fixes:') it wasn't, at least not within the kernel source tree and its Documentation hierarchy. Today's master still does not have it.

But a quick search in recent LAKML messages reveals that it's been in use by e.g. Olof Johansson, Jason Cooper, Rusty Russell, Dan Carpenter, Russell King, Mark Brown, Stephen Warren, Paul Walmsley, and I'm not making this up but am just referring to what repeatedly was requested in the past. The form used there was "Fixes: <hash> (<oneline>)" though. A doc update may be due to have a canonical format.

I do see the benefit of this tag, as it does not hide this information in the commit message's prose, makes submitters think about that property in more explicit ways and makes them provide the information such that others need not do the research, and greatly helps those involved in tests and release management to determine affected versions and required actions that need to be taken. The tag is very useful.

virtually yours
Gerhard Sittig

Signature · 3 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
#4 lore raw
Quoted 11 lines · Gerhard Sittig

Last time I checked (few days ago, 'git grep -w Fixes:') it wasn't, at least not within the kernel source tree and its Documentation hierarchy. Today's master still does not have it.

But a quick search in recent LAKML messages reveals that it's been in use by e.g. Olof Johansson, Jason Cooper, Rusty Russell, Dan Carpenter, Russell King, Mark Brown, Stephen Warren, Paul Walmsley, and I'm not making this up but am just referring to what repeatedly was requested in the past. The form used there was "Fixes: <hash> (<oneline>)" though. A doc update may be due to have a canonical format.

It was discussed at kernel summit, and I believe the resulting format was only published in one of the kernel summit mailing lists. The outcome of it as I understand was that the format is:

Fixes <hash> ("<one line summary>")

Though the addition of the quotes was (iirc) only something added after the vocal discussion. If you mail Linus a patch with a fixes line which doesn't match that, Linus will probably fix it up... (Linus has done that with one of mine in the past.)

#5 lore raw
Quoted 13 lines · Russell King - ARM Linux
Quoted 11 lines · Gerhard Sittig

Last time I checked (few days ago, 'git grep -w Fixes:') it wasn't, at least not within the kernel source tree and its Documentation hierarchy. Today's master still does not have it.

But a quick search in recent LAKML messages reveals that it's been in use by e.g. Olof Johansson, Jason Cooper, Rusty Russell, Dan Carpenter, Russell King, Mark Brown, Stephen Warren, Paul Walmsley, and I'm not making this up but am just referring to what repeatedly was requested in the past. The form used there was "Fixes: <hash> (<oneline>)" though. A doc update may be due to have a canonical format.

Quoted 5 lines

It was discussed at kernel summit, and I believe the resulting format was only published in one of the kernel summit mailing lists. The outcome of it as I understand was that the format is:

Fixes <hash> ("<one line summary>")

fwiw, Linus also recommended setting core.abbrev = 12.

thx,

Jason.

#6 lore raw
In reply to Gerhard Sittig

Please get rid of your Mail-Followup-To: header:

Mail-Followup-To: Krzysztof Ha?asa <[email protected]>,
lkml <[email protected]>, linux-arm-kernel at lists.infradead.org, Russell King <[email protected]>, Christian Hohnstaedt <[email protected]>, Herbert Xu <[email protected]>
User-Agent: Mutt/1.5.21 (2010-09-15)

It causes all recipients following the thread to be moved into the To:
header when someone replies to one of your messages, which is deemed to be anti-social. You can kill this header by adding:

set followup_to=no

to your .muttrc file.

Thanks.

#7 lore raw
Quoted 11 lines · Russell King - ARM Linux

Please get rid of your Mail-Followup-To: header:

Mail-Followup-To: Krzysztof Ha?asa <[email protected]>,
lkml <[email protected]>, linux-arm-kernel at lists.infradead.org, Russell King <[email protected]>, Christian Hohnstaedt <[email protected]>, Herbert Xu <[email protected]>
User-Agent: Mutt/1.5.21 (2010-09-15)

Quoted 7 lines

It causes all recipients following the thread to be moved into the To:
header when someone replies to one of your messages, which is deemed to be anti-social. You can kill this header by adding:

set followup_to=no

to your .muttrc file.

Thank you for telling me, I was not aware. Had no MFT related setting in my config, learned from the manual that $followup_to defaults to yes, have turned it off now. Other mutt users may want to check as well. Happy new year! :)

virtually yours
Gerhard Sittig

Signature · 3 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
#8 lore raw

Re: About Mail-Followup-To and Mutt [Was: Re: [ARM] Fix kernel compile error: drivers/crypto/ixp4xx_crypto.c]

Quoted 16 lines · Gerhard Sittig
Quoted 15 lines · Russell King - ARM Linux

Please get rid of your Mail-Followup-To: header:

Mail-Followup-To: Krzysztof Ha?asa <[email protected]>,
lkml <[email protected]>, linux-arm-kernel at lists.infradead.org, Russell King <[email protected]>, Christian Hohnstaedt <[email protected]>, Herbert Xu <[email protected]>
User-Agent: Mutt/1.5.21 (2010-09-15)

It causes all recipients following the thread to be moved into the To:
header when someone replies to one of your messages, which is deemed to be anti-social. You can kill this header by adding:

Quoted 8 lines
Quoted 3 lines

set followup_to=no

to your .muttrc file.

Thank you for telling me, I was not aware. Had no MFT related setting in my config, learned from the manual that $followup_to defaults to yes, have turned it off now. Other mutt users may want to check as well. Happy new year! :)

I have

	# set followup_to = yes

in my .mutt/muttrc---so I'm using the default---but I'm still unaffected. I think this is because I don't have any lists specified (using the lists and subscribe commands). And note that there are lists that consider using MFT to be good, ISTR that it applies to *@lists.debian.org, but cannot currently find a reference to support that claim. The problem is that using MFT only works if all recipents are using and respecting it.

If Russell is annoyed in general by MFT, he could unset honor_followup_to.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#9 lore raw

Re: About Mail-Followup-To and Mutt [Was: Re: [ARM] Fix kernel compile error: drivers/crypto/ixp4xx_crypto.c]

Quoted 11 lines · Uwe Kleine-K?nig

I have

	# set followup_to = yes

in my .mutt/muttrc---so I'm using the default---but I'm still unaffected. I think this is because I don't have any lists specified (using the lists and subscribe commands). And note that there are lists that consider using MFT to be good, ISTR that it applies to *@lists.debian.org, but cannot currently find a reference to support that claim. The problem is that using MFT only works if all recipents are using and respecting it.

Your last statement is total rubbish. This header is seen by the mainstream Linux community as being totally evil.

Quoted 2 lines

If Russell is annoyed in general by MFT, he could unset honor_followup_to.

And how does that stop the problem when someone *else* replies to the message with a Mail-Followup-To? FYI, I was hounded off LKML for having that header set.

When people have this header set, and people reply to such a message, all recipients get moved into the To: header. This makes it impossible on high traffic lists for people to prioritise their reading of messages according to whether they're in the To: header or just in the Cc: header.

Being in the To: header means that someone is directing the message *AT* you and wanting *YOU* to do something with it. Being in the Cc: is more "for information" and so takes a lower priority.

Hence, when someone replies to a message, and their mail client ends up moving all recipients into the To: header, it completely destroys the ability to prioritise the reading. So, either we adopt the same position here as the rest of the Linux community wrt this header, or I'm just going to read messages on the list at random, completely ignoring whether I'm in the To: header or not.

What that means is that there will have *no way* to attract my attention to any email message - since I will not care one bit whether I'm listed me in the To: header or not.

And no, you are NOT going to pester me on IRC each time.

--
FTTC broadband for 0.8mile line: 5.8Mbps down 500kbps up. Estimation in database were 13.1 to 19Mbit for a good line, about 7.5+ for a bad. Estimate before purchase was "up to 13.2Mbit".

#10 lore raw

Re: About Mail-Followup-To and Mutt [Was: Re: [ARM] Fix kernel compile error: drivers/crypto/ixp4xx_crypto.c]

Quoted 4 lines · Russell King - ARM Linux

And how does that stop the problem when someone *else* replies to the message with a Mail-Followup-To? FYI, I was hounded off LKML for having that header set.

Quoted 8 lines

When people have this header set, and people reply to such a message, all recipients get moved into the To: header. This makes it impossible on high traffic lists for people to prioritise their reading of messages according to whether they're in the To: header or just in the Cc: header.

Being in the To: header means that someone is directing the message *AT* you and wanting *YOU* to do something with it. Being in the Cc: is more "for information" and so takes a lower priority.

Totally agreed.

That MFT thing might've been a good idea at the time but in reality it causes more problems than it solves, with our usage patterns. I've started ignoring it and would suggest people simply drop all those "lists/subsribe" directives in their .muttrc.

Thanks.

#11 lore raw

Re: About Mail-Followup-To and Mutt [Was: Re: [ARM] Fix kernel compile error: drivers/crypto/ixp4xx_crypto.c]

In reply to Uwe Kleine-König
Quoted 5 lines · Uwe Kleine-K?nig

(using the lists and subscribe commands). And note that there are lists that consider using MFT to be good, ISTR that it applies to *@lists.debian.org, but cannot currently find a reference to support that claim. The problem is that using MFT only works if all recipents are using and respecting it.

No, Debian specifically wants replies to be sent to the list only but
it's not really related to Mail-Followup-To - I don't think there's a
general feeling on that within Debian but ICBW. The thing about reply
to list predates the invention of MFT.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140102/e7c27c65/attachment-0001.sig>

maintainer
#12 lore raw
In reply to Krzysztof Hałasa
Quoted 6 lines · Krzysztof Ha?asa

drivers/crypto/ixp4xx_crypto.c: In function 'ixp_module_init':
drivers/crypto/ixp4xx_crypto.c:1419:2: error: 'dev' undeclared (first use in this function)

Now builds. Not tested on real hw.

Patch applied. Thanks!

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt