Thread (4 messages) 4 messages, 4 authors, 2025-03-24

Re: [PATCH] tools/perf/arch/powerpc/util: Fix is_compat_mode build break in ppc64

From: Namhyung Kim <namhyung@kernel.org>
Date: 2025-03-24 16:44:00
Also in: linux-perf-users

On Fri, 21 Mar 2025 15:37:26 +0530, Likhitha Korrapati wrote:
Commit 54f9aa1092457 ("tools/perf/powerpc/util: Add support to
handle compatible mode PVR for perf json events") introduced
to select proper JSON events in case of compat mode using
auxiliary vector. But this caused a compilation error in ppc64
Big Endian.

arch/powerpc/util/header.c: In function 'is_compat_mode':
arch/powerpc/util/header.c:20:21: error: cast to pointer from
integer of different size [-Werror=int-to-pointer-cast]
   20 |         if (!strcmp((char *)platform, (char *)base_platform))
      |                     ^
arch/powerpc/util/header.c:20:39: error: cast to pointer from
integer of different size [-Werror=int-to-pointer-cast]
   20 |         if (!strcmp((char *)platform, (char *)base_platform))
      |

[...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help