From patchwork Fri Jun 22 19:46:30 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: 10482935 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 A568C602CB for ; Fri, 22 Jun 2018 19:48:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 911FB28D64 for ; Fri, 22 Jun 2018 19:48:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8495428D5D; Fri, 22 Jun 2018 19:48:23 +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 2007528D5D for ; Fri, 22 Jun 2018 19:48:23 +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:References: In-Reply-To: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:List-Owner; bh=oQUdHCh+9DQaYV5Bzc2G7Kw8iCokDxOWetnqO450M9o=; b=HEaetX3tzP3QSjbtTv+zpoHwF5 VKdqJgtoCPDCMJkOdLY3Nsde9YF93M9BsnqdxuYor2rRFDAawxGKMePNmmtCAxHkx9OO+iA8e+7cQ dVOzKHWElGr4soPW+FS0IdVp7Ht5IYvpu9TM7OLdCBZAzc8Tuj1ZT/w5yinAwQal8IyqQSbeHlkA8 9qH3hti+58HGtO0Izyd8i5wn1lM6Y4vbTkO6hq65/zHcfgRV7DzylfkU4R8Fp5jOuuVKS9/mGD9kW uspCbh22ZHOIBYqhVqOpTTrsn00lMUk23LtiABVmkYndIreRv2xhzYTU4Yd3K/dukzrfvzvmFEb0B i22znWGQ==; 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 1fWS2f-0003rF-3m; Fri, 22 Jun 2018 19:48:21 +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 1fWS1J-0003CN-H0 for linux-arm-kernel@lists.infradead.org; Fri, 22 Jun 2018 19:47:01 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id AA69760AFF; Fri, 22 Jun 2018 19:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529696807; bh=4YH7zUXB9uysXF1AY0kEzc8hBNIgUA2yk1xRvlkTZf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nw7Wy76T+jLq49viWHR18gjl5yDIN2YH7I9ep6fGo5o7wFgKr2xvRKzUkr5byG58D KHfX07jeFks7GV7awoymJ/SLatedcvlyTqC7FiRG/KE83xw8NcxD0o6F4o9eDRg+xF ybja+LAFBa8TVyoYCKU22SmHMsd8RG7zQTeXaLYM= 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 C1A7A60AFF; Fri, 22 Jun 2018 19:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529696807; bh=4YH7zUXB9uysXF1AY0kEzc8hBNIgUA2yk1xRvlkTZf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nw7Wy76T+jLq49viWHR18gjl5yDIN2YH7I9ep6fGo5o7wFgKr2xvRKzUkr5byG58D KHfX07jeFks7GV7awoymJ/SLatedcvlyTqC7FiRG/KE83xw8NcxD0o6F4o9eDRg+xF ybja+LAFBa8TVyoYCKU22SmHMsd8RG7zQTeXaLYM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C1A7A60AFF 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" Subject: [RFC V2 1/3] ACPI: add support for sentinel-delimited probe tables Date: Fri, 22 Jun 2018 15:46:30 -0400 Message-Id: <1529696792-16903-2-git-send-email-agustinv@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1529696792-16903-1-git-send-email-agustinv@codeaurora.org> References: <1529696792-16903-1-git-send-email-agustinv@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180622_124657_641930_F7050F71 X-CRM114-Status: GOOD ( 12.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: timur@codeaurora.org, agustinv@codeaurora.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 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