Blame include/uapi/linux/atmapi.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Packit Service 3880ab
/* atmapi.h - ATM API user space/kernel compatibility */
Packit Service 3880ab
 
Packit Service 3880ab
/* Written 1999,2000 by Werner Almesberger, EPFL ICA */
Packit Service 3880ab
 
Packit Service 3880ab
Packit Service 3880ab
#ifndef _LINUX_ATMAPI_H
Packit Service 3880ab
#define _LINUX_ATMAPI_H
Packit Service 3880ab
Packit Service 3880ab
#if defined(__sparc__) || defined(__ia64__)
Packit Service 3880ab
/* such alignment is not required on 32 bit sparcs, but we can't
Packit Service 3880ab
   figure that we are on a sparc64 while compiling user-space programs. */
Packit Service 3880ab
#define __ATM_API_ALIGN	__attribute__((aligned(8)))
Packit Service 3880ab
#else
Packit Service 3880ab
#define __ATM_API_ALIGN
Packit Service 3880ab
#endif
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
/*
Packit Service 3880ab
 * Opaque type for kernel pointers. Note that _ is never accessed. We need
Packit Service 3880ab
 * the struct in order hide the array, so that we can make simple assignments
Packit Service 3880ab
 * instead of being forced to use memcpy. It also improves error reporting for
Packit Service 3880ab
 * code that still assumes that we're passing unsigned longs.
Packit Service 3880ab
 *
Packit Service 3880ab
 * Convention: NULL pointers are passed as a field of all zeroes.
Packit Service 3880ab
 */
Packit Service 3880ab
 
Packit Service 3880ab
typedef struct { unsigned char _[8]; } __ATM_API_ALIGN atm_kptr_t;
Packit Service 3880ab
Packit Service 3880ab
#endif