From patchwork Sun Sep 16 15:05:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Hutchings X-Patchwork-Id: 10601709 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4D29F14DA for ; Sun, 16 Sep 2018 15:05:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43B0B29337 for ; Sun, 16 Sep 2018 15:05:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37A4E293BB; Sun, 16 Sep 2018 15:05:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDCBF29337 for ; Sun, 16 Sep 2018 15:05:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727394AbeIPU2U (ORCPT ); Sun, 16 Sep 2018 16:28:20 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49118 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbeIPU2U (ORCPT ); Sun, 16 Sep 2018 16:28:20 -0400 Received: from ben by shadbolt.decadent.org.uk with local (Exim 4.84_2) (envelope-from ) id 1g1Ybg-00073K-Qi; Sun, 16 Sep 2018 16:05:05 +0100 Date: Sun, 16 Sep 2018 16:05:04 +0100 From: Ben Hutchings To: Len Brown Cc: linux-pm@vger.kernel.org Message-ID: <20180916150504.GB4765@decadent.org.uk> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ben@decadent.org.uk Subject: [PATCH 0/3] tools/power/x86: Enable and fix more warnings X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on shadbolt.decadent.org.uk) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This series enables optimisations and Fortify for turbostat and x86_energy_policy, and fixes the warnings that this produces (with gcc 8, at least). Ben. Ben Hutchings (3): tools: x86_energy_perf_policy: Fix "uninitialized variable" warnings at -O2 tools: turbostat: Add checks for failure of fgets() and fscanf() tools/power/x86: Enable compiler optimisations and Fortify by default tools/power/x86/turbostat/Makefile | 3 +- tools/power/x86/turbostat/turbostat.c | 28 ++++++++++++------- .../power/x86/x86_energy_perf_policy/Makefile | 3 +- .../x86_energy_perf_policy.c | 26 +++++++++-------- 4 files changed, 37 insertions(+), 23 deletions(-)