Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1170942pxb; Fri, 21 Jan 2022 11:22:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGpqUD9m9h8W6RVDXJz2chR/KTYDHX4Oya94KWpswRtjeLuE9PUY09R3/4eQvu4m8v0n7r X-Received: by 2002:a63:9f0a:: with SMTP id g10mr3804629pge.387.1642792949024; Fri, 21 Jan 2022 11:22:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642792949; cv=none; d=google.com; s=arc-20160816; b=04ZyeNF3LSrOQ6TJOQVehIN+NBklBqZsU8uNEz8V+qutbq3XmcBQ70fpXdggyGma9n PTZfCeQUEeOMf1VLfAIHdntlTT7vhrxm4rMXEwx3XXyywjC1tH/S4dTkoa0nGMITXwqG TikXfi4BBvF1ZyCpNYigyuOlC99BIXcPoFZMWBdoedcPGtJCWyoaulH1ngZmdy/F2KBC nYh1RWMz2gRM3tHtd3VwZBIzUsByFsGWQcOPSuATPq7JSXCkofKyLq1Ra5gsp7baeJ+0 ae3ZVqjj2+Ph7DqkvwqZ/2bw2lxsPJh/oIsKgkAzlVFgjHHFJbrOb2o5DMu5v9L9WDnO ooSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Y+lFDhnXCo5xxv5nFM8NTCMR4K23vfgrqH/+D/2Dt7c=; b=T6JBM+jkHVPqeKuqndf6u6kgnORJUnSUB9xWxHFc3CN1Z2SD/v3o9Q7Ht5s9rpEnnY xkmCrBIxDOwheek2uFCOOVOU07zdOntosk2F7/oJGHQ69JZT6qXcskB3CWCDt3i+/joM cD8vgWQRfB7In1WS1nOQyAXEPle5BJNPKiRvwKvpvMZtHe8M5pH38MNflgE1A4K8Mne5 /ujmp/xXmTACAluWAJXc3hq9B2b3FLZBGLDsBb/hlyu6TvDCFeeYo8oc3EIUklUxHoIp yiom8UVE2TMoYz7JC629DcboUEhdL3NEKP2caH8jYHfESzrlWT4QI2hz62I7vAYxqWzG mmaA== ARC-Authentication-Results: i=1; mx.google.com; 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 w6si6316448plz.180.2022.01.21.11.22.16; Fri, 21 Jan 2022 11:22:29 -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; 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 S1355418AbiASPBK (ORCPT + 99 others); Wed, 19 Jan 2022 10:01:10 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:46164 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349566AbiASPBK (ORCPT ); Wed, 19 Jan 2022 10:01:10 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id C6765B81A06; Wed, 19 Jan 2022 15:01:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC12DC004E1; Wed, 19 Jan 2022 15:01:03 +0000 (UTC) Date: Wed, 19 Jan 2022 10:01:02 -0500 From: Steven Rostedt To: Andy Shevchenko Cc: Lucas De Marchi , "linux-kernel@vger.kernel.org" , "intel-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "amd-gfx@lists.freedesktop.org" , "linux-security-module@vger.kernel.org" , "nouveau@lists.freedesktop.org" , "netdev@vger.kernel.org" , Alex Deucher , Andrew Morton , Andy Shevchenko , Ben Skeggs , Christian =?UTF-8?B?S8O2bmln?= , Chris Wilson , Daniel Vetter , David Airlie , "David S . Miller" , Emma Anholt , Eryk Brol , Francis Laniel , Greg Kroah-Hartman , Harry Wentland , Jakub Kicinski , Jani Nikula , Joonas Lahtinen , Julia Lawall , Kentaro Takeda , Leo Li , Mikita Lipski , Petr Mladek , Rahul Lakkireddy , Raju Rangoju , Rasmus Villemoes , Rodrigo Vivi , Sakari Ailus , Sergey Senozhatsky , Vishal Kulkarni Subject: Re: [PATCH 1/3] lib/string_helpers: Consolidate yesno() implementation Message-ID: <20220119100102.61f9bfde@gandalf.local.home> In-Reply-To: References: <20220119072450.2890107-1-lucas.demarchi@intel.com> <20220119072450.2890107-2-lucas.demarchi@intel.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 Jan 2022 11:15:08 +0200 Andy Shevchenko wrote: > > +static inline const char *yesno(bool v) { return v ? "yes" : "no"; } > > > > Perhaps keep it on 4 lines? Yes, yes/no is short, but if we add others > (enable/disable) it will not be possible to keep on one line. And hence > style will be broken among similar functions. Agreed. Functions should always be of the normal format: type func(params) { body; } Unless it is a stub function. type func(params) { return 0; } -- Steve