Received: by 2002:ab2:648c:0:b0:1ef:b27b:cc29 with SMTP id de12csp3376490lqb; Tue, 26 Mar 2024 11:37:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXL7pQ20v4eP0it/F/znuiZq7mbntkowpY5DiixypoLDFn1nxNUd3poxKUudep1r6lsKgcMkFDT+rH1Sdu2/Z+eTKgJbGeqdb//pusxfQ== X-Google-Smtp-Source: AGHT+IGB7Lk3Obhmya+Z5eWjUq/jJ2ukiIDzzFZgTYr9kYLfgCGmm0r5VhEYVHphZH8hWno817/r X-Received: by 2002:a05:6a21:6da7:b0:1a3:3260:754f with SMTP id wl39-20020a056a216da700b001a33260754fmr611152pzb.28.1711478261430; Tue, 26 Mar 2024 11:37:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711478261; cv=pass; d=google.com; s=arc-20160816; b=Wxsg/1AB7sfO8y/xQWWhIGbK8YbMjbq0hrSy4XKfmFPGpc7/Xd0gliNyttmft15Ck0 jZ9T8aRsPwpLWtt2BQYthk8ZkgNHSFFffb/6tCOB5CioUMlPd9VSMmgopobbkMiLST93 R9MuQPRAttP991ZO1fKcD/kQ/kH/wADAzvoLYk3fQ1tdto9jj5sulUQwBYssWAfd4ayb Kbdt/dFk5e2+df27PJLxKB4Fl96pvcdXj5ipwyKOl/Yyy52G6+hB2hNM9VP9iYfEQpYl 0WOcZLIWbvkuENF6wlJLb/ux44K8T5nMdwBmp66KzDoglObATOH7lUIL9yYKDbtypZum Xf5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=0qErYvtF/gQBmiOgK4XRZnQpYFpD0CnkieuT9dGjYfo=; fh=CdsINigNm4jUi1ddd5SPm7AiYgTjWazyOFWK4DxFx1g=; b=aKJNY8zw0QrGILMFC14CITqB8HSPunIpyt+xw2zAi7M/kxd2a5MnYtzflyTv+3UNkz Jh95LheKbqTKshecT1BmBLNYUt/U5nM4tsleyNPZSznXsb7nHymy7YqHzSARcXCcnLUU /wD80bIHiFHhUyur0P9evRb4S+iJ4/ZFyvBs5US/BuJcEHswf+mql5a7dspBkP0W5XPt p6zuXLgHdIVtGvXWvGttg1ukD8BRouio/KriJlBfaGHqjtHH3W06QYDg89ZpAPD5cmLZ aj0yk0AmTMxuY+sn6mNT2KjOJEGygbyINd5cHIYK9a08THvTrQr1y06AFsT3wVCOe7+R JYKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=E3WDpjok; arc=pass (i=1 spf=pass spfdomain=protonmail.com dkim=pass dkdomain=protonmail.com dmarc=pass fromdomain=protonmail.com); spf=pass (google.com: domain of linux-kernel+bounces-119694-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119694-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e6-20020a63e006000000b005dc89485b21si9680439pgh.535.2024.03.26.11.37.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 11:37:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119694-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=E3WDpjok; arc=pass (i=1 spf=pass spfdomain=protonmail.com dkim=pass dkdomain=protonmail.com dmarc=pass fromdomain=protonmail.com); spf=pass (google.com: domain of linux-kernel+bounces-119694-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119694-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1E29B325872 for ; Tue, 26 Mar 2024 18:37:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B452127B7E; Tue, 26 Mar 2024 18:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="E3WDpjok" Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C49E1AAD3 for ; Tue, 26 Mar 2024 18:37:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711478255; cv=none; b=rw5kLUMo8ugIw6py3A1IUwsxonratIbtDbfJ6QR35vuAGjV5s9j6vlWtNN5qWGiwTsPiBYHiv6uVm0BqqjrENm0bN/KSkOJ4Sv3xP0c9xcKC8Xr1bLUta9ToyzFSNSeva7Vjf6migxCcCsn0WGw/ZBBCjljbRpRoYOL/04oEoPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711478255; c=relaxed/simple; bh=kaDDHC4h4SosNloXoLKzePcx7KMwmxaPXEmK5W3RAAI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=R69M+sGLHSu4s3ExD3AJKS3HAAWyOCgOToWF0nFfsi8c+ZTcp8O7OQeHHPW4lJ6cIL7mXsY+25hO2k18AKlTxTskQQDsAWjwr2q/kJfvo8FqbPFRO5HPD+Vxmrmqnsmv1mjAo7V3sxP/A63uyG8VoQMEvf720CWag/bpXNU6roU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=E3WDpjok; arc=none smtp.client-ip=185.70.40.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1711478251; x=1711737451; bh=0qErYvtF/gQBmiOgK4XRZnQpYFpD0CnkieuT9dGjYfo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=E3WDpjokKZ1zR2PysQ4p2BGMisQB77FFztI6xulxrd12DSvq1RrjtihNnIx137UAU 4GQXHHu3bJSXWpJyrWJ65ZQ0Zwd1DSnBBb/Q5SnYtqjHFWxR8POStpWLbKOFxGTV+d 2DAMcHw0PTUnKbP9LjDdK1X26Th0G5Sv05JrHQXYoZ0h1iStrgqSoilniSHitwMZmG p61aVlunRfK4TrKy1A/oFy8wF/LFFe0F8Gv0HvSIx/hTc51XqRnkv4y/d/yUxpyJQN 44d/JvGyk4ffgW833+B6xJqiSXIaLLgeOfHQb2KDjKrj7g0UxQZVmPfjARUh2hTGgQ nf5Vsn/tL/2OQ== Date: Tue, 26 Mar 2024 18:37:25 +0000 To: Yazen Ghannam , "bp@alien8.de" , "linux-edac@vger.kernel.org" From: A Cc: "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] RAS/AMD/FMPM: Fix build when debugfs is not enabled Message-ID: In-Reply-To: <656a7134-4984-4577-93eb-60c0c28adf93@amd.com> References: <20240325183755.776-1-bp@alien8.de> <656a7134-4984-4577-93eb-60c0c28adf93@amd.com> Feedback-ID: 7267082:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tuesday, March 26th, 2024 at 14:29, Yazen Ghannam wrote: >=20 >=20 > On 3/26/24 10:20, A wrote: > [...] >=20 > > > diff --git a/drivers/ras/debugfs.h b/drivers/ras/debugfs.h > > > index 4749ccdeeba1..ab95831e7710 100644 > > > --- a/drivers/ras/debugfs.h > > > +++ b/drivers/ras/debugfs.h > > > @@ -4,6 +4,10 @@ > > >=20 > > > #include > > >=20 > > > +#if IS_ENABLED(DEBUG_FS) > > > struct dentry *ras_get_debugfs_root(void); > > > +#else > > > +static inline struct dentry ras_get_debugfs_root(void) { return NULL= ; } > > > +#endif / DEBUG_FS / > > >=20 > > > #endif / RAS_DEBUGFS_H */ > >=20 > > this also works, just tested > >=20 > > this time round, `make oldconfig` asks if i want to build RAS_FMPM, i b= uilt it as module, compilation succeeds. >=20 >=20 > Thanks for testing! >=20 > Would you mind including your "Tested-by" tag? I can include this when I > send a proper patch. >=20 > Thanks, > Yazen sure, tested-by: anthony s. knowles kind regards, a.s.k