Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1239931rdh; Fri, 27 Oct 2023 08:25:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGbDzmlgtyZpd8SqdpLp6AGeyPYp4rcLuwJ0fgZvdal8cGViIB1r4BOQAmFVKVjxrNb6PFV X-Received: by 2002:a54:4185:0:b0:3b2:e61f:f0a8 with SMTP id 5-20020a544185000000b003b2e61ff0a8mr2837777oiy.45.1698420355276; Fri, 27 Oct 2023 08:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698420355; cv=none; d=google.com; s=arc-20160816; b=p8zuZ4ovEvynB+gowI+5p+TivFwFj2x4FEC2yvGzBOU0XKgnag1hQsqKxYsvCMg7rh QgNnTc0H+bwi1ek3t/k0fA3H+ksXzzEwLkQvBDNAlz0zd+r1EiI27THzeZwun5PZwx6w MMfoFT8B/vSnMhYIMxhKkOl0wH6dfLjOjcZ3pKZ/6JZjFDqddnORZGe99ytmu6ZZ0yNF aiTAkDDeg2FvO7Tdg7OtCq16fzznSvJIyXffizV190ddHt4EEkFcvDQP5XEDrzOK3yXS 5GGEeaZea7plSOt4yKJgMaYFbpoPDNlxWirMG3igkDRZenjyGPXczqEnD95/yGZtnjzE XpJw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=YRT1002xNCC3ZaeOQCNSyRXse+Rm0SStXr+4KSQ9oNo=; fh=1roM+YB84VpUpzn4CE+t5IcZVc2uaKB1CFhzJ9VTUR8=; b=ZgQ8Bgy8ChFQnDsPx3wJkTlXT1OOjRyenU7w7Hb7MySQaPA7WtMJsGsoQB7xthG53T WPrsTXiDQdAacoXw1QOV3RG95zGgXxD/BGnUxpUHE4kOBNolGQDVdW0doeriO40kCfCW jJ7M/xICLwjw3vDEh3e4acECyjn+ba7ezN4uaAGIinNRY2bx3GxmNMKjkFrC89VDyKpZ ZJl4igzC/YlMx/T7/8mfvk5fS+ff1TsTA6b/z2ZII8u6mK0g9dmnPaHDRsrkpMWWkmV8 6sOZOKxyWu27Xh4nIau98nbZBv5JI+pEUmSXCjrELFBWk+Vo9IVeOHKI/DKNACenq47G c+VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FS1BPOe8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id o63-20020a25d742000000b00d85aa1c448asi2872271ybg.288.2023.10.27.08.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 08:25:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FS1BPOe8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7EDD0824308B; Fri, 27 Oct 2023 08:25:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231906AbjJ0PZ3 (ORCPT + 99 others); Fri, 27 Oct 2023 11:25:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235181AbjJ0PZY (ORCPT ); Fri, 27 Oct 2023 11:25:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A4D186; Fri, 27 Oct 2023 08:25:22 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D593C433C8; Fri, 27 Oct 2023 15:25:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698420322; bh=VROuko5K8q97+Xwgq8pAwl1aEf0SQdloFO2Kq63UPCM=; h=From:To:Cc:Subject:Date:From; b=FS1BPOe8kPw9vWm002m0NPlWlCIzQa1WXJIZaqIy2w4KexEWvx+qvn1cN/AcCD72X m/x4GMIiYQFdhqiFVkaTWM8dV+W0SQPvw2BU2N6qiN63Ahf2yK7FpzKvOHqxTfV7pi 5VWZkD0yM44aHrzcnQroEPD7HZZBuSYRhomHmLcy1IvicwMuqx5K17D8WVLAwsxioV O9EKb3U5m1MO7rye7UpD+SOQaacVopt5hR/qjwtVcfkeQR/nvc3R7q72d60xlO6EIb hm/zUZBhHLIkWkO0vvaA6I9gZB5fxWwtCMwlE9l0B9z+TSrTXu4OQOx2x/XvJA4fPR m5KEhVIbL6LWQ== From: Arnd Bergmann To: James Schulman , David Rhodes , Richard Fitzgerald , Jaroslav Kysela , Takashi Iwai , Stefan Binding Cc: Arnd Bergmann , Mark Brown , Cristian Ciocaltea , alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: hda: cs35l41: mark cs35l41_verify_id() static Date: Fri, 27 Oct 2023 17:25:09 +0200 Message-Id: <20231027152515.482411-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 08:25:37 -0700 (PDT) From: Arnd Bergmann The newly introduced function is global but only called in this one file and has no extern prototype, so it should probably be static: sound/pci/hda/cs35l41_hda.c:733:5: error: no previous prototype for 'cs35l41_verify_id' [-Werror=missing-prototypes] 733 | int cs35l41_verify_id(struct cs35l41_hda *cs35l41, unsigned int *regid, unsigned int *reg_revid) Fixes: 881b7bce0c25 ("ALSA: hda: cs35l41: Run boot process during resume callbacks") Signed-off-by: Arnd Bergmann --- sound/pci/hda/cs35l41_hda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c index 496ff6a9d300..98a5123e9f50 100644 --- a/sound/pci/hda/cs35l41_hda.c +++ b/sound/pci/hda/cs35l41_hda.c @@ -730,7 +730,7 @@ static int cs35l41_hda_channel_map(struct device *dev, unsigned int tx_num, unsi rx_slot); } -int cs35l41_verify_id(struct cs35l41_hda *cs35l41, unsigned int *regid, unsigned int *reg_revid) +static int cs35l41_verify_id(struct cs35l41_hda *cs35l41, unsigned int *regid, unsigned int *reg_revid) { unsigned int mtl_revid, chipid; int ret; -- 2.39.2