Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp51449iof; Sun, 5 Jun 2022 20:49:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTq2vHwX5PIeJDtRfhM4E2PGxfZF569DazwbRH/PIGjwf2br4z8D2AfaUToasfz9zgMyaI X-Received: by 2002:a63:2cc3:0:b0:3db:5e24:67fa with SMTP id s186-20020a632cc3000000b003db5e2467famr19067700pgs.46.1654487346473; Sun, 05 Jun 2022 20:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654487346; cv=none; d=google.com; s=arc-20160816; b=v8f5LbykaKXEe6DzSzGTfhQUvWbcGLUdhu8SKzkK2NP1koLKnasZrToK0sqoiAEuNV bqOzB23tpo6svs8KGfAMkW78tiyW2ZbMiy6jQ+ncB63bEOCpy/o6A8uj9UZdX2n5y5Q+ 7+nfbxGC58MrGzTsQu0JKRdk/eQV6lMrIJRk5S+AV5crc28tepFRzPRUY3SvHd+Jqloj NuLVI1zxZ0Z2DjnL/0BHmyisX4DNviUvwkhBuMtqrIv2UEfP7Y/5BsSMZTSAyY/g/AEa tDAmX1LnJZhRTQWzdT4kPEcOtFyhRfLArTi/Y9+Z0l6X9rFNbwPDce8BkwrzGUtHxIoS Olvg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7mgepNtifVOubftC6yvSuR0KP4Nmrr+zpwrm7YPBXec=; b=RgjhBevyAUdkKAH0FUhvGI4L3vVJ3IxEzoy2zGHTK0SkYaueD5rvDI1F34+23HNGzh 1WHP+gZnrbDhvV2qs4Vjw+PSCcfiQxbYyVA9tlr4rytagQtMiqkBM5WcUK9D/6D7xbAy xw6E4Sjstid/+nz8CxzpQbaR5O3bRzVOK7irz1mDUkxta3/2YLCEckDQCPAcVth+seNA XmUI/3XaKvZg7gp5JLdZ2q7y9LLU4sKaPtuVQXup1aiH+uglBuThflVUY7+nmx9OHP0j hM2vgCqkdN1YS0Vkek15sEN/IzHbqGb8Tg5SD/j0MWVz0xSf0aY5aq8jH+sM8v0uOeHV Drwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="n/nbTdJ5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id hk12-20020a17090b224c00b001e347951503si1022432pjb.164.2022.06.05.20.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 20:49:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="n/nbTdJ5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8C45E5DD32; Sun, 5 Jun 2022 20:41:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343694AbiFCRsW (ORCPT + 99 others); Fri, 3 Jun 2022 13:48:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345321AbiFCRsI (ORCPT ); Fri, 3 Jun 2022 13:48:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A7735402D; Fri, 3 Jun 2022 10:44:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BB089B82430; Fri, 3 Jun 2022 17:44:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01735C385A9; Fri, 3 Jun 2022 17:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278286; bh=jN3i2LdxfYzhR0w/hB0nyLMKgMI6Tdxlrm4dOLX7fsg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n/nbTdJ5R5XIvVU33rt9WD8FR8iT+2CzdBB4mIxRYbJj5Qz/zgDPTaZayC0Whi//F CFttcEulqANY6i/yC0qvasaaOOMMW74xEFdTwImt6y8TemMJka0QXaM44r888Qu/Eo EiWkeNKX6Zj08GKVZVSXOoUcNLJtIx2vei63B7JU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , "Rafael J. Wysocki" , dann frazier Subject: [PATCH 5.4 09/34] ACPI: sysfs: Make sparse happy about address space in use Date: Fri, 3 Jun 2022 19:43:05 +0200 Message-Id: <20220603173816.267614104@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173815.990072516@linuxfoundation.org> References: <20220603173815.990072516@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko commit bdd56d7d8931e842775d2e5b93d426a8d1940e33 upstream. Sparse is not happy about address space in use in acpi_data_show(): drivers/acpi/sysfs.c:428:14: warning: incorrect type in assignment (different address spaces) drivers/acpi/sysfs.c:428:14: expected void [noderef] __iomem *base drivers/acpi/sysfs.c:428:14: got void * drivers/acpi/sysfs.c:431:59: warning: incorrect type in argument 4 (different address spaces) drivers/acpi/sysfs.c:431:59: expected void const *from drivers/acpi/sysfs.c:431:59: got void [noderef] __iomem *base drivers/acpi/sysfs.c:433:30: warning: incorrect type in argument 1 (different address spaces) drivers/acpi/sysfs.c:433:30: expected void *logical_address drivers/acpi/sysfs.c:433:30: got void [noderef] __iomem *base Indeed, acpi_os_map_memory() returns a void pointer with dropped specific address space. Hence, we don't need to carry out __iomem in acpi_data_show(). Signed-off-by: Andy Shevchenko Signed-off-by: Rafael J. Wysocki Cc: dann frazier Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c @@ -438,7 +438,7 @@ static ssize_t acpi_data_show(struct fil loff_t offset, size_t count) { struct acpi_data_attr *data_attr; - void __iomem *base; + void *base; ssize_t rc; data_attr = container_of(bin_attr, struct acpi_data_attr, attr);