[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190528142424.19626-4-geert@linux-m68k.org>
Date: Tue, 28 May 2019 16:24:22 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Igor Konopko <igor.j.konopko@...el.com>,
David Howells <dhowells@...hat.com>,
"Mohit P . Tahiliani" <tahiliani@...k.edu.in>,
Takashi Sakamoto <o-takashi@...amocchi.jp>,
Eran Ben Elisha <eranbe@...lanox.com>,
Matias Bjorling <mb@...htnvm.io>,
Jiri Pirko <jiri@...lanox.com>,
"David S . Miller" <davem@...emloft.net>,
Jamal Hadi Salim <jhs@...atatu.com>,
Cong Wang <xiyou.wangcong@...il.com>,
Clemens Ladisch <clemens@...isch.de>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, Joe Perches <joe@...ches.com>,
Arnd Bergmann <arnd@...db.de>,
Dan Carpenter <dan.carpenter@...cle.com>
Cc: linux-block@...r.kernel.org, netdev@...r.kernel.org,
linux-afs@...ts.infradead.org, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: [PATCH 3/5] net: sched: pie: Use ULL suffix for 64-bit constant
With gcc 4.1, when compiling for a 32-bit platform:
net/sched/sch_pie.c: In function ‘drop_early’:
net/sched/sch_pie.c:116: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:138: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:144: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:147: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c: In function ‘pie_qdisc_enqueue’:
net/sched/sch_pie.c:173: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c: In function ‘calculate_probability’:
net/sched/sch_pie.c:371: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:372: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:377: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:382: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:397: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:398: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:399: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:407: warning: integer constant is too large for ‘long’ type
net/sched/sch_pie.c:414: warning: integer constant is too large for ‘long’ type
Fix this by adding the missing "ULL" suffix.
Fixes: 3f7ae5f3dc5295ac ("net: sched: pie: add more cases to auto-tune alpha and beta")
Signed-off-by: Geert Uytterhoeven <geert@...ux-m68k.org>
---
net/sched/sch_pie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sched/sch_pie.c b/net/sched/sch_pie.c
index 8fa129d3943e32ad..f3424833e6a7cd3b 100644
--- a/net/sched/sch_pie.c
+++ b/net/sched/sch_pie.c
@@ -31,7 +31,7 @@
#define QUEUE_THRESHOLD 16384
#define DQCOUNT_INVALID -1
-#define MAX_PROB 0xffffffffffffffff
+#define MAX_PROB 0xffffffffffffffffULL
#define PIE_SCALE 8
/* parameters used */
--
2.17.1
Powered by blists - more mailing lists