Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp484865lqi; Thu, 7 Mar 2024 03:13:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW3bn4nQKmSYVS/BvDEApsC7CXTdeybCcjCdeCJpYkc6kDThJ63TrKkIp8VHOkjLq4uxXglULOZV77gYtuyZxL+PWGKp1L8j3NT4nq/sw== X-Google-Smtp-Source: AGHT+IG5FxkhWFzYWc8pbmIGenfGNdSg5Ebrv6nTh3/ZcyRjZAsw+a62xOCpQNHQlhIfGRxO7pi9 X-Received: by 2002:a17:907:1708:b0:a43:dc5f:f271 with SMTP id le8-20020a170907170800b00a43dc5ff271mr11982649ejc.42.1709809994801; Thu, 07 Mar 2024 03:13:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709809994; cv=pass; d=google.com; s=arc-20160816; b=TTEbg75Z35jR47sRjqW6hltyqxPLdNFOo6gikKwfuc37lDHIfAhKidwI53Irf3Mg3d bhLFaYy0Eoe2D6yR6mar3jLHtHPOyVWEkPQgZe4Wsy13lskq/jAPrs3tb1/gvJ1yxFWa YM7x+/pwYImMmQ0WYIPNsTRD19VIzVPuXSH6FzvATTefHpZSCHCrogACUAdr2BH8bTih 9pZMzf8ni1GGONjMSs7u+JJIMhlHbemXNEP9h/MHFJ3XOqym9IAB84rexCtE+IjeGT1e mEc5oIAkXhw/RCXyRnPmgNOh3b47kKbySlHYlmnDUTivuogc46YMeS3ah2Qvnp45b2EQ gflw== 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=lOdJujpe900SGega5RF4Bd47qBWiPBFNOAzo/3FsYBc=; fh=UcRs/avYcQW3IOGijHtjJk2S4icNlTCLLX3PL3Ze8y4=; b=WO2hqtH6O1tkGl8dd6/NDe5KrlewteLeGuHHv+lKnBuDxv+0MCd976WEFfTSTl1hxN fBd3yxDZ6H4Fhh9N16cv8p86lAaNWBBi5MSpCTYTEaLiJbaQVeGNm2bFZR5cnBptafcM TKCbdH2KbAxafJEYf2pQSwj7WycSsXQGgBkyklh9c2ROGYxtDPLBhIyJsKi3kwjIPm22 zgZA29NhnzOlLMPM0I5fBatENsYSa3suS2Ym+Bb1hrnEFXM7Zi8MdyTqt1q+g8InvFmI t4wSOinuiPiSzd0EWd/4S835lDDrudulmne+hnnodMO0MGTNnj8Bomq0e/MxNdgHhVcl p1Aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=fP7DoONM; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-95392-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95392-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m24-20020a17090607d800b00a45c8cc15f7si725932ejc.356.2024.03.07.03.13.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 03:13:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95392-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=@cirrus.com header.s=PODMain02222019 header.b=fP7DoONM; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-95392-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95392-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com 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 885421F230C5 for ; Thu, 7 Mar 2024 11:13:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 456B7128812; Thu, 7 Mar 2024 11:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="fP7DoONM" Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) (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 D650D126F39; Thu, 7 Mar 2024 11:12:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.152.168 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709809945; cv=none; b=JTzMPwvJSfFMoYUl7sw9BXkIXI4OQM2cnvnsb4EAF5mvYNNTMs4BHgesol5GHwtKMXpyX0QOt+7Z4/phaArLhvzX83zL2FHNGbOqx3QqKDskZVNnIiJ48Vk0QnBB9IykiLzE4PGbq102Tjms42/uCRJnQXcdElEMh+PSB+WkzPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709809945; c=relaxed/simple; bh=FB7Ee8xJ/8PLMJkMvxznXrv4kOdB8Uc0kJwg08TJBIc=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Mf3f7JuX3j51lZ1Z/4GfJiWz2MnWKr6bQrIPVU1ZuJcfsS4dJxmXni84FOR1sXsW6C9WzM+z+Ys1xZO5tH/FWiT4/HgWW4i7E36IZHJTGGnN8pl9JgGMm1KyhYKFXI2EqQqH+ry+JwKVI8ul9XOBaK/OroZ51cvelD3hMftClLQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=fP7DoONM; arc=none smtp.client-ip=67.231.152.168 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4278beiq008605; Thu, 7 Mar 2024 05:12:19 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=l OdJujpe900SGega5RF4Bd47qBWiPBFNOAzo/3FsYBc=; b=fP7DoONMc+z4EtExj FkCG/KJiIlk4IaOe2L5bzUE9TsIPo7i0+eQ4rk29aglpRI2dqJOcGHXJv7L+PGEY fhPbatJaNaMgTawNlBK4vQ7nU27go8S0Ug/iLDnaGP50/ALGi+Il2S1VWHXp1eHF mSLNgSO2A88N6LMMTRTyTr7KmEH/oQ0SvcNEt30rRF3PXWa8ZYtrwdl1uHdS2W6V bPtfQ6fkWWrL6U1KWGURIdLnrooLUY0lMSe+IlELtOBYnMCyceUTo6WjCwakBz4F FzcZN30e7k5VSBNwQo6kkq9RUKLu1oa9OS5+Y0QR3Qq19vPLqNjYq/612UwNLT2S VwZsA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3wpn931ha8-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Mar 2024 05:12:19 -0600 (CST) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 7 Mar 2024 11:12:16 +0000 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 7 Mar 2024 11:12:16 +0000 Received: from ediswws06.ad.cirrus.com (ediswws06.ad.cirrus.com [198.90.208.18]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id C818882024B; Thu, 7 Mar 2024 11:12:16 +0000 (UTC) From: Richard Fitzgerald To: CC: , , , , "Richard Fitzgerald" Subject: [PATCH 1/2] ALSA: hda: hda_component: Add missing #include guards Date: Thu, 7 Mar 2024 11:12:15 +0000 Message-ID: <20240307111216.45053-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: onFeZ66MZazGoqXDaIMo40DWcY2sgp5Y X-Proofpoint-ORIG-GUID: onFeZ66MZazGoqXDaIMo40DWcY2sgp5Y X-Proofpoint-Spam-Reason: safe Add the conventional include guards around the content of the hda_component.h header file. This prevents double-declaration of struct hda_component if the header gets included multiple times. This isn't causing any problems with current code, so no need to backport to older kernels. Signed-off-by: Richard Fitzgerald --- sound/pci/hda/hda_component.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/pci/hda/hda_component.h b/sound/pci/hda/hda_component.h index deae9dea01b4..a0fcc723483d 100644 --- a/sound/pci/hda/hda_component.h +++ b/sound/pci/hda/hda_component.h @@ -6,6 +6,9 @@ * Cirrus Logic International Semiconductor Ltd. */ +#ifndef __HDA_COMPONENT_H__ +#define __HDA_COMPONENT_H__ + #include #include @@ -82,3 +85,5 @@ static inline void hda_component_manager_unbind(struct hda_codec *cdc, { component_unbind_all(hda_codec_dev(cdc), comps); } + +#endif /* ifndef __HDA_COMPONENT_H__ */ -- 2.30.2