Received: by 10.223.185.116 with SMTP id b49csp1122812wrg; Fri, 23 Feb 2018 12:19:26 -0800 (PST) X-Google-Smtp-Source: AH8x224O1hJLUo6KZQZ+kitKbLCC780G9iQQjRHcKD69CaMBKxfGqYBAOj1omryW1SAFTZDmKjFa X-Received: by 10.98.76.215 with SMTP id e84mr2911299pfj.45.1519417166198; Fri, 23 Feb 2018 12:19:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417166; cv=none; d=google.com; s=arc-20160816; b=gZj+lFTvKkT/0HRxWoQBgRS1bI3vJo0Cyx+nQgAqLXYVHLgEFrG9UvB3mNreQgTJ0H +IorKTKzHmeX5OOqpmI2mTH8F3s7iVPBYjkc8Hb6zGZe+nc3HPh40IbF+rB7o2DCofy4 lbLOjnD1q1OroG7+lPiu8+qvF79nO5YYfeYGQiOJ73v0UCTDXauck0XV1R8JncXhCf/A dtfQG3INa/Rwtl8rUft2yTwLeMQcnDVxaXB3l/TJTNA4G68RQ8XP1d7x6Cj+phS4zNSW LsQE27An+l2zQrO93QV9M7tMZ65LJt6RzGS/CeuaHFCqMcdIRkp4SOMtCMmpwBm+7cJv tKXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Ru0rIDU/dLq4ulzLQZ80LKlSpHrSRNs6g9SiqYtw7ic=; b=Dw4HvPLbpgt337DYpGW0c4+KoympadoklyLPL0CP/nfXamu9INRV4rdq5ERdYXK821 iUuVv+6ugYKyLoQ1sZG+qxLvMZYNFSVSWZrpD4UZNM6K1JsRi9hC5nN9epViKs/AOWnI 94EdSAoIg2npRdYkK1sY/qH1duo2ixRuEI1J2AKpcLn2+hyNeD0oZ9mAsAW3fUzljpcL pqYqiJShvgOP+AD0PfpFP6/cIoWbXc976+zAozUuzXtKOoHS9VvMBie5IjlACuZfa6Kx sA1nEX4iTTQ0mo+9OyRl3U9d6gei3VBXm5Ee3yLjArSWBNJhYh++u2vJsXrOsNYX9gYA pt1g== ARC-Authentication-Results: i=1; mx.google.com; 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 b3si1908011pgc.496.2018.02.23.12.19.11; Fri, 23 Feb 2018 12:19:26 -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; 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 S1755254AbeBWUSh (ORCPT + 99 others); Fri, 23 Feb 2018 15:18:37 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39834 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754299AbeBWSju (ORCPT ); Fri, 23 Feb 2018 13:39:50 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 915141182; Fri, 23 Feb 2018 18:39:49 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Arnd Bergmann Subject: [PATCH 4.4 151/193] isdn: sc: work around type mismatch warning Date: Fri, 23 Feb 2018 19:26:24 +0100 Message-Id: <20180223170349.616543647@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann This driver shows warnings on many architectures: drivers/isdn/sc/init.c: In function 'identify_board': drivers/isdn/sc/init.c:484:2: error: passing argument 1 of 'readl' makes pointer from integer without a cast [-Werror] In newer kernels, it was completely removed, but for the 4.4-stable series, let's just shut up that warning by adding an extra variable to do the necessary type cast. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/isdn/sc/init.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/drivers/isdn/sc/init.c +++ b/drivers/isdn/sc/init.c @@ -441,6 +441,7 @@ static int identify_board(unsigned long RspMessage rcvmsg; ReqMessage sndmsg; HWConfig_pl hwci; + void __iomem *rambase_sig = (void __iomem *)rambase + SIG_OFFSET; int x; pr_debug("Attempting to identify adapter @ 0x%lx io 0x%x\n", @@ -481,7 +482,7 @@ static int identify_board(unsigned long */ outb(PRI_BASEPG_VAL, pgport); msleep_interruptible(1000); - sig = readl(rambase + SIG_OFFSET); + sig = readl(rambase_sig); pr_debug("Looking for a signature, got 0x%lx\n", sig); if (sig == SIGNATURE) return PRI_BOARD; @@ -491,7 +492,7 @@ static int identify_board(unsigned long */ outb(BRI_BASEPG_VAL, pgport); msleep_interruptible(1000); - sig = readl(rambase + SIG_OFFSET); + sig = readl(rambase_sig); pr_debug("Looking for a signature, got 0x%lx\n", sig); if (sig == SIGNATURE) return BRI_BOARD; @@ -501,7 +502,7 @@ static int identify_board(unsigned long /* * Try to spot a card */ - sig = readl(rambase + SIG_OFFSET); + sig = readl(rambase_sig); pr_debug("Looking for a signature, got 0x%lx\n", sig); if (sig != SIGNATURE) return -1;