Skip to contentSkip to conversation

iwlwifi: mvm: BACKPORT_WANT_DEV_COREDUMP?

DISCUSSION Paul Bolle 2 participants 5 messages Oct 31, 2014

Subsystems (2)
lore
Share & tools
lore

Paul Bolle

author
#0 lore raw

Your commit aadede6e9f4c ("iwlwifi: mvm: port to devcoredump framework") landed in today's linux-next (next-20141031). It adds a select statement for BACKPORT_WANT_DEV_COREDUMP. There's no Kconfig symbol BACKPORT_WANT_DEV_COREDUMP so this select is currently a nop. (In
https://lkml.org/lkml/2014/9/30/578 I proposed a patch that emits a warning in cases like this.)

Did you perhaps meant to select WANT_DEV_COREDUMP? Or is the Kconfig symbol BACKPORT_WANT_DEV_COREDUMP queued somewhere?

Paul Bolle

#1 lore raw
Quoted 8 lines · Paul Bolle

Your commit aadede6e9f4c ("iwlwifi: mvm: port to devcoredump framework") landed in today's linux-next (next-20141031). It adds a select statement for BACKPORT_WANT_DEV_COREDUMP. There's no Kconfig symbol BACKPORT_WANT_DEV_COREDUMP so this select is currently a nop. (In
https://lkml.org/lkml/2014/9/30/578 I proposed a patch that emits a warning in cases like this.)

Did you perhaps meant to select WANT_DEV_COREDUMP?

Yes. We'll fix it up in the iwlwifi tree.

Thanks for the report!

johannes

author
#2 lore raw
Quoted 8 lines · Johannes Berg
Quoted 7 lines · Paul Bolle

Your commit aadede6e9f4c ("iwlwifi: mvm: port to devcoredump framework") landed in today's linux-next (next-20141031). It adds a select statement for BACKPORT_WANT_DEV_COREDUMP. There's no Kconfig symbol BACKPORT_WANT_DEV_COREDUMP so this select is currently a nop. (In
https://lkml.org/lkml/2014/9/30/578 I proposed a patch that emits a warning in cases like this.)

Quoted 5 lines
Quoted 1 line

Did you perhaps meant to select WANT_DEV_COREDUMP?

Yes. We'll fix it up in the iwlwifi tree.

Thanks for the report!

Perhaps you could also look into somehow guarding the call of dev_coredumpm(), that this commit added, with checks for CONFIG_DEV_COREDUMP. See, I had a quick look at all this and selecting WANT_DEV_COREDUMP might not be enough, because DISABLE_DEV_COREDUMP can still, well, disable DEV_COREDUMP. Or am I misreading the Kconfig symbols that regulate DEV_COREDUMP?

Thanks,

Paul Bolle

#3 lore raw
Quoted 13 lines · Paul Bolle
Quoted 12 lines · Johannes Berg
Quoted 8 lines · Paul Bolle

Your commit aadede6e9f4c ("iwlwifi: mvm: port to devcoredump framework") landed in today's linux-next (next-20141031). It adds a select statement for BACKPORT_WANT_DEV_COREDUMP. There's no Kconfig symbol BACKPORT_WANT_DEV_COREDUMP so this select is currently a nop. (In
https://lkml.org/lkml/2014/9/30/578 I proposed a patch that emits a warning in cases like this.)

Did you perhaps meant to select WANT_DEV_COREDUMP?

Yes. We'll fix it up in the iwlwifi tree.

Quoted 8 lines
Quoted 1 line

Thanks for the report!

Perhaps you could also look into somehow guarding the call of dev_coredumpm(), that this commit added, with checks for CONFIG_DEV_COREDUMP. See, I had a quick look at all this and selecting WANT_DEV_COREDUMP might not be enough, because DISABLE_DEV_COREDUMP can still, well, disable DEV_COREDUMP. Or am I misreading the Kconfig symbols that regulate DEV_COREDUMP?

No, you're correctly reading that. However, the devcoredump header file provides simple functions in this case. That means there's some extra work (allocating and filling the buffer just to free it immediately) but it simplifies the code.

johannes

author
#4 lore raw
Quoted 8 lines · Johannes Berg
Quoted 6 lines · Paul Bolle

Perhaps you could also look into somehow guarding the call of dev_coredumpm(), that this commit added, with checks for CONFIG_DEV_COREDUMP. See, I had a quick look at all this and selecting WANT_DEV_COREDUMP might not be enough, because DISABLE_DEV_COREDUMP can still, well, disable DEV_COREDUMP. Or am I misreading the Kconfig symbols that regulate DEV_COREDUMP?

Quoted 4 lines

No, you're correctly reading that. However, the devcoredump header file provides simple functions in this case. That means there's some extra work (allocating and filling the buffer just to free it immediately) but it simplifies the code.

I see. More than a quick look was required here. Thanks for explaining this!

Paul Bolle