summaryrefslogtreecommitdiff
path: root/tools/arch/tile/include/asm/barrier.h
blob: 7d3692c3d4ac2bc44265f2273a1e7479d1ebfb86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _TOOLS_LINUX_ASM_TILE_BARRIER_H
#define _TOOLS_LINUX_ASM_TILE_BARRIER_H
/*
 * FIXME: This came from tools/perf/perf-sys.h, where it was first introduced
 * in 620830b6954913647b7c7f68920cf48eddf6ad92, more work needed to make it
 * more closely follow the Linux kernel arch/tile/include/asm/barrier.h file.
 * Probably when we continue work on tools/ Kconfig support to have all the
 * CONFIG_ needed for properly doing that.
 */

#define mb()		asm volatile ("mf" ::: "memory")
#define wmb()		mb()
#define rmb()		mb()

#endif /* _TOOLS_LINUX_ASM_TILE_BARRIER_H */
(patch) treec7ad49d05da0535170c8e7710cd44ae1cecc271f /include/crypto/internal/hash.h parent2d4b21e0a2913612274a69a3ba1bfee4cffc6e77 (diff)
RDMA/cma: Fix unknown symbol when CONFIG_IPV6 is not enabled
If IPV6 has not been enabled in the underlying kernel, we must avoid calling IPV6 procedures in rdma_cm.ko. This requires using "IS_ENABLED(CONFIG_IPV6)" in "if" statements surrounding any code which calls external IPV6 procedures. In the instance fixed here, procedure cma_bind_addr() called ipv6_addr_type() -- which resulted in calling external procedure __ipv6_addr_type(). Fixes: 6c26a77124ff ("RDMA/cma: fix IPv6 address resolution") Cc: <stable@vger.kernel.org> # v4.2+ Cc: Spencer Baugh <sbaugh@catern.com> Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Reviewed-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/crypto/internal/hash.h')