Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1672766imm; Thu, 21 Jun 2018 00:13:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIBKnW7X7AruHh2sij52ilW/QNtGa7ESRGDfEjqXjI6Xgwuf9XoF23lGtciXkFyJGymdLp9 X-Received: by 2002:a62:418b:: with SMTP id g11-v6mr26220256pfd.51.1529565234460; Thu, 21 Jun 2018 00:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529565234; cv=none; d=google.com; s=arc-20160816; b=gGlkuebMXtg1CSlth55spLw3cN+lULXB+IAh9/RShgxXPeZEsUwR/K3sxirLxpV+B3 Uj3XDtJNAGfV8mFzU4dnFTVLhI8YVvOP2dfNyrQBfGdGxlVa5YCnMKJiHCVE58crGATU tpr4p0FG4lowK5GzZh3o1T5WM3/gT8QFxABm/eSxa4u5Kr97m70rNjUarBta54euyRoO goSvkt+FYIBFr2LqjxaiGacelEpFYPGk/+ATMnjl7Fsv1ImnylcP6X/T/CoRo2cAdH65 Ppkj0dNOKNiBkdOG9VQtGKAK4WTH00I0YiHMd/cONIDK67bDn0qV3F5mWEIclTDCL1i9 4QVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=pxV8RoOD28Fu2nOTdk0UVglhM7eKj6B4j+iYGsVJqyI=; b=cXS+lDnESjZYefgN4shT3wrhqrOMTl+VeEWebDxkXRwi95TedbgdFPPQfg9Zrm5DEf krbBj5Ug8MSIUStXMfi6V5KMwzBG01LRdw6+oHjdpNWNnOAp51A50fUujXjHbLoZg4gB jw1mheVsiHXICBsTM9DXTStfrdofmohFAimJ8sli/UnLBXmfl1MeuJngFA9zirSJclvr VVUeXecXHf25yW/z76/HNllNGhxt6c1yYxmJNrwjYNqODqj8R1SMtF0bmU2HTf7RKfpv mxgm+t+jiA1nxelNOvEqY9ikki5+mIxb9wOOD9Dcs+88K4ekeCamFIQyksnGoRSn5l6V nxlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d4nglDB9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k91-v6si4155743pld.248.2018.06.21.00.13.38; Thu, 21 Jun 2018 00:13:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d4nglDB9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753987AbeFUHM6 (ORCPT + 99 others); Thu, 21 Jun 2018 03:12:58 -0400 Received: from mail-io0-f173.google.com ([209.85.223.173]:36617 "EHLO mail-io0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147AbeFUHM5 (ORCPT ); Thu, 21 Jun 2018 03:12:57 -0400 Received: by mail-io0-f173.google.com with SMTP id k3-v6so2085800iog.3 for ; Thu, 21 Jun 2018 00:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pxV8RoOD28Fu2nOTdk0UVglhM7eKj6B4j+iYGsVJqyI=; b=d4nglDB9u06BmV+Zd5jMtV8HVhY7r2eKQKIZq+/l/enW6z41n7sRlsU2g3rqLLpVFC //PviufgZIr7LHoovlSQFkd7aABjLjygtQFkvONftxkZOfRhnE9SMXQf8pWr3MYW8bYJ bvZNWoMmKo56ld3+xoqzNuWmU7UBNw1muxk+GoUtnyf+OiKygCd2rI2Y9OjYQVSGaAi1 TqA9Q8JJeXmKXPtYAq6g+chdohWNPNKbgRY8Vl/Z82bi+EM+12KXNcGdUTL2SxEOQvvb yOcDPPwdNJuVRAP+GM++0cyWT8mzdyLvR7Mhsax67LaP70AK2kMioTTQMhc3Zfv36Ha6 3rjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pxV8RoOD28Fu2nOTdk0UVglhM7eKj6B4j+iYGsVJqyI=; b=RQhAJyC/wknGSeILaBK3ASxQWMFBYWBXCoyGZT1owD8+hcpvriaFHOGHpZ38lKeMEi z3GfC4vUVsGElSmKN8uGpTXiSNL8OjuE8Lxubk8+G8WOiQLq5iGSWJqEPtD4X4JTXDPK XoD3F5GMy0PdxJb4C2+zt6Mosxjj031XorZixRt4KxBBp+qocH+Vy2o/vB+zGa4B58B5 BwKrG3BNdpWKl0RjcwLpeJwAze930o8wm0fnvGNkuFpytuyVr0xMDvA1Lc8hZApJNYQl o+nio/ueCoBEoHeLzjCtr2h4Kz8t13w2kq83mUUbwm1RgzqFQ+erRV2OV5L0o0BRBtDm bMrw== X-Gm-Message-State: APt69E3nUwMXYZpbbem8v0Q1GAr5BpmYcTczJH5vACDoGAdfMlVvntSe dZFdpHB94+/4v603kH4fGbcWXspbM95IgIODoU8= X-Received: by 2002:a6b:5316:: with SMTP id h22-v6mr19593205iob.63.1529565176374; Thu, 21 Jun 2018 00:12:56 -0700 (PDT) MIME-Version: 1.0 References: <3f86f9eb853380686a86a8abe6bda0dd3720ee10.1529506497.git.zong@andestech.com> <20180621064135.GD19319@infradead.org> In-Reply-To: <20180621064135.GD19319@infradead.org> From: Zong Li Date: Thu, 21 Jun 2018 15:12:45 +0800 Message-ID: Subject: Re: [PATCH 4/5] RISC-V: Change variable type for 32-bit compatible To: hch@infradead.org Cc: Zong Li , linux-riscv@lists.infradead.org, Palmer Dabbelt , Linux Kernel Mailing List , aou@eecs.berkeley.edu, greentime@adnestech.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > - s64 offset = (void *)v - (void *)location; > > + uintptr_t offset = (void *)v - (void *)location; > > s64 is signed, uintptr is not, so this might change behavior and needs > an explanation. > Yes, it should be intptr_t. Thanks!