Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751658AbdF1PCf (ORCPT ); Wed, 28 Jun 2017 11:02:35 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:6802 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751698AbdF1PC2 (ORCPT ); Wed, 28 Jun 2017 11:02:28 -0400 X-IronPort-AV: E=Sophos;i="5.40,276,1496095200"; d="scan'208";a="229856242" Date: Wed, 28 Jun 2017 17:02:14 +0200 From: Samuel Thibault To: walter harms Cc: Colin King , William Hubbs , Chris Brannon , Kirk Reiser , Greg Kroah-Hartman , Okash Khawaja , Andy Shevchenko , Alexandre Ghiti , Dan Carpenter , Rui Teng , speakup@linux-speakup.org, devel@driverdev.osuosl.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: speakup: make function ser_to_dev static Message-ID: <20170628150214.fvajwpuxgoz537sp@var.youpi.perso.aquilenet.fr> Mail-Followup-To: Samuel Thibault , walter harms , Colin King , William Hubbs , Chris Brannon , Kirk Reiser , Greg Kroah-Hartman , Okash Khawaja , Andy Shevchenko , Alexandre Ghiti , Dan Carpenter , Rui Teng , speakup@linux-speakup.org, devel@driverdev.osuosl.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20170628131351.22106-1-colin.king@canonical.com> <5953C1DF.5010201@bfs.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5953C1DF.5010201@bfs.de> Organization: I am not organized User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 860 Lines: 22 walter harms, on mer. 28 juin 2017 16:49:03 +0200, wrote: > Am 28.06.2017 15:13, schrieb Colin King: > > diff --git a/drivers/staging/speakup/spk_ttyio.c b/drivers/staging/speakup/spk_ttyio.c > > index 442f191a017e..ed8e96b06ead 100644 > > --- a/drivers/staging/speakup/spk_ttyio.c > > +++ b/drivers/staging/speakup/spk_ttyio.c > > @@ -21,7 +21,7 @@ struct spk_ldisc_data { > > static struct spk_synth *spk_ttyio_synth; > > static struct tty_struct *speakup_tty; > > > > -int ser_to_dev(int ser, dev_t *dev_no) > > +static int ser_to_dev(int ser, dev_t *dev_no) > > { > > if (ser < 0 || ser > (255 - 64)) { > > pr_err("speakup: Invalid ser param. Must be between 0 and 191 inclusive.\n"); > > > Is there any remark, why the programmer decided to use (255 - 64) instead of 191 ? That's because minor numbers for ttyS* are starting from 64. Samuel