* [PATCH 0/1] coresight: Fix for v5.12-rc7
@ 2021-04-15 20:24 Mathieu Poirier
2021-04-15 20:24 ` [PATCH 1/1] coresight: etm-perf: Fix define build issue when built as module Mathieu Poirier
2021-04-16 6:54 ` [PATCH 0/1] coresight: Fix for v5.12-rc7 Greg KH
0 siblings, 2 replies; 5+ messages in thread
From: Mathieu Poirier @ 2021-04-15 20:24 UTC (permalink / raw)
To: gregkh
Cc: mike.leach, leo.yan, suzuki.poulose, linux-arm-kernel, linux-kernel
Hi Greg,
Please consider this patch as a fix for v5.12-rc7. Applies cleanly
to your char-misc-linus branch (e49d033bddf5).
Thanks,
Mathieu
Mike Leach (1):
coresight: etm-perf: Fix define build issue when built as module
drivers/hwtracing/coresight/coresight-etm-perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] coresight: etm-perf: Fix define build issue when built as module
2021-04-15 20:24 [PATCH 0/1] coresight: Fix for v5.12-rc7 Mathieu Poirier
@ 2021-04-15 20:24 ` Mathieu Poirier
2021-04-16 6:54 ` [PATCH 0/1] coresight: Fix for v5.12-rc7 Greg KH
1 sibling, 0 replies; 5+ messages in thread
From: Mathieu Poirier @ 2021-04-15 20:24 UTC (permalink / raw)
To: gregkh
Cc: mike.leach, leo.yan, suzuki.poulose, linux-arm-kernel, linux-kernel
From: Mike Leach <mike.leach@linaro.org>
CONFIG_CORESIGHT_SOURCE_ETM4X is undefined when built as module,
CONFIG_CORESIGHT_SOURCE_ETM4X_MODULE is defined instead.
Therefore code in format_attr_contextid_show() not correctly complied
when coresight built as module.
Use IS_ENABLED(CONFIG_CORESIGHT_SOURCE_ETM4X) to correct this.
Fixes: 88f11864cf1d ("coresight: etm-perf: Support PID tracing for kernel at EL2")
Signed-off-by: Mike Leach <mike.leach@linaro.org>
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Link: https://lore.kernel.org/r/20210414194808.22872-1-mike.leach@linaro.org
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
drivers/hwtracing/coresight/coresight-etm-perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c
index 0f603b4094f2..a706ba11b93e 100644
--- a/drivers/hwtracing/coresight/coresight-etm-perf.c
+++ b/drivers/hwtracing/coresight/coresight-etm-perf.c
@@ -52,7 +52,7 @@ static ssize_t format_attr_contextid_show(struct device *dev,
{
int pid_fmt = ETM_OPT_CTXTID;
-#if defined(CONFIG_CORESIGHT_SOURCE_ETM4X)
+#if IS_ENABLED(CONFIG_CORESIGHT_SOURCE_ETM4X)
pid_fmt = is_kernel_in_hyp_mode() ? ETM_OPT_CTXTID2 : ETM_OPT_CTXTID;
#endif
return sprintf(page, "config:%d\n", pid_fmt);
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] coresight: Fix for v5.12-rc7
2021-04-15 20:24 [PATCH 0/1] coresight: Fix for v5.12-rc7 Mathieu Poirier
2021-04-15 20:24 ` [PATCH 1/1] coresight: etm-perf: Fix define build issue when built as module Mathieu Poirier
@ 2021-04-16 6:54 ` Greg KH
2021-04-16 7:36 ` Greg KH
1 sibling, 1 reply; 5+ messages in thread
From: Greg KH @ 2021-04-16 6:54 UTC (permalink / raw)
To: Mathieu Poirier
Cc: mike.leach, leo.yan, suzuki.poulose, linux-arm-kernel, linux-kernel
On Thu, Apr 15, 2021 at 02:24:03PM -0600, Mathieu Poirier wrote:
> Hi Greg,
>
> Please consider this patch as a fix for v5.12-rc7. Applies cleanly
> to your char-misc-linus branch (e49d033bddf5).
It's too late for 5.12-final, and really my tree should be closed for
5.13-rc1 now. I can sneak this in for the merge window, is that ok?
thanks,
greg k-h
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] coresight: Fix for v5.12-rc7
2021-04-16 6:54 ` [PATCH 0/1] coresight: Fix for v5.12-rc7 Greg KH
@ 2021-04-16 7:36 ` Greg KH
2021-04-16 14:46 ` Mathieu Poirier
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2021-04-16 7:36 UTC (permalink / raw)
To: Mathieu Poirier
Cc: mike.leach, leo.yan, suzuki.poulose, linux-arm-kernel, linux-kernel
On Fri, Apr 16, 2021 at 08:54:00AM +0200, Greg KH wrote:
> On Thu, Apr 15, 2021 at 02:24:03PM -0600, Mathieu Poirier wrote:
> > Hi Greg,
> >
> > Please consider this patch as a fix for v5.12-rc7. Applies cleanly
> > to your char-misc-linus branch (e49d033bddf5).
>
> It's too late for 5.12-final, and really my tree should be closed for
> 5.13-rc1 now. I can sneak this in for the merge window, is that ok?
I've just taken it for my 5.13-rc1 set of patches and added a cc: stable
to get it backported to 5.12.1.
thanks,
greg k-h
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] coresight: Fix for v5.12-rc7
2021-04-16 7:36 ` Greg KH
@ 2021-04-16 14:46 ` Mathieu Poirier
0 siblings, 0 replies; 5+ messages in thread
From: Mathieu Poirier @ 2021-04-16 14:46 UTC (permalink / raw)
To: Greg KH
Cc: Mike Leach, Leo Yan, Suzuki K. Poulose, linux-arm-kernel,
Linux Kernel Mailing List
On Fri, 16 Apr 2021 at 01:36, Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Fri, Apr 16, 2021 at 08:54:00AM +0200, Greg KH wrote:
> > On Thu, Apr 15, 2021 at 02:24:03PM -0600, Mathieu Poirier wrote:
> > > Hi Greg,
> > >
> > > Please consider this patch as a fix for v5.12-rc7. Applies cleanly
> > > to your char-misc-linus branch (e49d033bddf5).
> >
> > It's too late for 5.12-final, and really my tree should be closed for
> > 5.13-rc1 now. I can sneak this in for the merge window, is that ok?
>
Yes, definitely.
> I've just taken it for my 5.13-rc1 set of patches and added a cc: stable
> to get it backported to 5.12.1.
>
That will be just fine.
> thanks,
>
> greg k-h
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-04-16 14:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 20:24 [PATCH 0/1] coresight: Fix for v5.12-rc7 Mathieu Poirier
2021-04-15 20:24 ` [PATCH 1/1] coresight: etm-perf: Fix define build issue when built as module Mathieu Poirier
2021-04-16 6:54 ` [PATCH 0/1] coresight: Fix for v5.12-rc7 Greg KH
2021-04-16 7:36 ` Greg KH
2021-04-16 14:46 ` Mathieu Poirier
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).