From patchwork Thu May 25 15:06:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Fitzgerald X-Patchwork-Id: 99070 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp447635vqr; Thu, 25 May 2023 08:15:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/cjVpgWXz4+SMmja+CdBBt3wDXNBrPAu0G2S0shFTkRgsPEoit6lB1Wv2wQtyFaV6qza8 X-Received: by 2002:a17:90a:6e4f:b0:255:dc4a:a749 with SMTP id s15-20020a17090a6e4f00b00255dc4aa749mr1887165pjm.16.1685027719510; Thu, 25 May 2023 08:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685027719; cv=none; d=google.com; s=arc-20160816; b=KUm2H8Wpu0DQd7WSihBcdVLcezMcMTP39WIMPw231Y7oIQXyxyJdu+uslOCdu+cPxD s6IrY6wMw1nWJbrQRO0GI0nS4mcVaCsyJj4nHHHk1oapZ4Ob8mGEmsLQU456O+aotBT+ LJ7wmgg3Pec+eP/7AxLe+bSXdnXZB+qMIFqeSKpYh+zIHpvkLYxZsBf3kSe7RP1YKga6 ZuHXJW3cbV/d/vbhSbPnWQTw13YcZSCIOZFWHSG/INwAHlaJTQrRyR2GZ8jwhOchaoSU dgdqIDRsnJomjQsoiLBD6KtlWzpL8GzquCFjVK/Y0a03Dccrg291mUAOWbWHTrpFZvT5 0vaw== 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 :dkim-signature; bh=KBIQkBTpPs9dMkt+aC+6iuTHRtDG89mSTGRvAWzKXRU=; b=jG8RjMz+bcbGLCUtwvDNhE5ZCuUUpkLFQQ0WQozQTPt353Z/1xJiVucup6ojhqc7Se AoXUtbJ8BZ1ZFb0npfDltrc6Z3VWA/7lhjgJfIjcMeDC1f9h5f/cr7NulPIkvdhw6dTy P+/guXToDVapUo+Lp0SA8BhXtlRjHttEGbEeCO7nTuOlV+uDbJfB0GVFWXqr7gMmvHjW HCDmXgLGmEq3yX5U4Ia4erNsk+ET/dgPRGGZ40J9iNvp9vrP9y+qvr8OxUS1/h8HVePP nBOg0/HA8ysUfLwvpnbGdwk39BNM3OGbv/+ukkCRimSobrYW0xRvX6yWnNMxecWliSgr I9LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=L4ImnF6j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k193-20020a633dca000000b005098590f1edsi183028pga.757.2023.05.25.08.15.06; Thu, 25 May 2023 08:15:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=L4ImnF6j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241474AbjEYPHf (ORCPT + 99 others); Thu, 25 May 2023 11:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241425AbjEYPH3 (ORCPT ); Thu, 25 May 2023 11:07:29 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A2E7198 for ; Thu, 25 May 2023 08:07:28 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34PEE1Bv025343; Thu, 25 May 2023 10:07:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=KBIQkBTpPs9dMkt+aC+6iuTHRtDG89mSTGRvAWzKXRU=; b=L4ImnF6j3P+RjrPTNwSsBAO8KZnux+JrtF990BsFFTFcWShKDNiMFo5zacvFLMrcoUCr J4M5+581U905r0MqkUBOu08EPTvaHq3A7+jS1ZyYwFr9T/ODxvgP6D86WSaLkG8GWf65 iVeD4wjEnNIctr1AmKlRRBRnM4gWEf0ViBSpSQOiAFHrWRikCQsYLfHj9LFKPUsUZ4sW m/WskQryjvSJ4LScRfUCkB6vbncz0YgaY4UBiggFcwPr4nM2EgdLR4whEGoawz/qVlV0 iIXpAJjMxuawRa483NFhiNaTBTwr8dcOmf/Vd4C19AOsXb3aROzVNU4JuhEA16gbbbk0 yg== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3qptmm70m4-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 May 2023 10:07:08 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 25 May 2023 10:07:05 -0500 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 25 May 2023 10:07:05 -0500 Received: from EDIN4L06LR3.ad.cirrus.com (EDIN4L06LR3.ad.cirrus.com [198.61.65.166]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 86FA515B7; Thu, 25 May 2023 15:07:05 +0000 (UTC) From: Richard Fitzgerald To: , , CC: , , , Richard Fitzgerald Subject: [PATCH 11/13] ALSA: hda: Fix missing header dependencies Date: Thu, 25 May 2023 16:06:57 +0100 Message-ID: <20230525150659.25409-12-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230525150659.25409-1-rf@opensource.cirrus.com> References: <20230525150659.25409-1-rf@opensource.cirrus.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: DSk6jIDbkwD673WbeKhFJ6el818P3339 X-Proofpoint-GUID: DSk6jIDbkwD673WbeKhFJ6el818P3339 X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766879625834798407?= X-GMAIL-MSGID: =?utf-8?q?1766879625834798407?= Add #includes of dependencies into hda_auto_parser.h and hda_generic.h hda_auto_parser.h uses definitions in hda_local.h. hda_generic.h uses definitions in hda_local.h and hda_auto_parser.h. It also references struct hda_jack_callback, but only as a pointer. This has been forward-declared so hda_jack.h only needs to be included in source that actually uses it. Signed-off-by: Richard Fitzgerald --- sound/pci/hda/hda_auto_parser.h | 2 ++ sound/pci/hda/hda_generic.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/sound/pci/hda/hda_auto_parser.h b/sound/pci/hda/hda_auto_parser.h index df63d66af1ab..579b11beac71 100644 --- a/sound/pci/hda/hda_auto_parser.h +++ b/sound/pci/hda/hda_auto_parser.h @@ -8,6 +8,8 @@ #ifndef __SOUND_HDA_AUTO_PARSER_H #define __SOUND_HDA_AUTO_PARSER_H +#include "hda_local.h" + /* * Helper for automatic pin configuration */ diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h index 34eba40cc6e6..a8eea8367629 100644 --- a/sound/pci/hda/hda_generic.h +++ b/sound/pci/hda/hda_generic.h @@ -9,6 +9,9 @@ #define __SOUND_HDA_GENERIC_H #include +#include "hda_auto_parser.h" + +struct hda_jack_callback; /* table entry for multi-io paths */ struct hda_multi_io {