From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933326AbcJ3Qv2 (ORCPT ); Sun, 30 Oct 2016 12:51:28 -0400 Received: from mail.kernel.org ([198.145.29.136]:50180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932179AbcJ3QvZ (ORCPT ); Sun, 30 Oct 2016 12:51:25 -0400 Message-Id: <20161030165121.794646459@goodmis.org> User-Agent: quilt/0.63-1 Date: Sun, 30 Oct 2016 12:51:10 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org, linux-rt-users Cc: Thomas Gleixner , Carsten Emde , Sebastian Andrzej Siewior , John Kacur , Paul Gortmaker , Ben Hutchings Subject: [PATCH RT 1/3] genirq: Fix pointer cast warning for randomness on 32-bit architectures References: <20161030165109.200928387@goodmis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=0001-genirq-Fix-pointer-cast-warning-for-randomness-on-32.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.2.83-rt121-rc1 stable review patch. If anyone has any objections, please let me know. ------------------ From: Ben Hutchings gcc warns about casting directly from a 32-bit pointer to u64. In the current rt patch series we cast to unsigned long to avoid the warning, but this fix hasn't been backported to all versions. Link: http://lkml.kernel.org/r/20160929170041.GW10601@decadent.org.uk Signed-off-by: Ben Hutchings Signed-off-by: Steven Rostedt --- kernel/irq/manage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index c4677795d7c8..b1683ba80c88 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -897,7 +897,8 @@ static int irq_thread(void *data) #ifdef CONFIG_PREEMPT_RT_FULL migrate_disable(); add_interrupt_randomness(action->irq, 0, - desc->random_ip ^ (u64) action); + desc->random_ip ^ + (unsigned long) action); migrate_enable(); #endif } -- 2.9.3