From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC880C433E0 for ; Mon, 15 Feb 2021 15:59:01 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5D1FD64DEC for ; Mon, 15 Feb 2021 15:59:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D1FD64DEC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BEBD06E8CD; Mon, 15 Feb 2021 15:58:57 +0000 (UTC) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id EA8706E159; Mon, 15 Feb 2021 15:58:55 +0000 (UTC) IronPort-SDR: Bu7BN6u8Yl7XkpsIl11D0FAFzCb+qLBeLG8HbpWAOPmZv4YW9WjLRoExyeujy7W/QXw4WyNhJv SVTv7yeuYSbw== X-IronPort-AV: E=McAfee;i="6000,8403,9896"; a="169843274" X-IronPort-AV: E=Sophos;i="5.81,181,1610438400"; d="scan'208";a="169843274" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2021 07:58:55 -0800 IronPort-SDR: qUBcDnMNGWB44uoh1MTupZsdb45fxio3m0E/f9VI6r96twT5vE68fSmGs0x7S+Ia9ZGYH1KBSs erfQ6tr1Worg== X-IronPort-AV: E=Sophos;i="5.81,181,1610438400"; d="scan'208";a="580213026" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2021 07:58:50 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lBgGs-005GNG-Ra; Mon, 15 Feb 2021 17:58:46 +0200 Date: Mon, 15 Feb 2021 17:58:46 +0200 From: Andy Shevchenko To: Jani Nikula Message-ID: References: <20210215142137.64476-1-andriy.shevchenko@linux.intel.com> <87y2fpbdmp.fsf@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <87y2fpbdmp.fsf@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: Re: [Intel-gfx] [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eryk Brol , Christian =?iso-8859-1?Q?K=F6nig?= , Leo Li , netdev@vger.kernel.org, intel-gfx@lists.freedesktop.org, Raju Rangoju , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Chris Wilson , David Airlie , Rahul Lakkireddy , dri-devel@lists.freedesktop.org, Harry Wentland , Alex Deucher , Jakub Kicinski , Mikita Lipski , Francis Laniel , "David S. Miller" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Mon, Feb 15, 2021 at 04:37:50PM +0200, Jani Nikula wrote: > On Mon, 15 Feb 2021, Andy Shevchenko wrote: > > We have already few similar implementation and a lot of code that can benefit > > of the yesno() helper. Consolidate yesno() helpers under string.h hood. > > Good luck. I gave up after just four versions. [1] Thanks for a pointer! I like your version, but here we also discussing a possibility to do something like %py[DOY]. It will consolidate all those RO or whatever sections inside one data structure. > Acked-by: Jani Nikula > > [1] http://lore.kernel.org/r/20191023131308.9420-1-jani.nikula@intel.com -- With Best Regards, Andy Shevchenko _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx