Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3018433imm; Sun, 1 Jul 2018 10:24:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeTJf+UKfUtY91xvqu2Ubj/1oHJd9V9WY1mLDNfXG6fneIgKb51v4zEp/TCxFRL/EBzrfd1 X-Received: by 2002:a17:902:5481:: with SMTP id e1-v6mr16289781pli.7.1530465847560; Sun, 01 Jul 2018 10:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530465847; cv=none; d=google.com; s=arc-20160816; b=whLTmgxeAAdT3zuHyh32UVCILDGqMEsOZAnIm9XMCP9O9BgGmms872Q5R74DlLoRdZ 2Sr6xdOu0zw2tRA94tDCOs/982S66e0VkYPb1eep6PFH6fX1OE+snd3oVj9gcxHGVg5/ +Xy1BE0YkfPQBUhOJpAeZIe/ZfZxjtzooywjAa3BLCkB0jzAUHJ2kGw7xonWfKTcjCbZ ebA63ROw4z6jnOfKR3C2f/9MoF1y7vs9yag+BMQuWTk9758Er3OqDZaIQk3odqLOhDGk iuKy3yWPUkQvlf1Bxi5/6kL+9ZFI0zu+OzGuHw/rte5vJDaSGaL2lf3GUzpCxpBgg6Bx Ni9A== 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=s6t26S3JeTBALhh7NAsctygVaGYSANKmKWgxWca0nuU=; b=bLSH1Z3WK4iK5Gvk2nc06c0hEielwCIKnR3ORUc1/I9F1/pFZp5HVTlk7HKH0jTOjU s+ZpPbF8p9kqrp871AQT5l1Ca/z+t876lLqFsIJ+4Vm9QV11K4er9qvaodHrW5+cZI2V tnJMRoMezKFExqKO0OTAeLXrETuz3l/9H/iEYqDN1VdxfjugGxM0nurG7OkrrPfzpsHZ 4vsGNpj6izd1BsVV/KEa1tlOYstlTDeweRa4csS+CVBwQLd8Pa8jwmXRBonfCpB3Trho gLJLTBqe5Tm5fHzyVaWIxd/TABwPXIygUuyUx4q7ZzQJ7JYNtV5JYuo+YNG9dWhN7qlk z2Lg== 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 s126-v6si15012998pfc.222.2018.07.01.10.23.52; Sun, 01 Jul 2018 10:24:07 -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; 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 S1031517AbeGAQiA (ORCPT + 99 others); Sun, 1 Jul 2018 12:38:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36512 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031397AbeGAQhz (ORCPT ); Sun, 1 Jul 2018 12:37:55 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E0F46A73; Sun, 1 Jul 2018 16:37:53 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, Jia-Ju Bai , Jonathan Corbet , Michael Turquette , Stephen Boyd , Zhang Rui , Eduardo Valentin , Eric Anholt , Stefan Wahren Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergey Senozhatsky , Petr Mladek , Linus Torvalds , Steven Rostedt , linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 4.17 031/220] thermal: bcm2835: Stop using printk format %pCr Date: Sun, 1 Jul 2018 18:20:55 +0200 Message-Id: <20180701160909.632858221@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@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.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Geert Uytterhoeven commit bd2a07f71a1e2e198f8a30cb551d9defe422d83d upstream. Printk format "%pCr" will be removed soon, as clk_get_rate() must not be called in atomic context. Replace it by printing the variable that already holds the clock rate. Note that calling clk_get_rate() is safe here, as the code runs in task context. Link: http://lkml.kernel.org/r/1527845302-12159-3-git-send-email-geert+renesas@glider.be To: Jia-Ju Bai To: Jonathan Corbet To: Michael Turquette To: Stephen Boyd To: Zhang Rui To: Eduardo Valentin To: Eric Anholt To: Stefan Wahren To: Greg Kroah-Hartman Cc: Sergey Senozhatsky Cc: Petr Mladek Cc: Linus Torvalds Cc: Steven Rostedt Cc: linux-doc@vger.kernel.org Cc: linux-clk@vger.kernel.org Cc: linux-pm@vger.kernel.org Cc: linux-serial@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-renesas-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org # 4.12+ Signed-off-by: Geert Uytterhoeven Acked-by: Stefan Wahren Signed-off-by: Petr Mladek Signed-off-by: Greg Kroah-Hartman --- drivers/thermal/broadcom/bcm2835_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/thermal/broadcom/bcm2835_thermal.c +++ b/drivers/thermal/broadcom/bcm2835_thermal.c @@ -213,8 +213,8 @@ static int bcm2835_thermal_probe(struct rate = clk_get_rate(data->clk); if ((rate < 1920000) || (rate > 5000000)) dev_warn(&pdev->dev, - "Clock %pCn running at %pCr Hz is outside of the recommended range: 1.92 to 5MHz\n", - data->clk, data->clk); + "Clock %pCn running at %lu Hz is outside of the recommended range: 1.92 to 5MHz\n", + data->clk, rate); /* register of thermal sensor and get info from DT */ tz = thermal_zone_of_sensor_register(&pdev->dev, 0, data,