Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp862460iol; Thu, 9 Jun 2022 16:06:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD9MUhf01DbVMVGU8iNI53680QYue8w2epKKipPrhEa3XnK7+/LgCayBvhIp92HHGhcYdL X-Received: by 2002:a05:6402:4301:b0:42d:e8fb:66f7 with SMTP id m1-20020a056402430100b0042de8fb66f7mr48570442edc.229.1654816014792; Thu, 09 Jun 2022 16:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654816014; cv=none; d=google.com; s=arc-20160816; b=m/dVJqMq1xOD/Ah5neW3SWCTqdGGWfn92dvMVqucdhJp3B7X0PqKAAeiUKhVmdTYZk WQTpYnC0X/jfrdJfLBO25QP7dxi9ULwOIIGds/zgJJVio1d9QTr+o8+VNuXxVuWccewV F5OL00HAR1W3AWZvZvscZX/shbDE7XhwUUqFGH5la9kOjGo/6KLuQMQ/MTRWRElK/8mz UL8+i3iskhGqVzhamhGAY0rOlGpLURS3GFSopSxGhrVyEUv5XUVagT64Hjv78DoYoY+w fm4vqPSyC+hi8jCiZr/kGW79h9CaEClhHS4Q7Spz7IQcdc7hZNeMfPGvg6DtcBKmmMFo j0fA== 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:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=+JW2n6LLjgkLeZpu0VrK7uVIniA8Omo9w9YQRrZ1ImQ=; b=deo2buH7xYX1214QjPkiGJfqVv/SUAO/K01+h/ONleRxkz2cdPgyPp8rdApIaO9JcK qZB8rrnVjR4/6nbr/xZ8DTzUQrVbQr76Gt6GF7QJf+Q5eTkxQ+9vGdVUQ+FWgkopK9gZ bSfVf/STkPeqInqDFR2yRGPk6cBUO/vv/jhQsVyOnmifZPKA2fEbtIA8NfMpGjrZoD51 Rkxtq41xhQuY70NzYZ8MzTkcrIqLvkhBKo4dZz9edmJbHvddn8VxQaF1XUY1lWYivqzM z17Gzq9244asKBml2AG10zBLmGdUvLJzFwki9H3y8wIyUtngWzO04vNgBum6rHkI+rvv aHPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=i42901GY; 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 u12-20020a50eacc000000b0042ac9b0221fsi6866584edp.241.2022.06.09.16.06.28; Thu, 09 Jun 2022 16:06:54 -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=20210112 header.b=i42901GY; 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 S1345533AbiFIWVl (ORCPT + 99 others); Thu, 9 Jun 2022 18:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235687AbiFIWVc (ORCPT ); Thu, 9 Jun 2022 18:21:32 -0400 Received: from mail-pl1-x64a.google.com (mail-pl1-x64a.google.com [IPv6:2607:f8b0:4864:20::64a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D38784F1F0 for ; Thu, 9 Jun 2022 15:21:27 -0700 (PDT) Received: by mail-pl1-x64a.google.com with SMTP id c10-20020a170903234a00b00168b5f7661bso544418plh.6 for ; Thu, 09 Jun 2022 15:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=+JW2n6LLjgkLeZpu0VrK7uVIniA8Omo9w9YQRrZ1ImQ=; b=i42901GYNhaxsHQ0DOGoOky9iCPlDaMMKrye+1S6wrdYfiDoHAZcC7HTQX/ufq8JDc FtLJH8ibG+4hcwJncrABH5MINqNlaiBQcg6AiUjnTwqlf664IuYPp0tvgNpDNS6s/GjQ Wjh2TOa/isNuXc04yhOdZrj9wIAtXkGMKkDBH370v2doh3glFP/6lvE9gZpbXECpN/zv UStKebGupQmmTtj2yMjnHwJiwJi/peKu25pYf9NTE11Ch6upWSa6FAa3CkIKEN5+Emo5 3UDTgqdqaohZKI3Gp3XYmJjjv1YwnDPf8AUi3y1kFAWlFzS3PLERdXTH2sKpk0ltR6ij /vAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=+JW2n6LLjgkLeZpu0VrK7uVIniA8Omo9w9YQRrZ1ImQ=; b=aOKwzsB+p/Ev67H12hbS4XkcR9F/4bwOlB/uINkyC3U4MHnju1dDCQlVSVXaB9DCVk xXV3cCaYzybTCmzp/j22aTIMj/2PzNNuDGA15rUHzU1pPzy2OLoxZTIwZ07JEL2qA4Z0 70QYiKvl9maDYYmWxKTz/0Xveo1IrJeXKa4DJTxvOPh/7toYJB3Z46VlfbxY1QrU/b+3 oKAPcJ7N7F2haDJWChTLvUbCVogE4UdTESpCzhVUpS5Age/GiOZUAhW8sFaQ2meIxiqf pJYaxU6KuAsTmoDx2+XlVhqpEATUYn4aY+hnxRiOZu3HIJwGU+WCxivBaLX+WZy+MNGs P5Qg== X-Gm-Message-State: AOAM5317V+VEtTlus4qJfo5bmRLOyvIwUlRK7t3aZTq4ICO9jpIdf/yS QmqDrRfpEWOcA4stmO2WjIIWBgM+ X-Received: from fawn.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5795]) (user=morbo job=sendgmr) by 2002:a63:409:0:b0:3fd:77f0:9a75 with SMTP id 9-20020a630409000000b003fd77f09a75mr25262295pge.149.1654813287223; Thu, 09 Jun 2022 15:21:27 -0700 (PDT) Date: Thu, 9 Jun 2022 22:16:30 +0000 In-Reply-To: <20220609221702.347522-1-morbo@google.com> Message-Id: <20220609221702.347522-12-morbo@google.com> Mime-Version: 1.0 References: <20220609221702.347522-1-morbo@google.com> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog Subject: [PATCH 11/12] ALSA: control: use correct format characters From: Bill Wendling To: isanbard@gmail.com Cc: Tony Luck , Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Phillip Potter , Arnd Bergmann , Greg Kroah-Hartman , "Rafael J. Wysocki" , Jan Kara , Andrew Morton , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jaroslav Kysela , Takashi Iwai , Nathan Chancellor , Nick Desaulniers , Tom Rix , Daniel Kiper , Ross Philipson , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, alsa-devel@alsa-project.org, llvm@lists.linux.dev 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 From: Bill Wendling When compiling with -Wformat, clang emits the following warnings: sound/core/control.c:2062:24: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] return request_module(module_name); ^~~~~~~~~~~ Use a string literal for the format string. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Bill Wendling --- sound/core/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/control.c b/sound/core/control.c index a25c0d64d104..a1778137147d 100644 --- a/sound/core/control.c +++ b/sound/core/control.c @@ -2059,7 +2059,7 @@ int snd_ctl_request_layer(const char *module_name) up_read(&snd_ctl_layer_rwsem); if (lops) return 0; - return request_module(module_name); + return request_module("%s", module_name); } EXPORT_SYMBOL_GPL(snd_ctl_request_layer); -- 2.36.1.255.ge46751e96f-goog