Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp585172pxk; Wed, 2 Sep 2020 09:22:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9191Cammggmg/DAWoahD7TPTX8kXsTwxnSqynBOXJmrYmtIum3qtPEWGSbNj0wXgpDpfs X-Received: by 2002:a17:906:2659:: with SMTP id i25mr810883ejc.16.1599063752679; Wed, 02 Sep 2020 09:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599063752; cv=none; d=google.com; s=arc-20160816; b=vaZuEcLr632d36xioiNAEvdNc57KWSrn3mLBB08mbSDCZNyxG5/pCx84xJuJxGJEwQ ZSIR5ocxuqguQl2f2bUf6xgC1lX2Q9XTfDfCevqDf53K7j7Si0ixm/owmvpVwIvDzrtR xbyczJQbU+4uJ63ZmEZrh12nsz6UTYTm8CBe2jcJ7Vv5pwRfYxqXOSmUPox42B/9DE+3 KYarWJ3rb+Y3CSsVr7XF1q/mJ/VwS0izOtCKBg+0QZoCNO1vTG6rAKCI1NpoGXc5P7OF xfCFJ64NOqvMHMhFTdpfNSAXQl86LRkBa30qFVxBWO5YpcgNGxZGMkn5IoErN4ETxExf 3HsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=g7CwtEKfB8taAJKHOl+B6Vy77KBez7Wj8qfNT2rp9Q8=; b=hGgzc0BQqpCZApZ7knnzPPfjo18hmxHuoxKXdGUUm/iRyol3gazCObnbvgk3NMULKI 5p0qVRFItoIhU4S677bvzpKhTHU4Rk04BEqm8AH2dNc0fqnyMS493qRFMPJwaaytsofd l8xeOlCAtg18BOLEmb9tKCRvwcg3875BmUAmy5BZ0QQ7AL8JjC8jCTz2wJR/TuJXpvTw fMT6jV8fUvLSlVlY0+Y5NXfYyI3jQrOKG8sf3k4Ny15g+QTg2Vjlm/aDOqNcE2lWELAH PS0VQ2zvArH7tMS3jHDRLfVoejzK6DgliOjNpplfH+decF/qDbP3cLSodZN67hd/VMFt CMgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=icEHl0iw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si2818997eds.209.2020.09.02.09.22.09; Wed, 02 Sep 2020 09:22:32 -0700 (PDT) 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=fail header.i=@infradead.org header.s=casper.20170209 header.b=icEHl0iw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726821AbgIBQVR (ORCPT + 99 others); Wed, 2 Sep 2020 12:21:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbgIBQVQ (ORCPT ); Wed, 2 Sep 2020 12:21:16 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3418AC061244 for ; Wed, 2 Sep 2020 09:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=g7CwtEKfB8taAJKHOl+B6Vy77KBez7Wj8qfNT2rp9Q8=; b=icEHl0iwQMQYNoukIz5Ou1aSLu cIXyBjtpqAND+i1q+6USzF61JoghiwGPI1sXjsx2XZgtc3DqBNrAgZqsWeDiVP4MqZq/tWvtvWkHA fRImhcbj1e8OJB5uT3Sb/jppb92jUTTRYmXoXgIY1f/UPMz8h7z/g6+lbUxYsiPc9e7YmjRkHpfK/ 6zpw2RSeST1hgiMoxYxS0GeuWcwGIpqdoguHgeAH23e+Ys8oMJ9/EqpzaX0Dw2Ytl9GYW8DZa9NKL eHuH7HEgil7yPzifbQ3D06FxGGVL8fSe1GVuFHcdJ2brhvdoTA3r1Rvu21A4S/h+alq1k2xgKfk5s EShTcTEg==; Received: from [2601:1c0:6280:3f0::19c2] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDVVY-0006fb-ST; Wed, 02 Sep 2020 16:21:13 +0000 Subject: Re: [PATCH v2 2/2] staging: gdm724x: gdm_tty: replaced macro with a function To: Antoni Przybylik , gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org References: <20200902161627.64686-1-antoni.przybylik@wp.pl> From: Randy Dunlap Message-ID: <14c3b5c1-a5d8-3843-6538-5f76c4b8d6df@infradead.org> Date: Wed, 2 Sep 2020 09:21:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200902161627.64686-1-antoni.przybylik@wp.pl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/2/20 9:16 AM, Antoni Przybylik wrote: > Changed return type to bool and removed inline specifier. Also added > static specifier. why remove the inline specifier? thanks. > Signed-off-by: Antoni Przybylik > --- > drivers/staging/gdm724x/gdm_tty.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c > index 34a13d98c029..179fc9b9400b 100644 > --- a/drivers/staging/gdm724x/gdm_tty.c > +++ b/drivers/staging/gdm724x/gdm_tty.c > @@ -34,7 +34,7 @@ static DEFINE_MUTEX(gdm_table_lock); > static const char *DRIVER_STRING[TTY_MAX_COUNT] = {"GCTATC", "GCTDM"}; > static char *DEVICE_STRING[TTY_MAX_COUNT] = {"GCT-ATC", "GCT-DM"}; > > -inline int gdm_tty_ready(struct gdm *gdm) > +static bool gdm_tty_ready(struct gdm *gdm) > { > return (gdm && gdm->tty_dev && gdm->port.count); > } > -- ~Randy