Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp225889pxu; Thu, 7 Jan 2021 03:21:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxnJ1fhBxT44ucIUs473KsnXIgUYj5YMdUduukwbmUoIuApfPaRzRefe3UnzKVekzKaD6A X-Received: by 2002:a17:906:8255:: with SMTP id f21mr5830439ejx.265.1610018468542; Thu, 07 Jan 2021 03:21:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610018468; cv=none; d=google.com; s=arc-20160816; b=oji9cZRhrkyFTra30wUoHek0YpI7QoB02wKZfL8Pp0W+s75dcrc02fzKj1psU45YQZ 0hmA0F+wtpa9DQSGCtXNVNnewaX8Z5Q1TJ/OY4b/zjubF2p4ZL9ho43q+k88985c8svs LWAJlr4Md1+X544qrq8tDIgH16ILz1J7zIu3QW2KOMIuoVVPQxN/b1jmSqtfY8iK6mfl Ey1tPo6Pj2OE9neFvkysI1C5L81BwvlRSri3xJ6W+yFSRAyu4FkRPAUaM6a5RwfHEQZ2 omha4419mpmQuv9WIanKL6vHgKzeQSnmFWBl8X0IpVT2jkYsdqInIIDxtkJSLk2V0DOh RTEw== 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=DnYjHMvB47kPT4JGOlXY7+9HoFboaqYKc/bXFL8atZ0=; b=fNkpRCAPKqfdTMGaR32s2+w+4lCqYWaTCA6wopJJWGNxGEzpgDJC76qpLxDQCdTwhi 2uaXfii9sGY8dgylThMK9uuyvpuQax9bSNGVhIj9KEdS1tiZkRiY+i/YCXNCZzcpWdO+ KSJ7FMznClSn/0F4emh63sJr/LgJI+XFHVzSFCByLY0iMwiNZoIhu4Q5gi8OlXfbv2OV rnu6a9eu/5qyB6Bp0V9ePAbWMuEmwMul/fDgs4mLITx7RQ4MbtPJN0Ki1402U6nizmm3 DbrtmlTBsBn59Ua1BIHpbhN4mrdHoo60igUAiMFpVtXrHdmLz+c1z8/LBGKjYlJJ/Szn P58Q== 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 y9si2099982eju.43.2021.01.07.03.20.45; Thu, 07 Jan 2021 03:21:08 -0800 (PST) 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 S1727785AbhAGLTA (ORCPT + 99 others); Thu, 7 Jan 2021 06:19:00 -0500 Received: from foss.arm.com ([217.140.110.172]:58064 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbhAGLTA (ORCPT ); Thu, 7 Jan 2021 06:19:00 -0500 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 6698B106F; Thu, 7 Jan 2021 03:18:14 -0800 (PST) Received: from e108754-lin.cambridge.arm.com (unknown [10.1.198.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 17AAC3F719; Thu, 7 Jan 2021 03:18:12 -0800 (PST) From: Ionela Voinescu To: rjw@rjwysocki.net, lenb@kernel.org, robert.moore@intel.com Cc: viro@zeniv.linux.org.uk, catalin.marinas@arm.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, ionela.voinescu@arm.com, Erik Kaneda , "Rafael J. Wysocki" Subject: [PATCH 1/3] acpi: cppc_acpi: remove __iomem annotation for cpc_reg's address Date: Thu, 7 Jan 2021 11:17:15 +0000 Message-Id: <20210107111717.5571-2-ionela.voinescu@arm.com> X-Mailer: git-send-email 2.29.2.dirty In-Reply-To: <20210107111717.5571-1-ionela.voinescu@arm.com> References: <20210107111717.5571-1-ionela.voinescu@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cpc_reg address does not represent either an I/O virtual address, nor a field located in iomem. This address is used as an address offset which eventually is given as physical address argument to ioremap or PCC space offset to GET_PCC_VADDR. Therefore, having the __iomem annotation does not make sense. Fix the following sparse warnings by removing the __iomem annotation for cpc_reg's address. drivers/acpi/cppc_acpi.c:762:37: warning: dereference of noderef expression drivers/acpi/cppc_acpi.c:765:48: warning: dereference of noderef expression drivers/acpi/cppc_acpi.c:948:25: warning: dereference of noderef expression drivers/acpi/cppc_acpi.c:954:67: warning: dereference of noderef expression drivers/acpi/cppc_acpi.c:987:25: warning: dereference of noderef expression drivers/acpi/cppc_acpi.c:993:68: warning: dereference of noderef expression drivers/acpi/cppc_acpi.c:1120:13: warning: dereference of noderef expression drivers/acpi/cppc_acpi.c:1134:13: warning: dereference of noderef expression drivers/acpi/cppc_acpi.c:1137:13: warning: dereference of noderef expression drivers/acpi/cppc_acpi.c:1182:14: warning: dereference of noderef expression drivers/acpi/cppc_acpi.c:1212:13: warning: dereference of noderef expression Suggested-by: Al Viro Signed-off-by: Ionela Voinescu Cc: Robert Moore Cc: Erik Kaneda Cc: "Rafael J. Wysocki" --- include/acpi/cppc_acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/acpi/cppc_acpi.h b/include/acpi/cppc_acpi.h index 232838d28f50..c7fc4524e151 100644 --- a/include/acpi/cppc_acpi.h +++ b/include/acpi/cppc_acpi.h @@ -39,7 +39,7 @@ struct cpc_reg { u8 bit_width; u8 bit_offset; u8 access_width; - u64 __iomem address; + u64 address; } __packed; /* -- 2.29.2.dirty