linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix compiler error in KsSession.cpp on Raspberry Pi 3
@ 2019-06-12  3:59 Alan Mikhak
  2019-06-12  7:34 ` Yordan Karadzhov
  2019-06-12  8:17 ` Yordan Karadzhov
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Mikhak @ 2019-06-12  3:59 UTC (permalink / raw)
  To: linux-trace-devel, rostedt, ykaradzhov; +Cc: Alan Mikhak

Fix compiler error at KsSession.cpp:457:30 on Raspberry Pi 3

Fix by changing the type of local variable 'pos' from uint64_t to
size_t in KsSession::loadDualMarker().

KsSession.cpp:457:30: error: no matching function for call to
‘KsSession::_getMarker(const char [6], uint64_t*)’
  if (_getMarker("markA", &pos)) {
                              ^
In file included from KsSession.cpp:14:0:
KsSession.hpp:97:7: note: candidate:
 bool KsSession::_getMarker(const char*, size_t*)
  bool _getMarker(const char* name, size_t *pos);
       ^~~~~~~~~~
KsSession.hpp:97:7: note:   no known conversion for
argument 2 from ‘uint64_t* {aka long long unsigned int*}’
to ‘size_t* {aka unsigned int*}’

Signed-off-by: Alan Mikhak <amikhak@wirelessfabric.com>
---
 kernel-shark/src/KsSession.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel-shark/src/KsSession.cpp b/kernel-shark/src/KsSession.cpp
index 9d86776..a581bbf 100644
--- a/kernel-shark/src/KsSession.cpp
+++ b/kernel-shark/src/KsSession.cpp
@@ -450,7 +450,7 @@ void KsSession::saveDualMarker(KsDualMarkerSM *dm)
  */
 void KsSession::loadDualMarker(KsDualMarkerSM *dm, KsTraceGraph *graphs)
 {
-	uint64_t pos;
+	size_t pos;
 
 	dm->reset();
 	dm->setState(DualMarkerState::A);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-06-14  4:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-12  3:59 [PATCH] Fix compiler error in KsSession.cpp on Raspberry Pi 3 Alan Mikhak
2019-06-12  7:34 ` Yordan Karadzhov
2019-06-12 12:12   ` Steven Rostedt
2019-06-12 15:31     ` Alan Mikhak
2019-06-12 15:53       ` Steven Rostedt
2019-06-12 15:22   ` Alan Mikhak
2019-06-14  4:40     ` Alan Mikhak
2019-06-12  8:17 ` Yordan Karadzhov
2019-06-12 12:11   ` Steven Rostedt

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).