Message ID | 1529696948-16991-1-git-send-email-agustinv@codeaurora.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 298AD602CB for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 22 Jun 2018 19:50:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13DEE28FD4 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 22 Jun 2018 19:50:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06AB429001; Fri, 22 Jun 2018 19:50:02 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AFC4228FD4 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 22 Jun 2018 19:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=oQUdHCh+9DQaYV5Bzc2G7Kw8iCokDxOWetnqO450M9o=; b=LFl hwgxmfxEgOoley/5GidlyTxkW0OaCJdBFHcb7kd3n3fD23qYJduFgxxutXT7SEbTbwM9c9zHLNsDc +ODI6QH2rdlOgo311hSVdx7rvzeNYHxW68KQEbhDyt2s1RAP2RJq/kgJs+dIrrWhKdvxRfNS6BEa/ yGeas4uBKt7LZIZVcz7pzNiHlcmkFy9c4jQC/8bp7pDlhKIbTO7nXtzQafJPM4yVlGzajXO/SuzL+ 7GEwSh542A/RIRFL4dCgfwKvdjbwy95uJqHOI6qEg4aZxg5Tw0QbLbjoMdUZR3rVQeo/JEysPOL4I P4Laj6Xc/sk7v8N/nPUt4/0nuQSX4lQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fWS4F-0004Vx-Ag; Fri, 22 Jun 2018 19:49:59 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fWS3k-0004MZ-ER for linux-arm-kernel@lists.infradead.org; Fri, 22 Jun 2018 19:49:56 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7D55260B18; Fri, 22 Jun 2018 19:49:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529696957; bh=4YH7zUXB9uysXF1AY0kEzc8hBNIgUA2yk1xRvlkTZf4=; h=From:To:Cc:Subject:Date:From; b=RNLqPVZsF+uKXE3be75c9X77+ApdSjDAXZcrIRceWBfIx6xMi/MVyeBRHpMJBoqZn 1KaTKIVtFYZyk1ybHcSHY7FjevBWEayG34VlYJ4B6JgpcykbhGotq7eqiECdkB0Yrf 8m9zQXNXVQzO/TCqX5JB7e4efHKQ5reEL7FuuBDw= Received: from azshara.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: agustinv@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id BC89660AD8; Fri, 22 Jun 2018 19:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529696957; bh=4YH7zUXB9uysXF1AY0kEzc8hBNIgUA2yk1xRvlkTZf4=; h=From:To:Cc:Subject:Date:From; b=RNLqPVZsF+uKXE3be75c9X77+ApdSjDAXZcrIRceWBfIx6xMi/MVyeBRHpMJBoqZn 1KaTKIVtFYZyk1ybHcSHY7FjevBWEayG34VlYJ4B6JgpcykbhGotq7eqiECdkB0Yrf 8m9zQXNXVQzO/TCqX5JB7e4efHKQ5reEL7FuuBDw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BC89660AD8 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=agustinv@codeaurora.org From: Agustin Vega-Frias <agustinv@codeaurora.org> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, Will Deacon <will.deacon@arm.com>, Mark Rutland <mark.rutland@arm.com>, Jeremy Linton <jeremy.linton@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Marc Zyngier <marc.zyngier@arm.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, "Rafael J. Wysocki" <rafael@kernel.org> Subject: [RFC V3 1/3] ACPI: add support for sentinel-delimited probe tables Date: Fri, 22 Jun 2018 15:49:06 -0400 Message-Id: <1529696948-16991-1-git-send-email-agustinv@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180622_124928_544274_C68577B1 X-CRM114-Status: GOOD ( 12.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: timur@codeaurora.org, agustinv@codeaurora.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index af24057..5894049 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -219,7 +219,8 @@ . = ALIGN(8); \ VMLINUX_SYMBOL(__##name##_acpi_probe_table) = .; \ KEEP(*(__##name##_acpi_probe_table)) \ - VMLINUX_SYMBOL(__##name##_acpi_probe_table_end) = .; + VMLINUX_SYMBOL(__##name##_acpi_probe_table_end) = .; \ + KEEP(*(__##name##_acpi_probe_table_end)) #else #define ACPI_PROBE_TABLE(name) #endif
Tables declared with the ACPI_PROBE_TABLE linker macro are typically traversed by using the start and end symbols created by the linker script. However, there are some APIs that use sentinel-delimited tables (e.g. acpi_match_device). To better support these APIs an additional section is added at the end of the probe table. This section can be used to add a sentinel for tables that require it. Signed-off-by: Agustin Vega-Frias <agustinv@codeaurora.org> --- include/asm-generic/vmlinux.lds.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)