Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1713586pxy; Mon, 2 Aug 2021 08:28:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrPPHWHV2hiDD5/wmUT2MNoO2EKndOEz+5XH0zPZEWI0kyuwN4Wk+UEYALTYH9rXx7ZyCz X-Received: by 2002:a50:d6cf:: with SMTP id l15mr11154491edj.319.1627918106314; Mon, 02 Aug 2021 08:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627918106; cv=none; d=google.com; s=arc-20160816; b=BUVx7oN+NgB5KHV/YkcH1ZCDsVBVsUJUrwcxUQX6KdAUkOs/slzEegCgcpUWnOz0ez lMZRanhVZ3xU1UzvzlH3raxXZVib7ySelklvo6Ssgs1cfmAgQlG5Y16OGWY8FdBsB8r7 JUcnlbJAlCDdPBGlOBQrOgAg+bsm1O+3wkdQxVemmpkWjLSuflVkKMQURE6D1T5UXT8J m5QA3QmaZLjCJKeTRctpB8m5+j9yrxvHk+iTtICitnpu8SB99+9UVq6VxIZtAG59AjUk oyS6xaZrXEGM631EiIBtVmxMytg0ttSMP+HQAkq5DRmMeCHQpQNJUhzuCwBnYX/NgCNz NegQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BOf7JVM9cZ2/Flm9roXx3D2z4TsDdEdCPOyhD6WjFe4=; b=f7L61IxdmSS9AWiUIMeqxCozdotSLtFpZF6KuDkhV80tRscj7w0FVbpVtVY5ce93cK 0BpuxCJI9qZmIB6tW45rjV2xHnLYwvTpRpMkO+msoZdLj+2cCmQ/aVErY5jqzI4CBFV4 X0GMe2m7lwGV9gpDMjCT6DxlbA+WX1XOVAtwU61VGewlNqECPHlOLJJfdtHVPfAn+bBe zvWd8LwJNgr13JWwsguiG7nLFjH+sYIrJy2BtSLCEdlwar4BU14g+davwUgLxmZ3b0Ym 9t1VXvB+xKBpg46lvlaAkMD0gldPg2gK22AbjzwvQAJnJBhE9RtNPCrsz32OffxSoC7Y +9cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bv23si10672333ejb.62.2021.08.02.08.28.03; Mon, 02 Aug 2021 08:28:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235089AbhHBPYa (ORCPT + 99 others); Mon, 2 Aug 2021 11:24:30 -0400 Received: from foss.arm.com ([217.140.110.172]:37504 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234852AbhHBPY1 (ORCPT ); Mon, 2 Aug 2021 11:24:27 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3F02B12FC; Mon, 2 Aug 2021 08:24:17 -0700 (PDT) Received: from e123427-lin.arm.com (unknown [10.57.39.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5AD013F66F; Mon, 2 Aug 2021 08:24:14 -0700 (PDT) From: Lorenzo Pieralisi To: linux-kernel@vger.kernel.org Cc: Lorenzo Pieralisi , Ard Biesheuvel , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Veronika kabatova , Robin Murphy , Will Deacon , Hanjun Guo , Sudeep Holla , Catalin Marinas Subject: [PATCH v2 2/3] ACPI: osl: Reorder acpi_os_map_iomem() __ref annotation Date: Mon, 2 Aug 2021 16:23:58 +0100 Message-Id: <20210802152359.12623-3-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210726100026.12538-1-lorenzo.pieralisi@arm.com> References: <20210726100026.12538-1-lorenzo.pieralisi@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The __ref annotation has nothing to do with the acpi_os_map_iomem() return value type. Redefine the acpi_os_map_iomem() function prototype to avoid mixing the __ref annotation with the return type declaration. Signed-off-by: Lorenzo Pieralisi Cc: Ard Biesheuvel Cc: "Rafael J. Wysocki" --- drivers/acpi/osl.c | 4 ++-- include/acpi/acpi_io.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 8f67bf0f090b..fdee0c6f4f7f 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -321,8 +321,8 @@ static void acpi_unmap(acpi_physical_address pg_off, void __iomem *vaddr) * During early init (when acpi_permanent_mmap has not been set yet) this * routine simply calls __acpi_map_table() to get the job done. */ -void __iomem __ref -*acpi_os_map_iomem(acpi_physical_address phys, acpi_size size) +void __iomem *__ref +acpi_os_map_iomem(acpi_physical_address phys, acpi_size size) { struct acpi_ioremap *map; void __iomem *virt; diff --git a/include/acpi/acpi_io.h b/include/acpi/acpi_io.h index 027faa8883aa..a0094420303f 100644 --- a/include/acpi/acpi_io.h +++ b/include/acpi/acpi_io.h @@ -16,8 +16,8 @@ static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys, extern bool acpi_permanent_mmap; -void __iomem __ref -*acpi_os_map_iomem(acpi_physical_address phys, acpi_size size); +void __iomem *__ref +acpi_os_map_iomem(acpi_physical_address phys, acpi_size size); void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size); void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size); -- 2.31.0