Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1345089 > unrolled thread
| Started by | Paul Gortmaker <paul.gortmaker@windriver.com> |
|---|---|
| First post | 2016-02-27 21:30 +0100 |
| Last post | 2016-03-01 16:40 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] drivers/hwtracing: make coresight-etm-perf.c explicitly non-modular Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-02-27 21:30 +0100
Re: [PATCH] drivers/hwtracing: make coresight-etm-perf.c explicitly non-modular Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-02-29 17:20 +0100
Re: [PATCH] drivers/hwtracing: make coresight-etm-perf.c explicitly non-modular Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-03-01 04:00 +0100
Re: [PATCH] drivers/hwtracing: make coresight-etm-perf.c explicitly non-modular Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-03-01 16:40 +0100
| From | Paul Gortmaker <paul.gortmaker@windriver.com> |
|---|---|
| Date | 2016-02-27 21:30 +0100 |
| Subject | [PATCH] drivers/hwtracing: make coresight-etm-perf.c explicitly non-modular |
| Message-ID | <r6TF0-8jB-21@gated-at.bofh.it> |
In commit 941943cf519f7cacbbcecee5c4ef4b77b466bd5c ("drivers/hwtracing:
make coresight-* explicitly non-modular") we removed all uses of
modular functions/macros in favour of their built-in equivlents in
this subsystem.
However that commit and commit 0bcbf2e30ff2271b54f54c8697a185f7d86ec6e4
("coresight: etm-perf: new PMU driver for ETM tracers") were in flight
at the same time, and hence one new non-modular user of module_init
crept back in. Fix it up like we did all the others.
Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
drivers/hwtracing/coresight/coresight-etm-perf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c
index 36153a77e982..755125f7917f 100644
--- a/drivers/hwtracing/coresight/coresight-etm-perf.c
+++ b/drivers/hwtracing/coresight/coresight-etm-perf.c
@@ -21,7 +21,7 @@
#include <linux/device.h>
#include <linux/list.h>
#include <linux/mm.h>
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/perf_event.h>
#include <linux/slab.h>
#include <linux/types.h>
@@ -390,4 +390,4 @@ static int __init etm_perf_init(void)
return ret;
}
-module_init(etm_perf_init);
+device_initcall(etm_perf_init);
--
2.6.1
[toc] | [next] | [standalone]
| From | Mathieu Poirier <mathieu.poirier@linaro.org> |
|---|---|
| Date | 2016-02-29 17:20 +0100 |
| Message-ID | <r7yIb-5le-47@gated-at.bofh.it> |
| In reply to | #1345089 |
On 27 February 2016 at 13:21, Paul Gortmaker
<paul.gortmaker@windriver.com> wrote:
> In commit 941943cf519f7cacbbcecee5c4ef4b77b466bd5c ("drivers/hwtracing:
> make coresight-* explicitly non-modular") we removed all uses of
> modular functions/macros in favour of their built-in equivlents in
> this subsystem.
>
> However that commit and commit 0bcbf2e30ff2271b54f54c8697a185f7d86ec6e4
> ("coresight: etm-perf: new PMU driver for ETM tracers") were in flight
> at the same time, and hence one new non-modular user of module_init
> crept back in. Fix it up like we did all the others.
>
> Since module_init translates to device_initcall in the non-modular
> case, the init ordering remains unchanged with this commit.
>
> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
> Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
> drivers/hwtracing/coresight/coresight-etm-perf.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c
> index 36153a77e982..755125f7917f 100644
> --- a/drivers/hwtracing/coresight/coresight-etm-perf.c
> +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c
> @@ -21,7 +21,7 @@
> #include <linux/device.h>
> #include <linux/list.h>
> #include <linux/mm.h>
> -#include <linux/module.h>
> +#include <linux/init.h>
> #include <linux/perf_event.h>
> #include <linux/slab.h>
> #include <linux/types.h>
> @@ -390,4 +390,4 @@ static int __init etm_perf_init(void)
>
> return ret;
> }
> -module_init(etm_perf_init);
> +device_initcall(etm_perf_init);
Yes of course - Applied.
Greg, given the triviality of the changes, can you still pick this up
for the next merge window?
Thanks,
Mathieu
> --
> 2.6.1
>
[toc] | [prev] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2016-03-01 04:00 +0100 |
| Message-ID | <r7IHv-33a-1@gated-at.bofh.it> |
| In reply to | #1345949 |
On Mon, Feb 29, 2016 at 09:10:06AM -0700, Mathieu Poirier wrote:
> On 27 February 2016 at 13:21, Paul Gortmaker
> <paul.gortmaker@windriver.com> wrote:
> > In commit 941943cf519f7cacbbcecee5c4ef4b77b466bd5c ("drivers/hwtracing:
> > make coresight-* explicitly non-modular") we removed all uses of
> > modular functions/macros in favour of their built-in equivlents in
> > this subsystem.
> >
> > However that commit and commit 0bcbf2e30ff2271b54f54c8697a185f7d86ec6e4
> > ("coresight: etm-perf: new PMU driver for ETM tracers") were in flight
> > at the same time, and hence one new non-modular user of module_init
> > crept back in. Fix it up like we did all the others.
> >
> > Since module_init translates to device_initcall in the non-modular
> > case, the init ordering remains unchanged with this commit.
> >
> > Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
> > Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> > ---
> > drivers/hwtracing/coresight/coresight-etm-perf.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c
> > index 36153a77e982..755125f7917f 100644
> > --- a/drivers/hwtracing/coresight/coresight-etm-perf.c
> > +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c
> > @@ -21,7 +21,7 @@
> > #include <linux/device.h>
> > #include <linux/list.h>
> > #include <linux/mm.h>
> > -#include <linux/module.h>
> > +#include <linux/init.h>
> > #include <linux/perf_event.h>
> > #include <linux/slab.h>
> > #include <linux/types.h>
> > @@ -390,4 +390,4 @@ static int __init etm_perf_init(void)
> >
> > return ret;
> > }
> > -module_init(etm_perf_init);
> > +device_initcall(etm_perf_init);
>
> Yes of course - Applied.
>
> Greg, given the triviality of the changes, can you still pick this up
> for the next merge window?
Yes, want me to take it directly, or do you have more patches to send
me?
thanks,
greg k-h
[toc] | [prev] | [next] | [standalone]
| From | Mathieu Poirier <mathieu.poirier@linaro.org> |
|---|---|
| Date | 2016-03-01 16:40 +0100 |
| Message-ID | <r7Uz0-2wf-11@gated-at.bofh.it> |
| In reply to | #1346318 |
On 29 February 2016 at 19:56, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Mon, Feb 29, 2016 at 09:10:06AM -0700, Mathieu Poirier wrote:
>> On 27 February 2016 at 13:21, Paul Gortmaker
>> <paul.gortmaker@windriver.com> wrote:
>> > In commit 941943cf519f7cacbbcecee5c4ef4b77b466bd5c ("drivers/hwtracing:
>> > make coresight-* explicitly non-modular") we removed all uses of
>> > modular functions/macros in favour of their built-in equivlents in
>> > this subsystem.
>> >
>> > However that commit and commit 0bcbf2e30ff2271b54f54c8697a185f7d86ec6e4
>> > ("coresight: etm-perf: new PMU driver for ETM tracers") were in flight
>> > at the same time, and hence one new non-modular user of module_init
>> > crept back in. Fix it up like we did all the others.
>> >
>> > Since module_init translates to device_initcall in the non-modular
>> > case, the init ordering remains unchanged with this commit.
>> >
>> > Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
>> > Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
>> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>> > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
>> > ---
>> > drivers/hwtracing/coresight/coresight-etm-perf.c | 4 ++--
>> > 1 file changed, 2 insertions(+), 2 deletions(-)
>> >
>> > diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c
>> > index 36153a77e982..755125f7917f 100644
>> > --- a/drivers/hwtracing/coresight/coresight-etm-perf.c
>> > +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c
>> > @@ -21,7 +21,7 @@
>> > #include <linux/device.h>
>> > #include <linux/list.h>
>> > #include <linux/mm.h>
>> > -#include <linux/module.h>
>> > +#include <linux/init.h>
>> > #include <linux/perf_event.h>
>> > #include <linux/slab.h>
>> > #include <linux/types.h>
>> > @@ -390,4 +390,4 @@ static int __init etm_perf_init(void)
>> >
>> > return ret;
>> > }
>> > -module_init(etm_perf_init);
>> > +device_initcall(etm_perf_init);
>>
>> Yes of course - Applied.
>>
>> Greg, given the triviality of the changes, can you still pick this up
>> for the next merge window?
>
> Yes, want me to take it directly, or do you have more patches to send
> me?
Please go ahead and pick it up - there will be no more changes for the
4.6 cycle.
Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Thanks,
Mathieu
>
> thanks,
>
> greg k-h
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web