Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4666900rwb; Tue, 8 Aug 2023 11:47:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYHxYgz9pRkKsfM7Orc2ruTM2vkOeMQDlXeLTrrU7dG9JGR+ZwpZdTXY4Tb0K7jBeyM8bm X-Received: by 2002:a05:6a20:7d99:b0:13f:c40c:379 with SMTP id v25-20020a056a207d9900b0013fc40c0379mr327974pzj.13.1691520437988; Tue, 08 Aug 2023 11:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691520437; cv=none; d=google.com; s=arc-20160816; b=nzoFj8otxcnnvw8dhbR8DNGPnI9I7p1rADL6ur4CSR9rq2joPjeW2TiKijwaxEWJRJ WLJR09EHxQKDJv/78XJgBo3ZNMfbBkuGSCgKjd3mnRKZSRU89FgDciKVFTjcFX8AkvsJ Z8YeGqpVShy22v6svmNVrRtqcQUgEFKfQAaa0KlsP7kPaBKgEJp89qmydYJvhNqwhEcz 9msWz21NrMjfMBghjEEoVqqj0MLpD+xZsNxSUdEw4ePLj+zaKkdtLRMkPSF/aVQuOdEr gy9tryDNqHeJfc/ISmEu7Gpq6JYbAle1WNvEmIZqzC+LVhcZyhgTzSiQgcP2n8VCoYAi x6og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QToAetuOKqk6KlcwFnxlW4pv9tJbYlRSUo8zVZOIBoo=; fh=lXirm7scl8s1pVfHzSKpVzQj9ouD4S6DeUrhzPObc2w=; b=cljm/viF2TKNhhzuv9p6WYWQa1ruhNj5aBdc1bb2GXB0tBCQUHsgLSKuhJbbqzQ7jD 2A6uKP0CluG2McN9v/P/6g6ZNivLzi6FvGfWGvHDe7O/0/vlRuDGECRI8UMUBTlRoqoO ZeSTxi0ivuc0IB1Kwl2GZ+hjCdEomNHlUfsMtaraCQ0UhCeys9S2K2tnkmQkoI/4CHII LJyRUcEF2Ys0N9cxsuciWHkXbhvYNsCoaSAw5Kr0MHHmaFLmES6vCV8QC7746cuoVmAI 8BQMspSRaVYEWonOsQ+AjFCnJ1eWaOWxenfX/m03Q9Wdmou86s3jjzyVGl3Uo7XSgf+C 9//Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=x3+okNrH; 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=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a656702000000b00563d9ff5158si7635155pgf.350.2023.08.08.11.47.06; Tue, 08 Aug 2023 11:47:17 -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=@google.com header.s=20221208 header.b=x3+okNrH; 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=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235503AbjHHSQ1 (ORCPT + 99 others); Tue, 8 Aug 2023 14:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233924AbjHHSQD (ORCPT ); Tue, 8 Aug 2023 14:16:03 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 285DF1F439 for ; Tue, 8 Aug 2023 10:22:34 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id 6a1803df08f44-63cfd6e3835so34086516d6.3 for ; Tue, 08 Aug 2023 10:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691515353; x=1692120153; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QToAetuOKqk6KlcwFnxlW4pv9tJbYlRSUo8zVZOIBoo=; b=x3+okNrHxwteJVxE9P7xvlSvMXSMSfFQLXfreCFLO+KwUMB1ZcLkHHWvsw8C1crZfi 94/Wv7lhK1/n5VulvtHVY0DXE3MdbInnralMazMsyNkQDLoupBzwQrKVvYxj5pWCPA2+ WooLZaDnpKfes/b0/A19G1uhHVaDc6CtW3H8qRJQbZD/TSJWWVeoMtgCgplEmW8gs49P W3K3dooGHhgco6o69EVttAFhlfEznGqM92TBQQtIVdGvnekAS6qEq1nOM0ZLwHCthmHf 2OSXnBlD1FDXktBAf9BSUKU7BeBPbN/XWswa9E1b+ewibdmiaCVyqIksW5wmwYo85QZt EFIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691515353; x=1692120153; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QToAetuOKqk6KlcwFnxlW4pv9tJbYlRSUo8zVZOIBoo=; b=ay2pvaigFo16j8Pi6Fv2olKHpf0ePUbJWKE35ws3tT7AWHAWa9UqKVI5trDfaA6z+Y WLaSqKGAa9sgrR2CZpEFkFbM9j9fBWISbNmny00kZei5JMeiPJUrJ+QhZVX5Cpqy1CJ4 Lb2O9mvHb/WV2l52NXnAuBdZ1O/sIcCpWYv7RrtHIO1X9YGrV8Wdb7O7dWjO5Jsle3Cw 4V8NUq2HAosTzEvbziL3wjxZ9k1C4/EE8RHJMWFlQD0Dky404Qz9pJZ49/9Ec5M1iOaP T3DzaTgGwpFBH1290kfcIzjRakFDzDwinLzIxWKd7r0yXKn0M6bxRNku+BUxesd4FSdm j0zQ== X-Gm-Message-State: AOJu0YziPIPoJz2s+iIwymzzURh6l69G5oH+XDPYG4E+eDEYYT9h4vWz V3ZDipCopSpUIaEzXDVkoURQPn7BiIzOBij/hKkYSw== X-Received: by 2002:a0c:cc03:0:b0:63f:7b35:6ad8 with SMTP id r3-20020a0ccc03000000b0063f7b356ad8mr88500qvk.23.1691515353160; Tue, 08 Aug 2023 10:22:33 -0700 (PDT) MIME-Version: 1.0 References: <20230808-um_hostaudio-v1-1-3d40fbe1fb1e@google.com> In-Reply-To: <20230808-um_hostaudio-v1-1-3d40fbe1fb1e@google.com> From: Nick Desaulniers Date: Tue, 8 Aug 2023 10:22:21 -0700 Message-ID: Subject: Re: [PATCH] uml: audio: fix -Wmissing-variable-declarations To: Richard Weinberger , Anton Ivanov , Johannes Berg Cc: Nathan Chancellor , Tom Rix , linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, kernel test robot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Tue, Aug 8, 2023 at 10:21=E2=80=AFAM Nick Desaulniers wrote: > > I'm looking to enable -Wmissing-variable-declarations behind W=3D1. 0day > bot spotted the following instance: > > arch/um/drivers/hostaudio_kern.c:316:3: warning: no previous extern > declaration for non-static variable 'module_data' > [-Wmissing-variable-declarations] > } module_data; > ^ > arch/um/drivers/hostaudio_kern.c:313:1: note: declare 'static' if the > variable is not intended to be used outside of this translation unit > struct { > ^ > > This symbol is not referenced by more than one translation unit, so give > it static storage. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/llvm/202308081000.tTL1ElTr-lkp@intel.com/ ^ D'oh, wrong report, this should be https://lore.kernel.org/llvm/202308081050.sZEw4cQ5-lkp@intel.com/ Resending. > Signed-off-by: Nick Desaulniers > --- > arch/um/drivers/hostaudio_kern.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio= _kern.c > index 5b064d360cb7..c42b793bce65 100644 > --- a/arch/um/drivers/hostaudio_kern.c > +++ b/arch/um/drivers/hostaudio_kern.c > @@ -310,7 +310,7 @@ static const struct file_operations hostmixer_fops = =3D { > .release =3D hostmixer_release, > }; > > -struct { > +static struct { > int dev_audio; > int dev_mixer; > } module_data; > > --- > base-commit: 14f9643dc90adea074a0ffb7a17d337eafc6a5cc > change-id: 20230808-um_hostaudio-21d7207deaed > > Best regards, > -- > Nick Desaulniers > --=20 Thanks, ~Nick Desaulniers