From patchwork Sun Feb 18 13:24:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Coelho X-Patchwork-Id: 10226763 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 94C6F602DC for ; Sun, 18 Feb 2018 13:55:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 846F328A03 for ; Sun, 18 Feb 2018 13:55:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 795E628AEE; Sun, 18 Feb 2018 13:55:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3919C28AEC for ; Sun, 18 Feb 2018 13:55:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751454AbeBRNzp (ORCPT ); Sun, 18 Feb 2018 08:55:45 -0500 Received: from paleale.coelho.fi ([176.9.41.70]:59518 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751335AbeBRNzp (ORCPT ); Sun, 18 Feb 2018 08:55:45 -0500 Received: from 91-156-4-241.elisa-laajakaista.fi ([91.156.4.241] helo=redipa.ger.corp.intel.com) by farmhouse.coelho.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1enOxq-0001N7-V0; Sun, 18 Feb 2018 15:25:11 +0200 From: Luca Coelho To: backports@vger.kernel.org Cc: Luca Coelho Date: Sun, 18 Feb 2018 15:24:55 +0200 Message-Id: <20180218132459.11011-7-luca@coelho.fi> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180218132459.11011-1-luca@coelho.fi> References: <20180218132459.11011-1-luca@coelho.fi> X-SA-Exim-Connect-IP: 91.156.4.241 X-SA-Exim-Mail-From: luca@coelho.fi Subject: [PATCH 06/10] backport: add new build_bug.h file X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on farmhouse.coelho.fi) Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Luca Coelho Some of the code in bug.h was moved into a new build_bug.h file. Add a backport that includes bug.h in the case of older kernels. Signed-off-by: Luca Coelho --- backport/backport-include/linux/build_bug.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 backport/backport-include/linux/build_bug.h diff --git a/backport/backport-include/linux/build_bug.h b/backport/backport-include/linux/build_bug.h new file mode 100644 index 000000000000..13ee5d6a277a --- /dev/null +++ b/backport/backport-include/linux/build_bug.h @@ -0,0 +1,10 @@ +#ifndef __BP_BUILD_BUG_H +#define __BP_BUILD_BUG_H + +#if LINUX_VERSION_IS_GEQ(4,13,0) +#include_next +#else /* LINUX_VERSION_IS_GEQ(4,13,0) */ +#include +#endif /* LINUX_VERSION_IS_GEQ(4,13,0) */ + +#endif /* __BP_BUILD_BUG_H */