Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp105140ima; Thu, 25 Oct 2018 16:25:03 -0700 (PDT) X-Google-Smtp-Source: AJdET5d3Yw58z/2F0Yi/AJJeNczdOozWpJTlN29MfkmOPVr/sPG8CylWrlEFlsyz0SbX1Xfg0y28 X-Received: by 2002:a62:9c8c:: with SMTP id u12-v6mr1169666pfk.162.1540509903739; Thu, 25 Oct 2018 16:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540509903; cv=none; d=google.com; s=arc-20160816; b=CHClMHiQ0+KwPltqrbdNetNZqgua5XnXQZDZLsCtZURa6aJ3ZnbQVI2ZUQAvlEziBv 8vCBexsTSSIVMdxG88TjlK23dWP0B07rjZTehfI9CSHISzI4uFIwMkMjMPrEZxMODq27 Mzss7e92g1lPFSu3uB6FwInhuzONvj13DTGaTIxglNEw3QDrOcgGRcONSLufVptwl+EZ t0cwkCu05qYrCVRVpZfaZE0NrE9Dg3mp63xc2ZhXJTlId0uwOStWkwNTnn0VJIgVaviF PaozQhBiz/KVjhs1AaQdkGAD5uTGv4S3e6FSHWduUDTd/9yr+4wQeb5yReSc84rAQ9kW xUqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=byzcgiTrnjDTzXaMk/YmPoOIHvu7C3Jlw5utK+9iCEY=; b=pJuipFw2YkpUh0ZQ+DJbnBJJtOfQH01oTYselZWhcRcR5gk0O+KqAq6T0MkTu2up3d RcC9wkzjXi2MDfI22D5zM1WbPB7B+GItZ42fPKtUo0cr98OFuAfYahkHy8kQacttRTdA HIDgdViS8Rt05yeeHgose0Po9pVcjBqix+9XRabA0p0HL+W/cMJ5emDJZNVMVaKxDb/8 yP74+gD2iWC9ArCwKuOHA0YLpM779o1jUHw1jpWdVfv25+3rF+1KCOqBTH1QMoWIFEWr oZ/w3mUD6cKNQjhnueed3WOmEBiDSc4dDLr8Dd0pp40oTjuvyUjeRbePEzQYgUWMlJW5 ouWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=e4t2mLvF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e191-v6si9523586pfg.87.2018.10.25.16.24.47; Thu, 25 Oct 2018 16:25:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=e4t2mLvF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727620AbeJZH5s (ORCPT + 99 others); Fri, 26 Oct 2018 03:57:48 -0400 Received: from one.firstfloor.org ([193.170.194.197]:50388 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727487AbeJZH5r (ORCPT ); Fri, 26 Oct 2018 03:57:47 -0400 Received: by one.firstfloor.org (Postfix, from userid 503) id D91748694A; Fri, 26 Oct 2018 01:23:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1540509789; bh=CT/sfYz+aMJoeKYHD0ypGGWZ7PUxADl0WxlXFriw/1c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e4t2mLvFWlJn+zUVGJ27zWFTiBLpz5s6garsUo9mo8etLp72loRFPP85Zg+AcNpuB OZojuND2a12G0NgjNf41C0eECoZR07n5xUFBfu5pOVgbuL7uDRRhOgMpI5PSM9lLCG XpkzixBqyNqN9eUzb/veB6GXgX3g5WK7RjmcW1I4= Date: Thu, 25 Oct 2018 16:23:09 -0700 From: Andi Kleen To: Thomas Gleixner Cc: Andi Kleen , Andi Kleen , peterz@infradead.org, x86@kernel.org, eranian@google.com, kan.liang@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] x86/cpufeature: Add facility to match microcode revisions Message-ID: <20181025232309.6bbxedhkf2ffndsw@two.firstfloor.org> References: <20181010162608.23899-1-andi@firstfloor.org> <20181019234743.GA27951@tassilo.jf.intel.com> <20181020143857.GC27951@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 21, 2018 at 12:20:47PM +0200, Thomas Gleixner wrote: > Andi, > > On Sat, 20 Oct 2018, Andi Kleen wrote: > > On Sat, Oct 20, 2018 at 10:19:37AM +0200, Thomas Gleixner wrote: > > > On Fri, 19 Oct 2018, Andi Kleen wrote: > > > There is no point to return the pointer because it's not a compound > > > structure. If you want to provide the possibility to use the index then > > > return the index and an error code if it does not match. > > > > It will be useful with the driver_data pointer, which you short sightedly > > forced me to remove, and likely will need to be readded at some point > > anyways if this gets more widely used. > > It's good and established practice not to add functionality on a 'might be > used' basis. If you'd provide at least one or two patches which demonstrate > how that is useful then that would be convincing. > > > At least with the pointer not all callers will need to be changed then. > > It doesn't need to be changed at all, when done correctly. Thanks. I opted for the simpler method of returning a boolean now. -Andi