Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3222680pxb; Fri, 5 Nov 2021 11:50:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvg7PrFKwIYQaJyvmK3dgaTiuZ2qcCr+HEIvS0CWc5yiXb+Q0GNYhLeLK2eUT8s/wgYIBR X-Received: by 2002:a5e:9408:: with SMTP id q8mr780075ioj.124.1636138201425; Fri, 05 Nov 2021 11:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636138201; cv=none; d=google.com; s=arc-20160816; b=Eaf6b9Hv7C2u8yqhkNO4/JZYpdzz8s2A/eCHUYRhLFnWUPZO16kKtcV2H6vBn5z/cL rg7v6bsNFffz24HCHmOMer6FhYUqzMx2y4W2dYuzZnEgGCjl1gtRNiJ+2FBEcSkngiLU V7k3gIchOV3smRf16M2imqT6VU0rA55bZBd0BU9sojXE9dL7p4gccUEE6tvBS6QNJ0lR UZ3gyHDqwBn+BHbLxjlbclOdd86qNo2sD6cKkcwNa8feh1OZAFQfkiMfg/ZBtsf2CQgf BCKpqzGBphvZxSwKmCIbs3aYNaUJCI9UcuukTD/4dO2H2ySVUeZBweBc/Y1D/IOoj/ud 4IJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=lCuZe3dQjk8AA9sGZyhsQ2hcGD7zy2mrb1RnM0w2mCQ=; b=l7O5z7bf53kcYBLiNKTi6Nvd/wAOHQl2uMcEAv9gwPzAsdgqz8OpN7ICmjoqhMJjY6 sMbzLtV5NBA74kFpQVSHIoIHwgdU5BrgxYHyfxDQcwrj+sFL6njt5uzGsyuemDmav/af 7scgH3Lq4Qo9kGVM8xMmph61SjFJGKmNr2cDFFNEqAMujdtOyF4ISeN3vrw2xEsy0dT7 snNVPke08i9QYbTBCAN48fcMwNVtICrnsoF5rG9hGO67x0JYwmZAFPIowj3CF2f6bW8Y so+XsXB8n+tCXY75qh+6PGcs8jkfIjXrv2Q7yBPTeIsGTIyuHC4vqIJ2h9rFoQ18FQ84 dXaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wmttnqUJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si18426804ill.116.2021.11.05.11.49.47; Fri, 05 Nov 2021 11:50:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wmttnqUJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233297AbhKEQkR (ORCPT + 99 others); Fri, 5 Nov 2021 12:40:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233262AbhKEQkQ (ORCPT ); Fri, 5 Nov 2021 12:40:16 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B803BC061205 for ; Fri, 5 Nov 2021 09:37:36 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id v127so7522696wme.5 for ; Fri, 05 Nov 2021 09:37:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lCuZe3dQjk8AA9sGZyhsQ2hcGD7zy2mrb1RnM0w2mCQ=; b=wmttnqUJcWTUHS2YizWFUn9YVCqVzzcA4HMcr+xT8KfZCKuudjVXoYgczzjMMv8Ta2 E1IkhBK2ZxM6xQ0tG0AqYiRSwDVoc1n+DW9lxQgzcGc0RWdN3hIQ30fpQw/gtsfjbggW Z+szJHpndEPe5oA2J/87AmDQ2gjv8zc65RjIjcW5uGPYs1rrEbze0pyWpCnLZq80NcMR Upwntxv8AIa77rBo5p24AwwKX7IFNg/WsA5QW9X/VRNS9G/N2TZ2nna4n5xh5TS/qiz3 7QkIIQ3K8K7pRbl8hh/m8l4eyH19FWJqGtCyVAaCTYlKabhabULHEfM7L7NitxFkCXe5 uzug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lCuZe3dQjk8AA9sGZyhsQ2hcGD7zy2mrb1RnM0w2mCQ=; b=zM4UP7ZC6+Fbas9rvaWgrhdVn/2jgbwzxxoGF0Ec9cjU9YFMt90DglcvYtXEnkO0hi sBNfT9h2sRN/eQv7OjQChl4vZjxytLCd+bBPNT2Sr6nVnfq4DNFJ8PoqaGJ2Ev3zdH06 39KzlKDTXDymo/7cBbF27AtxC/SAjxeNMS4pn04SUAwPZeQ84R2xXplKVAve/OIwBlLu oQC/iqtiyWzeFsoHRc5QzEL1LD7NUmv5FytFtvzHK9a860bLh1IGRqhJRT01s6dFeQI4 QXSDzjqxJ6x2tqRtf5KbEnMQNSixTEF1eBr8RIQjTfK+xTYwEuRhlkPfLTvCz0Py2ZAf J1Jg== X-Gm-Message-State: AOAM531MbH/pyvKKEU5nQIuYN1cuh5yKw61DQGuHDqirS0cD95dNZJ2P lG63Vu/BhSVPAfTfvcHivNvwjQ== X-Received: by 2002:a05:600c:354b:: with SMTP id i11mr30185548wmq.61.1636130255222; Fri, 05 Nov 2021 09:37:35 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:decd:efcb:adc8:b46? ([2a01:e34:ed2f:f020:decd:efcb:adc8:b46]) by smtp.googlemail.com with ESMTPSA id p19sm2976787wmq.4.2021.11.05.09.37.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Nov 2021 09:37:33 -0700 (PDT) Subject: Re: [PATCH] thermal: Replace pr_warn() with pr_warn_once() in user_space_bind() To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Linus Torvalds References: <2607026.mvXUDI8C0e@kreacher> From: Daniel Lezcano Message-ID: <85dab5a5-733b-6bfa-2ddf-ee4a2f0b7117@linaro.org> Date: Fri, 5 Nov 2021 17:37:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <2607026.mvXUDI8C0e@kreacher> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/11/2021 17:31, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Use pr_warn_once() instead of pr_warn() to print the user space > governor deprecation message in user_space_bind() to reduce the > kernel log noise. > > Fixes: 0275c9fb0eff ("thermal/core: Make the userspace governor deprecated") > Signed-off-by: Rafael J. Wysocki Acked-by: Daniel Lezcano > --- > drivers/thermal/gov_user_space.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > Index: linux-pm/drivers/thermal/gov_user_space.c > =================================================================== > --- linux-pm.orig/drivers/thermal/gov_user_space.c > +++ linux-pm/drivers/thermal/gov_user_space.c > @@ -17,8 +17,8 @@ > > static int user_space_bind(struct thermal_zone_device *tz) > { > - pr_warn("Userspace governor deprecated: use thermal netlink " \ > - "notification instead\n"); > + pr_warn_once("Userspace governor deprecated: use thermal netlink " \ > + "notification instead\n"); > > return 0; > } > > > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog