Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2569158rwb; Thu, 17 Nov 2022 12:41:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5INYF9S83GqlmSJh+2Wg71XL7W1m4j2BYRFG0iZkV6viiUl1U11yNkGy96jFveWXtlEHOR X-Received: by 2002:a17:907:d042:b0:78c:c893:1965 with SMTP id vb2-20020a170907d04200b0078cc8931965mr3446282ejc.247.1668717675453; Thu, 17 Nov 2022 12:41:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668717675; cv=none; d=google.com; s=arc-20160816; b=wmR3xUE9GJluaMRs6cPMTASYaL3+8FlBh0cAevv2oFWWZcvbGn0lmgLcD0a+HyEp+a OaSrwdURvXnQp8L7AYqxZopjIfExVWJ0ZlD79MfI9m6rPd4XRx0YY3cqfXFZQetx43W0 s/T28ZKayfsV+mVby5cF0zLQBvir6f+gU3zscRIA2sJaKEl30eH1iRSRB/rjZZIr1ZoZ Ax03qjUNgqJl5MJHfKBbAE0q9mq5JYFPNxwBAvC/1Pn5f4MXq118jCYwoQ7uApPP9v8x qb0YZzQglFco5Krv1AEqOVOjmdzHv8Cq5yOn6Kqv3ICx+sFZ0gFqqBCrJgmn5m9al2Ex xQCg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Xva5AsI9/JxyY1cNK81wJo0W4AQe12VLH96njezCCJI=; b=ovhjFDCs6OVx+3idRhAYXB7bSZBHjEZvK7/zZQUCpypy6cpjDhm5O/XFJ7g79qyjZz t0G8IubuwkfdEfjWe1c36f/mLIMMrMgruBoNyvzVspV+a84v25hoHMEZnBeF7ZoN09Og EQ0Rka7S8RGasqjdaZbbWyV3Kup2Uh8kDvu8ewe8L1UXPH3f4XJ7LLbeJZUMVu4Nkobv Qoc1nA+pORac4DG1aSanRJTOpgMYRbKuwWGavod0z8bj4XPvpldu8IEfDimXshnLXlwP OK+wnrk1sXBBS71CQBglI5J7SQByUvAe6TW3GTrmL3DH6GfxDZUj2Ol+0SX1H+FMMR8l K/2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DUuE2gRn; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id et19-20020a170907295300b0078db6f5f4b2si1102647ejc.546.2022.11.17.12.40.34; Thu, 17 Nov 2022 12:41:15 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=DUuE2gRn; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238882AbiKQSuf (ORCPT + 92 others); Thu, 17 Nov 2022 13:50:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234802AbiKQSua (ORCPT ); Thu, 17 Nov 2022 13:50:30 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E9635917F for ; Thu, 17 Nov 2022 10:50:28 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 6D1F6CE1E60 for ; Thu, 17 Nov 2022 18:50:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D16F1C433D6; Thu, 17 Nov 2022 18:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668711025; bh=fs0+884Rrp2ydND1a+01LKBd9qfdHL/I8ilA5m9iX/g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DUuE2gRnahBKuyvdosL624a3uTa22KUYNAIL7aowwYNXSjrY8dCG5NFZsfr1sJTpj KiMKWwsUg+Y/6g4q5yDRBUVA3bBjjuMipaTXHHx1P+45aPO2CV4EnaoyxypS+8I191 Nds7XZwtF7f6CYiFNj47O+AZh3GfaL7ihww7vzd8= Date: Thu, 17 Nov 2022 19:49:59 +0100 From: Greg KH To: Brent Pappas Cc: johan@kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] staging: gdm724x: Replace macro GDM_TTY_READY with static inline function Message-ID: References: <20221116192412.22446-1-bpappas@pappasbrent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221116192412.22446-1-bpappas@pappasbrent.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Wed, Nov 16, 2022 at 02:24:13PM -0500, Brent Pappas wrote: > Replace the macro GDM_TTY_READY with a static inline function > to follow the Linux kernel coding style. > > Signed-off-by: Brent Pappas > --- > drivers/staging/gdm724x/gdm_tty.c | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c > index cc6d80554c98..93d50d42a367 100644 > --- a/drivers/staging/gdm724x/gdm_tty.c > +++ b/drivers/staging/gdm724x/gdm_tty.c > @@ -21,7 +21,10 @@ > > #define MUX_TX_MAX_SIZE 2048 > > -#define GDM_TTY_READY(gdm) (gdm && gdm->tty_dev && gdm->port.count) > +static inline int gdm_tty_ready(struct gdm *gdm) Why is this "int" and not "bool"? thanks, greg k-h