From patchwork Tue Aug 5 12:08:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 4678501 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 68498C0338 for ; Tue, 5 Aug 2014 12:09:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 575E72015A for ; Tue, 5 Aug 2014 12:09:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EF98A2014A for ; Tue, 5 Aug 2014 12:09:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751770AbaHEMJC (ORCPT ); Tue, 5 Aug 2014 08:09:02 -0400 Received: from mail-we0-f179.google.com ([74.125.82.179]:59400 "EHLO mail-we0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751693AbaHEMJB (ORCPT ); Tue, 5 Aug 2014 08:09:01 -0400 Received: by mail-we0-f179.google.com with SMTP id u57so891764wes.24 for ; Tue, 05 Aug 2014 05:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=IePvEKSnb90/scdPyQ1u/zq8rEtAjfU2RnTZjr7PEY4=; b=xoz38rLlQiYb7iHEJkODCLQhSjq9Z2ixFRytmR2vW3X2ZD3odXNHi8rIXJFV9Y3rl+ yZ3DpfKz9RpqsrrEaSj/6jvsAEsqZcvx3RpCXVPpmd8/gGNozv6nObWW9A0IS/ZADsnJ Yg6NTf2/PZ+Wn4kPfmRpJItJECYNzKVzzHhViuepAQKkrcCJcI9RMenka07vSis8ubVl M1CfTUdyxIrc/hQ6zBhU2GQagx8HVFhf4YP5ECyMxngr2mC+gSe14OyUkN3jSUc3AM74 4KnaX9MkZUGGVRo7B+U8qSm3jXSwbWwD+424uyVRM8STjQuqXx9Z5Vc89MkKXbhklak9 AGug== X-Received: by 10.180.90.113 with SMTP id bv17mr6253495wib.22.1407240539142; Tue, 05 Aug 2014 05:08:59 -0700 (PDT) Received: from localhost (port-92291.pppoe.wtnet.de. [84.46.72.252]) by mx.google.com with ESMTPSA id ej10sm7181730wib.12.2014.08.05.05.08.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Aug 2014 05:08:58 -0700 (PDT) From: Thierry Reding To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI/AER: Make linux/aer.h standalone includable Date: Tue, 5 Aug 2014 14:08:55 +0200 Message-Id: <1407240535-19564-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.0.4 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding The header file references u16, u32 and struct pci_dev types, but they are not defined in the header nor does the header pull in the necessary includes for them. This causes build breakage when the file is included without any of the dependencies being satisfied from somewhere else. Fix this by including linux/types.h (for u16 and u32) and by adding a forward-declaration of struct pci_dev. Signed-off-by: Thierry Reding --- include/linux/aer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/aer.h b/include/linux/aer.h index 4dbaa7081530..04bcf33a3e3a 100644 --- a/include/linux/aer.h +++ b/include/linux/aer.h @@ -7,6 +7,10 @@ #ifndef _AER_H_ #define _AER_H_ +#include + +struct pci_dev; + #define AER_NONFATAL 0 #define AER_FATAL 1 #define AER_CORRECTABLE 2