Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2389759rdb; Mon, 12 Feb 2024 03:24:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5IOl9Dq5n2vOiNyqz+lDcmdF7q/LVONXFE+VJgwXqFOITIfNqe39Ycq1iEXWqHbNmmYG6 X-Received: by 2002:a0c:f291:0:b0:68c:499f:f803 with SMTP id k17-20020a0cf291000000b0068c499ff803mr7244655qvl.30.1707737047398; Mon, 12 Feb 2024 03:24:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707737047; cv=pass; d=google.com; s=arc-20160816; b=SHn+in9RN/8Pvkfm8L+4nx2OGfdmtGGCgcnTTVGkvmjYs9F3pmJmBtd4tx8PSTGqBm 3ueZcRFKSaAx3KGFbqoB7SG00rf/3qMBS49B5Yp5LDL+/kbYpsQ9kTyNh5a5Glvajp8I MLhyEGFSQpvyJve/Gmdjv2eL3q5/pY9CB6baeeDhZZng7u2akmJ6pm41Xjdf9NEwDGGr eWD90FKreglETon0IUzKGcRec7srevXDZfIUL3OPibzmiCL/t/r0MrVVzKopN1M88FCg pdEz9HHJZm5U3XVHEvJPSpSBmH7pCz98RvobQTW2ctvaYXNA4/oYkqEUIdB7exz+b2gl kVQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=DpIxpADsvcksCSPWmzxLXvEJsYaYCsx7sMmcuaVKAsM=; fh=OHf+CyybnXtjOT4wnOSunaLDz1jrcFDFB3dQgE3f73A=; b=xFAroO8WAUisr9P24fT/X3bc9IrsSJO47Fl1KmunhPuvJ4pgoujRMkj6j2AoOx5UzM /ZePIsaTzeS3zoU7wZn8iyKqSIH32LUq0upX5+168C3T3yo6EPoXM0hB97RmmxbBmoqA cZOCOJKWmJY4VoeXEXo0RHVK0Wi2XQNupYzwrGP6r7ll34GGL6A1jyOVnbOWpEOF/fvP ATZLQ0vMuEwUPPWFzjS97kQqF9oGnpBdfRJ6fTsIYEtIpXRqDISYmsdaAA86us7c2jYq 1ybTQ36t++fiIkL5jMtlMh9Ff8DwyW66ofQjEL6gEQP0dpJ1KFUjNU0mbnh8XVRpteT4 XaqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=taRsQhk7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3443-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; AJvYcCXhqPq5iogU9kH0u4BWIkqrb9+cnKacPTF4cGqFcMfVnqUEjzLOq6wrS9lYAG75KQWf1AYy/QRyczhUMjf5c6WXWT3tKCDjuiFs+bmU+w== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jz12-20020a0562140e6c00b0068c87d03cbdsi144199qvb.248.2024.02.12.03.24.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 03:24:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=taRsQhk7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3443-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C89261C21993 for ; Mon, 12 Feb 2024 11:24:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A89339867; Mon, 12 Feb 2024 11:23:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="taRsQhk7" 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 53CE82BAE7; Mon, 12 Feb 2024 11:23:48 +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=1707737029; cv=none; b=ccHYdL/8+LPg5wtUb1wQ28sPDPNlJ425F+c6+7wNfsKacqWskp4hS0toMdxDXleheVEcXn+RRtk+hQV6FTH52fprEk+D8387LbWZIkEEBrUWsc8HC20dvJD/W2IpTkxQH45GF7z5iNrfX0KPZ6IErSHUKO+JEzQ8aY/ZJF2xC7Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707737029; c=relaxed/simple; bh=QWBljQ37tVO9zYHpDIfIS7N57SgyU4Ob3klCDZ6vAGI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LSOxOVrfwSRyE574JLjJT/0KVyKorFJTNouhjBwjwIixztKRXUzRg1o7WF4i8b1d6uOYZDgHg23GVlCUQzeNLAPxcukxkY7+LnXaO/LZvoVEWTzGrL2UocJofBmjzZBMti4mJ8p8WB3SdDlbCBDlFtubh15XKxKeNVcYPG9+7zU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=taRsQhk7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80F35C433C7; Mon, 12 Feb 2024 11:23:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707737028; bh=QWBljQ37tVO9zYHpDIfIS7N57SgyU4Ob3klCDZ6vAGI=; h=From:To:Cc:Subject:Date:From; b=taRsQhk7qi6FZ2wfVKxUhQnWohy/ynKu5x/Bs7k7woKlhf2XofhnCymJgSM3AFa2a 3+pDcgzfZnp7rg9XH7aeyMaDPh6O4fL8m6Tx/B4w/rnZkJly3eDzwP9A75DBEpWAy4 ho1uRuyQMnmPA4aplPMfWBDC52Oh3PPWbL41lLVuCwbTZcWGNWE9HJltrRTgHsk9mp iYxxAfIRuKbz+WsNPiRiBJJJ0jppet9Ab4IHzOTOxhgIuLn+y3SuXchunBJu4Ve0IY Zazigy2p8nfPCsEcDB3KyASgbLjO/8SgY0ffCSYiRCxqbMbzrTJCn7dyxQiCf3KSOs bNZFq2J7w98pA== From: Arnd Bergmann To: Miri Korenblit , Kalle Valo , Johannes Berg Cc: Arnd Bergmann , Gregory Greenman , Alon Giladi , Mukesh Sisodiya , Anjaneyulu , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] wifi: iwlwifi: fix #ifdef CONFIG_ACPI check Date: Mon, 12 Feb 2024 12:23:36 +0100 Message-Id: <20240212112343.1148931-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The #ifdef check around the function definitionm for two functions was changed without also changing the one on the declaration: 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, | ^~~~~~~~~~~~~~~~~~~~~~~ Adapt it by merging the declarations into the existing #ifdef block. Fixes: 74f4cd710705 ("wifi: iwlwifi: take SGOM and UATS code out of ACPI ifdef") Signed-off-by: Arnd Bergmann --- drivers/net/wireless/intel/iwlwifi/fw/uefi.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/uefi.h b/drivers/net/wireless/intel/iwlwifi/fw/uefi.h index 39053290bd59..303cc299d1bc 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/uefi.h +++ b/drivers/net/wireless/intel/iwlwifi/fw/uefi.h @@ -204,6 +204,9 @@ int iwl_uefi_get_mcc(struct iwl_fw_runtime *fwrt, char *mcc); int iwl_uefi_get_eckv(struct iwl_fw_runtime *fwrt, u32 *extl_clk); int iwl_uefi_get_dsm(struct iwl_fw_runtime *fwrt, enum iwl_dsm_funcs func, u32 *value); +void iwl_uefi_get_sgom_table(struct iwl_trans *trans, struct iwl_fw_runtime *fwrt); +int iwl_uefi_get_uats_table(struct iwl_trans *trans, + struct iwl_fw_runtime *fwrt); #else /* CONFIG_EFI */ static inline void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len) { @@ -283,13 +286,7 @@ static inline int iwl_uefi_get_dsm(struct iwl_fw_runtime *fwrt, { return -ENOENT; } -#endif /* CONFIG_EFI */ -#if defined(CONFIG_EFI) && defined(CONFIG_ACPI) -void iwl_uefi_get_sgom_table(struct iwl_trans *trans, struct iwl_fw_runtime *fwrt); -int iwl_uefi_get_uats_table(struct iwl_trans *trans, - struct iwl_fw_runtime *fwrt); -#else static inline void iwl_uefi_get_sgom_table(struct iwl_trans *trans, struct iwl_fw_runtime *fwrt) { @@ -301,5 +298,5 @@ int iwl_uefi_get_uats_table(struct iwl_trans *trans, { return 0; } -#endif +#endif /* CONFIG_EFI */ #endif /* __iwl_fw_uefi__ */ -- 2.39.2