Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1935418ima; Thu, 25 Oct 2018 07:15:33 -0700 (PDT) X-Google-Smtp-Source: AJdET5fe/MoqbvkUz5DKzcgU649tOyVd0ZpJuWi3olPo8IZMt1gZ/5r2Z01PSwixXo9hesfRgyQc X-Received: by 2002:a17:902:a717:: with SMTP id w23-v6mr1716963plq.24.1540476933584; Thu, 25 Oct 2018 07:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540476933; cv=none; d=google.com; s=arc-20160816; b=thJboxExp1+l5HOGUn5obHlQwqHlYL6zeS3eMwS0psu2cJQSOTfLvgxMrseYNpEye7 5aDclBcMKE3BfUNaLRHyVAnDqFFaFbKLv8gjznbLMlU8ewPbTwzuzeNj6aCDR1vKCrU8 AsbB3kt9kwaGYTiKnYeVJlp37VFYtDhEJ2hEo8lo740qScYiwiXseF6oXLagsXrKOfBf X0Wn6pyJ5LHkfreVxENd4n5cKVAL+l3oCdRbiS0n2MusIwwhM7GvivQ9HyDP++tCBiKD y5VDH+hiQHovpTV4XBFYBWPLp8lNjXwxEYYT942lsVwTIfNcJtv8od557aLTgybF2dAF dAAQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t1/Z7wp7aOFZP91InPltLmK1D6d8pTCR4H3WA1M/T+A=; b=SHD/0Wjp582CgKunyu1yhgNzEzuPO5Yr1rWKHYRoWu1ZG2+ubIhQO9F1LKLzhhHyrY AQgsBJ9xb4DLyQy1uxRMSO2NhcFDUYwyaFQinSHFHiS+J07mxtbzAPQowZTbWtaMh+v4 q9qN/xGgBHWpn+jxq7vw9azRI2Ve5WUuBigB1sBtISpA/wfBa69VXqqvmWzpM0cbTitW 4sWZrl8BEYSvc3BCc9nN59yXnvFdA9I+PUJX0ydOapqYdZoNaEYNj2KOw4URc+Lvw8dM 6uS6SpH1KEjXIPp2kBUughMcTh0Aq0qLYPqKixnCKG4TZQZ2wcG0TWdzl81K0CqZYxUJ 6AHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f2inf8dx; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14-v6si8102750pgc.238.2018.10.25.07.15.16; Thu, 25 Oct 2018 07:15:33 -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=@kernel.org header.s=default header.b=f2inf8dx; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728121AbeJYWoV (ORCPT + 99 others); Thu, 25 Oct 2018 18:44:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:53048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728110AbeJYWoU (ORCPT ); Thu, 25 Oct 2018 18:44:20 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CD53D20848; Thu, 25 Oct 2018 14:11:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476685; bh=oBILSpFjPQVIx8vSZXYdE9YuEdMisgHIni1h9IC6BCM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f2inf8dxDnt+eBzMzfBMyb9fLKCDtffSuC8gxDXtql72EeM5DGdkp7Z+ctC5BUpdb mD6fN1BXcu251QuWCLqNAk6O4aW/gNE8DRM9kqQkB8ajdZPtfcXwiu34hGxvOfe2jW cnLajarDK+HgNkQ/EgjcRkasRjHvaOe+UCCDW4yQ= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Steve French , Sasha Levin Subject: [PATCH AUTOSEL 4.14 22/46] cifs: Use ULL suffix for 64-bit constant Date: Thu, 25 Oct 2018 10:10:29 -0400 Message-Id: <20181025141053.213330-22-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141053.213330-1-sashal@kernel.org> References: <20181025141053.213330-1-sashal@kernel.org> 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 From: Geert Uytterhoeven [ Upstream commit 3995bbf53bd2047f2720c6fdd4bf38f6d942a0c0 ] On 32-bit (e.g. with m68k-linux-gnu-gcc-4.1): fs/cifs/inode.c: In function ‘simple_hashstr’: fs/cifs/inode.c:713: warning: integer constant is too large for ‘long’ type Fixes: 7ea884c77e5c97f1 ("smb3: Fix root directory when server returns inode number of zero") Signed-off-by: Geert Uytterhoeven Signed-off-by: Steve French Reviewed-by: Aurelien Aptel Signed-off-by: Sasha Levin --- fs/cifs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 2cd0b3053439..d01cbca84701 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -712,7 +712,7 @@ cifs_get_file_info(struct file *filp) /* Simple function to return a 64 bit hash of string. Rarely called */ static __u64 simple_hashstr(const char *str) { - const __u64 hash_mult = 1125899906842597L; /* a big enough prime */ + const __u64 hash_mult = 1125899906842597ULL; /* a big enough prime */ __u64 hash = 0; while (*str) -- 2.17.1