Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2424397rdg; Mon, 16 Oct 2023 04:18:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHwv3n9vq768r+P9JvYlRHJrt/iyZkDOeBGyH9t8r0qCJte12gyv1wGB5zlC0ODAbmLTw9 X-Received: by 2002:a05:6a21:339d:b0:16b:c20d:fcd1 with SMTP id yy29-20020a056a21339d00b0016bc20dfcd1mr34395095pzb.21.1697455120053; Mon, 16 Oct 2023 04:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697455120; cv=none; d=google.com; s=arc-20160816; b=sEdChyA7x6vOq3hL6swlIZb+GHy3e73CIWNW2P0o/j6XrwMFD1cNjxXKZG5WapQEa2 wEytsSL54W03QJhqqKDLp3fch2SBszw3jdbF4wQHQCDnxxh4k9qBkIV/UK61DAU9iR2e cNnjiJ61ufeVJiEAYybbtJU3mEjzP+13oU/qTyvpFcVlDjQy0e36slw6mbp8tW8H0Moi lKnuwLvgRInSNfylpCvwRJjK6a/JiGI6/LQTpqrmhGOQ1QokSuH4tIq5tTyzZ0KvKIfj xIL/tmo3ABCgEHZJ2+Tez7xmU3Tc/qr8dmXGB/F74UldX/IluFztCbTWQaxCoReWD5h5 gpkg== 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:sender:dkim-signature; bh=iZ3MOd8AfPXRutQJtnyGXQRK73tC6YBnYLnrIxJBVGo=; fh=YDEdouwkiIYeoHFTErNByMHjInppQ/vUv/nWCml6nH4=; b=BLY/+m0E4W/2LxCeM41IqKH/s+gVAEDPGklT/3ZrJcTjq3zUiCUyjhW10Xz3/96W6F m9kJWbWsYIgi1xIYzFVnM6irTqGEGVgRHuOQzPhHi5FDtO9ySo0PptJsZucZyEXKvMYe nm2TdUbjTHBzN17/JaFR9Ls3q7AZzEAaxhV/wzXZlzSxBSwNpS44grClebmadhdaV5ia 5fad4bjGJD+WdGJKzIZGMon6AegLEY9gul02IX0dQH9ANIJhYdNDoOEK6JCcMV+hr4VB N0Y2HquvpmKsmA9un81d/l0r8a3ZuGpNwe/sCYSW0CNwiS0eBhWNzFb1VtNYctn23d13 /tBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SIbae3nI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id v10-20020a63610a000000b005ab2613a571si7581424pgb.495.2023.10.16.04.18.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 04:18:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SIbae3nI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6427180A9310; Mon, 16 Oct 2023 04:18:32 -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 S232090AbjJPLSV (ORCPT + 99 others); Mon, 16 Oct 2023 07:18:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231340AbjJPLSU (ORCPT ); Mon, 16 Oct 2023 07:18:20 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A1A483; Mon, 16 Oct 2023 04:18:18 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9b2f73e3af3so669923966b.3; Mon, 16 Oct 2023 04:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697455097; x=1698059897; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=iZ3MOd8AfPXRutQJtnyGXQRK73tC6YBnYLnrIxJBVGo=; b=SIbae3nIe3w1MccVfT37vcctdL68itDb/Aq9azQ6920Pdmq/vz8lK/gMQ4zdbS6NKf r6VNgY2VzMYlHTuCIsMW/RGSnGRpDGU8SweNdBzEDGwUG+cyiS7l8348AEjg7kMutLdx j/5cAofvDOdV0bbyQ3alVB7EXIsJeIxKnZcLFk6knoiYhjsvg9C5fhLJgMnSH0LiOtCB NxQBKXAyN94z/lwQCelcTZzcvsX7c9s9na4oHQ4x12p0kadWoHG/KKKpzCH3n0+yB1R7 AFOIG5SAeWyBk9lvnTL8yX8WyY1NVQ4Y3yIG6p4YAy1xNkhT0vvvGmOI3+mB5NRdc0vf SQjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697455097; x=1698059897; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iZ3MOd8AfPXRutQJtnyGXQRK73tC6YBnYLnrIxJBVGo=; b=QicPvDQLqjx2FilsDXaT5yxR8ZturRYpvGiQcASxRLxLQ3htHnIBDjCwVu791O2BY/ 9Qz4t8ibOvU7y14iWmcjtkJ5v0U5h8tMb3mMEtV2c4Vkl2a3RVMMaaCM3Sn6lEiIgNfg bVY/x3s1SpVO6Pchk/APCIRKIdcW4a4B6MKio/rrtBz/EZZwwhCTIe809X1MlueZYprG QOMIjx42A804RVm/+g8BOreTNEo8j+B7+aoc7okz8ZX6M9W4TNjc/R2wOKZ9QvDR/4bO S5ojmfXNxMw8pCF/XEFErfiHirLVgNpYf9PAvV7hu45IrxjEkLRDcpJOSWcOak80h+7A 7WXA== X-Gm-Message-State: AOJu0YwPeL6SarUIAF7f44tpcruU6+kF+TRcr3+6SuWK8Oy7HzOy/BJ0 KLWDA1feSo61RPlqspdpN+I= X-Received: by 2002:a17:907:3d93:b0:9bf:7e40:17b2 with SMTP id he19-20020a1709073d9300b009bf7e4017b2mr4811857ejc.59.1697455096840; Mon, 16 Oct 2023 04:18:16 -0700 (PDT) Received: from gmail.com (1F2EF7B2.nat.pool.telekom.hu. [31.46.247.178]) by smtp.gmail.com with ESMTPSA id c16-20020a17090620d000b009ae587ce128sm3795766ejc.216.2023.10.16.04.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 04:18:16 -0700 (PDT) Sender: Ingo Molnar Date: Mon, 16 Oct 2023 13:18:13 +0200 From: Ingo Molnar To: Dan Carpenter Cc: Uros Bizjak , 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 Subject: Re: [PATCH] perf/x86/amd/uncore: fix error codes in amd_uncore_init() Message-ID: References: <0c973a20-e10c-4989-b7d9-86cb0f522718@kadam.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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]); Mon, 16 Oct 2023 04:18:32 -0700 (PDT) * Dan Carpenter wrote: > The surprising thing is the Clang doesn't detect the bug either. It's > strange. (I found this bug with Smatch). Yeah, that's weird and kind of concerning. I don't think either compiler is able to see that the init function return values are always ignored. I had to dig into init/main.c to convince myself. > Also I notice that my Fixes tag wasn't correct either. That patch did > have a missing error code bug, but "ret" was set to zero. :/ Yeah, so I left the Fixes tag out of the commit anyway, because this isn't really a fix that -stable should concern itself with. After the first commit it's not even a fix per se, but an improvement in the resolution & meaning of error codes or so. Thanks, Ingo