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 <adrian.hunter@intel.com> Cc: Breno Leitao <leitao@debian.org> Cc: Ian Rogers <irogers@google.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/aErrK24XLUILFH_P@x1 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 8fc50be commit 47684bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/perf/trace/beauty/include/linux

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)