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=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham 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 C8BE0C4360F for ; Thu, 4 Apr 2019 08:45:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 97D8A20855 for ; Thu, 4 Apr 2019 08:45:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727445AbfDDIpb (ORCPT ); Thu, 4 Apr 2019 04:45:31 -0400 Received: from mga11.intel.com ([192.55.52.93]:54314 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727282AbfDDIpb (ORCPT ); Thu, 4 Apr 2019 04:45:31 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2019 01:45:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,306,1549958400"; d="scan'208";a="147958057" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by orsmga002.jf.intel.com with ESMTP; 04 Apr 2019 01:45:28 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hBxzy-0003On-W4; Thu, 04 Apr 2019 11:45:26 +0300 Date: Thu, 4 Apr 2019 11:45:26 +0300 From: Andy Shevchenko To: Christoph Hellwig Cc: Chris Mason , Josef Bacik , David Sterba , Lu Fengqi , linux-btrfs@vger.kernel.org, David Sterba Subject: Re: [PATCH v2 1/2] uuid: Add a glue layer macros for raw buffers Message-ID: <20190404084526.GI9224@smile.fi.intel.com> References: <20190329202644.40058-1-andriy.shevchenko@linux.intel.com> <20190403180903.GD28682@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190403180903.GD28682@lst.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Wed, Apr 03, 2019 at 08:09:03PM +0200, Christoph Hellwig wrote: > On Fri, Mar 29, 2019 at 11:26:43PM +0300, Andy Shevchenko wrote: > > When the ID comes from or we would like to pass it to a raw buffer, > > the casting is needed. > > Something is missing in this sentence. What I meant there is if we got a raw buffer, consider u8 * pointer to it, and we would like to either take a UUID in binary form from it or pass it to that buffer, we have to cast due to type inequivalence. Can you suggest how to compress it nicely to few words? -- With Best Regards, Andy Shevchenko