Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2538291imu; Thu, 29 Nov 2018 06:34:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xgq0+W7ldkssNI3nEKBYhLwTknY3myl9QZOYerZCWi8S9XmE6uIen00KDa0at8mAlXNUYd X-Received: by 2002:a63:b81a:: with SMTP id p26mr1453353pge.433.1543502094453; Thu, 29 Nov 2018 06:34:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543502094; cv=none; d=google.com; s=arc-20160816; b=tkmaakx52OYQ6AfOwGQQ/KBBrF8WwCP+TXQhqpAzAGVjGmTQngIJ2/rfPLjQplEccS BN3sh6ZCSWz+13n7WQj12T7TRGd030JilGmW+v0IJtu4SD/vxtpOw58PagnwbMxXVIzP jMOVPiXmsuFA4aLqTXFyAcgo1dxWCfkLJ77Vlj3tqvWdQ20rkn8t5r2j3y5eEvFXW3rx mGWFmUfXkXZ/AM+lTE1kE4iIbxWUTO5R4Q/jcx5GaKAw2eLn3iUcCJA1dZ4NaXJbQvpV 8jOKIJ97PAsZs2WxWVHvseOIoVCiFcORx23EK06kbP9dztDQhjnOsoj512/H5tyEuOuI RSEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iuau4K2AZxEmoLu8nBQWOnm//pgNufpH2lHKtyQybKc=; b=GaSi0rOK0XAtNgZvVDuV3R2j2LPOvUD1JpDAsOw/Uw5slUqhbQg0YW+9QiIo6oFLbz z+9Uf5sIA1sEnS3JMhT+z8ffsy2n0ze1FLC7fp13ympMvn0o8prIs+EPhVk9YafgLWJT Y/Ym27qC19zs3LgaG/QlSNQqqsktt/+2OIhjPBECHfxYN9Ak/adD+xghzx+lEbPqR5wq xr/lXFIFpvD/mAKES6ptOCtPFdepMg8QCyrmo6gZzlRitzmW990n/kgo5BF2hBLmoiMd wG2kL5a/QeMC6s9fvYTlam1H0GOHuRnLgy6byTCFmdUgqnfwb59iyQYp+GYT7lzmT0l2 5xdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O+790yaj; 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 v19si2305040pfa.80.2018.11.29.06.34.39; Thu, 29 Nov 2018 06:34:54 -0800 (PST) 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=@kernel.org header.s=default header.b=O+790yaj; 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 S2389256AbeK3BhW (ORCPT + 99 others); Thu, 29 Nov 2018 20:37:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:40272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732374AbeK3BhW (ORCPT ); Thu, 29 Nov 2018 20:37:22 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 43C632145D; Thu, 29 Nov 2018 14:31:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501908; bh=8L3yiQU/aX9PatG7wnjOylX6IRYpKQ2uINuwN0e1OCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O+790yajEpoK7R1N7SwKuoBUMpgMz1pM1Hco26Ie7x3xl2w2G9/Aaq+0i4dFSTwhN fX7a/UMsUhEEgBojg/flalWPX0DZ7mKzd5dzUFocbIeHiX3Tev3EQQ8NyE4SGkrMNW 3X1nbJz4GJei7fQ6t5QlnO+mQEciuvsHZxswjVrA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Olof Johansson , Palmer Dabbelt , Sasha Levin Subject: [PATCH 4.19 089/110] RISC-V: Silence some module warnings on 32-bit Date: Thu, 29 Nov 2018 15:13:00 +0100 Message-Id: <20181129135924.850234398@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129135921.231283053@linuxfoundation.org> References: <20181129135921.231283053@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit ef3a61406618291c46da168ff91acaa28d85944c ] Fixes: arch/riscv/kernel/module.c: In function 'apply_r_riscv_32_rela': ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=] arch/riscv/kernel/module.c:23:27: note: format string is defined here arch/riscv/kernel/module.c: In function 'apply_r_riscv_pcrel_hi20_rela': ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=] arch/riscv/kernel/module.c:104:23: note: format string is defined here arch/riscv/kernel/module.c: In function 'apply_r_riscv_hi20_rela': ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=] arch/riscv/kernel/module.c:146:23: note: format string is defined here arch/riscv/kernel/module.c: In function 'apply_r_riscv_got_hi20_rela': ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=] arch/riscv/kernel/module.c:190:60: note: format string is defined here arch/riscv/kernel/module.c: In function 'apply_r_riscv_call_plt_rela': ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=] arch/riscv/kernel/module.c:214:24: note: format string is defined here arch/riscv/kernel/module.c: In function 'apply_r_riscv_call_rela': ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=] arch/riscv/kernel/module.c:236:23: note: format string is defined here Signed-off-by: Olof Johansson Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/kernel/module.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c index 3303ed2cd419..7dd308129b40 100644 --- a/arch/riscv/kernel/module.c +++ b/arch/riscv/kernel/module.c @@ -21,7 +21,7 @@ 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", - me->name, v); + me->name, (long long)v); return -EINVAL; } *location = v; @@ -102,7 +102,7 @@ static int apply_r_riscv_pcrel_hi20_rela(struct module *me, u32 *location, if (offset != (s32)offset) { pr_err( "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", - me->name, v, location); + me->name, (long long)v, location); return -EINVAL; } @@ -144,7 +144,7 @@ static int apply_r_riscv_hi20_rela(struct module *me, u32 *location, if (IS_ENABLED(CMODEL_MEDLOW)) { pr_err( "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", - me->name, v, location); + me->name, (long long)v, location); return -EINVAL; } @@ -188,7 +188,7 @@ static int apply_r_riscv_got_hi20_rela(struct module *me, u32 *location, } else { pr_err( "%s: can not generate the GOT entry for symbol = %016llx from PC = %p\n", - me->name, v, location); + me->name, (long long)v, location); return -EINVAL; } @@ -212,7 +212,7 @@ static int apply_r_riscv_call_plt_rela(struct module *me, u32 *location, } else { pr_err( "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", - me->name, v, location); + me->name, (long long)v, location); return -EINVAL; } } @@ -234,7 +234,7 @@ static int apply_r_riscv_call_rela(struct module *me, u32 *location, if (offset != fill_v) { pr_err( "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", - me->name, v, location); + me->name, (long long)v, location); return -EINVAL; } -- 2.17.1