Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp458042pxk; Fri, 11 Sep 2020 11:24:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+xJ4ihY2soh5ZjQxUnBhYkXrJw/sg6UkLSFmN1Q1SCB8YTtqZBSrKpDGh+hqiOZoqsYsN X-Received: by 2002:a50:cf8a:: with SMTP id h10mr3694990edk.43.1599848667692; Fri, 11 Sep 2020 11:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599848667; cv=none; d=google.com; s=arc-20160816; b=VA1PkV7JRwS4Jnme9/vFEahIzIct1HZ8hUuWaTom0dgz6QZ6Xvg6DqMTPrrBNJP7p+ 0wTK+n53GcrdLF/f1imUkV3ucSxi2/bvQSgEOxhJ2ExlnIcpjXscWfoESF+aOkWZcZd9 vG6LX+anR+lQruLt6GGjVz2VZXwKP0fIc5xWqqrMsNVg4/uaChz92PCQod91aKXsCLwt qeoMSDzr3upr8Ill0xW5ZC6TBHQUnUEyquizGDyYsqy8h2rysOwmwbi4KGxLymcSAsbC h3rUg65xguapcBKOjqJnuoIJ1luEs8aveiXIKY/f8Au0nX3qAacrN8zPqpwFIGTkFV8E ojpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TFyDwUNNQa9HpOgvyBMWaMvR+qfh3dNHzCGuxIM3W1g=; b=vId7obrrPL5O7flhiSgtO0BowMHrieAX773Eba/uEwP0UxhHh+UY9xiuK21/dn3hxW UAj+og1nQGNkIORokKrhBUuq85XOoeE4rKu4/71vCFlh5ZCUf9sQjZ64Hh2Y3qPKN67O kyTrwlaWUp3fFKdixiLf3qgv+iBU15cQxk9XpBWeboAiMKYeeJPM5e15fOa0smQ3UILC R/MFfQTPB7ZEgC8gU9tCSM8TIRwCWHfRqx5/OwghSruwCj0Z2mL5EtqhyicGMPGgLlZK PRmeZJNCzoBpbFtTV9c/IvuUHwrJkzkAx/WM3oIlOJERs/fKGMKAyReMLGjJaXyBOw6J dpfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=q4ZuwCgX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si1871830eds.548.2020.09.11.11.24.04; Fri, 11 Sep 2020 11:24:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=q4ZuwCgX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725888AbgIKSX1 (ORCPT + 99 others); Fri, 11 Sep 2020 14:23:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:58194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgIKSXS (ORCPT ); Fri, 11 Sep 2020 14:23:18 -0400 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB92821D40; Fri, 11 Sep 2020 18:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599848597; bh=YY2vBU2Yo4rqMxD/qeQ8+2/9DSz2T2a0UG6lbEEq3G8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=q4ZuwCgX7Z+2ZOJ+NeU4ULnNdUzb+Xbc21jw35Xfapk2cL99q9nlvKuFcGO/dP4tW 5pc+giXQQDPB/5B3farttH5r0q1GtXJY6F0mWYOOhoe7AmAWDsWGf+qLwG1n6ac/Xe yoK0gX0Jkou6UnrlnX9slwVTm6nQVGvp9Nb+A+3M= Received: by mail-ot1-f44.google.com with SMTP id h17so9161084otr.1; Fri, 11 Sep 2020 11:23:17 -0700 (PDT) X-Gm-Message-State: AOAM532y/PQ+iL4g+Y+Uou8ZhS8ACsMF5vxcfRBO60aj5GECeR3IVK/z QtUJsNg2+sinOhOrewm3uksHXPCF/QlW33VMrxM= X-Received: by 2002:a9d:6193:: with SMTP id g19mr1931544otk.108.1599848596998; Fri, 11 Sep 2020 11:23:16 -0700 (PDT) MIME-Version: 1.0 References: <20200828203332.11129-1-Smita.KoralahalliChannabasappa@amd.com> <20200828203332.11129-2-Smita.KoralahalliChannabasappa@amd.com> <878sdvv20h.fsf@kokedama.swc.toshiba.co.jp> <102d0c75-d642-8f8b-68c7-792499c2a62a@amd.com> <87a6y7qshg.fsf@kokedama.swc.toshiba.co.jp> In-Reply-To: <87a6y7qshg.fsf@kokedama.swc.toshiba.co.jp> From: Ard Biesheuvel Date: Fri, 11 Sep 2020 21:23:05 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] cper, apei, mce: Pass x86 CPER through the MCA handling chain To: Punit Agrawal Cc: Smita Koralahalli Channabasappa , X86 ML , Linux Kernel Mailing List , linux-pm@vger.kernel.org, linux-edac@vger.kernel.org, linux-efi , ACPI Devel Maling List , devel@acpica.org, Borislav Petkov , Tony Luck , "Rafael J . Wysocki" , Len Brown , Yazen Ghannam Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Sep 2020 at 09:34, Punit Agrawal wrote: > > Hi Smita, > > Smita Koralahalli Channabasappa writes: > > > On 8/31/20 12:05 AM, Punit Agrawal wrote: > > > >> Hi Smita, > >> > >> A couple of comments below - > >> > >> Smita Koralahalli writes: > >> > >> [...] > >> > >> > >>> diff --git a/drivers/firmware/efi/cper-x86.c b/drivers/firmware/efi/cper-x86.c > >>> index 2531de49f56c..374b8e18552a 100644 > >>> --- a/drivers/firmware/efi/cper-x86.c > >>> +++ b/drivers/firmware/efi/cper-x86.c > >>> @@ -1,7 +1,7 @@ > >>> // SPDX-License-Identifier: GPL-2.0 > >>> // Copyright (C) 2018, Advanced Micro Devices, Inc. > >>> -#include > >> Why is the include dropped? AFAICT, the definitions from there are still > >> being used after this patch. > > > > Dropped because already includes > > Generally, you want to follow the rule that if a declaration from a > header file is being used, it should show up in the includes. The same > applies to both source as well as header files. > > It doesn't matter if another include in the source file in turn ends up > including the same header again; the #ifdef guards are there to prevent > duplicate declarations. > > The rationale is that if future changes remove the usage of > , the C file can still be compiled after dropping the > include; there should be no need to then re-introduce at > that point. > > Hope that makes sense. > Agreed. If the code still uses declarations from linux/cper.h after the patch, the #include should remain.