Re: linux-next: manual merge of the ftrace tree with Linus' tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 26, 2024 at 6:36 PM Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
>
> Hi all,
>
> Today's linux-next merge of the ftrace tree got a conflict in:
>
>   kernel/trace/trace_uprobe.c
>
> between commit:
>
>   10cdb82aa77f ("uprobes: turn trace_uprobe's nhit counter to be per-CPU one")
>
> from Linus' tree and commit:
>
>   ca088d067ebd ("uprobes: make trace_uprobe->nhit counter a per-CPU one")
>
> from the ftrace tree.

Hm... sounds like two versions of my patch were applied to two
different trees or something? FWIW, 10cdb82aa77f is the right one cto
pick (I didn't check which one is in Linus' tree), but the differences
are tiny.

diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c
index 87b468d93f6a..c3df411a2684 100644
--- a/kernel/trace/trace_uprobe.c
+++ b/kernel/trace/trace_uprobe.c
@@ -834,7 +834,7 @@ static int probes_profile_seq_show(struct seq_file
*m, void *v)

        nhits = 0;
        for_each_possible_cpu(cpu) {
-               nhits += READ_ONCE(*per_cpu_ptr(tu->nhits, cpu));
+               nhits += per_cpu(*tu->nhits, cpu);
        }

        seq_printf(m, "  %s %-44s %15lu\n", tu->filename,

>
> I fixed it up (I just used the version from Linus' tree) and can carry the
> fix as necessary. This is now fixed as far as linux-next is concerned,
> but any non trivial conflicts should be mentioned to your upstream
> maintainer when your tree is submitted for merging.  You may also want
> to consider cooperating with the maintainer of the conflicting tree to
> minimise any particularly complex conflicts.
>
> --
> Cheers,
> Stephen Rothwell





[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux