#include .text .type perf_regs_load,%function #define STR_REG(r) str x##r, [x0, 8 * r] #define LDR_REG(r) ldr x##r, [x0, 8 * r] #define SP (8 * 31) #define PC (8 * 32) ENTRY(perf_regs_load) STR_REG(0) STR_REG(1) STR_REG(2) STR_REG(3) STR_REG(4) STR_REG(5) STR_REG(6) STR_REG(7) STR_REG(8) STR_REG(9) STR_REG(10) STR_REG(11) STR_REG(12) STR_REG(13) STR_REG(14) STR_REG(15) STR_REG(16) STR_REG(17) STR_REG(18) STR_REG(19) STR_REG(20) STR_REG(21) STR_REG(22) STR_REG(23) STR_REG(24) STR_REG(25) STR_REG(26) STR_REG(27) STR_REG(28) STR_REG(29) STR_REG(30) mov x1, sp str x1, [x0, #SP] str x30, [x0, #PC] LDR_REG(1) ret ENDPROC(perf_regs_load) cgi/'>cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2017-01-24 15:18:52 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-24 16:26:14 -0800
commit3277953de2f31dd03c6375e9a9f680ac37fc9d27 (patch)
tree6ba22924faa1b82ef2f0277db10a3f5abdc44157 /tools/testing
parent3705ccfdd1e8b539225ce20e3925a945cc788d67 (diff)
mm: do not export ioremap_page_range symbol for external module
Recently, I've found cases in which ioremap_page_range was used incorrectly, in external modules, leading to crashes. This can be partly attributed to the fact that ioremap_page_range is lower-level, with fewer protections, as compared to the other functions that an external module would typically call. Those include: ioremap_cache ioremap_nocache ioremap_prot ioremap_uc ioremap_wc ioremap_wt ...each of which wraps __ioremap_caller, which in turn provides a safer way to achieve the mapping. Therefore, stop EXPORT-ing ioremap_page_range. Link: http://lkml.kernel.org/r/1485173220-29010-1-git-send-email-zhongjiang@huawei.com Signed-off-by: zhong jiang <zhongjiang@huawei.com> Reviewed-by: John Hubbard <jhubbard@nvidia.com> Suggested-by: John Hubbard <jhubbard@nvidia.com> Acked-by: Michal Hocko <mhocko@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing')