Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1441433imm; Wed, 20 Jun 2018 18:50:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIn9rjA6qvM+Hgau0ggdznltO8Cygr3DEt88cbB33f3gBaEI6VZg6unFrpsByW5yttq1X62 X-Received: by 2002:a17:902:88:: with SMTP id a8-v6mr25814173pla.156.1529545805805; Wed, 20 Jun 2018 18:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529545805; cv=none; d=google.com; s=arc-20160816; b=s4SySG7MaqiUSiFcLQpZnX81PLccsnESO3UHmM8LKA+872nb+MAR8eMBBTCQJgoXbu KqOmTEyAAxNbESkvAAPjoE+QJyOl7k+jfiBi1NEDx6r/8FDJZ76girEzWQx5VEofRw5T Xl/GoMssNbe0yF0b4mxUz9btquj5ub3udjHn5HsQeRKlZkQwMM4jlI7JkyPRsfP5fd2Y M9+DcXusFXGez7Q861e2D3p7Gdy+FTDLE1DamXECn8yzgx2p3OWm+gCPCR0tW39EgrZV CDvbYIASezZieDnYTpMY+P1eCph/MNpYdxoWPZvrllrE86HjDebMms64Km2hwgUXT0MP VVzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=3aXyljXAH/WFnitbb/j9RwQ+PLsNcev9dIKEWA/7Vfk=; b=AMCB6ErzEd3EWBiuOoG41o1wuo/oSsyxmp/T7Anli8CHrpBwO5o3zkPoN6d9F8Tp+2 E3jAyMmCMJhTDjQVJbqg/FB3TeOmO0Z8E5zvV9RIJrMn8V8iRYfyQvG3HJTd55V6DsAS HfVWHQMzdoQpDWF/1yg0jRAgKTkqKT7UJ0G/HpqxvJ4jyMes+L92Q6csgj7KIw5ePp0f vXX9ZCtJYiTgeLJNyHQaiolSzA2t3TouKtYsw54j8LQNA9FFpbekguXBf9NQAqWbeNq4 zVi81wq55F95cbGQfCQGMIjz0n2pOujGaDeHVV/EjWHY2Pn9/VMlw/xH7DSSittJccEi 4zdg== ARC-Authentication-Results: i=1; mx.google.com; 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 h69-v6si3522120pfc.206.2018.06.20.18.49.52; Wed, 20 Jun 2018 18:50:05 -0700 (PDT) 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; 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 S1754513AbeFUBsN (ORCPT + 99 others); Wed, 20 Jun 2018 21:48:13 -0400 Received: from exmail.andestech.com ([59.124.169.137]:63720 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754331AbeFUBsK (ORCPT ); Wed, 20 Jun 2018 21:48:10 -0400 Received: from ATCSQR.andestech.com (localhost [127.0.0.2] (may be forged)) by ATCSQR.andestech.com with ESMTP id w5L1fvso038394 for ; Thu, 21 Jun 2018 09:41:57 +0800 (GMT-8) (envelope-from zong@andestech.com) Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w5L1faYs038340; Thu, 21 Jun 2018 09:41:36 +0800 (GMT-8) (envelope-from zong@andestech.com) Received: from atcsqa06.andestech.com (10.0.1.85) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Thu, 21 Jun 2018 09:41:57 +0800 From: Zong Li To: , , , CC: Zong Li , Subject: [PATCH 0/5] Building for 32-bit RISC-V kernel Date: Thu, 21 Jun 2018 09:41:40 +0800 Message-ID: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.1.85] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w5L1faYs038340 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches are for building 32-bit RISC-V kernel. - Fix the compile errors and warnings on RV32I. - Fix some incompatible problem on RV32I. - Add format.h for compatible of print format. Zong Li (5): RISC-V: Add conditional macro for zone of DMA32 RISC-V: Select GENERIC_UCMPDI2 on RV32I RISC-V: Add definiion of extract symbol's index and type for 32-bit RISC-V: Change variable type for 32-bit compatible RISC-V: Use fixed width integer types for 32-bit compatible arch/riscv/Kconfig | 1 + arch/riscv/include/asm/format.h | 20 ++++++++++++++++++++ arch/riscv/include/uapi/asm/elf.h | 9 +++++++-- arch/riscv/kernel/module.c | 35 ++++++++++++++++++----------------- arch/riscv/mm/init.c | 3 +++ 5 files changed, 49 insertions(+), 19 deletions(-) create mode 100644 arch/riscv/include/asm/format.h -- 2.16.1