Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2197535imm; Thu, 7 Jun 2018 06:59:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKCN9wo/KZiaQulWmTZKimssUhLspTEGEgSk2Mmml19AGbAuZL16u6WUYmlt/ioAfy1AM6R X-Received: by 2002:a17:902:8491:: with SMTP id c17-v6mr2125357plo.97.1528379959183; Thu, 07 Jun 2018 06:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528379959; cv=none; d=google.com; s=arc-20160816; b=TYlg9GT0rN4+uZ5uGh9yYF/SDK+FOtkDN536VnyROyPgh7Adwujnhu4vJka3wI20oA V507Iih6VDMdHmnvSOJFXwapHj3Oa1u2pDCB23MRHXJXHiUW7Ugq0nspVNw6EAipEB0W ABz+8eUG6SfEDwHnO8lZP6N+vzODmLpyJ3/AMlf2na4d3VgsnbT7c9SAYzaItMYf3RLf +15nghQd84ZV02pZyXcAMaUZg5J5XoS82pXdXsAJ9j5rfbBixEZYUCR7/JztjDD+C8Fl UVKOI2eHkkUWVo6Fl2Ar2B+Yj7P07tMROlrQVQKh7p2oo1w2wIptOAhYhGsTqswnEC5V 94zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=SD4GqB9FxOHYg3Za8ePN63Ja9EOlw6mNbYCf7TkqWVY=; b=B1wKmfl9FuUp6A8clIDQbXobbZXG9V6l6OlWudznNiCoXnUhXhOdYzi4kL8ykBtIH3 aBq9j6SULYoV2xxplBXSc9rYgYsaVXZ8gEZiSSMZatxYdJqIgA+edOQxK23z76JXsrVw 7C5m1Dn+RJzxpwJ1WNIELU/p5PDXSCTdurdw+Mn7VTl6x3LeiW9il8UE97/Rw5r097Jv U9KxRcqEeGX/jG8+SjfQZ4K7hE5OVfucQk0p0vXf8Z6sRh0o5v1AET2oPA79h7N5oLx7 pYvbFvvzRZW/PmbiCjLcUfyNlkB6+rBZg96An9yDy4k8b/VPmVMqAgBCr+CE6TwKkYx4 9nsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=evMQQnla; dkim=pass header.i=@codeaurora.org header.s=default header.b=BjyyRbbu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16-v6si17077343pgd.12.2018.06.07.06.59.04; Thu, 07 Jun 2018 06:59:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=evMQQnla; dkim=pass header.i=@codeaurora.org header.s=default header.b=BjyyRbbu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932772AbeFGN5Y (ORCPT + 99 others); Thu, 7 Jun 2018 09:57:24 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:39544 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932702AbeFGN5W (ORCPT ); Thu, 7 Jun 2018 09:57:22 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0956C607DC; Thu, 7 Jun 2018 13:57:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528379842; bh=4YH7zUXB9uysXF1AY0kEzc8hBNIgUA2yk1xRvlkTZf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=evMQQnlaWNg7gFVxrSZzmSs+BvkE7Wybn56NuS8GIHFo95oxYEmtOUugL4sIzm2lc SNN4GI+z6q9llqSz60se8jjIrlAC6ps2OyWLjuffU03ICcd/5YfLhjcw/j7YbojnAJ ZU5avoGGmv3g1dPq1Rku2n8xSqkwFVRdzpms36iE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 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 5A55B602FC; Thu, 7 Jun 2018 13:57:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528379841; bh=4YH7zUXB9uysXF1AY0kEzc8hBNIgUA2yk1xRvlkTZf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BjyyRbbu+YtKOfAdgy4pkTXQoA2djtAOQw2IUwrcn4D3HXsYzWOGSbvM4XKhmML6z 3EWLRuz/5iXcbgDiWRRdVeu5L2gshVcFf/TGJ2jy76RGUGTuVS+ZMJipapRidlcEfh rGRy/VE+V6isxAsqe54VT7PtygTA1XLj5JNLzMqo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5A55B602FC 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, Will Deacon , Mark Rutland , Jeremy Linton , Catalin Marinas , Marc Zyngier , Lorenzo Pieralisi Cc: timur@codeaurora.org, agustinv@codeaurora.org Subject: [RFC V2 1/3] ACPI: add support for sentinel-delimited probe tables Date: Thu, 7 Jun 2018 09:56:46 -0400 Message-Id: <1528379808-27970-2-git-send-email-agustinv@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1528379808-27970-1-git-send-email-agustinv@codeaurora.org> References: <1528379808-27970-1-git-send-email-agustinv@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Qualcomm Datacenter Technologies, Inc. on behalf of the Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.