Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5852862ybl; Tue, 27 Aug 2019 10:32:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqye4U7jqUATDNR6dtxCSVPswLdb+JIwpnqgyXKblhgCFGP0zrT5B4v2WYdJsNPEqzuK2qwF X-Received: by 2002:a17:90a:3be5:: with SMTP id e92mr50891pjc.86.1566927172878; Tue, 27 Aug 2019 10:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566927172; cv=none; d=google.com; s=arc-20160816; b=ifLU646TroRfUS3gdhD7Le7gI+9QreKvxswFS1yvYIsCJ2uBI3mxKM5iPq7ROPdGI9 52AsijAeukettK1NN5UFXyyQKzoDt74IzVHU/9iCsLnb4PLLy/pOchBWqcQvEIaJaXFb zGUlTH/Y50IH26Hn2gdjKWow3dWb4Y5qe39qV+byYxY6qlZNIDyKgLlsQxvZhlUn6Dwd iH/mzFf7on1ygYLjYaK1awzfCxleA/xb32ob5g2TCHGQ+Qd0lTV6TY+InTdmWxDiS6g7 y41kUYPGuvMMUbGA8jnJtw1lAHeoBiPdQH6SRaie44qstcqODLuSHfZS5pcDFS59FIsb EUzg== 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; bh=lp7s9jTNmH1XT1CzC7jr2iIgsMFcBH+5gm5QDo4mxuA=; b=esZ76iIH7/h1BEIzHsGkjRf6IcE4bLYYHKlZRVP1jNS+EH7tWqDi2S6Q6K/1CbftJ7 vNN3z2uvX+H9ee0lpdAEdMRCADkFEhH1+J+90ynUOHF//QzPmwf1+GKn1Pyag8WvbiCe 6yhyF37rDD8O81e93RDDFxBZZ3k4iGLjhdiEm9hzIianrIC4b8BA74laNikOXWoAEJv3 agE1LWgyU5ON4QX0Us97XJc/s0OTpp18PpuimaDxJkUJJzI2mtiY0oGdcT0NLRrMNvDm xWXHQl0jXccPuoLL7iXRohri+FH36Qb9nK+7ZP1ps0t/shyEQHQ6tNA3i6Hu/D/6HfIW tZzg== 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 u9si12406152pgm.167.2019.08.27.10.32.36; Tue, 27 Aug 2019 10:32:52 -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 S1730366AbfH0RaE (ORCPT + 99 others); Tue, 27 Aug 2019 13:30:04 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:44943 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbfH0RaE (ORCPT ); Tue, 27 Aug 2019 13:30:04 -0400 Received: by mail-ot1-f68.google.com with SMTP id w4so19417598ote.11; Tue, 27 Aug 2019 10:30:04 -0700 (PDT) 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=lp7s9jTNmH1XT1CzC7jr2iIgsMFcBH+5gm5QDo4mxuA=; b=A9zTBHxM0WmsWDF/Tetl+EN3Yah3T+tNfwcNEWVUUyjVeNF2f+FaBQXvAAV4//qual 29A+5Iwt83YIZX52UxCgeTxkyoIjMG5b2NLxsFeI/ySo+xySNaLANB3YRCZipN3MpA+o csKBGCyKHkR8E5ugYuQsvwD1L9/h8/YMlX08mBOVY1rADiX7RxlPhbvYZbqg/ofB0Hq7 YiBeyr6VTsIZpfyy4td/3+VAKxmfdz37KtgOzEjB0KAnIs8iEDL+UYPyXfjjkZE7SHMg 6I5hAFXd7HMuhpyJJ4arU+NLbUdHahBo4m8Rn0pJmRllMnlfxuBYFUF20RMx9gGUg5N9 zOzQ== X-Gm-Message-State: APjAAAV4Hw9YYxOwaC3Ma9lhuawhTtMu7CXp2iV2llfngB5/OJNJyz9h 0n00HSgWcZJJfVcRMsDQZ6J3wRwb9BH7Vb/xaYc= X-Received: by 2002:a9d:61c3:: with SMTP id h3mr21336576otk.39.1566927003738; Tue, 27 Aug 2019 10:30:03 -0700 (PDT) MIME-Version: 1.0 References: <20190819100526.13788-1-geert@linux-m68k.org> <581e7d79ed75484beb227672b2695ff14e1f1e34.camel@perches.com> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 27 Aug 2019 19:29:52 +0200 Message-ID: Subject: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse To: David Laight Cc: Joe Perches , Bernard Metzler , Doug Ledford , Jason Gunthorpe , linux-rdma , Linux Kernel Mailing List 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 Hi David, On Tue, Aug 27, 2019 at 4:17 PM David Laight wrote: > From: Geert Uytterhoeven > > Sent: 19 August 2019 18:15 > ... > > > I think a cast to unsigned long is rather more common. > > > > > > uintptr_t is used ~1300 times in the kernel. > > > I believe a cast to unsigned long is much more common. > > > > That is true, as uintptr_t was introduced in C99. > > Similarly, unsigned long was used before size_t became common. > > > > However, nowadays size_t and uintptr_t are preferred. > > Isn't uintptr_t defined by the same standard as uint32_t? I believe so. > If the former is allowed so should the latter. You mean the other way around? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds