From patchwork Thu Mar 23 20:27:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 74215 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp3129106wrt; Thu, 23 Mar 2023 13:56:48 -0700 (PDT) X-Google-Smtp-Source: AKy350arDreMLRatghKyC/6DRy1XXS/RWd59+1dUUFgLJnSpOk7tBCcRC078Jl9USky7htmJdweZ X-Received: by 2002:a62:1b95:0:b0:62a:5769:25f9 with SMTP id b143-20020a621b95000000b0062a576925f9mr595278pfb.28.1679605008346; Thu, 23 Mar 2023 13:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679605008; cv=none; d=google.com; s=arc-20160816; b=BMscLj8c0ZCTnVE2ap0oekfQbFSfS92yGNzcCP2QrUOj/wZ6l8/y5bK+cdMd7Bf0q3 6yrRKuckWAM5baa9NySA0wsxyUeq14rGSBOzHr4IoeOQhcmnnweaMHng+9amhphMTP7V ec/nkXFrY4BcDX48viPI2RVEDMhCXOY3PdzyfqwKH5igYzcT2HGDdy6JLYdtiusEwZ7o xMc4EpWV4MvAtqBzOn0/ngfAvvbmpCYABfWG164IQyJd/wc1rocR4lxloJvLwXXE3hCU C3qRtZaB7Z5AK8gq830Lhtq/JvBwjMWqp6QMj1A+sWF0Xc92mYT+gOOFNATA3GxChjSf 2JDA== 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=OhYpZ8KzjW1wsLxHwkxEX6G5RCZGyESus86bamUc+qA=; b=I6HyvgNhvvYgESgb7S63XOZb9QGrJ3dx+pI6mU6GJBGHMnQjAJmS9GD0FHopC1J8j4 ahbWM1Pk/xb9obbnydV2g587B6n5XJC4myBKdel2jphYQ2IZHFAGV/5tOkbD6zqD8gwo 5GqMlaD8tf68qVYD/rRT/Qz2ManvWnISFScqoU4tfR5y8bU4qlU0xGmSF/P2MnesC3lG 8aG6Q6co6SOEl6x0ol69QCVirr97JxGb1bt5geP0PknvNDvOhhmD0jiOGS0/k4QlANzu tuc0L/1neQSnMgeWKZwnKIRsnoUIgmv78oiLTdSbuIJRrD60F5a1yWggR9xDVU6feYE6 /l8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UBnkhYoI; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a056a00180f00b006281178b344si8323144pfa.244.2023.03.23.13.56.35; Thu, 23 Mar 2023 13:56:48 -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=@redhat.com header.s=mimecast20190719 header.b=UBnkhYoI; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230418AbjCWU2J (ORCPT + 99 others); Thu, 23 Mar 2023 16:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjCWU2H (ORCPT ); Thu, 23 Mar 2023 16:28:07 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAF2F1E9F1 for ; Thu, 23 Mar 2023 13:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679603238; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OhYpZ8KzjW1wsLxHwkxEX6G5RCZGyESus86bamUc+qA=; b=UBnkhYoI4HUqSToUAltT2RId2D2ZDTAs9Q6bfMDA1SMeuce26FMS4yH+Udhq13FKk59iup /Sd+Il3eBo5h7AYXch9ZHw/W3iQpFj3qS8wYpBHHbUJqh2Iy2hrk8sFfr2GmbWNO2bGjzS yXclclZRXBWUmkpKcVi7UC/maVv9+pM= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-360-qUEb3Ay7Obm_LP1w_9XhAA-1; Thu, 23 Mar 2023 16:27:16 -0400 X-MC-Unique: qUEb3Ay7Obm_LP1w_9XhAA-1 Received: by mail-qt1-f197.google.com with SMTP id u1-20020a05622a198100b003e12a0467easo8554784qtc.11 for ; Thu, 23 Mar 2023 13:27:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679603236; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OhYpZ8KzjW1wsLxHwkxEX6G5RCZGyESus86bamUc+qA=; b=wJMKXT/4MAxmzWiJuEdhs1u98c43JyD4ALPSeCLItvGdZp6AVnoVJJAPC6gJ+i+L6D IOnTKOSwqnQdccB00FQSMpZeTc60UB15/2lj0eXzR/rXDwYL/4DxeNzqScQ3WlT/3xar 1vsUXwEcCgi8r6e+p+tpiw4N5QK7TMBmuo7y9ptJUXCOT1mFZEE68i8soI/Zn3f9kgna SHhf5Uf4X13NcVaLTe7WfNWeeSP68J2lopoIPIS8Bs7HBiEzL4mMIr9g/vViykHzToFl F4pkPnxqGV5AmnXXPWQqASGZZgVomsY46KTiTHJ1Eg5aQsAHPc+FLfHrlxVGdZmXaAUO 3g0Q== X-Gm-Message-State: AO0yUKWJ0wgN0LW6YlJ3WjhNxIbx9zrxjfSdu+dvifoRrMuwb0tRLbnU aUM0UK2YGVkcu85vcSGkJcDTOsVElTmT4ptBHuw3S6Vtv+Xi4lRWZvIxw7d0T7JUSKU+zBv3/hi lJICfimck5dwpa/09O8+mxIT7Mt043yc0 X-Received: by 2002:a05:622a:b:b0:3e3:87b8:8d44 with SMTP id x11-20020a05622a000b00b003e387b88d44mr1268779qtw.21.1679603236379; Thu, 23 Mar 2023 13:27:16 -0700 (PDT) X-Received: by 2002:a05:622a:b:b0:3e3:87b8:8d44 with SMTP id x11-20020a05622a000b00b003e387b88d44mr1268751qtw.21.1679603236138; Thu, 23 Mar 2023 13:27:16 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id f9-20020ac84709000000b003e0c94a6af0sm7986298qtp.53.2023.03.23.13.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 13:27:15 -0700 (PDT) From: Tom Rix To: perex@perex.cz, tiwai@suse.com, nathan@kernel.org, ndesaulniers@google.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] ALSA: hdspm: remove unused copy_u32_le function Date: Thu, 23 Mar 2023 16:27:13 -0400 Message-Id: <20230323202713.2637150-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761193500895020852?= X-GMAIL-MSGID: =?utf-8?q?1761193500895020852?= clang with W=1 reports sound/pci/rme9652/hdspm.c:6149:19: error: unused function 'copy_u32_le' [-Werror,-Wunused-function] static inline int copy_u32_le(void __user *dest, void __iomem *src) ^ This function is not used so remove it. Signed-off-by: Tom Rix --- sound/pci/rme9652/hdspm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index fa1812e7a49d..267c7848974a 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c @@ -6146,12 +6146,6 @@ static int snd_hdspm_hwdep_dummy_op(struct snd_hwdep *hw, struct file *file) return 0; } -static inline int copy_u32_le(void __user *dest, void __iomem *src) -{ - u32 val = readl(src); - return copy_to_user(dest, &val, 4); -} - static int snd_hdspm_hwdep_ioctl(struct snd_hwdep *hw, struct file *file, unsigned int cmd, unsigned long arg) {