Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2403866ybf; Mon, 2 Mar 2020 07:59:56 -0800 (PST) X-Google-Smtp-Source: ADFU+vsTh65Z3EIHHj/e6qHxKoJmOFPG+iLTNx+TmyA+gQX36myertHjuTfjAvodOEb1OQLbbG8x X-Received: by 2002:a05:6808:251:: with SMTP id m17mr111114oie.15.1583164796453; Mon, 02 Mar 2020 07:59:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583164796; cv=none; d=google.com; s=arc-20160816; b=M2g358N6DYXbAImsUREDCBv3uj+6ABltbRptGJKXBb9tp05KGQn/cGM9h2cQgTkEKL uzvOTwyhnh2VY0WW12RRL17cgu5jJj5+aHoIfbBAhzqxg5T843cH6c36On+CGMQPcwCJ FTu23cdV66GZ1P01MiUZkVtKFyF/C6JIqOAh6SoFNcUTcfeffZ13UKz3rQoveztdtjJC j+YvtiQctRTHYih4DId9h32NvEfOJC065VspAkm8AZRJitB0tC7ibJASsaN4Vf9sea5y pjtjiotmNV+zU5ZyurBvh6aeS0l2eqiRLoM0ZxHsOyyCA0Dnqtddytc916dnywInGOII IrIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ElOPz/aScMaTU2URGafDzZlsGl0einj+flmXoYnxkbc=; b=V9QG3XL9IPLDXCXX8dZ3uepFqK5OLXeO5F1M9rAraODTt8cFiEBUG4ShxBiHqZLlO0 PY4puCOZLIBxu2xNlnzwAn79I++bqT+gY3ckJ7HUT5tgS46OOy07ofhquCzAjt3xbin0 v8iL8VXIwxBmyHp8i5OpBTLgTV04RtArJSZ7Uq9D2hW3mV9yQRpuwDOBe7iS9yVjyABy SJEPQvym3Qr8924kms3ysXh3lx2L076Vx0NRe9+6dmVMtUUVeKq/rJ4gsfMx0OHXpLC5 qDatmcqmheVeJa+dQzxc9SFl7Mc0nv0rshZfiNjY37yzUMZ2YACJaqgYo04rk5SONUHk Y9aw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z20si5818874oib.26.2020.03.02.07.59.44; Mon, 02 Mar 2020 07:59:56 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727209AbgCBP6S (ORCPT + 99 others); Mon, 2 Mar 2020 10:58:18 -0500 Received: from mga07.intel.com ([134.134.136.100]:58152 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727085AbgCBP6S (ORCPT ); Mon, 2 Mar 2020 10:58:18 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 07:58:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,507,1574150400"; d="scan'208";a="438321722" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga005.fm.intel.com with ESMTP; 02 Mar 2020 07:58:16 -0800 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1j8nSU-006Ibe-Ru; Mon, 02 Mar 2020 17:58:18 +0200 Date: Mon, 2 Mar 2020 17:58:18 +0200 From: Andy Shevchenko To: "Winkler, Tomas" Cc: "linux-kernel@vger.kernel.org" , Christoph Hellwig Subject: Re: [PATCH v1] mei: Don't encourage to use kernel internal types in user code Message-ID: <20200302155818.GG1224808@smile.fi.intel.com> References: <20200228151328.45062-1-andriy.shevchenko@linux.intel.com> <3bb5abe91919458aa6166eb60d9451ff@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3bb5abe91919458aa6166eb60d9451ff@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Cc: Christoph. On Sat, Feb 29, 2020 at 04:28:11PM +0000, Winkler, Tomas wrote: > > uuid_le is internal kernel type which shall not be exposed to the user in the first > > place. > Why, these types are exported via include/uapi/linux/uuid.h Which is wrong from the day 1. The uuid_t type is being provided by libuuid in the user space, there is no (more) kernel exported equivalent. Same should be done to the uuid_le. We already discussed this couple of years ago. > In order to mitigate the (wrong) distribution of the use of that type, > > switch MEI AMT sample to plain unsigned char array. > > There was a change to guid_t from uuild_le, anyhow there is much more code > except this sample that uses those types. I guess you misunderstood the point. The types are for kernel use and keeping them exported in a condition like it's now (quoter baked due to drop of uuid_be part completely and uuid_le partially) is wrong. There is *no* ABI change. And basically libuuid or another one should provide type and infrastructure for this. > Nack so far. If you would like to bear the legacy type, why not to move this UUID UAPI parts directly to MEI? -- With Best Regards, Andy Shevchenko