From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 097B4C11F68 for ; Wed, 30 Jun 2021 17:33:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E31E761477 for ; Wed, 30 Jun 2021 17:33:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232615AbhF3RgO (ORCPT ); Wed, 30 Jun 2021 13:36:14 -0400 Received: from mail.skyhub.de ([5.9.137.197]:33442 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbhF3RgN (ORCPT ); Wed, 30 Jun 2021 13:36:13 -0400 Received: from zn.tnic (p200300ec2f12c300d32a22941298d01c.dip0.t-ipconnect.de [IPv6:2003:ec:2f12:c300:d32a:2294:1298:d01c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 4A6701EC046E; Wed, 30 Jun 2021 19:33:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1625074423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=w9TPmtT989Bxa/BMOi3EyRqngWlUdV8lm8j+1Polio4=; b=CayhQfR68oLp4Y61HzHpO1OgsicFzsWsE1YRpgwB6mhTxz1ULt47BxMtqyfhcSDcUiGr4s vqwHRaLUr60Ac9qTat7TEuu74EestJJ8W59Adabn0vD5WwjhqSI1GckQmGKfImmvGH0RB1 xayVo5KSc16AKKlXf2efHLjNQ17mTU0= Date: Wed, 30 Jun 2021 19:33:43 +0200 From: Borislav Petkov To: Yazen Ghannam Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, mchehab@kernel.org, tony.luck@intel.com, Smita.KoralahalliChannabasappa@amd.com Subject: Re: [PATCH v2 09/31] EDAC/amd64: Define function to find interleaving mode Message-ID: References: <20210623192002.3671647-1-yazen.ghannam@amd.com> <20210623192002.3671647-10-yazen.ghannam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210623192002.3671647-10-yazen.ghannam@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 23, 2021 at 07:19:40PM +0000, Yazen Ghannam wrote: > @@ -1088,10 +1096,12 @@ struct addr_ctx { > u16 nid; > u8 inst_id; > u8 map_num; > + bool hash_enabled; For such single bits info you can use bitfields, like struct mca_config does it, for example. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette