Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0351b98 authored by Ethan Chen's avatar Ethan Chen Committed by TARKZiM
Browse files

uapi: Define __BITS_PER_LONG based on compiler target

* We may compile 32-bit ARM code against these kernel headers in many
  situations, so provide a compiler-defined method of obtaining the width
  of long, rather than relying on a CFLAG define which may not be set in
  all cases.

Change-Id: Iac5e48200d70f1258ab3caca1a8f1eb6e8f7f2d3
parent 21ff5f05
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -16,7 +16,11 @@
#ifndef __ASM_BITSPERLONG_H
#define __ASM_BITSPERLONG_H

#ifdef __aarch64__
#define __BITS_PER_LONG 64
#else
#define __BITS_PER_LONG 32
#endif

#include <asm-generic/bitsperlong.h>