From patchwork Thu Jun 1 15:47:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Fitzgerald X-Patchwork-Id: 102054 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp429453vqr; Thu, 1 Jun 2023 08:50:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5sL5aiV7gI3f/twOBZicQ8c4ywJ9eEo7ohl5d4zLDglJYU7NuQAAl9OwER0NFELe4Aj1Fp X-Received: by 2002:a05:6a20:5494:b0:10a:b2a2:a301 with SMTP id i20-20020a056a20549400b0010ab2a2a301mr8011580pzk.12.1685634608301; Thu, 01 Jun 2023 08:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685634608; cv=none; d=google.com; s=arc-20160816; b=O8rVJ2CYrSvhOYog/YS4qvJdq1apc39jLsl46EGyL55NMt3GXedOyO8P8cXFPWZ21s 1sER7eFAkwuOfjTFlTILFFcWPQuYO6r2jO9kz5cP82eoeq+qpVHTYXf7aW9QQh/CP60r emRvZ7cG3fnPOBL4JqpB5JG5kE57KDaXOqarDJBn3RxBcsRFZSAjPGjICKMpDg/hr7PY wXLSLJYoa3XhYx3R9j9NFtti8U0qzXZBLwPYu+jQ5tEQQtO61V84IawvB8v64ymUSaAk 2LJPNC7kBhZ6dUxSImNWBqsqbIAGfAoIB4XrD80/M6frHLvyRwm5BuoHS+Z2drAd0077 UGvA== 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=YCHrO51rdEIW3nxxsk/SeH8SMw/VeMwKodb2xk5YgRb7aObLHA7/ZCvdxG5HjWBTzI uPxjEM//mO3K+0l+nH8oOCKmthRa9hGtBoNXBezeo5APeerBYORfl3A3HdgxcymOTsLN kFvK0spGt7kx8OvB+dobz6DR2HsRc/sqUawOMRlHkvUP2qHUnhKBHXMZMTnIAvqBsc2j XjGX035j7tlYeoGXYmVwLUpfEhX4MW6idlxkHYzoLPpxiT7akjsm2RTBFEha3Y9Q8e6y Wkkh7ePf1QGWzVU1Co7X+f0sXFXeCwSNjB+nYPlsb7cSAsx9WlX5E7TmtO5ujWWYj6ZB cX5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=gjRiBr+m; 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 p5-20020a625b05000000b006281ec442absi5572933pfb.309.2023.06.01.08.49.51; Thu, 01 Jun 2023 08:50:08 -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=gjRiBr+m; 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 S234619AbjFAPsK (ORCPT + 99 others); Thu, 1 Jun 2023 11:48:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233601AbjFAPr4 (ORCPT ); Thu, 1 Jun 2023 11:47:56 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB8DE137 for ; Thu, 1 Jun 2023 08:47:53 -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 3515TBh1016524; Thu, 1 Jun 2023 10:47:36 -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=gjRiBr+mrYmVjW+VTv98XS2MHEHlEViFH6OcyImUi+KnS07/Vgs7qGu3WfsEQu7wEjRF pdmuJ0Rrle6nXcThclDPLpXnDD6Rc0HAWuAkgxbEPeJgSMSABOL9Vs4TdkIetMPLfP+d i2YAYNLv+owNz6gu0ifjQFXFqvAePhkxo/onSvWczfqT+ARcu6G4woL+ik6mzb3OgQVL 3us5xzNxG8lUBJ6tG5ppWDP+Djdwz08HnpWEHGHHN7t60hxMMmUO8qgq8U2LHC3idOZJ A0QIPSjV1u/1ec3pqSVH1EIOvbCiC39WIvGve0zF7D1z3G/mBEYkiF8iOSg+9oUtMX+K aA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3que9mxjyq-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 10:47:35 -0500 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.1118.26; Thu, 1 Jun 2023 16:47:31 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 1 Jun 2023 16:47:31 +0100 Received: from edi-sw-dsktp-006.ad.cirrus.com (edi-sw-dsktp-006.ad.cirrus.com [198.90.251.127]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id D9E49468; Thu, 1 Jun 2023 15:47:31 +0000 (UTC) From: Richard Fitzgerald To: , , CC: , , , Richard Fitzgerald Subject: [PATCH v4 10/12] ALSA: hda: Fix missing header dependencies Date: Thu, 1 Jun 2023 16:47:29 +0100 Message-ID: <20230601154731.3210572-11-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230601154731.3210572-1-rf@opensource.cirrus.com> References: <20230601154731.3210572-1-rf@opensource.cirrus.com> MIME-Version: 1.0 X-Proofpoint-GUID: 62lqzpLCf_zqedFUcBc5mR6iSqBFkrpG X-Proofpoint-ORIG-GUID: 62lqzpLCf_zqedFUcBc5mR6iSqBFkrpG 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 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?1767515995098914780?= X-GMAIL-MSGID: =?utf-8?q?1767515995098914780?= 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 {