From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934436Ab2JXH3J (ORCPT ); Wed, 24 Oct 2012 03:29:09 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:39988 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934412Ab2JXH3H (ORCPT ); Wed, 24 Oct 2012 03:29:07 -0400 Date: Wed, 24 Oct 2012 09:29:01 +0200 From: Ingo Molnar To: Yan@gmail.com, Zheng Cc: Peter Zijlstra , linux-kernel@vger.kernel.org Subject: [bug] perf_event_intel_uncore.c build warnings on allnoconfig Message-ID: <20121024072901.GA25890@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org FYI, on a 'make allnoconfig' x86_64 kernel I get a stream of warnings: arch/x86/kernel/cpu/perf_event_intel_uncore.c: In function ‘snbep_uncore_pci_disable_box’: arch/x86/kernel/cpu/perf_event_intel_uncore.c:124:9: warning: ‘config’ is used uninitialized in this function [-Wuninitialized] arch/x86/kernel/cpu/perf_event_intel_uncore.c: In function ‘snbep_uncore_pci_enable_box’: arch/x86/kernel/cpu/perf_event_intel_uncore.c:135:9: warning: ‘config’ is used uninitialized in this function [-Wuninitialized] arch/x86/kernel/cpu/perf_event_intel_uncore.c: In function ‘snbep_uncore_pci_read_counter’: arch/x86/kernel/cpu/perf_event_intel_uncore.c:164:2: warning: ‘count’ is used uninitialized in this function [-Wuninitialized] Please fix this - if pci_read_config_dword() returns an error it should be handled - that will fix these warnings as well. Thanks, Ingo