Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2305551rdb; Sun, 11 Feb 2024 23:18:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXWFuiCeliiUj7lWCQDEGkkbs93B6FMJ7idmDleyyBGhkhnn2OMRb2F8HZmjJZ22u3fgDA75oQ63mJeqrDbI+6dvBhXYUkRTFrg35/h4Q== X-Google-Smtp-Source: AGHT+IGeoyLOJFOJrwlJaGNkEzMEQTz8XNlHx3AWU1GbKF+u+KOhv9JLfngaHbbGeVbczTJkcYR/ X-Received: by 2002:a05:6402:35cf:b0:561:caa5:c12e with SMTP id z15-20020a05640235cf00b00561caa5c12emr483629edc.34.1707722297927; Sun, 11 Feb 2024 23:18:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707722297; cv=pass; d=google.com; s=arc-20160816; b=Yx39numND+59poMwwF82Ns8/mQMoJbyl18ljv0xgEBZ59bEvdVFmlz7o6N7WvAIS04 hKw/CkbHSNkIxR2boOQZ6SzDvXXDdBtVZDnXUj84SQdz3360Opu+MkGeNHv2k6d+NXbV z8nz+C34T/rQSAld9Dhu2NlO1Vpju2pA+r+gSQxxtmDP3LElFk479WnuIm0+Q6hlfOvd 8q2UWjQJiGOGIqQqIMZBnF1AuxWAOX198XdfUz42vSf5BDuGY/EkMN4vpZsXWIfRXgiA JlLkXOCxSPcfY58FrEomZSLEyAVAMh3upVTPa9XCfhNGDh5HTn3y4Lfw9TFdt0Es7HOB yWsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=CUY0u77LpDzDuYEI3UaSFh/5N6MYkeVtwCWoFHAjIZs=; fh=JLY7A0VMpG0Z51MH1rkXwy4ICfkf83svvlntwqhCIQ0=; b=Jmya3grLC2kGBw7TZIc6mVGhwo7UB+LRWwviSKlBa64oQrL4ngb4A4vr3mEosWnoWl HMMuFRAaWXpv6UGKPkBVFm46nVmF4/rcrSzCKqN6H4rETZf+M+C+/xHrRxHxcbzhL6Th xxF0GxE9lxC5a6Z/WQjNe4rvDfy7FQXh7PpNPW7uaxMv9ul7la8o3+TjnzRFFHBQ4Cfk fbLqG9OUlA4r9rZK2Hlp9rnInB8uUkFMmj4jhrIqWj+MB4nBl2+4L2ghKsDtttDFB+RR c3J65hrnIQeNfVhYofWWmVDBgAnj4qURp53Ju9GCwJVYFgQdGj2K7ecOTe3seyv3gqI2 7SBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T2sbedfI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVk2ItRkXz2E4kUr6sNwIaCHreOU1G1M1m4xL5/GkoY6bhPImoBqSOOmshmUo8kfIO8fxmHNZQVzKwWh7nufJoZFrafbw9QtiNcN5r7xw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x20-20020aa7d6d4000000b00560ef5203cfsi2407376edr.98.2024.02.11.23.18.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 23:18:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T2sbedfI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 583D71F269B8 for ; Mon, 12 Feb 2024 07:17:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1D9717C74; Mon, 12 Feb 2024 07:14:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T2sbedfI" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CAEA017C71; Mon, 12 Feb 2024 07:14:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707722067; cv=none; b=JWJncPOBzz/N4Xj0M4mCKaRvjH0sWgSWGPnMoroyyDSNarsYVL5HJg3uYOkhQlSfgdWVlvC98B3MtBbZrJZDPOGzvaN++Mst15NMzk0MuQBSahNgiE0CJ8kPannQUPuBGsR5VRGb7GinfDOjvB1U6cnvRnbpzpi9YXiDrL9v+CI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707722067; c=relaxed/simple; bh=6lp/WH08J/LRYj3MSpfMxgfWTwohOEkcpPcuQchVods=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=EOhtc2CYcjzmEF8mprbb/n8Rlp/SMAAFG4LTi2XILK0uH3gxEs/hm4sIGXVzRlYQ5PWvKeSOe3O0zTjx6BWKESPbR+imsnp0R+j5h+gLwi+XSy14HqPjeNpj+meZ4v5PgnkWDwvaSDKgcLqLzWngv+DXg51suK/FCrY9G8n0/xI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T2sbedfI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33B8CC433C7; Mon, 12 Feb 2024 07:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707722067; bh=6lp/WH08J/LRYj3MSpfMxgfWTwohOEkcpPcuQchVods=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=T2sbedfI/LZ26pARy0lxvc9zmdh4lHKKljYEP6/5qJaKWWXBKvA1+OT15u3PB8D8a RJNdgz8JnnOLnuXe8dBUrGN/dcN/AjpTlwfeyTbQxOiit0OEXRo1w11Vw2aUxlQY/Z cEs0f4wjhMXPsvEJijvPndqpydpjD7NtGXzwY50CIT0F0esWYu/I0ALEkxJkQ7GYds iz0XfohaAis2DZzXuqnglZ1OdrkYgoDO71WJJeCtWCz5FPSEVeHPDFWNd2Rrk7Cinf o+Dnsu6820ngR0j1zxOvI12SLfeHA9PxG5T6MLhd6KEbpkowoVWbqaS+ZHuk63ydtf nO298PTCVEwCQ== From: Kalle Valo To: Max Kellermann Cc: miriam.rachel.korenblit@intel.com, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ayala.barazani@intel.com Subject: Re: [PATCH] iwlwifi/uefi: remove CONFIG_ACPI check References: <20240211201919.3751551-1-max.kellermann@ionos.com> Date: Mon, 12 Feb 2024 09:14:23 +0200 In-Reply-To: <20240211201919.3751551-1-max.kellermann@ionos.com> (Max Kellermann's message of "Sun, 11 Feb 2024 21:19:19 +0100") Message-ID: <87r0hif92o.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Max Kellermann writes: > This fixes a build failure on ARCH=arm when CONFIG_EFI is set but > CONFIG_ACPI is not, because uefi.h declares iwl_uefi_get_sgom_table() > and iwl_uefi_get_uats_table() as dummy inline function, but uefi.c > contains the real (non-inline) implementation: > > drivers/net/wireless/intel/iwlwifi/fw/uefi.c:359:6: error: redefinition of 'iwl_uefi_get_sgom_table' > 359 | void iwl_uefi_get_sgom_table(struct iwl_trans *trans, > | ^~~~~~~~~~~~~~~~~~~~~~~ > In file included from drivers/net/wireless/intel/iwlwifi/fw/uefi.c:11: > drivers/net/wireless/intel/iwlwifi/fw/uefi.h:294:6: note: previous > definition of 'iwl_uefi_get_sgom_table' with type 'void(struct > iwl_trans *, struct iwl_fw_runtime *)' > 294 | void iwl_uefi_get_sgom_table(struct iwl_trans *trans, struct iwl_fw_runtime *fwrt) > | ^~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/wireless/intel/iwlwifi/fw/uefi.c:392:5: error: redefinition of 'iwl_uefi_get_uats_table' > 392 | int iwl_uefi_get_uats_table(struct iwl_trans *trans, > | ^~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/wireless/intel/iwlwifi/fw/uefi.h:299:5: note: previous > definition of 'iwl_uefi_get_uats_table' with type 'int(struct > iwl_trans *, struct iwl_fw_runtime *)' > 299 | int iwl_uefi_get_uats_table(struct iwl_trans *trans, > | ^~~~~~~~~~~~~~~~~~~~~~~ > > I don't know how the driver works, and I do not know why the > CONFIG_ACPI check was added in the first place by commit c593d2fae592a > ("iwlwifi: support SAR GEO Offset Mapping override via BIOS"), but > since it did not add the same #ifdef to uefi.c, my first guess is that > this piece of code shall be used even if ACPI is disabled. > > Signed-off-by: Max Kellermann > --- > drivers/net/wireless/intel/iwlwifi/fw/uefi.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) "wifi:" missing from title but I'm guessing Johannes can add that. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches