Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4870365rwb; Tue, 8 Aug 2023 15:36:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2ks8IV+6pn2BaHemgsX2DxpLdndxW4Yrcf1h/OB7ZcC0yiL3NKq18VwFe3wWSTUhc5dT2 X-Received: by 2002:a05:6a21:4987:b0:131:47f7:e811 with SMTP id ax7-20020a056a21498700b0013147f7e811mr908560pzc.22.1691534198175; Tue, 08 Aug 2023 15:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691534198; cv=none; d=google.com; s=arc-20160816; b=MmkR+mxzNafYX5DMYTvyxLFA+7gR5FFCyPNDxaL0Ti7S0guH4yxNr3XyL6q0jbvceT k6RIhhpvKx84jjNVp6O7A42djGfhQsAZjIogNhR7d0elw2Wj2+BbBOjKUAVXEhNW46pZ Mqvf411Hh3SAh7WNdzNdGTXoDKVwdFqhIbaxnBwp5vMOvUs65WMgQeCrDXG+2efcqNSN 2Ig6dW1NFYYJaXetXtidQtOsEi2oGIoSJl9GJSO78IVgVqXOAuMqOmBJoAjjL1faD8bG kPWuw/0iyKc5zmoREhkNIUgEMpJE4I5I/3mu8Mzni7TtBFWC65B1RmyuE6zN3CLOVZOa n2Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=tZSxNnusQnqM7bOFqjAX37IzOmPldIdsi1KW1Hkrx20=; fh=9PBCIoSpPWyEpIvEwPel+UrfESHy8r4ANS2fHTBGZp0=; b=tVP2RECBWwHAxpX+VExD+KgiThh2j1GWasw1tvfxQytKZximbctyjXZ5Dq10Q8wNRE i8MsALuwNA9n/uJMUmFzYl/dL3l8njKM9jzHoCBKUhPgE4OxUQ5WJ211eBDC/lYohvZh lRU1TmRrqC46Sd4nYsmSwb1uZkUpaqsExaqfvr/ieMQ1VG39M9k3kwwFsPdg3LUprTaV RQA21gW2BVGDNO0p+KMxGb/XmctIVZHhofUnF3eapBwlaVPD8KSkBVO6vKUS1C1lBv1y ubAozt75B6RKM297tuAgGrNlsHj/SpL6KETyHyY3J3QTr2tshiPeg93jJGkGGXmudnF9 vbZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="gLEuK3W/"; 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 u20-20020a634714000000b005638b026f6bsi1302326pga.522.2023.08.08.15.36.25; Tue, 08 Aug 2023 15:36:38 -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="gLEuK3W/"; 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 S232600AbjHHTs6 (ORCPT + 99 others); Tue, 8 Aug 2023 15:48:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235292AbjHHSQW (ORCPT ); Tue, 8 Aug 2023 14:16:22 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD2BC7C70E for ; Tue, 8 Aug 2023 10:23:03 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-583f048985bso76765707b3.2 for ; Tue, 08 Aug 2023 10:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691515383; x=1692120183; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=tZSxNnusQnqM7bOFqjAX37IzOmPldIdsi1KW1Hkrx20=; b=gLEuK3W/Hv+DbvezYqwcXKPPzm0v+UaZRRvoEQwSNCZDV3EOZcOnN4vlXwJeDpnvXh s8oltOqG0CscYCPYoamYi+tb35p9Y6u2Kr00jR/Qf2uQ3j1JP2+GtuwaKe/dAbnmBXl7 +67m1XYNQdu+B9KXTR/x4BD8Z0LiSBJe4ICocI4Qzs4dL0f+D2NbGdQJaWq+oaJOGMx5 K1TvJxWgduvpTtU+Oh4ZopmEZHv9UjDYZQgsK7ODLEa2EPO7WwI9dIdW0Tj0VIWmXFff yTUuKcZlKvBCza9ZbLOZH7gHwVtE28WLEiNRraKxFJ3wOzsqt2/11jOCLGsZ+F5t9hA1 xz+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691515383; x=1692120183; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tZSxNnusQnqM7bOFqjAX37IzOmPldIdsi1KW1Hkrx20=; b=A28QGjbup1wf/iu/rnXprGoGDsc2MzoeLC09psPN66bt0bXR+EjPGcgkqu1w4ANiYf vdN1fIDT932KYcYbolQTUu22NUjR3y+jwCOzcnDzH7329wB+l73GvgsYlwhDUyy+LRty D6NGQ2hrhn+kw/Og7zglExgHlKVIjkVLnrMVkChRUvGiwCDKcsZ8RvVVni1lRiMVuvuD iak9LZtL2iXGM8fGBwJmjP0L0MV38O1AxSzHJ5a95uU3+wKSpW5kj5mRKONELxLRdNzh dA5+HqMpiYx+RYWSWTMBOSidtrgeg8F5m3ReNEotcAxxmGvsg8cXk2ebt3pV5VL37OAJ EY0w== X-Gm-Message-State: AOJu0Yx9MaXJdIhhxuh3I0qirrBiVCLVrDy7/ykYBQnG4aUg/z10ybdD YGA5deprIsij76EjWc46aN3HhRcWTsThuFbBWU8= X-Received: from ndesaulniers-desktop.svl.corp.google.com ([2620:15c:2d1:203:cc03:38d0:9718:e90b]) (user=ndesaulniers job=sendgmr) by 2002:a81:4114:0:b0:565:9bee:22e0 with SMTP id o20-20020a814114000000b005659bee22e0mr4887ywa.0.1691515382897; Tue, 08 Aug 2023 10:23:02 -0700 (PDT) Date: Tue, 08 Aug 2023 10:22:59 -0700 Mime-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPJ50mQC/3XMQQrCMBCF4auUWRtJUqHFlfeQImkzSQZsR5I2K CV3N3bv8n/wvh0SRsIE12aHiJkS8VJDnxqYglk8CrK1QUvdyl72YpsfgdNqNksstLKdlp1Fgxb q5RXR0fvg7kPtQGnl+Dn0rH7rHygroURrL9KNqNyo8OaZ/RPPE88wlFK+RFUcXqkAAAA= X-Developer-Key: i=ndesaulniers@google.com; a=ed25519; pk=UIrHvErwpgNbhCkRZAYSX0CFd/XFEwqX3D0xqtqjNug= X-Developer-Signature: v=1; a=ed25519-sha256; t=1691515379; l=1570; i=ndesaulniers@google.com; s=20220923; h=from:subject:message-id; bh=dbN32OaDa6wdBfpJqNjWVde/ve993rqcumzB7h2wQwI=; b=R1babvoEEcd3tWtPK5ZsMtf8Mc8xS6lV6vxwZrg5QTVql2nwCMa16rXoANn9viYqoiuKT+/3y BOzTAe2GtTnB9GLZpkUnwwSd3r/WXgVvAvyOoYa0yBWCeDGg7+FvhPL X-Mailer: b4 0.12.3 Message-ID: <20230808-um_hostaudio-v2-1-000b4e5e3c35@google.com> Subject: [PATCH v2] uml: audio: fix -Wmissing-variable-declarations From: Nick Desaulniers 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 , Nick Desaulniers Content-Type: text/plain; charset="utf-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_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 I'm looking to enable -Wmissing-variable-declarations behind W=1. 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/202308081050.sZEw4cQ5-lkp@intel.com/ Signed-off-by: Nick Desaulniers --- Changes in v2: - Fix kbuild test report lore link. - Link to v1: https://lore.kernel.org/r/20230808-um_hostaudio-v1-1-3d40fbe1fb1e@google.com --- 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 = { .release = 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