Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp356789pxb; Wed, 14 Apr 2021 17:42:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjMgfFyqdC7T3qFGlKTaAxy0reHYWVosC27gaoYmgIxMqazHnD4RVlDNWnhxqIlOsvgZm+ X-Received: by 2002:a62:cdce:0:b029:257:5416:15fc with SMTP id o197-20020a62cdce0000b0290257541615fcmr561456pfg.62.1618447343000; Wed, 14 Apr 2021 17:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618447342; cv=none; d=google.com; s=arc-20160816; b=xcNITq0EZVrDUsj9WRKQ6w1/2G0yX7kYfBBJHOroGYWvlBKFdM2uNjrStPCwusPPSX dvPJs31hW9AeWjRtTLda41Dgla6tjvaJKgSXqjdFknTBtpwXgiZhWqt0bxb8rN4NXGI+ QZOrgELkSw35iQeGfXsf26XxOgO6mrfUy3m3nBf3ZreLNTrlb82SYzAHS+xoIGW5+DQ9 v/laELEo+lCfDsem5kGw10Mb6GULqA3td/ML/ckJhFNqgkIhPdMA51qtPUM7wbLJZtr5 NHtwewxuoE4s6cuSLucQaKtgTQuh7C1B+4y9qAr/a0avSNCVQtDZtBXniO3RwK5C4FPs KpOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=A1vzLrkMidVM8queDWpkr7d4rI8oJcf9eld9dO4oWC8=; b=ZAVgAczUdTIGqEgoLWPbHXUGwNtLgoPJD23RjlUR1KinsOaOzeGOjDi5J//odn0qHW FV5ZPmVkflIRg7Sh7CISXaXlgnczaSHZPTVsxLNtzWKMB6turY7Sje4zbfRdh2ih9Bc2 Gesvz+LWXt7+9WSAKH7Qz3igEtxWIzR4pVa1Aqqp3MsR8I/Q+8P3VeeaHgKlW+bfbOXe d7G45YPttIDk+2HyC+Kr6UPqtYLW3GtgsbGl4IkmFAxVqqnxyoKOuuignGIhhYtSYnmz 3wqcvlEaEX80dJv3qGPS+z1brtvwXxblLs22cHZE3wPzS835Z3uh7lc38YjS/2R6bs/j IsOw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gi23si1237453pjb.22.2021.04.14.17.42.11; Wed, 14 Apr 2021 17:42:22 -0700 (PDT) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234771AbhDNTMl (ORCPT + 99 others); Wed, 14 Apr 2021 15:12:41 -0400 Received: from mga11.intel.com ([192.55.52.93]:22337 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234378AbhDNTMk (ORCPT ); Wed, 14 Apr 2021 15:12:40 -0400 IronPort-SDR: R5N/FHnBdgfYqbba85zyWnoCARHy21qItLk8cK+o3/yFRN8ebzioT3qzsmtkvV0C2rBTv61v0z UGQ17Lg4bWUw== X-IronPort-AV: E=McAfee;i="6200,9189,9954"; a="191528850" X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="191528850" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 12:12:18 -0700 IronPort-SDR: SbYrAMIG0Pb5MgtqhxeBJpGZ5CVAn0NP4DKcBnM/d5K0ofKcYtCFFtu2VekZBRLaP7vDrMnuI/ Fu0AbuuX1m2w== X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="532880222" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 12:12:17 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lWkvu-00455M-5i; Wed, 14 Apr 2021 22:12:14 +0300 Date: Wed, 14 Apr 2021 22:12:14 +0300 From: Andy Shevchenko To: Greg Kroah-Hartman Cc: Alexander Shishkin , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/7] stm class: Replace uuid_t with plain u8 uuid[16] Message-ID: References: <20210414171251.14672-1-alexander.shishkin@linux.intel.com> <20210414171251.14672-3-alexander.shishkin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 14, 2021 at 08:56:50PM +0200, Greg Kroah-Hartman wrote: > On Wed, Apr 14, 2021 at 08:47:48PM +0300, Andy Shevchenko wrote: > > On Wed, Apr 14, 2021 at 07:33:38PM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Apr 14, 2021 at 08:12:46PM +0300, Alexander Shishkin wrote: ... > > Nothing, just will require additional export_uuid() / import_uuid() call. > > Isn't that the "correct way" here? I agree that it is better, yes. > > > > - generate_random_uuid(pn->uuid.b); > > > > > > Ok, that's not good, but that looks to be a flaw in the > > > generate_random_uuid() api, not this driver implementation. > > > > > > I don't understand why this change is needed? > > > > Using raw buffer APIs against uuid_t / guid_t. > > So you want to do that, or you do not want to do that? Totally > confused, It is matter of consistency, so two possibilities here: - use types _and_ APIs for raw buffer (this patch) - use types _and_ APIs for uuid_t (suggested in this discussion) Currently it uses uuid_t type _and_ raw buffer APIs — inconsistency. -- With Best Regards, Andy Shevchenko