* [PATCH] interconnect: qcom: Add the missing MODULE_LICENSE
@ 2022-09-13 6:27 Huang Yiwei
2022-09-13 7:08 ` Leo Yan
0 siblings, 1 reply; 5+ messages in thread
From: Huang Yiwei @ 2022-09-13 6:27 UTC (permalink / raw)
To: agross, bjorn.andersson, konrad.dybcio
Cc: djakov, dmitry.baryshkov, leo.yan, linux-arm-msm, linux-pm,
linux-kernel, Huang Yiwei
Since icc-common.c can be compiled as module, add the missing
MODULE_LICENSE to avoid compile errors.
Fixes: cb4805b5a5e4 ("interconnect: qcom: Move qcom_icc_xlate_extended() to a common file")
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
---
drivers/interconnect/qcom/icc-common.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/interconnect/qcom/icc-common.c b/drivers/interconnect/qcom/icc-common.c
index 0822ce207b5d..f27f4fdc4531 100644
--- a/drivers/interconnect/qcom/icc-common.c
+++ b/drivers/interconnect/qcom/icc-common.c
@@ -5,6 +5,7 @@
#include <linux/of.h>
#include <linux/slab.h>
+#include <linux/module.h>
#include "icc-common.h"
@@ -32,3 +33,5 @@ struct icc_node_data *qcom_icc_xlate_extended(struct of_phandle_args *spec, void
return ndata;
}
EXPORT_SYMBOL_GPL(qcom_icc_xlate_extended);
+
+MODULE_LICENSE("GPL");
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] interconnect: qcom: Add the missing MODULE_LICENSE
2022-09-13 6:27 [PATCH] interconnect: qcom: Add the missing MODULE_LICENSE Huang Yiwei
@ 2022-09-13 7:08 ` Leo Yan
2022-09-13 8:30 ` Huang Yiwei
0 siblings, 1 reply; 5+ messages in thread
From: Leo Yan @ 2022-09-13 7:08 UTC (permalink / raw)
To: Huang Yiwei
Cc: agross, bjorn.andersson, konrad.dybcio, djakov, dmitry.baryshkov,
linux-arm-msm, linux-pm, linux-kernel
Hi Yiwei,
On Tue, Sep 13, 2022 at 02:27:21PM +0800, Huang Yiwei wrote:
> Since icc-common.c can be compiled as module, add the missing
> MODULE_LICENSE to avoid compile errors.
Just curious how you can enable config INTERCONNECT_QCOM as "m"
(module)?
I checked the config INTERCONNECT_QCOM which is dependent on
INTERCONNECT, and INTERCONNECT has below dependency:
- DRM_TEGRA [=n] && HAS_IOMEM [=y] && (ARCH_TEGRA [=y] || ARM && COMPILE_TEST [=n]) && COMMON_CLK [=y] && DRM [=m] && OF [=y]
- TEGRA_MC [=n] && MEMORY [=y] && (ARCH_TEGRA [=y] || COMPILE_TEST [=n] && COMMON_CLK [=y])
Seems to me, it's impossible to enable INTERCONNECT as "m" because the
dependency ARCH_TEGRA/OF/COMMON_CLK cannot be configured as "m".
Thanks,
Leo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] interconnect: qcom: Add the missing MODULE_LICENSE
2022-09-13 7:08 ` Leo Yan
@ 2022-09-13 8:30 ` Huang Yiwei
2022-09-13 10:06 ` Leo Yan
0 siblings, 1 reply; 5+ messages in thread
From: Huang Yiwei @ 2022-09-13 8:30 UTC (permalink / raw)
To: Leo Yan
Cc: agross, bjorn.andersson, konrad.dybcio, djakov, dmitry.baryshkov,
linux-arm-msm, linux-pm, linux-kernel
Hi Leo,
On 9/13/2022 Tue 15:08, Leo Yan wrote:
> Hi Yiwei,
>
> On Tue, Sep 13, 2022 at 02:27:21PM +0800, Huang Yiwei wrote:
>> Since icc-common.c can be compiled as module, add the missing
>> MODULE_LICENSE to avoid compile errors.
>
> Just curious how you can enable config INTERCONNECT_QCOM as "m"
> (module)?
>
> I checked the config INTERCONNECT_QCOM which is dependent on
> INTERCONNECT, and INTERCONNECT has below dependency:
>
> - DRM_TEGRA [=n] && HAS_IOMEM [=y] && (ARCH_TEGRA [=y] || ARM && COMPILE_TEST [=n]) && COMMON_CLK [=y] && DRM [=m] && OF [=y]
> - TEGRA_MC [=n] && MEMORY [=y] && (ARCH_TEGRA [=y] || COMPILE_TEST [=n] && COMMON_CLK [=y])
>
> Seems to me, it's impossible to enable INTERCONNECT as "m" because the
> dependency ARCH_TEGRA/OF/COMMON_CLK cannot be configured as "m".
>
> Thanks,
> Leo
>
Found the problem, INTERCONNECT_QCOM is modified to tristate internally
so we can compile it as a module, and the new added icc-common.c uses
INTERCONNECT_QCOM config to compile, then cause the problem. So shall we
change INTERCONNECT_QCOM config to tristate?
Thanks,
Yiwei
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] interconnect: qcom: Add the missing MODULE_LICENSE
2022-09-13 8:30 ` Huang Yiwei
@ 2022-09-13 10:06 ` Leo Yan
2022-09-13 10:13 ` Georgi Djakov
0 siblings, 1 reply; 5+ messages in thread
From: Leo Yan @ 2022-09-13 10:06 UTC (permalink / raw)
To: Huang Yiwei
Cc: agross, andersson, konrad.dybcio, djakov, dmitry.baryshkov,
linux-arm-msm, linux-pm, linux-kernel
Changed to Bjorn's updated email.
On Tue, Sep 13, 2022 at 04:30:50PM +0800, Huang Yiwei wrote:
> Hi Leo,
>
> On 9/13/2022 Tue 15:08, Leo Yan wrote:
> > Hi Yiwei,
> >
> > On Tue, Sep 13, 2022 at 02:27:21PM +0800, Huang Yiwei wrote:
> > > Since icc-common.c can be compiled as module, add the missing
> > > MODULE_LICENSE to avoid compile errors.
> >
> > Just curious how you can enable config INTERCONNECT_QCOM as "m"
> > (module)?
> >
> > I checked the config INTERCONNECT_QCOM which is dependent on
> > INTERCONNECT, and INTERCONNECT has below dependency:
> >
> > - DRM_TEGRA [=n] && HAS_IOMEM [=y] && (ARCH_TEGRA [=y] || ARM && COMPILE_TEST [=n]) && COMMON_CLK [=y] && DRM [=m] && OF [=y]
> > - TEGRA_MC [=n] && MEMORY [=y] && (ARCH_TEGRA [=y] || COMPILE_TEST [=n] && COMMON_CLK [=y])
> >
> > Seems to me, it's impossible to enable INTERCONNECT as "m" because the
> > dependency ARCH_TEGRA/OF/COMMON_CLK cannot be configured as "m".
> >
> > Thanks,
> > Leo
> >
> Found the problem, INTERCONNECT_QCOM is modified to tristate internally
> so we can compile it as a module, and the new added icc-common.c uses
> INTERCONNECT_QCOM config to compile, then cause the problem.
Thanks for confirmation, Yiwei.
> So shall we change INTERCONNECT_QCOM config to tristate?
I personally think modularization is the right thing to do; to avoid
misleading you, I would leave your question to interconnect
maintainers.
Thanks,
Leo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] interconnect: qcom: Add the missing MODULE_LICENSE
2022-09-13 10:06 ` Leo Yan
@ 2022-09-13 10:13 ` Georgi Djakov
0 siblings, 0 replies; 5+ messages in thread
From: Georgi Djakov @ 2022-09-13 10:13 UTC (permalink / raw)
To: Leo Yan, Huang Yiwei
Cc: agross, andersson, konrad.dybcio, dmitry.baryshkov, linux-arm-msm,
linux-pm, linux-kernel
Hi Yiwei,
On 13.09.22 13:06, Leo Yan wrote:
> Changed to Bjorn's updated email.
>
> On Tue, Sep 13, 2022 at 04:30:50PM +0800, Huang Yiwei wrote:
>> Hi Leo,
>>
>> On 9/13/2022 Tue 15:08, Leo Yan wrote:
>>> Hi Yiwei,
>>>
>>> On Tue, Sep 13, 2022 at 02:27:21PM +0800, Huang Yiwei wrote:
>>>> Since icc-common.c can be compiled as module, add the missing
>>>> MODULE_LICENSE to avoid compile errors.
>>>
>>> Just curious how you can enable config INTERCONNECT_QCOM as "m"
>>> (module)?
>>>
>>> I checked the config INTERCONNECT_QCOM which is dependent on
>>> INTERCONNECT, and INTERCONNECT has below dependency:
>>>
>>> - DRM_TEGRA [=n] && HAS_IOMEM [=y] && (ARCH_TEGRA [=y] || ARM && COMPILE_TEST [=n]) && COMMON_CLK [=y] && DRM [=m] && OF [=y]
>>> - TEGRA_MC [=n] && MEMORY [=y] && (ARCH_TEGRA [=y] || COMPILE_TEST [=n] && COMMON_CLK [=y])
>>>
>>> Seems to me, it's impossible to enable INTERCONNECT as "m" because the
>>> dependency ARCH_TEGRA/OF/COMMON_CLK cannot be configured as "m".
>>>
>>> Thanks,
>>> Leo
>>>
>> Found the problem, INTERCONNECT_QCOM is modified to tristate internally
>> so we can compile it as a module, and the new added icc-common.c uses
>> INTERCONNECT_QCOM config to compile, then cause the problem.
>
> Thanks for confirmation, Yiwei.
>
>> So shall we change INTERCONNECT_QCOM config to tristate?
>
> I personally think modularization is the right thing to do; to avoid
> misleading you, I would leave your question to interconnect
> maintainers.
Thanks for clarifying! It sounds like the right approach. So this should
be a single patch that allows icc-common.c to be compiled as a module and
also adds MODULE_LICENSE where needed to avoid any compile errors.
Thanks,
Georgi
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-09-13 10:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-13 6:27 [PATCH] interconnect: qcom: Add the missing MODULE_LICENSE Huang Yiwei
2022-09-13 7:08 ` Leo Yan
2022-09-13 8:30 ` Huang Yiwei
2022-09-13 10:06 ` Leo Yan
2022-09-13 10:13 ` Georgi Djakov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).