mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [v3.4-rc5]: drm references experimental
@ 2012-04-30 14:31 Jörg Otte
  2012-05-02 21:56 ` Paul Bolle
  0 siblings, 1 reply; 5+ messages in thread
From: Jörg Otte @ 2012-04-30 14:31 UTC (permalink / raw)
  To: Dave Airlie; +Cc: linux-kernel

Hi,
there is a dependency between drm and experimental driver. If I
don't enable EXPERIMENTAL I see the following during configuration:

warning: (DRM) selects DMA_SHARED_BUFFER which has unmet direct
dependencies (EXPERIMENTAL)

I think non-experimental code shouldn't depend on experimental code.

Jörg

Please Cc me. I'm not subscribed.

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

* Re: [v3.4-rc5]: drm references experimental
  2012-04-30 14:31 [v3.4-rc5]: drm references experimental Jörg Otte
@ 2012-05-02 21:56 ` Paul Bolle
  2012-05-03 12:02   ` Jörg Otte
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Bolle @ 2012-05-02 21:56 UTC (permalink / raw)
  To: Jörg Otte; +Cc: Dave Airlie, linux-kernel

On Mon, 2012-04-30 at 16:31 +0200, Jörg Otte wrote:
> there is a dependency between drm and experimental driver. If I
> don't enable EXPERIMENTAL I see the following during configuration:
> 
> warning: (DRM) selects DMA_SHARED_BUFFER which has unmet direct
> dependencies (EXPERIMENTAL)
> 
> I think non-experimental code shouldn't depend on experimental code.

This reminds me of a brief discussion on the merits of EXPERIMENTAL
starting at https://lkml.org/lkml/2012/1/18/385 . My impression from
that discussion was that EXPERIMENTAL currently is set in most
configurations (eg, even Debian stable has EXPERIMENTAL set). This means
that people generally won't notice that an option that itself doesn't
depend (indirectly) on EXPERIMENTAL selects an option that does depend
directly on EXPERIMENTAL. So, yes, one wouldn't expect non-EXPERIMENTAL
code to use EXPERIMENTAL code but, apparently, in practice it does.

I also noticed that there's not a single instance of CONFIG_EXPERIMENTAL
in any code-file or in any Makefile. EXPERIMENTAL is only relevant in,
well, Kconfig space. That should make it somewhat less likely that there
are surprising changes to the code than in other cases of options
selecting options with unmet direct dependencies.


Paul Bolle


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

* Re: [v3.4-rc5]: drm references experimental
  2012-05-02 21:56 ` Paul Bolle
@ 2012-05-03 12:02   ` Jörg Otte
  2012-05-04  9:39     ` Paul Bolle
  0 siblings, 1 reply; 5+ messages in thread
From: Jörg Otte @ 2012-05-03 12:02 UTC (permalink / raw)
  To: Paul Bolle; +Cc: Dave Airlie, linux-kernel

Thanks,

> I also noticed that there's not a single instance of CONFIG_EXPERIMENTAL
> in any code-file or in any Makefile. EXPERIMENTAL is only relevant in,
> well, Kconfig space.

this means especially the following is not possible or does not occure:

NON-EXP:
driver "A" uses library function "B"

EXP:
unchanged driver "A" now uses EXPERIMENTAL function "B-EXP"

The question is whether this is guaranteed.

Thanks,Jörg


2012/5/2 Paul Bolle <pebolle@tiscali.nl>:
> On Mon, 2012-04-30 at 16:31 +0200, Jörg Otte wrote:
>> there is a dependency between drm and experimental driver. If I
>> don't enable EXPERIMENTAL I see the following during configuration:
>>
>> warning: (DRM) selects DMA_SHARED_BUFFER which has unmet direct
>> dependencies (EXPERIMENTAL)
>>
>> I think non-experimental code shouldn't depend on experimental code.
>
> This reminds me of a brief discussion on the merits of EXPERIMENTAL
> starting at https://lkml.org/lkml/2012/1/18/385 . My impression from
> that discussion was that EXPERIMENTAL currently is set in most
> configurations (eg, even Debian stable has EXPERIMENTAL set). This means
> that people generally won't notice that an option that itself doesn't
> depend (indirectly) on EXPERIMENTAL selects an option that does depend
> directly on EXPERIMENTAL. So, yes, one wouldn't expect non-EXPERIMENTAL
> code to use EXPERIMENTAL code but, apparently, in practice it does.
>
> I also noticed that there's not a single instance of CONFIG_EXPERIMENTAL
> in any code-file or in any Makefile. EXPERIMENTAL is only relevant in,
> well, Kconfig space. That should make it somewhat less likely that there
> are surprising changes to the code than in other cases of options
> selecting options with unmet direct dependencies.
>
>
> Paul Bolle
>

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

* Re: [v3.4-rc5]: drm references experimental
  2012-05-03 12:02   ` Jörg Otte
@ 2012-05-04  9:39     ` Paul Bolle
  2012-05-04 16:35       ` Jörg Otte
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Bolle @ 2012-05-04  9:39 UTC (permalink / raw)
  To: Jörg Otte; +Cc: Dave Airlie, linux-kernel

On Thu, 2012-05-03 at 14:02 +0200, Jörg Otte wrote:
> this means especially the following is not possible or does not occure:
> 
> NON-EXP:
> driver "A" uses library function "B"
> 
> EXP:
> unchanged driver "A" now uses EXPERIMENTAL function "B-EXP"

There's a number of things I can think of for "EXPERIMENTAL function".
What exactly do you mean here?

> The question is whether this is guaranteed.

If you were thinking about usage of CONFIG_EXPERIMENTAL in code or in
Makefiles: no, I don't think there's a guarantee that this won't be
done. But it should be clear that EXPERIMENTAL is intended as, say, a
tag for config options. So it's likely that usage of EXPERIMENTAL
outside that scope will be prevented.


Paul Bolle


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

* Re: [v3.4-rc5]: drm references experimental
  2012-05-04  9:39     ` Paul Bolle
@ 2012-05-04 16:35       ` Jörg Otte
  0 siblings, 0 replies; 5+ messages in thread
From: Jörg Otte @ 2012-05-04 16:35 UTC (permalink / raw)
  To: Paul Bolle; +Cc: Dave Airlie, linux-kernel

OK, thanks again Paul, for your answeres.
Jörg

2012/5/4 Paul Bolle <pebolle@tiscali.nl>:
> On Thu, 2012-05-03 at 14:02 +0200, Jörg Otte wrote:
>> this means especially the following is not possible or does not occure:
>>
>> NON-EXP:
>> driver "A" uses library function "B"
>>
>> EXP:
>> unchanged driver "A" now uses EXPERIMENTAL function "B-EXP"
>
> There's a number of things I can think of for "EXPERIMENTAL function".
> What exactly do you mean here?
>
>> The question is whether this is guaranteed.
>
> If you were thinking about usage of CONFIG_EXPERIMENTAL in code or in
> Makefiles: no, I don't think there's a guarantee that this won't be
> done. But it should be clear that EXPERIMENTAL is intended as, say, a
> tag for config options. So it's likely that usage of EXPERIMENTAL
> outside that scope will be prevented.
>
>
> Paul Bolle
>

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

end of thread, other threads:[~2012-05-04 16:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-30 14:31 [v3.4-rc5]: drm references experimental Jörg Otte
2012-05-02 21:56 ` Paul Bolle
2012-05-03 12:02   ` Jörg Otte
2012-05-04  9:39     ` Paul Bolle
2012-05-04 16:35       ` Jörg Otte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®