Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4870873pxu; Thu, 10 Dec 2020 07:26:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxGk3c2pm2jMH24Nq0ayEa8nIqJ4DfsmC2xNn2KuHLi+EnwAHwcoF7VM3uvyYmVXxxz03w X-Received: by 2002:a17:906:82ce:: with SMTP id a14mr6915324ejy.421.1607614006838; Thu, 10 Dec 2020 07:26:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607614006; cv=none; d=google.com; s=arc-20160816; b=CAjlge/0nRCny//gH1D1KDcTSwwlL6kGWlq73i8n1VxfBuEogGtYIFPvvAlloXTzen Mpdje/Vb06dNbLPKTtq5/Qilloe1Lgi+NvfEx0x0ScTfsPc6znImjehFGVwHLMoc/r0W byxOIKKGEkDWaaRq1NHyHCg41oe++bJVLakfIIjw2nTxhLoEdLXzvOAI4DqSwQII/1c4 +Nob7VMdKtD9fmkEsiPdAtBHC5JAVrMUp3+HWTjMuTCKNVPn49kI07k+eaRfH+uNLOSK kG8n2tWEOPoPEjPkXE6jyY6rEwp7GR2ofuw6Z89kJttgqWS6oDCWU2XSVBDbRAaNOMp2 wEIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=pYA9yxNhACUicKuA6TyxekITP9yL8W9lo5hMchGx5ss=; b=Sg5r8AmQm9pO7kqLbl7aXukuTwyb/Fk/ZNlQVMYbklEKabQoygWnr2959Zp8FAzfO3 gEUt1rZGQAv0kPXfwm7nWkYlhoUeQcO+/2IW48eVr30O5Kln0xPa/sbHIZ3dBAZXI0ni AcRz+6P45qyH8+O56sBclQVctEOClbfGHGsHpLMmdbFuYYTTJ5YZ1dT1+KLKyc145ZoT /zjYbjyG03c9MveXynjGb4hcQVl11psFnGTEpnVSCCi/i1i+1JrbqyvD/OLjqw8IgXRF O1Htal2VMYrpCd30P+Sdzu7c71za0gN0cA+0qVj6tYdAjKo7rxPFYlfAF1L5YusaD7xS kl8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R3eSicyo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si2719879ejc.128.2020.12.10.07.26.23; Thu, 10 Dec 2020 07:26:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R3eSicyo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391643AbgLJPWx (ORCPT + 99 others); Thu, 10 Dec 2020 10:22:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:41804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbgLJPWi (ORCPT ); Thu, 10 Dec 2020 10:22:38 -0500 Date: Thu, 10 Dec 2020 16:23:11 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1607613717; bh=ajOZXmURrx5BgRHqod5FB6tlCTkuY0yk/pB1C2pU9Yw=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=R3eSicyoKTo5Ae1Xce7tzqnWWG9IC/BRqytPrPV+tQBG2RVPIZOZsHoYfGWwtLNNx PELu+ioEJssPpRuPqpgJMaQBnpeJ89ayg4bMlmOin1121xv3bBCx4CxdsC2a5GLoJH K+lY4n1M4wGy+vUpHu7G/jh9nhwkpiOOXnxZ3lkA= From: Greg KH To: samuel.thibault@ens-lyon.org Cc: linux-kernel@vger.kernel.org, speakup@linux-speakup.org Subject: Re: [patch 1/3] speakup: Add synth parameter to io functions Message-ID: References: <20201209205829.693745475@ens-lyon.org> <20201209205838.531299374@ens-lyon.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201209205838.531299374@ens-lyon.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 09:58:30PM +0100, samuel.thibault@ens-lyon.org wrote: > This merely adds the missing synth parameter to all io functions. > > Signed-off-by: Samuel Thibault > The build still breaks when this patch is applied: CC [M] drivers/accessibility/speakup/spk_ttyio.o In file included from drivers/accessibility/speakup/spk_ttyio.c:9: drivers/accessibility/speakup/spk_ttyio.c: In function ‘spk_ttyio_in’: drivers/accessibility/speakup/spk_priv.h:31:27: warning: passing argument 1 of ‘ttyio_in’ makes pointer from integer without a cast [-Wint-conversion] 31 | #define SPK_SYNTH_TIMEOUT 100000 /* in micro-seconds */ | ^~~~~~ | | | int drivers/accessibility/speakup/spk_ttyio.c:344:18: note: in expansion of macro ‘SPK_SYNTH_TIMEOUT’ 344 | return ttyio_in(SPK_SYNTH_TIMEOUT); | ^~~~~~~~~~~~~~~~~ drivers/accessibility/speakup/spk_ttyio.c:315:49: note: expected ‘struct spk_synth *’ but argument is of type ‘int’ 315 | static unsigned char ttyio_in(struct spk_synth *in_synth, int timeout) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ drivers/accessibility/speakup/spk_ttyio.c:344:9: error: too few arguments to function ‘ttyio_in’ 344 | return ttyio_in(SPK_SYNTH_TIMEOUT); | ^~~~~~~~ drivers/accessibility/speakup/spk_ttyio.c:315:22: note: declared here 315 | static unsigned char ttyio_in(struct spk_synth *in_synth, int timeout) | ^~~~~~~~ drivers/accessibility/speakup/spk_ttyio.c: In function ‘spk_ttyio_in_nowait’: drivers/accessibility/speakup/spk_ttyio.c:349:10: error: too few arguments to function ‘ttyio_in’ 349 | u8 rv = ttyio_in(0); | ^~~~~~~~ drivers/accessibility/speakup/spk_ttyio.c:315:22: note: declared here 315 | static unsigned char ttyio_in(struct spk_synth *in_synth, int timeout) | ^~~~~~~~ drivers/accessibility/speakup/spk_ttyio.c: In function ‘spk_ttyio_in’: drivers/accessibility/speakup/spk_ttyio.c:345:1: error: control reaches end of non-void function [-Werror=return-type] 345 | } | ^ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:279: drivers/accessibility/speakup/spk_ttyio.o] Error 1 make[2]: *** [scripts/Makefile.build:496: drivers/accessibility/speakup] Error 2 make[1]: *** [scripts/Makefile.build:496: drivers/accessibility] Error 2 make: *** [Makefile:1805: drivers] Error 2 You can't break the build on any patches in a series :( thanks, greg k-h