From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C2E425771; Wed, 2 Oct 2024 13:22:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727875379; cv=none; b=cHIfGF9QYJUyRdEzgfB9zZ87/BPmOc1Y5aVpBPp77McbeSgfHGO3feJ145HgmzaeWLGJHZy3PZJzK520Qkrr/ZiffVGfUNtHoO/o5CUdzELKk21+u1bJluBmFfSafe0rbgYIc75c0JjsYePnUW/kvTmFlzzOjlYYpjsJy+ytojs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727875379; c=relaxed/simple; bh=jRwdoyLtl52obazByMKr4h9NS4nPy+I9nccRBMOGh70=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H96zMl0Q9bzjA8jkdjfXZu/y6LqSgm6O4N40r0OQtON2J2GFs6i9dPvbkM8T4JhcFZS8cOpRB3NFm+h0KLDhALGMnK49Hz9WUGqs5hCn+foS1zi54r24Q9fPAIH84QmiZL0wPhVQxXJ7aq1kHbhbi4wjRl/9bqCapb9ziN/07wY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ps9wfI1o; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ps9wfI1o" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4D0FC4CEC5; Wed, 2 Oct 2024 13:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727875379; bh=jRwdoyLtl52obazByMKr4h9NS4nPy+I9nccRBMOGh70=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ps9wfI1oUJcjfHLaQQg+7PZJHrQO7dI9TT+QTLAFlllgrnyjkOO4khkUbepghUYN6 XLiFGBO9E8WLmZWbIP4JUlCZUrqF8eHxte85SZ1OztInTaQtDPQv96bfdBIVHYtz/l 6ZC5cntxDOljAC7jGfH0aUAuLEGs0TeZDwfg0hE8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shuah Khan , "John B. Wyatt IV" , "John B. Wyatt IV" , Sasha Levin Subject: [PATCH 6.11 081/695] pm:cpupower: Add missing powercap_set_enabled() stub function Date: Wed, 2 Oct 2024 14:51:19 +0200 Message-ID: <20241002125825.715817053@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241002125822.467776898@linuxfoundation.org> References: <20241002125822.467776898@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: John B. Wyatt IV [ Upstream commit 4b80294fb53845dc5c98cca0c989da09150f2ca9 ] There was a symbol listed in the powercap.h file that was not implemented. Implement it with a stub return of 0. Programs like SWIG require that functions that are defined in the headers be implemented. Fixes: c2294c1496b7 ("cpupower: Introduce powercap intel-rapl library and powercap-info command") Suggested-by: Shuah Khan Signed-off-by: John B. Wyatt IV Signed-off-by: John B. Wyatt IV Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/power/cpupower/lib/powercap.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/power/cpupower/lib/powercap.c b/tools/power/cpupower/lib/powercap.c index a7a59c6bacda8..94a0c69e55ef5 100644 --- a/tools/power/cpupower/lib/powercap.c +++ b/tools/power/cpupower/lib/powercap.c @@ -77,6 +77,14 @@ int powercap_get_enabled(int *mode) return sysfs_get_enabled(path, mode); } +/* + * TODO: implement function. Returns dummy 0 for now. + */ +int powercap_set_enabled(int mode) +{ + return 0; +} + /* * Hardcoded, because rapl is the only powercap implementation - * this needs to get more generic if more powercap implementations -- 2.43.0