Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1189299pxb; Fri, 21 Jan 2022 11:51:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqs5KQpHoXd5jxEX0FBw9wlAafhCL9zDR5A1EdSxGCsxtpvEpoN1L8uPvq6lD9EdL2W77C X-Received: by 2002:a63:69c8:: with SMTP id e191mr3913179pgc.523.1642794664368; Fri, 21 Jan 2022 11:51:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642794664; cv=none; d=google.com; s=arc-20160816; b=epNX1Mpey+52iAIoON/23asXvKz1MXAmSpxoZ9sJYbpT5wmcbB0TNZhLCaN/bTH4sm SvIN7kiI4QYmiGuMM+osRVGczw4cE2f7veNc+Fd3ZZYkY2mQiKYtXkHEbyoEiK5geMj6 UTqin5e2zQNOO458w/zoGz8BuGIslW/T/6J5OdU1kDTR3lnocgzFE1lTWUJyHUO1ySAo VZX4I6RoLCKYMWYFgyfpo3OXz2CcDj0fdd6Ok7/8EG/wMhwndqHh57md2ugrYVuyjgza 6CzlmHI7qMgyXG0nvcE7d1o0Tm0c8UNWok+pnGmDaQAmat3o91eGe3yTfLalsdlFqddj TdMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=xB5ptXcXxPdSCC1925oX5qMqZlDA3i0x8cew8wQxksY=; b=ICb8gLac3F8/E8q93GqDWFjHuV3w9aIzczLfpyIBwFJ5Ni4PaomVnISqVfRA0MUpzV KWhCORBEKT/XUAta5faxKMDAqXZZjcFAR2zIMGuuUH/IG63tXIXiHK9DV4SFAv+YzbRZ I+LhW7OA5P2Na1VzNlwTTkMFqokUA6nYv10xfC5llYInQ3RY9srBITA9CF05LdERW2sl +B6UgKRnTQCq5VYY9XuXbaYJX+aO3j1Iqt13VJVS3r5poqm4VzJLO9F3A5cDbZ1fqmE/ Fbs0M/lt/K3ooX9Vyjw1lMoSethv/+tOM3YrCeCgRBBMJOYpj2MeDyqtLfvRs6VB1qui gr3w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si6523757plo.449.2022.01.21.11.50.52; Fri, 21 Jan 2022 11:51:04 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356168AbiASQhG convert rfc822-to-8bit (ORCPT + 99 others); Wed, 19 Jan 2022 11:37:06 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]:48985 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349117AbiASQhE (ORCPT ); Wed, 19 Jan 2022 11:37:04 -0500 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-70-ad3hgsm6PzCTMw0_BweRrA-1; Wed, 19 Jan 2022 16:37:02 +0000 X-MC-Unique: ad3hgsm6PzCTMw0_BweRrA-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Wed, 19 Jan 2022 16:37:00 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.028; Wed, 19 Jan 2022 16:37:00 +0000 From: David Laight To: 'Steven Rostedt' , 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 , =?iso-8859-1?Q?Christian_K=F6nig?= , 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 Thread-Topic: [PATCH 1/3] lib/string_helpers: Consolidate yesno() implementation Thread-Index: AQHYDUVmV8sHy8JfXU2yTPkp1VbmK6xqitzA Date: Wed, 19 Jan 2022 16:37:00 +0000 Message-ID: <06420a70f4434c2b8590cc89cad0dd6a@AcuMS.aculab.com> References: <20220119072450.2890107-1-lucas.demarchi@intel.com> <20220119072450.2890107-2-lucas.demarchi@intel.com> <20220119100102.61f9bfde@gandalf.local.home> In-Reply-To: <20220119100102.61f9bfde@gandalf.local.home> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > +static inline const char *yesno(bool v) { return v ? "yes" : "no"; } return "yes\0no" + v * 4; :-) - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)