Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965124AbbKCUc3 (ORCPT ); Tue, 3 Nov 2015 15:32:29 -0500 Received: from mga03.intel.com ([134.134.136.65]:1240 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932456AbbKCUXG (ORCPT ); Tue, 3 Nov 2015 15:23:06 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,239,1444719600"; d="scan'208";a="677670154" From: Octavian Purdila To: linux-arch@vger.kernel.org Cc: linux-kernel@vger.kernel.org, thehajime@gmail.com, Octavian Purdila Subject: [RFC PATCH 01/28] asm-generic: atomic64: allow using generic atomic64 on 64bit platforms Date: Tue, 3 Nov 2015 22:20:32 +0200 Message-Id: <1446582059-17355-2-git-send-email-octavian.purdila@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1446582059-17355-1-git-send-email-octavian.purdila@intel.com> References: <1446582059-17355-1-git-send-email-octavian.purdila@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1319 Lines: 46 Signed-off-by: Octavian Purdila --- include/asm-generic/atomic64.h | 2 ++ include/linux/atomic.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/atomic64.h b/include/asm-generic/atomic64.h index d48e78c..d0eb6cd 100644 --- a/include/asm-generic/atomic64.h +++ b/include/asm-generic/atomic64.h @@ -12,9 +12,11 @@ #ifndef _ASM_GENERIC_ATOMIC64_H #define _ASM_GENERIC_ATOMIC64_H +#ifndef CONFIG_64BIT typedef struct { long long counter; } atomic64_t; +#endif #define ATOMIC64_INIT(i) { (i) } diff --git a/include/linux/atomic.h b/include/linux/atomic.h index 00a5763..81814c8 100644 --- a/include/linux/atomic.h +++ b/include/linux/atomic.h @@ -451,10 +451,10 @@ static inline int atomic_dec_if_positive(atomic_t *v) } #endif -#include #ifdef CONFIG_GENERIC_ATOMIC64 #include #endif +#include #ifndef atomic64_andnot static inline void atomic64_andnot(long long i, atomic64_t *v) -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/