Skip to content

Commit 47684bf

Browse files
committed
perf beauty: Update copy of linux/socket.h with the kernel sources
To pick the changes in: b1e9049 ("net: pass const to msg_data_left()") That don't result in any changes in the tables generated from that header. This silences this perf build warning: Warning: Kernel ABI header differences: diff -u tools/perf/trace/beauty/include/linux/socket.h include/linux/socket.h Please see tools/include/uapi/README for details. Cc: Adrian Hunter <[email protected]> Cc: Breno Leitao <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/aErrK24XLUILFH_P@x1 Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 8fc50be commit 47684bf

File tree

1 file changed

+1
-1
lines changed
  • tools/perf/trace/beauty/include/linux

1 file changed

+1
-1
lines changed

tools/perf/trace/beauty/include/linux/socket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static inline struct cmsghdr * cmsg_nxthdr (struct msghdr *__msg, struct cmsghdr
168168
return __cmsg_nxthdr(__msg->msg_control, __msg->msg_controllen, __cmsg);
169169
}
170170

171-
static inline size_t msg_data_left(struct msghdr *msg)
171+
static inline size_t msg_data_left(const struct msghdr *msg)
172172
{
173173
return iov_iter_count(&msg->msg_iter);
174174
}

0 commit comments

Comments
 (0)