Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1197658pxb; Fri, 21 Jan 2022 12:03:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGDSv2YM/8mM8GyVXyNU2bMjFMzWEfkKjAB1rQ7BHQ2zVtRvVfwjv1lN8rAytWrWBmYEwf X-Received: by 2002:a17:902:ce8d:b0:14a:70dc:2050 with SMTP id f13-20020a170902ce8d00b0014a70dc2050mr5079171plg.11.1642795394969; Fri, 21 Jan 2022 12:03:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642795394; cv=none; d=google.com; s=arc-20160816; b=Nkvm5MV/ke72VQaP0bC97GFH4fxG059HgxtuTXZAY9bneMjaVpnItf3qBMtR6aSvd9 Hp85OQvkOzxa9ihtNmRuHnugxqibjuqVkf5s+Qunt8+pQeoAMDlJEa7UPiTDInTecxRO +I+ick7kZ2T04Ht3RE+f+UopMyouvy8cyTuU2Y5WZ0WNk7wLTT03QRO9ot7zJN5I0uTU a1s7zv6QzMILetN18+3t5fp+ZNKaM4UN8Mxpru/MDc/GG/xc0tR+EF4LJZHigxPlNXHu 5RgkgXYU1XQfNeZMk3/6ZV+ZtV1URPXAmlPNEUJ+/v70pDigLihM8+Bf5Irowh0EmXDH NOGA== 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=i0eME57zAg4XLJfhSyRWjuCRS84AcF/OkXmaLzuYeV4=; b=Bi2lmikcMp0tQkAbeAWjWnQ3ueSnqHcjuAC7n3tgLl2z/3MeLA3HqZn09rZpq43pmU WkYdydQmESBDrAT+IfN9QQaf+6daEjDnkIxQ1NqhTQfogfppEBn5c78x/vCA0VscIb25 bS9AqPpIP4xgPAd53z0ZaNSkzYC7ug0iink7Pi5OYqGXayBpUK36cRmhaUvfDI7u4ati Rcb1O+4bKzuzcYF9AfgdJVLVQrA45F24mTXgl9ykk67BAmyUppS2AageCeQMUK55CoXS liamgTOQ3BPQZDGTE6t0c0u4YsdiPCGbrmb6RxqeLz91KzHulEyYJnI2uev7ooVL3/Yh RNJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="XdRQO/U+"; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si9489422plg.343.2022.01.21.12.03.02; Fri, 21 Jan 2022 12:03:14 -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=@intel.com header.s=Intel header.b="XdRQO/U+"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357414AbiASUoJ (ORCPT + 99 others); Wed, 19 Jan 2022 15:44:09 -0500 Received: from mga14.intel.com ([192.55.52.115]:26609 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357328AbiASUoA (ORCPT ); Wed, 19 Jan 2022 15:44:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642625040; x=1674161040; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZnpQmdGf3petXh8fwqqd+ss75xCdI43Bzq3MlCXD9oc=; b=XdRQO/U+I/0kVdm3l1H4OAKhWqCu/h82dtNf/SUXrmspL5BMOhNekXtL s0g7kRh7sfP40ix27fMismSJGKSbZ19Fh2Dd9neBC0QcCdI43uh4ELcqo AsgfQNvQ6ALZUswFJfbfPNjOWQJ2xle6M5Gc1nJ1aAbhYjDqs3ACYo46A A6bkW1x/Db/Sy1C6v3V/0ctsSYYBtWea0f6pGh36OT30NdU2thn74/dPl +1HqAExbkGR8EBKOIM3BNLckpC4Dc7EBOmNMPV6boTUhiiy0fNHh85fNM GADXqU6nTEgA8n25XKFY6KdYGvFVTEJTQ+k5Y3mgX3/HF7EeNciiP4XCp Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10231"; a="245386545" X-IronPort-AV: E=Sophos;i="5.88,300,1635231600"; d="scan'208";a="245386545" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2022 12:43:57 -0800 X-IronPort-AV: E=Sophos;i="5.88,300,1635231600"; d="scan'208";a="518333103" Received: from atefehad-mobl1.amr.corp.intel.com (HELO ldmartin-desk2) ([10.212.238.132]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2022 12:43:56 -0800 Date: Wed, 19 Jan 2022 12:43:56 -0800 From: Lucas De Marchi To: Steven Rostedt Cc: Sakari Ailus , Emma Anholt , David Airlie , nouveau@lists.freedesktop.org, Rasmus Villemoes , dri-devel@lists.freedesktop.org, Chris Wilson , Vishal Kulkarni , Francis Laniel , Kentaro Takeda , Mikita Lipski , amd-gfx@lists.freedesktop.org, Andy Shevchenko , Ben Skeggs , Jakub Kicinski , Harry Wentland , Petr Mladek , Leo Li , intel-gfx@lists.freedesktop.org, Raju Rangoju , Julia Lawall , Rahul Lakkireddy , Andy Shevchenko , Eryk Brol , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Christian =?utf-8?B?S8O2bmln?= , Sergey Senozhatsky , linux-security-module@vger.kernel.org, netdev@vger.kernel.org, Alex Deucher , Andrew Morton , "David S . Miller" Subject: Re: [Intel-gfx] [PATCH 1/3] lib/string_helpers: Consolidate yesno() implementation Message-ID: <20220119204356.vizlstcs6wi6kn4b@ldmartin-desk2> X-Patchwork-Hint: comment References: <20220119072450.2890107-1-lucas.demarchi@intel.com> <20220119072450.2890107-2-lucas.demarchi@intel.com> <20220119100635.6c45372b@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220119100635.6c45372b@gandalf.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 19, 2022 at 10:06:35AM -0500, Steven Rostedt wrote: >On Wed, 19 Jan 2022 11:18:59 +0200 >Sakari Ailus wrote: > >> On Tue, Jan 18, 2022 at 11:24:48PM -0800, Lucas De Marchi wrote: >> > @@ -1354,8 +1345,7 @@ static bool tomoyo_print_condition(struct tomoyo_io_buffer *head, >> > case 3: >> > if (cond->grant_log != TOMOYO_GRANTLOG_AUTO) >> > tomoyo_io_printf(head, " grant_log=%s", >> > - tomoyo_yesno(cond->grant_log == >> > - TOMOYO_GRANTLOG_YES)); >> > + yesno(cond->grant_log == TOMOYO_GRANTLOG_YES)); >> >> This would be better split on two lines. > >Really? Yuck! > >I thought the "max line size" guideline was going to grow to a 100, but I >still see it as 80. But anyway... Checking that: docs still say 80, but checkpatch was changed to warn only on 100. Commit bdc48fa11e46 ("checkpatch/coding-style: deprecate 80-column warning") is clear why the discrepancy. Lucas De Marchi > > cond->grant_log == > TOMOYO_GRANTLOG_YES > >is not readable at all. Not compared to > > cond->grant_log == TOMOYO_GRANTLOG_YES > >I say keep it one line! > >Reviewed-by: Steven Rostedt (Google) > >-- Steve > >> >> Then, >> >> Reviewed-by: Sakari Ailus >