Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3635110imm; Mon, 25 Jun 2018 01:52:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIgxlSKfpq2y+FIUfriTl73xl6sscj4gEBGvohWTLKPRlPxCxwfkKPHyRYkLcAf3GrNTdV7 X-Received: by 2002:aa7:820e:: with SMTP id k14-v6mr12098545pfi.97.1529916724313; Mon, 25 Jun 2018 01:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529916724; cv=none; d=google.com; s=arc-20160816; b=Nq4o4zw4O9Mbm7g2JifgroIe3AfSgrOUtnaCXrPpVHefdrLI7wF8npzSWuPUNKQ4QD FIMtsbWalQbo0rQhXqLw3N4C/DJORPVEvc9O4Nv0pp/JkzpHnDDhVDbp2bi98yc70yLS TNo5mnGgzOziWByVd5mLrgVsvV3w5SxqDNDDpI5ckllkUsYz3RmIH4sDuzi39LOwo+dP Mrq7OkE9XZYwqa2OMHiJJElhNKT708wD4HGwojt3xGYo7Y2n1ir2kOPUn4p/RnOkvLH8 StMaBdR4xMKfahD51ZJbE+oGgtX5oJrxWUEocChusgVt+LLa22Wy0cAVor2IUKy003+k l+3A== 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=6RXWtZFHgLW94s2QfcrS6CKx9nEUHHFIU6SfTkw3jTY=; b=JLnSKw+/aeTr+DqLzRe6h8+kpNViBYJij4pLm0cDxnQYqZu03BVzBcunBFYt4xVb5b Nr1kAsF5Mzk6R8gUFyifqnm4gBFVcKVqSVTwQdlRwiK3E/Jc0+R0D1Eg9r4EGmV3DFor TLu7hdVowApWkp2PGOP7zj96ay8y2W1YsVg5NhMNGK1HjqQuGVMKY7CYvM0Mq/S819Jd EoCyga2+gi435TO+36k6DA0THi9nwzmFbg1w5P2TER7yQhW8JRS+zrvKHmfHdf0aisjM UKB5jzZD/1fkoxHFQcoJDU7P2+HDZ9OP8R1ijNkE7glpLFPc2UY6VRnQM1GlydEvMGck cwug== 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 f5-v6si1007201plr.56.2018.06.25.01.51.49; Mon, 25 Jun 2018 01:52:04 -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 S1754720AbeFYIvB (ORCPT + 99 others); Mon, 25 Jun 2018 04:51:01 -0400 Received: from exmail.andestech.com ([59.124.169.137]:49495 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754449AbeFYIu6 (ORCPT ); Mon, 25 Jun 2018 04:50:58 -0400 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w5P8qSH7009370; Mon, 25 Jun 2018 16:52:28 +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; Mon, 25 Jun 2018 16:49:45 +0800 From: Zong Li To: , , , , CC: Zong Li , Subject: [PATCH v2 0/4] Building for 32-bit RISC-V kernel Date: Mon, 25 Jun 2018 16:49:36 +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 w5P8qSH7009370 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches 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. The fixed width integer types format for Elf_Addr will move to generic header by another patch. For now, there are some warning about unexpected argument of type on RV32I. Change in v1: - Fix some error in v1 - Remove implementation of fixed width integer types format for Elf_Addr. Zong Li (4): 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 arch/riscv/Kconfig | 1 + arch/riscv/include/uapi/asm/elf.h | 9 +++++++-- arch/riscv/kernel/module.c | 22 +++++++++++----------- arch/riscv/mm/init.c | 2 ++ 4 files changed, 21 insertions(+), 13 deletions(-) -- 2.16.1