From patchwork Thu Jul 5 20:23:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Agustin Vega-Frias X-Patchwork-Id: 10510283 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 B5E3A6024A for ; Thu, 5 Jul 2018 20:24:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A83EF26246 for ; Thu, 5 Jul 2018 20:24:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C497277D9; Thu, 5 Jul 2018 20:24:51 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 4A8CF26246 for ; Thu, 5 Jul 2018 20:24:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754487AbeGEUYu (ORCPT ); Thu, 5 Jul 2018 16:24:50 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52658 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754114AbeGEUYC (ORCPT ); Thu, 5 Jul 2018 16:24:02 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 63BBA60B68; Thu, 5 Jul 2018 20:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1530822242; bh=RE0n/Lgh2NQmzRVYJKnkhK4CzlQfn0qYvFmmL9NyJ18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X7Jd5GUfAkNAA6m4ifsKtJZcoNoyzaXA6+7R+A0cM9Mwthoyli2J1JIsuxORsVGSE S4W8OkOJrt95whI5VV2yFAMpup7o+uMNb3neqCRKtb8DXpDLEEeAkEOTTliLVIzT4l xqRYMZS6wNvV3BbfqYiGYMXB0yYgL/a7oZrkwk04= 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 12A5D60A06; Thu, 5 Jul 2018 20:23:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1530822241; bh=RE0n/Lgh2NQmzRVYJKnkhK4CzlQfn0qYvFmmL9NyJ18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mkNiriMHpGpbRm6RYXdmtnZLOAcNow2Go99ni3QWdrq7OmjVPNpzQIgOLrtbU7uMs 71k2uDdz+Utl5OGJtavM2gnEjb0P/p9jNj35+EtmJK1ppzlllkY5h/Vz6kTbuXV8m0 kIU+ZNkJJmioy70nS49Ra+N6RBIOZ6vEfZvLAJaI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 12A5D60A06 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 To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, Will Deacon , Mark Rutland , Jeremy Linton , Catalin Marinas , Marc Zyngier , Lorenzo Pieralisi , "Rafael J. Wysocki" Cc: Phani Pabba , Richard Ruigrok , Vijaya Kilari , Jeff Hugo , Rahul Ramasubramanian , Agustin Vega-Frias , Agustin Vega-Frias Subject: [RFC V4 1/4] ACPI: add support for sentinel-delimited probe tables Date: Thu, 5 Jul 2018 16:23:18 -0400 Message-Id: <1530822201-5890-2-git-send-email-agustinv@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530822201-5890-1-git-send-email-agustinv@codeaurora.org> References: <1530822201-5890-1-git-send-email-agustinv@codeaurora.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- include/asm-generic/vmlinux.lds.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index e373e2e..1ec0411 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -228,7 +228,8 @@ . = ALIGN(8); \ __##name##_acpi_probe_table = .; \ KEEP(*(__##name##_acpi_probe_table)) \ - __##name##_acpi_probe_table_end = .; + __##name##_acpi_probe_table_end = .; \ + KEEP(*(__##name##_acpi_probe_table_end)) #else #define ACPI_PROBE_TABLE(name) #endif