Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1842521imm; Thu, 21 Jun 2018 03:22:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIHZvIa+U5+DdCYbXMUvTqoRmBpOH+AfS0Qlf8NlWC8pmjwU9Gqj6YW0Cm+ER9ejdANHgi0 X-Received: by 2002:a63:7707:: with SMTP id s7-v6mr22423116pgc.426.1529576538833; Thu, 21 Jun 2018 03:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529576538; cv=none; d=google.com; s=arc-20160816; b=udYoXq96cN8IKtN6s4qjQwuyBxg1EAu6a2kbbnZsuAKRaGb+XipWWQQJtKCH3LAFYB 4czLVb9zWs9tDdDfLawtAP4MiVrDBQirFYnbLJNyxD2gNSnHE9+vq4gPnBllm3l3atXA J0Xb6zm2tgG+deHL747kahdte364XXgeg4Su2TVT8JeQxJ0wN9hMi4/0WTqvsIMzoSJK bcs+uHPARmxkEkGn3o9XsarpARxApubuZ+xW83KKEaNCZ21bSN8oMeu1L+IcgripWg43 UTUUISzVHa/6UW1Z3GueGjQG5OplKYvP7CVybCm88Dj/kNIhjBOf43xckBUr68tgl+dc uQQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=NBgL+ViwFa8r8txHckWmMovr4S9rREfX89B7W84X7oE=; b=k3Vaimp3jQe9p/uAZnaNszlG10DpGip227i1VeeWYqgE3RTGph33gr+PVzqJ13IffW lNsxUaxMjNpWchIvwvn3OVMUvDw9/orIjCOCOopHmSTbLtSKxsBEHe4p+jv7CErMqL1e xH1sap8AK2dSzc1m+t+UMnazI8Tt8p8/pCwQ8g0Wai2UlQvKhL4TQj6Xtn9CbAn2UQad wA/wgXK37Yh1fkrnDmyRN4I6DsDVOQIDAmWqy/E1oefkQKsaBDEduv5MAFIU6tnmoiCI eAQBENFMyD3udwRA+jkFMT3FdKArV2siupohNjTLTf3Yjqylcj5tZ+23+g/TdAiBv0yn Ij/w== 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 m12-v6si4364358plt.276.2018.06.21.03.22.03; Thu, 21 Jun 2018 03:22:18 -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 S1754018AbeFUKVX (ORCPT + 99 others); Thu, 21 Jun 2018 06:21:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:53325 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751691AbeFUKVW (ORCPT ); Thu, 21 Jun 2018 06:21:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A031EACEE; Thu, 21 Jun 2018 10:21:21 +0000 (UTC) From: Andreas Schwab To: Christoph Hellwig Cc: Zong Li , palmer@sifive.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, greentime@adnestech.com Subject: Re: [PATCH 5/5] RISC-V: Use fixed width integer types for 32-bit compatible References: <37a6523947397cd72320676030b96926e373d05a.1529506497.git.zong@andestech.com> <20180621064322.GE19319@infradead.org> X-Yow: Do you need any MOUTH-TO-MOUTH resuscitation? Date: Thu, 21 Jun 2018 12:21:19 +0200 In-Reply-To: <20180621064322.GE19319@infradead.org> (Christoph Hellwig's message of "Wed, 20 Jun 2018 23:43:22 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Jun 20 2018, Christoph Hellwig wrote: >> static int apply_r_riscv_32_rela(struct module *me, u32 *location, Elf_Addr v) >> { >> if (v != (u32)v) { >> - pr_err("%s: value %016llx out of range for 32-bit field\n", >> + pr_err("%s: value %016" PRIxX "out of range for 32-bit field\n", >> me->name, v); >> return -EINVAL; > > But in general Linux uXX and sXX values are always the same underlying > fundamental C type. What is the mismatch here? The mismatch is that v is Elf_Addr, not u32. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."