/* * Common low level (register) ptrace helpers * * Copyright 2004-2011 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #ifndef __ASM_GENERIC_PTRACE_H__ #define __ASM_GENERIC_PTRACE_H__ #ifndef __ASSEMBLY__ /* Helpers for working with the instruction pointer */ #ifndef GET_IP #define GET_IP(regs) ((regs)->pc) #endif #ifndef SET_IP #define SET_IP(regs, val) (GET_IP(regs) = (val)) #endif static inline unsigned long instruction_pointer(struct pt_regs *regs) { return GET_IP(regs); } static inline void instruction_pointer_set(struct pt_regs *regs, unsigned long val) { SET_IP(regs, val); } #ifndef profile_pc #define profile_pc(regs) instruction_pointer(regs) #endif /* Helpers for working with the user stack pointer */ #ifndef GET_USP #define GET_USP(regs) ((regs)->usp) #endif #ifndef SET_USP #define SET_USP(regs, val) (GET_USP(regs) = (val)) #endif static inline unsigned long user_stack_pointer(struct pt_regs *regs) { return GET_USP(regs); } static inline void user_stack_pointer_set(struct pt_regs *regs, unsigned long val) { SET_USP(regs, val); } /* Helpers for working with the frame pointer */ #ifndef GET_FP #define GET_FP(regs) ((regs)->fp) #endif #ifndef SET_FP #define SET_FP(regs, val) (GET_FP(regs) = (val)) #endif static inline unsigned long frame_pointer(struct pt_regs *regs) { return GET_FP(regs); } static inline void frame_pointer_set(struct pt_regs *regs, unsigned long val) { SET_FP(regs, val); } #endif /* __ASSEMBLY__ */ #endif 0401b9bf6959031854'>refslogtreecommitdiff
path: root/include/acpi/acpi_drivers.h
3dddcf5b81b22'>feature/test-glibc.c
diff options
AgeCommit message (Expand)AuthorFilesLines
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2017-01-29 12:40:52 +0100
committerKalle Valo <kvalo@codeaurora.org>2017-01-31 09:08:52 +0200
commit33e962c8871f015f5c8978384553dddcf5b81b22 (patch)
tree43aff96c2ee21d9e0fa2018457778a4de52053cd /tools/build/feature/test-glibc.c
parent575ddce0507789bf9830d089557d2199d2f91865 (diff)
rt2x00: fix clk_get call
clk_get() takes two arguments and might return ERR_PTR(), so we have to nullify pointer on that case, to do not break further call to clk_get_rate(). Reported-by: Felix Fietkau <nbd@nbd.name> Fixes: 34db70b92fae ("rt2x00: add copy of clk for soc devices") Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/build/feature/test-glibc.c')