Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1966164ima; Thu, 25 Oct 2018 07:41:17 -0700 (PDT) X-Google-Smtp-Source: AJdET5fk0/yPUElYtRWn7qgQzUBXX/roThgL9vrNEQM29V5VjfvrMG9aS3npJzjKsd7GbUNbmbPY X-Received: by 2002:a62:d405:: with SMTP id a5-v6mr1814539pfh.174.1540478477490; Thu, 25 Oct 2018 07:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540478477; cv=none; d=google.com; s=arc-20160816; b=W679EuN2ioYBCAc+z3YyjHmSWidMzdxkLeTFXh+FBc6u4tdIKEfLmqU8z1yqYsCIH1 yuec39SJcoUaMEutpxjSIvYn606HerwSWLSJAXPKUzCyelQzmyFkmumDtI8vTSV+eucD 7e9JKcr3j/Kx4jiX/JXkMUQWvO5/iuIFWlI3dXDzlAKBtCA15lC2xQ87OggkjrnC497h f4jg/dw1T8uznd1igW/4RWwCmeP8K0ofnnJVId1HiTM14elXcTjqMpAbkqvzmKkEZQjR H9xzNH9KRWe3+uCttxsvZiKzIrSp71nSTYJ11+XOo3emHc0aptoRhU9eBkz+tly3Tlo2 wN6A== 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=67un4EK2Uwuf6GclklbDKAVbZNE8HIyMFEULn+SxYXs=; b=FQ7wejg7qXtRrgadKesDm/3EbhT+QwrGEMNV0vi4fxGkxg/oDArPuNQZ3F53J6UOmh 5/JBfYNyzlXVqSbLX71p/1BVLzj8bTRCKI+PplB8nVVGi5Jf9fVoaLI1LqLjaJJ07U5D s47sEwRYms193KoSzIcOWeugMVMCQ5GDpqjB0pyFVfVDDuSDWeRfYb01vhc8CPqEfyPC ygFIUjTS08T/ZJvacgIqlQF7iypb+AsqC6eRa2N1jZbFoLkpJZ+y5UANUQFdyz43cw+m sUvn+AdtXv+3OJ/ClOteewqgfDBBNkD/s2jgfdtjlU8BiXkGkqLIqEtVEOAW9UcKk/2B VuPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YOd+bkBf; 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 d73-v6si7986665pfe.190.2018.10.25.07.41.01; Thu, 25 Oct 2018 07:41:17 -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=YOd+bkBf; 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 S1729345AbeJYWtV (ORCPT + 99 others); Thu, 25 Oct 2018 18:49:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:58466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728104AbeJYWtV (ORCPT ); Thu, 25 Oct 2018 18:49:21 -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 B4F3D20848; Thu, 25 Oct 2018 14:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476984; bh=IHB1PiIXJkhHNYTgMHoa0wylMx94HHp6TSUzeEQF7fo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YOd+bkBfvh7WQUR6MGJkgrG4wFJhZl7G9oFDrvG86vu13wsmKcWbNQFbsrut+oKCi OaOfBLHuB14crimA3rR1TAFzmzLRlENv9VPTSv8VeegJFQhnLN5QSd3rgmiLeZY9b+ g6R5DofTc5bSwc2oI+Z3i5kDkBGHIERhpxD7Kan8= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Steve French , Sasha Levin Subject: [PATCH AUTOSEL 4.9 82/98] cifs: Use ULL suffix for 64-bit constant Date: Thu, 25 Oct 2018 10:14:07 -0400 Message-Id: <20181025141423.213774-82-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141423.213774-1-sashal@kernel.org> References: <20181025141423.213774-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 a012f70bba5c..77a18fe10805 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -704,7 +704,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