Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp825592rdg; Fri, 13 Oct 2023 02:11:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsBs+fZERsJywRgzfOvKY2u5MptcbvU9S7GMsDpU2krUcp/5L0AdVRop7Twj4FJfEQzb8M X-Received: by 2002:a05:6a20:f3a6:b0:16b:74db:8fe1 with SMTP id qr38-20020a056a20f3a600b0016b74db8fe1mr20315736pzb.29.1697188266498; Fri, 13 Oct 2023 02:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697188266; cv=none; d=google.com; s=arc-20160816; b=D4DSV/RYyNmdJSL4tHtgezkBS1TB5rXPMS6HUmEQEsmMhcoQhv1vMkT+TBLjj+Hy7b T1wEDBlLNaffzaGrdV++Tqduhf3OOVNwvvc17Em7k8nY7p94zTteQaAJ1Wo60C1s/sKp fM97V/KtSRf1FeftQ13FGPoQECA+bv26vUxAqoldUqUCeYSTZmdU16LosOmTK3iozri4 4ckMi6wv56ie2wJhu3m+0o0fYTV98FQEzvInev80dEhGPNeIPN1cHQQi6dxw3uCfiorx TgyaSypC9oPphGUSx2O9wLn2CvsudXge+Uh+z70OYgjNTv/RWTzY26VH75mIDtG6PlS+ 5Gqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iJzZvH8fBl6ADPsi6DUS9ksyUncHYpaqW3DpQr1VE2E=; fh=sRyH8TH5ytXM0LXupu4PG1gFY3Tu09xz4a2snJ9O+Zo=; b=DD5FMfrxPO48/iKTW4XHztHLVFqNcZmKbaoB6nyZDg6nG6cyRvuILOi016QEFduche o2iCLHCvm2yMBQwRdQGlltQM8OdOwyDL6uE8SCI8nodFumcNMeH/MC7YyaGxqwMIxJV6 wFgi+t+I0/6+RYcwPypJenu0qwj4lI9n+fyr3APxeccfw3IfkjXBOGccuLj5yY1cajd3 6LkRjkYbiRYmcEvo7d32xR9xEXs20h3Ka88Fc/Iwiv53wphT9uv8ri9YYvunJP8iHfXb koO9KeeZV+Z/TWSyd+byW0b5FLra8g+2SBHR7fMHOqiRN5luDs3Uw9jJZ9xp1hXxqq80 3Dxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=B7e3NZO8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ca39-20020a056a0206a700b005ae22729b09si27845pgb.683.2023.10.13.02.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 02:11:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=B7e3NZO8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9FB8582F34BC; Fri, 13 Oct 2023 02:11:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231203AbjJMJKx (ORCPT + 99 others); Fri, 13 Oct 2023 05:10:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230421AbjJMJKd (ORCPT ); Fri, 13 Oct 2023 05:10:33 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5D60D54; Fri, 13 Oct 2023 02:09:56 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-53e16f076b3so2797652a12.0; Fri, 13 Oct 2023 02:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697188192; x=1697792992; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=iJzZvH8fBl6ADPsi6DUS9ksyUncHYpaqW3DpQr1VE2E=; b=B7e3NZO8ryyuyijh0TahGkmqE48K7IqNPiQsBTJMEoQ0idChHpMvG5+rpzw0yBz2jf ibd/rXQI4g7Pa2psj1H4/5tKfJrH73vfUWDINv/NwtOXuCT7L/JDLrR3Tr3XBYzAwctQ x07eni3AfGpDI/W+Je9rt1dWa1lIkOtydBCTMLx+kl1uFic1Cd28fhhATPrl9Aa74VHC PIEf78sNj6UvrvPn3+z1SIEobxu/rkZY7S0B60HTTOtaAHQ89hAyGcTdjjpFWpkGKPtg l7HN/EdAMDnMRZu91hhVsGFcuQ0Xjp3WcKYwK9VPK87iS76tCQTcV91UDMLzibfFyzqN hN/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697188192; x=1697792992; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iJzZvH8fBl6ADPsi6DUS9ksyUncHYpaqW3DpQr1VE2E=; b=GRA981RsZ77E9qYiZmujt7m4UCBMEGAAomg1FpszRH9pGgordEZCNVOQ6ZRBeh70Jx j5eBOMc23yB4EXaidjLwwZmBjhKHndu2gnVziHOTVJOz0hAe6e2jkwzsjXCNdQbq6rrP aLBUrNtVw6GeFDPsToy2w8oGkr7oksiBxNTe1eNqW7xsmQgSM37lD7Ehsx1VbYGpqYp6 E52gi6raNgitMimOurzcYX60k+A825dQA7fojgXrwGkxxp/RyQeqQmV+bFwpcvE/9X0i ixuB7g5guWyeE72/Xwq/D6RhEEvvuXXCoNdib1r6Zt4HkIbSC4GrOYNkm2gfNAhcTIgT pKCQ== X-Gm-Message-State: AOJu0YybFIHkYO13NvdWFQgks1MRM65cmSI8GuN5ylF7QktNNktvJwYJ 1QZGJYe/kbCnKjy7Ax4C2LWmUIZiwSA0IdqhqT0= X-Received: by 2002:a05:6402:350b:b0:529:d147:e9f3 with SMTP id b11-20020a056402350b00b00529d147e9f3mr21470925edd.5.1697188192093; Fri, 13 Oct 2023 02:09:52 -0700 (PDT) MIME-Version: 1.0 References: <0c973a20-e10c-4989-b7d9-86cb0f522718@kadam.mountain> In-Reply-To: From: Uros Bizjak Date: Fri, 13 Oct 2023 11:09:40 +0200 Message-ID: Subject: Re: [PATCH] perf/x86/amd/uncore: fix error codes in amd_uncore_init() To: Ingo Molnar Cc: Dan Carpenter , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 13 Oct 2023 02:11:05 -0700 (PDT) On Fri, Oct 13, 2023 at 11:06=E2=80=AFAM Ingo Molnar wro= te: > > > * Dan Carpenter wrote: > > > 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 pret= ty > > > simple & obvious once pointed out ... compilers should have no troubl= e > > > realizing that 'ret' is returned uninitialized in some of these contr= ol > > > paths. Yet not a peep from the compiler ... > > > > We disabled that warning years ago (5?) because GCC had too many false > > positives. > > GCC had some pretty bogus notions about 'possible' uninitialized use that > encouraged some bad code patterns, but in this case there's readily > provable uninitialized use, that a compiler should warn about. > > Is it possible to disable just the unreliable, probabilistic part of GCC'= s > uninitialized variables warnings? -Wno-maybe-uninitialized? Uros.