All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai] [Xenomai-git] Jan Kiszka : cobalt: Fix conditional build of lock_vfile registration
       [not found] <E1daPZD-0000KU-Bk@xenomai.org>
@ 2017-07-26 16:59 ` Philippe Gerum
  2017-07-27 11:15   ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: Philippe Gerum @ 2017-07-26 16:59 UTC (permalink / raw)
  To: xenomai, xenomai-git

On 07/26/2017 06:53 PM, git repository hosting wrote:
> Module: xenomai-jki
> Branch: for-forge
> Commit: 634a95c9c023dda40607e5e5c1dd43761f59e541
> URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=634a95c9c023dda40607e5e5c1dd43761f59e541
> 
> Author: Jan Kiszka <jan.kiszka@siemens.com>
> Date:   Wed Jul 26 18:50:43 2017 +0200
> 
> cobalt: Fix conditional build of lock_vfile registration
> 
> There is and there was never a CONFIG_XENO_DEBUG_LOCKING.
> Fixes de66d324a93d.
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> 
> ---
> 
>  kernel/cobalt/procfs.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/cobalt/procfs.c b/kernel/cobalt/procfs.c
> index 9d193af..85aea0c 100644
> --- a/kernel/cobalt/procfs.c
> +++ b/kernel/cobalt/procfs.c
> @@ -216,7 +216,7 @@ static struct xnvfile_regular apc_vfile = {
>  void xnprocfs_cleanup_tree(void)
>  {
>  #ifdef CONFIG_XENO_OPT_DEBUG
> -#ifdef CONFIG_XENO_DEBUG_LOCKING

This would reintroduce another bug [1]. Better check for the proper
symbol instead, i.e. CONFIG_XENO_OPT_DEBUG_LOCKING.

[1]  http://xenomai.org/pipermail/xenomai/2017-February/037136.html

-- 
Philippe.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai] [Xenomai-git] Jan Kiszka : cobalt: Fix conditional build of lock_vfile registration
  2017-07-26 16:59 ` [Xenomai] [Xenomai-git] Jan Kiszka : cobalt: Fix conditional build of lock_vfile registration Philippe Gerum
@ 2017-07-27 11:15   ` Jan Kiszka
  2017-07-27 15:30     ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2017-07-27 11:15 UTC (permalink / raw)
  To: Philippe Gerum, xenomai, xenomai-git

On 2017-07-26 18:59, Philippe Gerum wrote:
> On 07/26/2017 06:53 PM, git repository hosting wrote:
>> Module: xenomai-jki
>> Branch: for-forge
>> Commit: 634a95c9c023dda40607e5e5c1dd43761f59e541
>> URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=634a95c9c023dda40607e5e5c1dd43761f59e541
>>
>> Author: Jan Kiszka <jan.kiszka@siemens.com>
>> Date:   Wed Jul 26 18:50:43 2017 +0200
>>
>> cobalt: Fix conditional build of lock_vfile registration
>>
>> There is and there was never a CONFIG_XENO_DEBUG_LOCKING.
>> Fixes de66d324a93d.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>
>> ---
>>
>>  kernel/cobalt/procfs.c |    4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/kernel/cobalt/procfs.c b/kernel/cobalt/procfs.c
>> index 9d193af..85aea0c 100644
>> --- a/kernel/cobalt/procfs.c
>> +++ b/kernel/cobalt/procfs.c
>> @@ -216,7 +216,7 @@ static struct xnvfile_regular apc_vfile = {
>>  void xnprocfs_cleanup_tree(void)
>>  {
>>  #ifdef CONFIG_XENO_OPT_DEBUG
>> -#ifdef CONFIG_XENO_DEBUG_LOCKING
> 
> This would reintroduce another bug [1]. Better check for the proper
> symbol instead, i.e. CONFIG_XENO_OPT_DEBUG_LOCKING.

That won't solve the issue either. There is something more seriously
broken in the dependencies. Analyzing....

> 
> [1]  http://xenomai.org/pipermail/xenomai/2017-February/037136.html
> 

Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai] [Xenomai-git] Jan Kiszka : cobalt: Fix conditional build of lock_vfile registration
  2017-07-27 11:15   ` Jan Kiszka
