Received: by 10.223.164.202 with SMTP id h10csp103138wrb; Wed, 29 Nov 2017 17:59:00 -0800 (PST) X-Google-Smtp-Source: AGs4zMZIbJcRf09yHfs57dzSgBdes7NLGzE+EO/jx3OiCDMLeuzaTj0fhJovcdACDJFLF3PpT91m X-Received: by 10.98.215.19 with SMTP id b19mr4910058pfh.94.1512007140417; Wed, 29 Nov 2017 17:59:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512007140; cv=none; d=google.com; s=arc-20160816; b=XA9TAudIeFLyRnwHyEN2mlT0rwxfOHZypwDUyy3b78OBQVate3H7inEYfYEfu0++ES fG4ij5K6sZ6G6DGPqpeXxMbIYmPhjtqA8oZ9KqH6BO6AvqQ8RtHTXU07yHZ5XEctM8mO nB/kUyj+t+AbGgw1+hbWKC9lSTvE1zvWUZxo6gzU7jJviLnvl0Wf6J5uZV88jhadMqmn 9gQtIpONZKuW4mwww7aLd7whgLEla+jaBzQdthtXqV3DRB5pLFxV+j37yX8bNJqxYSIm TSs6Us/Cx9WogSNXEE8Stbsjc6+SbVr+rGdPdAvJ9aYoPyrUM+3zzGW2UJpCckQcNI3e Pu4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=q6Wk2iJXSxkmLf618BxrinbU5PyqHAYfrXb2TigaRJY=; b=s5eaT/H5z6obPDPUitet2d4SWI6jukE2kKKt7EyFHFdB73HRTkY8G7wSb5G53JlOwX YvIVM26Tgu7J+LIe1ByrDRyvzvSOghQPV3RE0JkXX8EEDE7HGdED6phpcs67nQAEmhsB +9bnVjmgvo95Fi5q2pg6FZjeqDtToa5cI8VpyCFwwbfccd3B2E3QarUClTNBZwgd25B1 1VZVQHWrEw5aUohOEOngwMF7sO684lrWlF9B0ZKEBguASr0vRU+s9fMoWR0LxqQwl94N zA5u7JfFYdsvnavCGZcZ5yOR9MA/7B6Eaqbm+Nasnq2f0lmRPj4yGlqU+Qxc3IAhq/T2 ERxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=EHnVKCxA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si2308700pfj.295.2017.11.29.17.58.47; Wed, 29 Nov 2017 17:59:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=EHnVKCxA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753599AbdK3B5y (ORCPT + 99 others); Wed, 29 Nov 2017 20:57:54 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:44510 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753234AbdK3Bzn (ORCPT ); Wed, 29 Nov 2017 20:55:43 -0500 Received: by mail-pg0-f68.google.com with SMTP id j9so2343397pgc.11 for ; Wed, 29 Nov 2017 17:55:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=q6Wk2iJXSxkmLf618BxrinbU5PyqHAYfrXb2TigaRJY=; b=EHnVKCxAqUuFvePsR7y6UZsQzByXi1uSfzGQey9LTwcHxft+179ef7sZdeJD4BgnyW 4FbndJpvgRD0I6Jv5YP2R68mf8r+zUKPYRm7oxCoM61/3KpnTEfmR++r9IUqicOaOUbW yk2yJKcDmaCJ5TyE6sVFIl1TI57H0ZclsSfW1qIsXb1GSfYnA3YMwUWDwwDWOVL/whzi 2Wr1pUR2vQCseAkJZbCX+EGinw3XY+lmk96nCx2YvojW852m8UyxBg4XzVBh80pkZsPp DALQ73mofJM47NKHsNsmA2GlfD07TbRQHZYcnLXZZfslRgMPB/7gObqfqFrfla83RPIe 69bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=q6Wk2iJXSxkmLf618BxrinbU5PyqHAYfrXb2TigaRJY=; b=DF+XB7FE7BsVqRchY8PMwGf8XCcC2jDJO6Wb1Xpi7Se5NCurvxLLUGeU09kFyd756N mL/s3XU5/sdo4r7AJMIpBn0JR3f6LJnmqjhHQJN87eOijZ0O2228UeOYGDcdCavQaO4o FR3w2M9QpWkiZJeEJPG8p8Hq4K7dtQEAvMLZ4gFxYDW9qbRw6dLkQT36kjIPaeE+bwL3 2pPhz4QcYclldIAbr1KdtH+5SR5ciBYKWkOKQmj+lRSAKX+4xOM4DRmRpFm81U0Sn+QD 0/SmAb1dE2z8h1ysonAvKaDYnGqQSJjtHpfiw3ZdHtZiUpJX3YnCMT6JH8jbyqT41oyw 9DZw== X-Gm-Message-State: AJaThX7TH/YnVzSe1VnzWm2OHxeKgSGyUG14E/AmKsm8PBI+JSi8wMww ptA6sY/q1SeNCkdFcUWrde1z7Q== X-Received: by 10.99.106.134 with SMTP id f128mr842888pgc.430.1512006942819; Wed, 29 Nov 2017 17:55:42 -0800 (PST) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by smtp.gmail.com with ESMTPSA id l80sm5178177pfb.124.2017.11.29.17.55.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 17:55:40 -0800 (PST) From: Olof Johansson To: Palmer Dabbelt Cc: Albert Ou , patches@groups.riscv.org, linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH 02/10] RISC-V: use RISCV_{INT,SHORT} instead of {INT,SHORT} for asm macros Date: Wed, 29 Nov 2017 17:55:13 -0800 Message-Id: <20171130015521.1289-3-olof@lixom.net> X-Mailer: git-send-email 2.8.6 In-Reply-To: <20171130015521.1289-1-olof@lixom.net> References: <20171130015521.1289-1-olof@lixom.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org INT and SHORT are used by some drivers that pull in the include files, so prefixing helps avoid namespace conflicts. Other constructs in the same file already uses this. Fixes, among others, these warnings with allmodconfig: ../sound/core/pcm_misc.c:43:0: warning: "INT" redefined #define INT __force int Signed-off-by: Olof Johansson --- arch/riscv/include/asm/asm.h | 12 ++++++------ arch/riscv/include/asm/bug.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/riscv/include/asm/asm.h b/arch/riscv/include/asm/asm.h index 6cbbb6a..5ad4cb6 100644 --- a/arch/riscv/include/asm/asm.h +++ b/arch/riscv/include/asm/asm.h @@ -58,17 +58,17 @@ #endif #if (__SIZEOF_INT__ == 4) -#define INT __ASM_STR(.word) -#define SZINT __ASM_STR(4) -#define LGINT __ASM_STR(2) +#define RISCV_INT __ASM_STR(.word) +#define RISCV_SZINT __ASM_STR(4) +#define RISCV_LGINT __ASM_STR(2) #else #error "Unexpected __SIZEOF_INT__" #endif #if (__SIZEOF_SHORT__ == 2) -#define SHORT __ASM_STR(.half) -#define SZSHORT __ASM_STR(2) -#define LGSHORT __ASM_STR(1) +#define RISCV_SHORT __ASM_STR(.half) +#define RISCV_SZSHORT __ASM_STR(2) +#define RISCV_LGSHORT __ASM_STR(1) #else #error "Unexpected __SIZEOF_SHORT__" #endif diff --git a/arch/riscv/include/asm/bug.h b/arch/riscv/include/asm/bug.h index c3e1376..bfc7f09 100644 --- a/arch/riscv/include/asm/bug.h +++ b/arch/riscv/include/asm/bug.h @@ -27,8 +27,8 @@ typedef u32 bug_insn_t; #ifdef CONFIG_GENERIC_BUG_RELATIVE_POINTERS -#define __BUG_ENTRY_ADDR INT " 1b - 2b" -#define __BUG_ENTRY_FILE INT " %0 - 2b" +#define __BUG_ENTRY_ADDR RISCV_INT " 1b - 2b" +#define __BUG_ENTRY_FILE RISCV_INT " %0 - 2b" #else #define __BUG_ENTRY_ADDR RISCV_PTR " 1b" #define __BUG_ENTRY_FILE RISCV_PTR " %0" @@ -38,7 +38,7 @@ typedef u32 bug_insn_t; #define __BUG_ENTRY \ __BUG_ENTRY_ADDR "\n\t" \ __BUG_ENTRY_FILE "\n\t" \ - SHORT " %1" + RISCV_SHORT " %1" #else #define __BUG_ENTRY \ __BUG_ENTRY_ADDR -- 2.8.6 From 1585425700602422784@xxx Wed Nov 29 18:22:51 +0000 2017 X-GM-THRID: 1585425700602422784 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread