Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3209430pxb; Fri, 5 Nov 2021 11:35:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+YtHsShPRpkC0q/Ho7PwSn6Pm0aAwxmuZeaENUOGQzrA56yNf+LN46aDTNyl7afz42fJU X-Received: by 2002:a92:360c:: with SMTP id d12mr38008851ila.172.1636137302583; Fri, 05 Nov 2021 11:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636137302; cv=none; d=google.com; s=arc-20160816; b=CEd0/81RB4Iiof5q/NdcVbURw3gF1BvtZYIrMyoePrt039mzgfwPy2H+blOZnzaP/q Lu/9TxlOq7+ZukMTQRQe86el/y2rQ0FIz84DJVx2rkBEjAFYcDcyINny7zcgqPFoJMiS fTvDbDKEeO/UpDXRcR7Hj1V5X0krd/eI3ZkB6FKmzdtFPCmViDSiNru0fPTTtyKxafky Gy1pO4GVRdIWv31HybRFfZTLDGaKBj+jX37qSK7smF1gnG46VW667NM3CmtzQR/2CALS eKE02gMOo+w9aGFZnEfSSsiDfsR7UwDLyPteUcBk99IcFyyQPoW9RDwpu5vvQPsuI2x7 gpJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=faN8PX1AYA5xtZ2qbaAsmiromJrfvRq81H6D9pPljqs=; b=e8VdS7mv+wmrZYWmz93NbmUvpNx6cSMiC1vJvI1FSE5X4sRathLG6VX8dePOuKcv2s UQc2N+g7rCBa98yRURpLggTVomvN1IEua3qaSylRCaZW2P2z8v0+96Tvx524f+GtC3pe QCIKg1RbiqLxS9qfDUaC+RkA8JhPPqyGbeRXZB0MO5gbw9/y+CmuE13as7qU7kXQ0EZb qWi5retS0YF4lVxwGXtNxa16ki7TLfl4DJ/8N1EFSRCj73bY+rbBMc3J23805Gtk6y+2 pkrlhzVsgSsgP4QFOFR1uB521OwAE14Ia0CvRKX/0CLO35klzqRu/HzBsQtOsj34vysp PURQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si9010717ilg.6.2021.11.05.11.34.48; Fri, 05 Nov 2021 11:35:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233752AbhKEQej (ORCPT + 99 others); Fri, 5 Nov 2021 12:34:39 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:50326 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233613AbhKEQei (ORCPT ); Fri, 5 Nov 2021 12:34:38 -0400 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 3.0.0) id c24e8bb4fbc41704; Fri, 5 Nov 2021 17:31:56 +0100 Received: from kreacher.localnet (unknown [213.134.175.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 97E4F66542E; Fri, 5 Nov 2021 17:31:55 +0100 (CET) From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Daniel Lezcano , Linus Torvalds Subject: [PATCH] thermal: Replace pr_warn() with pr_warn_once() in user_space_bind() Date: Fri, 05 Nov 2021 17:31:54 +0100 Message-ID: <2607026.mvXUDI8C0e@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.175.123 X-CLIENT-HOSTNAME: 213.134.175.123 X-VADE-SPAMSTATE: spam:low X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvuddrtdeigdekjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegoufhprghmkfhppfgvthifohhrkhculddvhedtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepvddufedrudefgedrudejhedruddvfeenucfuphgrmhfkphfpvghtfihorhhkpedvudefrddufeegrddujeehrdduvdefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudejhedruddvfedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopegurghnihgvlhdrlhgviigtrghnoheslhhinhgrrhhordho rhhgpdhrtghpthhtohepthhorhhvrghlughssehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg X-DCC--Metrics: v370.home.net.pl 1024; Body=4 Fuz1=4 Fuz2=4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; }