@ 2017-07-27 15:30     ` Jan Kiszka
  2017-07-27 16:21       ` Philippe Gerum
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2017-07-27 15:30 UTC (permalink / raw)
  To: Philippe Gerum, xenomai

On 2017-07-27 13:15, Jan Kiszka wrote:
> On 2017-07-26 18:59, Philippe Gerum wrote:
>> On 07/26/2017 06:53 PM, git repository hosting wrote:
>>> Module: xenomai-jki
>>> Branch: for-forge
>>> Commit: 634a95c9c023dda40607e5e5c1dd43761f59e541
>>> URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=634a95c9c023dda40607e5e5c1dd43761f59e541
>>>
>>> Author: Jan Kiszka <jan.kiszka@siemens.com>
>>> Date:   Wed Jul 26 18:50:43 2017 +0200
>>>
>>> cobalt: Fix conditional build of lock_vfile registration
>>>
>>> There is and there was never a CONFIG_XENO_DEBUG_LOCKING.
>>> Fixes de66d324a93d.
>>>
>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>
>>> ---
>>>
>>>  kernel/cobalt/procfs.c |    4 ++--
>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/kernel/cobalt/procfs.c b/kernel/cobalt/procfs.c
>>> index 9d193af..85aea0c 100644
>>> --- a/kernel/cobalt/procfs.c
>>> +++ b/kernel/cobalt/procfs.c
>>> @@ -216,7 +216,7 @@ static struct xnvfile_regular apc_vfile = {
>>>  void xnprocfs_cleanup_tree(void)
>>>  {
>>>  #ifdef CONFIG_XENO_OPT_DEBUG
>>> -#ifdef CONFIG_XENO_DEBUG_LOCKING
>>
>> This would reintroduce another bug [1]. Better check for the proper
>> symbol instead, i.e. CONFIG_XENO_OPT_DEBUG_LOCKING.
> 
> That won't solve the issue either. There is something more seriously
> broken in the dependencies. Analyzing....
> 

The problem is that #if IS_ENABLED() does not update the dependencies of
that file so that kbuild does not recompile what is actually affected by
config changes. A clean rebuild will work.

Solution is to replace *all* #if IS_ENABLED() by proper #ifdef.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai] [Xenomai-git] Jan Kiszka : cobalt: Fix conditional build of lock_vfile registration
  2017-07-27 15:30     ` Jan Kiszka
@ 2017-07-27 16:21       ` Philippe Gerum
  2017-07-27 16:32         ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: Philippe Gerum @ 2017-07-27 16:21 UTC (permalink / raw)
  To: Jan Kiszka, xenomai

On 07/27/2017 05:30 PM, Jan Kiszka wrote:
> On 2017-07-27 13:15, Jan Kiszka wrote:
>> On 2017-07-26 18:59, Philippe Gerum wrote:
>>> On 07/26/2017 06:53 PM, git repository hosting wrote:
>>>> Module: xenomai-jki
>>>> Branch: for-forge
>>>> Commit: 634a95c9c023dda40607e5e5c1dd43761f59e541
>>>> URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=634a95c9c023dda40607e5e5c1dd43761f59e541
>>>>
>>>> Author: Jan Kiszka <jan.kiszka@siemens.com>
>>>> Date:   Wed Jul 26 18:50:43 2017 +0200
>>>>
>>>> cobalt: Fix conditional build of lock_vfile registration
>>>>
>>>> There is and there was never a CONFIG_XENO_DEBUG_LOCKING.
>>>> Fixes de66d324a93d.
>>>>
>>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>>
>>>> ---
>>>>
>>>>  kernel/cobalt/procfs.c |    4 ++--
>>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/kernel/cobalt/procfs.c b/kernel/cobalt/procfs.c
>>>> index 9d193af..85aea0c 100644
>>>> --- a/kernel/cobalt/procfs.c
>>>> +++ b/kernel/cobalt/procfs.c
>>>> @@ -216,7 +216,7 @@ static struct xnvfile_regular apc_vfile = {
>>>>  void xnprocfs_cleanup_tree(void)
>>>>  {
>>>>  #ifdef CONFIG_XENO_OPT_DEBUG
>>>> -#ifdef CONFIG_XENO_DEBUG_LOCKING
>>>
>>> This would reintroduce another bug [1]. Better check for the proper
>>> symbol instead, i.e. CONFIG_XENO_OPT_DEBUG_LOCKING.
>>
>> That won't solve the issue either. There is something more seriously
>> broken in the dependencies. Analyzing....
>>
> 
> The problem is that #if IS_ENABLED() does not update the dependencies of
> that file so that kbuild does not recompile what is actually affected by
> config changes. A clean rebuild will work.
> 
> Solution is to replace *all* #if IS_ENABLED() by proper #ifdef.
> 

Yes, this was the purpose of the initial fix, which used the wrong
symbol though. Because the deps was broken, we ended up with some files
not being rebuilt when switching between debug modes, leaving
xnlock_stats undefined in some cases. We only need to fix the symbol,
i.e. #ifdef CONFIG_XENO_DEBUG_LOCKING, and all other occurrences of
similar constructs.

-- 
Philippe.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai] [Xenomai-git] Jan Kiszka : cobalt: Fix conditional build of lock_vfile registration
  2017-07-27 16:21       ` Philippe Gerum
@ 2017-07-27 16:32         ` Jan Kiszka
  2017-07-27 17:11           ` Philippe Gerum
  2017-07-27 17:11           ` Philippe Gerum
  0 siblings, 2 replies; 7+ messages in thread
From: Jan Kiszka @ 2017-07-27 16:32 UTC (permalink / raw)
  To: Philippe Gerum, xenomai

On 2017-07-27 18:21, Philippe Gerum wrote:
> On 07/27/2017 05:30 PM, Jan Kiszka wrote:
>> On 2017-07-27 13:15, Jan Kiszka wrote:
>>> On 2017-07-26 18:59, Philippe Gerum wrote:
>>>> On 07/26/2017 06:53 PM, git repository hosting wrote:
>>>>> Module: xenomai-jki
>>>>> Branch: for-forge
>>>>> Commit: 634a95c9c023dda40607e5e5c1dd43761f59e541
>>>>> URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=634a95c9c023dda40607e5e5c1dd43761f59e541
>>>>>
>>>>> Author: Jan Kiszka <jan.kiszka@siemens.com>
>>>>> Date:   Wed Jul 26 18:50:43 2017 +0200
>>>>>
>>>>> cobalt: Fix conditional build of lock_vfile registration
>>>>>
>>>>> There is and there was never a CONFIG_XENO_DEBUG_LOCKING.
>>>>> Fixes de66d324a93d.
>>>>>
>>>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>>>
>>>>> ---
>>>>>
>>>>>  kernel/cobalt/procfs.c |    4 ++--
>>>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>>>
>>>>> diff --git a/kernel/cobalt/procfs.c b/kernel/cobalt/procfs.c
>>>>> index 9d193af..85aea0c 100644
>>>>> --- a/kernel/cobalt/procfs.c
>>>>> +++ b/kernel/cobalt/procfs.c
>>>>> @@ -216,7 +216,7 @@ static struct xnvfile_regular apc_vfile = {
>>>>>  void xnprocfs_cleanup_tree(void)
>>>>>  {
>>>>>  #ifdef CONFIG_XENO_OPT_DEBUG
>>>>> -#ifdef CONFIG_XENO_DEBUG_LOCKING
>>>>
>>>> This would reintroduce another bug [1]. Better check for the proper
>>>> symbol instead, i.e. CONFIG_XENO_OPT_DEBUG_LOCKING.
>>>
>>> That won't solve the issue either. There is something more seriously
>>> broken in the dependencies. Analyzing....
>>>
>>
>> The problem is that #if IS_ENABLED() does not update the dependencies of
>> that file so that kbuild does not recompile what is actually affected by
>> config changes. A clean rebuild will work.
>>
>> Solution is to replace *all* #if IS_ENABLED() by proper #ifdef.
>>
> 
> Yes, this was the purpose of the initial fix, which used the wrong
> symbol though. Because the deps was broken, we ended up with some files
> not being rebuilt when switching between debug modes, leaving
> xnlock_stats undefined in some cases. We only need to fix the symbol,
> i.e. #ifdef CONFIG_XENO_DEBUG_LOCKING, and all other occurrences of
> similar constructs.

Done, see for-forge.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai] [Xenomai-git] Jan Kiszka : cobalt: Fix conditional build of lock_vfile registration
  2017-07-27 16:32         ` Jan Kiszka
@ 2017-07-27 17:11           ` Philippe Gerum
  2017-07-27 17:11           ` Philippe Gerum
  1 sibling, 0 replies; 7+ messages in thread
From: Philippe Gerum @ 2017-07-27 17:11 UTC (permalink / raw)
  To: Jan Kiszka, xenomai

On 07/27/2017 06:32 PM, Jan Kiszka wrote:
> On 2017-07-27 18:21, Philippe Gerum wrote:
>> On 07/27/2017 05:30 PM, Jan Kiszka wrote:
>>> On 2017-07-27 13:15, Jan Kiszka wrote:
>>>> On 2017-07-26 18:59, Philippe Gerum wrote:
>>>>> On 07/26/2017 06:53 PM, git repository hosting wrote:
>>>>>> Module: xenomai-jki
>>>>>> Branch: for-forge
>>>>>> Commit: 634a95c9c023dda40607e5e5c1dd43761f59e541
>>>>>> URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=634a95c9c023dda40607e5e5c1dd43761f59e541
>>>>>>
>>>>>> Author: Jan Kiszka <jan.kiszka@siemens.com>
>>>>>> Date:   Wed Jul 26 18:50:43 2017 +0200
>>>>>>
>>>>>> cobalt: Fix conditional build of lock_vfile registration
>>>>>>
>>>>>> There is and there was never a CONFIG_XENO_DEBUG_LOCKING.
>>>>>> Fixes de66d324a93d.
>>>>>>
>>>>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>>>>
>>>>>> ---
>>>>>>
>>>>>>  kernel/cobalt/procfs.c |    4 ++--
>>>>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>>>>
>>>>>> diff --git a/kernel/cobalt/procfs.c b/kernel/cobalt/procfs.c
>>>>>> index 9d193af..85aea0c 100644
>>>>>> --- a/kernel/cobalt/procfs.c
>>>>>> +++ b/kernel/cobalt/procfs.c
>>>>>> @@ -216,7 +216,7 @@ static struct xnvfile_regular apc_vfile = {
>>>>>>  void xnprocfs_cleanup_tree(void)
>>>>>>  {
>>>>>>  #ifdef CONFIG_XENO_OPT_DEBUG
>>>>>> -#ifdef CONFIG_XENO_DEBUG_LOCKING
>>>>>
>>>>> This would reintroduce another bug [1]. Better check for the proper
>>>>> symbol instead, i.e. CONFIG_XENO_OPT_DEBUG_LOCKING.
>>>>
>>>> That won't solve the issue either. There is something more seriously
>>>> broken in the dependencies. Analyzing....
>>>>
>>>
>>> The problem is that #if IS_ENABLED() does not update the dependencies of
>>> that file so that kbuild does not recompile what is actually affected by
>>> config changes. A clean rebuild will work.
>>>
>>> Solution is to replace *all* #if IS_ENABLED() by proper #ifdef.
>>>
>>
>> Yes, this was the purpose of the initial fix, which used the wrong
>> symbol though. Because the deps was broken, we ended up with some files
>> not being rebuilt when switching between debug modes, leaving
>> xnlock_stats undefined in some cases. We only need to fix the symbol,
>> i.e. #ifdef CONFIG_XENO_DEBUG_LOCKING, and all other occurrences of
>> similar constructs.
> 
> Done, see for-forge.
> 

Pull into -next, thanks.

-- 
Philippe.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai] [Xenomai-git] Jan Kiszka : cobalt: Fix conditional build of lock_vfile registration
  2017-07-27 16:32         ` Jan Kiszka
  2017-07-27 17:11           ` Philippe Gerum
@ 2017-07-27 17:11           ` Philippe Gerum
  1 sibling, 0 replies; 7+ messages in thread
From: Philippe Gerum @ 2017-07-27 17:11 UTC (permalink / raw)
  To: Jan Kiszka, xenomai

On 07/27/2017 06:32 PM, Jan Kiszka wrote:
> On 2017-07-27 18:21, Philippe Gerum wrote:
>> On 07/27/2017 05:30 PM, Jan Kiszka wrote:
>>> On 2017-07-27 13:15, Jan Kiszka wrote:
>>>> On 2017-07-26 18:59, Philippe Gerum wrote:
>>>>> On 07/26/2017 06:53 PM, git repository hosting wrote:
>>>>>> Module: xenomai-jki
>>>>>> Branch: for-forge
>>>>>> Commit: 634a95c9c023dda40607e5e5c1dd43761f59e541
>>>>>> URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=634a95c9c023dda40607e5e5c1dd43761f59e541
>>>>>>
>>>>>> Author: Jan Kiszka <jan.kiszka@siemens.com>
>>>>>> Date:   Wed Jul 26 18:50:43 2017 +0200
>>>>>>
>>>>>> cobalt: Fix conditional build of lock_vfile registration
>>>>>>
>>>>>> There is and there was never a CONFIG_XENO_DEBUG_LOCKING.
>>>>>> Fixes de66d324a93d.
>>>>>>
>>>>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>>>>
>>>>>> ---
>>>>>>
>>>>>>  kernel/cobalt/procfs.c |    4 ++--
>>>>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>>>>
>>>>>> diff --git a/kernel/cobalt/procfs.c b/kernel/cobalt/procfs.c
>>>>>> index 9d193af..85aea0c 100644
>>>>>> --- a/kernel/cobalt/procfs.c
>>>>>> +++ b/kernel/cobalt/procfs.c
>>>>>> @@ -216,7 +216,7 @@ static struct xnvfile_regular apc_vfile = {
>>>>>>  void xnprocfs_cleanup_tree(void)
>>>>>>  {
>>>>>>  #ifdef CONFIG_XENO_OPT_DEBUG
>>>>>> -#ifdef CONFIG_XENO_DEBUG_LOCKING
>>>>>
>>>>> This would reintroduce another bug [1]. Better check for the proper
>>>>> symbol instead, i.e. CONFIG_XENO_OPT_DEBUG_LOCKING.
>>>>
>>>> That won't solve the issue either. There is something more seriously
>>>> broken in the dependencies. Analyzing....
>>>>
>>>
>>> The problem is that #if IS_ENABLED() does not update the dependencies of
>>> that file so that kbuild does not recompile what is actually affected by
>>> config changes. A clean rebuild will work.
>>>
>>> Solution is to replace *all* #if IS_ENABLED() by proper #ifdef.
>>>
>>
>> Yes, this was the purpose of the initial fix, which used the wrong
>> symbol though. Because the deps was broken, we ended up with some files
>> not being rebuilt when switching between debug modes, leaving
>> xnlock_stats undefined in some cases. We only need to fix the symbol,
>> i.e. #ifdef CONFIG_XENO_DEBUG_LOCKING, and all other occurrences of
>> similar constructs.
> 
> Done, see for-forge.
> 

Pulled into -next, thanks.

-- 
Philippe.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-07-27 17:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1daPZD-0000KU-Bk@xenomai.org>
2017-07-26 16:59 ` [Xenomai] [Xenomai-git] Jan Kiszka : cobalt: Fix conditional build of lock_vfile registration Philippe Gerum
2017-07-27 11:15   ` Jan Kiszka
2017-07-27 15:30     ` Jan Kiszka
2017-07-27 16:21       ` Philippe Gerum
2017-07-27 16:32         ` Jan Kiszka
2017-07-27 17:11           ` Philippe Gerum
2017-07-27 17:11           ` Philippe Gerum

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.