Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2178645imm; Thu, 21 Jun 2018 08:20:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLdmgKt9U3nRl2+3DJF3xzXyWjtJ+rhbaqetmcxeokhRs7v2PJFcKd+UDlQeZ+680QD6bZ5 X-Received: by 2002:a17:902:43a4:: with SMTP id j33-v6mr29025508pld.118.1529594457584; Thu, 21 Jun 2018 08:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529594457; cv=none; d=google.com; s=arc-20160816; b=qI/H4zQCR55K0oC+cDxJxRv4cP5SU41NMicz/atvDqjLm5Yv27OTahxUXBHwp2zvLA PxgwUA/yrIsW6Zx0RNmDP62B67kySAN6JN6JQHJL+U9UFacmRB5YEG9/sM8fqrYVakH1 6+WXjOJ4MgCzBP+jlvd+95nc8BR4Ku+jIsk6e34yXXTX2VdoiFaLDRA+mQVQ2ffEuao+ /4wlRAKdic3ZcrczxhrcEwbx8Tq7I3qKu7hQPnyf82wZ2eK0ASfDe0hZZg8cSbosMJwh FYbHhMLi2csgiDBfbfwsve/NYFKXSM0pncwFAAOsewdLqUD7of7Hb5Z0yvVLc6eE8j3+ WVIQ== 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=SydX6GfPfa58c7clLETisRruLpiFB82FxhbvU5cc2JM=; b=C/+s4fhxmrYmNmBKtZ69UboSaET8mYwALVm8WixXw3ttZ/yl7DlLl+Plm680vKPBz8 t6MKLaI5snCYOuSQ0RotALa9TZHCXUUjhcMh59WTjM6YxHe3qsL6gBCYG61SrAopHzT3 xE1o6JHoERi4LBhGKK+Ntq1HZ7ta0YuimxAW8M2QJ9LR1ey4JoGNYENNqEyneUTppJ7F krjh6Vam7yDJnQGo7ErhG2kbjtCRMnAp8f+Z9eo9CskZSMAV8AAuNtO3nCXHs0ipEJPY aa1ZDFPdUshOOnts5ePCcMmjIYGly3aDXoMTsYxm6QtsgrN/tVVDNqk8E1G0HCKOFuw1 keeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OFLeoL21; 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 k15-v6si4637606pff.91.2018.06.21.08.20.37; Thu, 21 Jun 2018 08:20:57 -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=OFLeoL21; 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 S933227AbeFUPTf (ORCPT + 99 others); Thu, 21 Jun 2018 11:19:35 -0400 Received: from mail-it0-f52.google.com ([209.85.214.52]:36477 "EHLO mail-it0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932923AbeFUPTd (ORCPT ); Thu, 21 Jun 2018 11:19:33 -0400 Received: by mail-it0-f52.google.com with SMTP id j135-v6so5316032itj.1 for ; Thu, 21 Jun 2018 08:19:33 -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=SydX6GfPfa58c7clLETisRruLpiFB82FxhbvU5cc2JM=; b=OFLeoL21EVBtEhVsOotKSEFw1rdhZTyztqDdnknyuswbzuNyLYtT4LVxkE6/VUzFLo Cxh1292ARrSbM0lZFz1a95nKut1eHHHZGE1lTsp/XC2bAoIgp7h8XQAhNSqPpLaP6qh5 +czTqCFj5wZLE9NzkX0ZZ8h+GOmid1KBv3+zbLAly1CSP9y7C/K/0ZoZI5dSf9uRCfr4 dhfIysdtXKt7i8wZGmqeS/IyIHAnBv5Qa+KjfKWjPMDtDnrFloeUYVv2sLEO7K1n4Jco XOvyyvF1B1visAPidXg01aG+eMHgCmPOd1uWN3t9Zzrv5/rprnj/AGR2CkIoXBA3jmkf O8vQ== 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=SydX6GfPfa58c7clLETisRruLpiFB82FxhbvU5cc2JM=; b=OrWq43VewSfsAjmCwCtMQc9XtONFoFvou8YfmGrovqBpfrEgL3kfgWmwJdXfwcTH2v Lf97NpeyDiAQYOqZVFGm1tAkr9pJ/+k6oFaABXuqya3Ku3dKwa9oiu/09gnUx5pJfVux qF6QGHjaAOkSgJjGwInbUAT8J7XDoVCWgHr4mS8PHcqSJOBVDWQxi3IcvSazcdnGrDLu CSmZhQDstvnK7vV7Vt/NlKzgV1xZ4wZMGaaNaqvrA6DmPDkTMAOR3gba3bfxBW7phLTi njD0MJLIEUpDnO194EP8LpdqSPTXT/acoQG1qK7+jlyZiWf+6sfe3qW56iFwl9bCLQEA caVw== X-Gm-Message-State: APt69E2FZe5WoC057qqlMXGAXmcdqZsTTf0kDsuWgbIU4PYhZSQGayZM oHNI45MPQd1hfk0tcjHJYKDhBr9WnuXHTs8YdP4= X-Received: by 2002:a02:4d4f:: with SMTP id l76-v6mr20874348jab.119.1529594373198; Thu, 21 Jun 2018 08:19:33 -0700 (PDT) MIME-Version: 1.0 References: <3f86f9eb853380686a86a8abe6bda0dd3720ee10.1529506497.git.zong@andestech.com> <20180621064135.GD19319@infradead.org> In-Reply-To: From: Zong Li Date: Thu, 21 Jun 2018 23:19:21 +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! Correct, it should be ptrdiff_t. In kernel, there is no intptr_t definition.