Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752247AbbBVUIJ (ORCPT ); Sun, 22 Feb 2015 15:08:09 -0500 Received: from mail-la0-f54.google.com ([209.85.215.54]:37025 "EHLO mail-la0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752041AbbBVUIH (ORCPT ); Sun, 22 Feb 2015 15:08:07 -0500 From: Rabin Vincent To: jesper.nilsson@axis.com Cc: linux-kernel@vger.kernel.org, linux-cris-kernel@axis.com, Rabin Vincent Subject: [PATCH] CRISv10: remove redundant macros from system.h Date: Sun, 22 Feb 2015 21:07:17 +0100 Message-Id: <1424635637-24681-1-git-send-email-rabin@rab.in> X-Mailer: git-send-email 2.1.4 In-Reply-To: <20150220002841.GB11399@axis.com> References: <20150220002841.GB11399@axis.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1184 Lines: 36 All of these are either unused or already provided by other headers, so they can be removed. Signed-off-by: Rabin Vincent --- Should be applied before the patch which uses the generic atomic bitops to ensure that CRISv10 is bisectable. arch/cris/include/arch-v10/arch/system.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/cris/include/arch-v10/arch/system.h b/arch/cris/include/arch-v10/arch/system.h index 935fde3..9b5580f 100644 --- a/arch/cris/include/arch-v10/arch/system.h +++ b/arch/cris/include/arch-v10/arch/system.h @@ -36,12 +36,4 @@ static inline unsigned long _get_base(char * addr) return 0; } -#define nop() __asm__ __volatile__ ("nop"); - -#define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) -#define tas(ptr) (xchg((ptr),1)) - -struct __xchg_dummy { unsigned long a[100]; }; -#define __xg(x) ((struct __xchg_dummy *)(x)) - #endif -- 2.1.4 -- 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/