Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2295050rwd; Wed, 17 May 2023 08:12:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4zCjAdqlaRv7QgRNJX8sJnxmBcCnRRBe9EeWaOaW8SmlHPLRQPQZ8ObLh62M4btkSRo5HO X-Received: by 2002:a05:6a20:7f87:b0:109:38b4:a21b with SMTP id d7-20020a056a207f8700b0010938b4a21bmr910374pzj.51.1684336354803; Wed, 17 May 2023 08:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684336354; cv=none; d=google.com; s=arc-20160816; b=HCXO1uVHDU4JO950sTUk1qPRYbFTj3gliM59BghlHUnVzLI0+7STYFCGa4Bfp90fGP +Uoan1jiITCSkJVvkD3qD94DXNOFuB+tZJ7mQrU3+TPDfHIZiwLw5Qf+BYylO0E2xvwR KZUtIpaB/mv8DJzuca1EEiHHeY/e8oachYtieninWPC7CztKlNKgS5D9oMXp5gqJcsYF LX59OgD8f8OyYcwbZh2DtqR3ipYj6bO9QrEuMAkLfxU+tp88F9aFhyNL4wbd2bu05tSR SXn3N0VV6zcsAGXek+I9jszgL59YiNUArebzRorPObch3l7RKBJt95SmiYrAejXtrqiB IRgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=CCW0GSVzxQIr22NMJ3VJJ2BVu5t1BOc63dfYXKfxO18=; b=varfAOt3Xt62bI0mFym3R70jGHJ+VIVKWPFW0ctIbv2BDYIASkd9lOfRT14DYQ6CBd QdJPD5gt244Vi8bJw5K8Ah3pJEOPtr0Q+bNv83AD+eMqetTukkpXHJlqYMSNbBlQmeVg 833Oz6hIm1pvsRotAdeafNYBOxrOjCujHwHgxGBe0PPQRqwp0ITSjsHqJZzmlY2eTRA+ i7dDglAs3a4tyuFh+esUClWE2bFuFrRFJwTlamA/k65Y42pM/cQd4aOFhvf0sUnnF0m+ WQHfE0dB0YDJYfTCPEwfk9j4fRMFAquIVhxUnUq+TQygUS+flqzvz1XLfOd2KiGwr1oE 08sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=d3l3jgdy; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p10-20020a17090a868a00b002505f319c27si1905201pjn.100.2023.05.17.08.12.20; Wed, 17 May 2023 08:12:34 -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=@suse.de header.s=susede2_rsa header.b=d3l3jgdy; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231739AbjEQO51 (ORCPT + 99 others); Wed, 17 May 2023 10:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbjEQO5T (ORCPT ); Wed, 17 May 2023 10:57:19 -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 4B41B86B4 for ; Wed, 17 May 2023 07:57:00 -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 8C80C22593; Wed, 17 May 2023 14:56:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1684335419; 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=CCW0GSVzxQIr22NMJ3VJJ2BVu5t1BOc63dfYXKfxO18=; b=d3l3jgdyGFM/s1sCSrw7VbD0oowiqXOHwcAFY+k/eVOFhofzYpLshx5Ux9n7tYKNF6qsz4 J1eCaGUEuEeEljIkUN3Xe5BTFyyuYT7rU27t+eOichhiRwKiCpY/ZPtvMt5kNfb/mGEIk+ WY1nSLZiN9yawymFCg9V7SeZe65ehDY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1684335419; 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=CCW0GSVzxQIr22NMJ3VJJ2BVu5t1BOc63dfYXKfxO18=; b=rvSYSb3NIVYjyn7W0VOR+nto5H5blgLZClSXb6sibCtryE7HbXVhO+0naD4qnv9KZniAR1 WoCY9qYXozr5DlCQ== 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 5B73913358; Wed, 17 May 2023 14:56:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QpUsFTvrZGQNdQAAMHmgww (envelope-from ); Wed, 17 May 2023 14:56:59 +0000 Date: Wed, 17 May 2023 16:56:58 +0200 Message-ID: <87h6sb0zwl.wl-tiwai@suse.de> From: Takashi Iwai To: Arnd Bergmann Cc: Jaroslav Kysela , Takashi Iwai , Arnd Bergmann , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] ALSA: oss: avoid missing-prototype warnings In-Reply-To: <20230516195046.550584-2-arnd@kernel.org> References: <20230516195046.550584-1-arnd@kernel.org> <20230516195046.550584-2-arnd@kernel.org> 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, 16 May 2023 21:50:42 +0200, Arnd Bergmann wrote: > > From: Arnd Bergmann > > Two functions are defined and used in pcm_oss.c but also optionally > used from io.c, with an optional prototype. If CONFIG_SND_PCM_OSS_PLUGINS > is disabled, this causes a warning as the functions are not static > and have no prototype: > > sound/core/oss/pcm_oss.c:1235:19: error: no previous prototype for 'snd_pcm_oss_write3' [-Werror=missing-prototypes] > sound/core/oss/pcm_oss.c:1266:19: error: no previous prototype for 'snd_pcm_oss_read3' [-Werror=missing-prototypes] > > Avoid this by making the prototypes unconditional. > > Signed-off-by: Arnd Bergmann Thanks, applied now. Takashi