Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5009BC7618E for ; Sun, 19 Mar 2023 08:10:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230053AbjCSIJ1 (ORCPT ); Sun, 19 Mar 2023 04:09:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjCSIJZ (ORCPT ); Sun, 19 Mar 2023 04:09:25 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D9E517CFB for ; Sun, 19 Mar 2023 01:09:24 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D3CA121B2E; Sun, 19 Mar 2023 08:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1679213362; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yoETdTeuND9ldvOcXzmMhGiK0BDp7Be58boItZsg/PM=; b=YePp2UfzB0g1aqcamYZKNdFvx0ZKjlHTxALI48bKT64h2QoByrZIqijBsGMDjoko0QyNcQ P0TwcRiFOYHzf2U2/nigqFYvP1NiUaHXudTVad3qwZXMEOFBjJSxLzzxDiMx8yyF2fE05+ 2QxzFvBMlLGegLP3NX1cjXG1x52sNZM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1679213362; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yoETdTeuND9ldvOcXzmMhGiK0BDp7Be58boItZsg/PM=; b=FezKLi7OxPweGEvMagGn0WUcKuLwPPmQmPtoDi1L7NT9y/goRBIxf7GpZqLnu1HeRTjtOx YOQwiKwtu94IfeDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A81F3133E6; Sun, 19 Mar 2023 08:09:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WuJMKDLDFmQQPQAAMHmgww (envelope-from ); Sun, 19 Mar 2023 08:09:22 +0000 Date: Sun, 19 Mar 2023 09:09:22 +0100 Message-ID: <87mt49mabx.wl-tiwai@suse.de> From: Takashi Iwai To: Tom Rix Cc: perex@perex.cz, tiwai@suse.com, nathan@kernel.org, ndesaulniers@google.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] ALSA: ymfpci: remove unused snd_ymfpci_readb function In-Reply-To: <20230318132708.1684504-1-trix@redhat.com> References: <20230318132708.1684504-1-trix@redhat.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 18 Mar 2023 14:27:08 +0100, Tom Rix wrote: > > clang with W=1 reports > sound/pci/ymfpci/ymfpci_main.c:34:18: error: > unused function 'snd_ymfpci_readb' [-Werror,-Wunused-function] > static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset) > ^ > This static function is not used, so remove it. > > Signed-off-by: Tom Rix I applied now, but still wondering why it warns at all even if it's a static inline function... thanks, Takashi > --- > sound/pci/ymfpci/ymfpci_main.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c > index c80114c0ad7b..2858736ed20a 100644 > --- a/sound/pci/ymfpci/ymfpci_main.c > +++ b/sound/pci/ymfpci/ymfpci_main.c > @@ -31,11 +31,6 @@ > > static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip); > > -static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset) > -{ > - return readb(chip->reg_area_virt + offset); > -} > - > static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) > { > writeb(val, chip->reg_area_virt + offset); > -- > 2.27.0 >