Skip to content

Commit bf23690

Browse files
sravnborgozbenh
authored andcommitted
powerpc: Fix userspace build of ptrace.h
Build of ptrace.h failed for assembly because it pulls in stdint.h. Use exportable types (__u32, __u64) to avoid the dependency on stdint.h. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Andrey Volkov <avolkov@varma-el.com> Cc: Dave Kleikamp <shaggy@linux.vnet.ibm.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent c2be054 commit bf23690

1 file changed

Lines changed: 14 additions & 18 deletions

File tree

‎arch/powerpc/include/asm/ptrace.h‎

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@
2424
* 2 of the License, or (at your option) any later version.
2525
*/
2626

27-
#ifdef __KERNEL__
2827
#include <linux/types.h>
29-
#else
30-
#include <stdint.h>
31-
#endif
3228

3329
#ifndef __ASSEMBLY__
3430

@@ -364,13 +360,13 @@ static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs,
364360
#ifndef __ASSEMBLY__
365361

366362
struct ppc_debug_info {
367-
uint32_t version; /* Only version 1 exists to date */
368-
uint32_t num_instruction_bps;
369-
uint32_t num_data_bps;
370-
uint32_t num_condition_regs;
371-
uint32_t data_bp_alignment;
372-
uint32_t sizeof_condition; /* size of the DVC register */
373-
uint64_t features;
363+
__u32 version; /* Only version 1 exists to date */
364+
__u32 num_instruction_bps;
365+
__u32 num_data_bps;
366+
__u32 num_condition_regs;
367+
__u32 data_bp_alignment;
368+
__u32 sizeof_condition; /* size of the DVC register */
369+
__u64 features;
374370
};
375371

376372
#endif /* __ASSEMBLY__ */
@@ -386,13 +382,13 @@ struct ppc_debug_info {
386382
#ifndef __ASSEMBLY__
387383

388384
struct ppc_hw_breakpoint {
389-
uint32_t version; /* currently, version must be 1 */
390-
uint32_t trigger_type; /* only some combinations allowed */
391-
uint32_t addr_mode; /* address match mode */
392-
uint32_t condition_mode; /* break/watchpoint condition flags */
393-
uint64_t addr; /* break/watchpoint address */
394-
uint64_t addr2; /* range end or mask */
395-
uint64_t condition_value; /* contents of the DVC register */
385+
__u32 version; /* currently, version must be 1 */
386+
__u32 trigger_type; /* only some combinations allowed */
387+
__u32 addr_mode; /* address match mode */
388+
__u32 condition_mode; /* break/watchpoint condition flags */
389+
__u64 addr; /* break/watchpoint address */
390+
__u64 addr2; /* range end or mask */
391+
__u64 condition_value; /* contents of the DVC register */
396392
};
397393

398394
#endif /* __ASSEMBLY__ */

0 commit comments

Comments
 (0)