Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1237723imm; Fri, 22 Jun 2018 12:49:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJYcPvHN+bJqlzNAmyIjrJGN8ASm8TEbJIsINpVO2SCUPQD2IGbIa4OotDybtFSwGzE+48t X-Received: by 2002:a62:c9ce:: with SMTP id l75-v6mr3069415pfk.179.1529696960955; Fri, 22 Jun 2018 12:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529696960; cv=none; d=google.com; s=arc-20160816; b=gRjQmizModuJGIbdQcE5e7WfHhA995ci/6+LgNzuXMJPS58Ip/VeT8NVSeBagaQLe8 zoe7d6fyS7fRiSwWZhEyjLTvQJ1zl+odhdIL5kzbF6Oy13+nC6vWAxJQDIUmUr1Jqbw7 XZ/EEeHAY/RHmOAGFdriqNOIYRm2DOupVv8dS+VxGVil1d5EEciIurflpGbwieIJjEr7 i5lFLij9tdOutq1U0755q9cBPBX00odztHsR+FjiSh/aueMydhUve+9cPS6hk3XsU17M TZ9EPCUpqWl4muC/ICnmkVkNpQk/3nEfP9WfOaJBtfhSv8orLfNwqmmMlmj5p84Ro0au XQJA== 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=YPuwQBdJyzDyvXVluHMmykl0XrrK/x7/k8SWQT9NmrjqNkd0nhbuEmOOsDzTOJDuw2 kJgV7EyIW+8Vg8+iymzKVdROlJyiVns1RNtEv5d+0ZW6In1nvJnIdkoOcWjzyVDEvdqt vgAWOL6vL/7nv36wCVWz8pGna6kjn9f2qh+HELjTHFPBZfjCzdUcfnuttfpCVSBVY5ZN y5SJ47snuahX+0HeRhIkGNIat+49r+Ojc6q8PcXlv4GlPH4BZ2H4+ha1KpaFaA34dZDE boHO7+Bv2LkmCWEcubG6/LJO9we8QZ6AgCftNHd1CmFxWEKDWwEKMP+gd/BiQL107fWk pjUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=nw7Wy76T; dkim=pass header.i=@codeaurora.org header.s=default header.b=nw7Wy76T; 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 w5-v6si7653323plz.438.2018.06.22.12.49.06; Fri, 22 Jun 2018 12:49:20 -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=nw7Wy76T; dkim=pass header.i=@codeaurora.org header.s=default header.b=nw7Wy76T; 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 S934541AbeFVTrY (ORCPT + 99 others); Fri, 22 Jun 2018 15:47:24 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:56014 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934399AbeFVTqs (ORCPT ); Fri, 22 Jun 2018 15:46:48 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B86D360B18; 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= 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 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" Cc: timur@codeaurora.org, agustinv@codeaurora.org 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> 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.