Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp802846rdg; Fri, 13 Oct 2023 01:12:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/MeK+gVFHj2yjcTyi1Jd0gc+2SnvIguj+AnX8JnUVRxXvocJIwC+dpC9Rmw1W0nkz6D8I X-Received: by 2002:a05:6870:7ec2:b0:1e9:7037:6445 with SMTP id wz2-20020a0568707ec200b001e970376445mr8575055oab.20.1697184754202; Fri, 13 Oct 2023 01:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697184754; cv=none; d=google.com; s=arc-20160816; b=yj+I5IvZyIeDZU1Xy4/F2HyMP3cz1EL3lBlokSBwW4Pxz4f+p6ECMaqRdKmD6Nsj1a 5t1VnP2Qh5XrjvdB9iuv5ILTyQijHbOURgy3GChQgihydWNvbCq4w6Y1Jsnte1kBgz7d 8B5+hSveoOXavCJHxAm4uGKUzO88Wx8fxBERxdxDXrkA2JavxH5V1Opful8bfam+QhXL 5qXexrHmwImB2UzRFLa49fz10FcPPj63TRcsT7TZxdZJqlx7J/9v+56nLTpU2M3k6zgM aTpubsgnUMyo8IJubQBuiRyWRMG4ptLfUx1/H/1zU5guo+8eFE9gkSBoyBV3bbSFCbo3 GB5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SGC52X+6EfdOM44b7esjFLrzvMzDKL2p4mgyAiVtcQk=; fh=jk63bKqwDZVUky+fuQ6Aa03f582a5cxti7f73P+gtWE=; b=VSGEwuHeMJSsRqVN5SUKAf3+GhnKmqUnMQH0LQcXmaWNVDflacaUCjX+KonK86RhIa ScbBbA5Pcj1n74PtT77kWl/PGBybuiLoFxUB57fLvwb9tDqJXcry2a/3ujrhDe4td3RB odSpTUglxjVjXDF2EZVU6JNTR90HBPYZm4qRS0PX7YR6K7A5KCdSG685Aw7iZlb9aB0T sK5jk27Cuy37xiQu7+Sr+4NGctGqQrfhDOd/yqhWiWisT0iW0aGa2KHo/7TibnUy6yU9 SeS44lwf/mrZj2OrHfunKQSbJ2qN+jonimQm/EVndglsbJmcZbHpeIUSFPVUz4Mm049b n2mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=erGPeaKd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b0059b70e69eddsi3871076pgv.300.2023.10.13.01.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:12:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=erGPeaKd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 66EC9808FA7B; Fri, 13 Oct 2023 01:12:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230044AbjJMIMP (ORCPT + 99 others); Fri, 13 Oct 2023 04:12:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbjJMIMO (ORCPT ); Fri, 13 Oct 2023 04:12:14 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE3FFCE for ; Fri, 13 Oct 2023 01:12:11 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3247cefa13aso1655985f8f.1 for ; Fri, 13 Oct 2023 01:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697184730; x=1697789530; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SGC52X+6EfdOM44b7esjFLrzvMzDKL2p4mgyAiVtcQk=; b=erGPeaKd63nm7hBvQllthRPPjZtjjs5Q8i/uQX8KVRUBp8ShKblK6Ie9HkYbfDL2Zj 3eunWTOMPs1Uy71MgzpYm5qbwxz2F4Fn6IiGZvFNjSPdNqKDS75f8RoAiQ0mqiK9Xvko 9SqWgT9dgzm7x+Gd2qU+v0j43QccVHZXmV536A9rnb9q8tlcEbmry9SKlbTeB4CJhxNB nIeilfgWnhAq8W+g5fz7rjuCS5rfhk4nMHL6NhZSTDBKgtYb6o1t3E4iw/lwg77+N7EN aA2BqX/gmkhLtETUT2+8KQTHdvGO/S9TPKe9QnvuypxewJ1uk0YBDLKk2bHu0AgBMW4V 1DAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697184730; x=1697789530; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SGC52X+6EfdOM44b7esjFLrzvMzDKL2p4mgyAiVtcQk=; b=OqwkHHDPHCpiWgDKTBEfucOdM0sqCw2Dtfc2iaOn691cSFQZrDBe6NxG9aVtzlJ9k6 AebRfF2NW+G3GFICHvJGOM85HkNUYo70vbJBE21oHKw0dSavVTOR4H4g2JZotstrNH6Z bGy0kFk0ExPywhaojOnQRBvrCvHmUGwFJhQ6JpZ0iYjLIDbAV/obDiBVBKwotUZMuCyq I7YEGlQTAYj6Kxjib0uBSkKGO5MCNzvukpjVUO3uAQ2toYsgTr1OPmFgobinEnzB9Vxx J06mNLm4sR83FpBsQJRqYmQ93oRxUt6pA+iuoohKXCCxIMkhRMF2KIVxDU6CR43o3KBo veyw== X-Gm-Message-State: AOJu0YyRTIry798y1S+d1PChm27SyhYusv1KrnlHbwuWo4ESb5g5sqvC RG8hxD4rHm8bjoRWfXWGFvYyTg== X-Received: by 2002:a5d:58ca:0:b0:31f:f65f:74ac with SMTP id o10-20020a5d58ca000000b0031ff65f74acmr21004242wrf.70.1697184730218; Fri, 13 Oct 2023 01:12:10 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id w14-20020adfee4e000000b0032d2489a399sm2745645wro.49.2023.10.13.01.12.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:12:09 -0700 (PDT) Date: Fri, 13 Oct 2023 11:12:07 +0300 From: Dan Carpenter To: Ingo Molnar Cc: Sandipan Das , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Thomas Gleixner , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Uros Bizjak Subject: Re: [PATCH] perf/x86/amd/uncore: fix error codes in amd_uncore_init() Message-ID: <0c973a20-e10c-4989-b7d9-86cb0f522718@kadam.mountain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 13 Oct 2023 01:12:31 -0700 (PDT) On Fri, Oct 13, 2023 at 09:30:46AM +0200, Ingo Molnar wrote: > Ugh, why on Earth didn't GCC warn about this? The bad pattern is pretty > simple & obvious once pointed out ... compilers should have no trouble > realizing that 'ret' is returned uninitialized in some of these control > paths. Yet not a peep from the compiler ... We disabled that warning years ago (5?) because GCC had too many false positives. regards, dan carpenter