Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5167840pxv; Tue, 20 Jul 2021 21:59:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhgw9f/qwk9TyKhPwgPm1rABRGO15mfBr18ZsT5INyKb+KtEP7nCd5+DqvtGhxPzj+orAR X-Received: by 2002:a05:6638:3796:: with SMTP id w22mr12998112jal.34.1626843562601; Tue, 20 Jul 2021 21:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626843562; cv=none; d=google.com; s=arc-20160816; b=bKfvVhypo0zsHNUB8AyizULcuchlwQ3c73qS5Y9P4xNq0mTa3E334X5/JnptMaazDi TGdb6kiZaS1LHdZt5tU3czi2R8TxHDWfAMQzZvSl7znw0xpEED6793uNHdfBVlF/uEVo cxFYGV/zgvDX0r+eVybaoqBfvTwSwgeJX3Z6chWrxP9MKZTYaAUUMGpVFCfylJjyQi2l nTrxyOnLgMmO0kjd3CFqywNybgAMP5mdpIKzFNaD8QaANAxtmjTflmm4oeEWhz4Ddt8i NEnSEV1LgXHDLFu9bPrA+k2ZaSgc4ypQmGFOUR35WKmKJTJoU5Gm+rGGpK4GbtvW2Sw8 1sBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=G1CpyrlxbkQi8C3eKrGFY5ZV8sAO1WbnuAPLS/w9iyc=; b=m+454uQDXAeMfCUuAtWvvXq4joXdPsvriqVbpeOg2ynT4SKBcpxIGjbj4TjqaCqXrW DQVXWjrz9nP7yWPSwX9Ky8oTC+3voANZsVFaWLYJxFkYU/cBeiVLRzHC1awrpZb0142z +pYk92eTbVEvdNeqhAwn0PCCAs6mZHvr+YeRH4XwKlXNBGPT+nUZ/rWq2drHp/myzdzg C7V7uwhJPTh5/Ux/C+4uvsrdSEFTS3r4Fd7W2bhzElP9Xvm6oNggmMl3ljpchf/aXqUW 74hAicplWAxDy+VyzeQ0CgR8AoYLn8oBObcX10P9YR4i6knA68y9aYnEYOb3aY0/njv2 JejQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j30si24775473ila.56.2021.07.20.21.59.10; Tue, 20 Jul 2021 21:59: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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232512AbhGUERA (ORCPT + 99 others); Wed, 21 Jul 2021 00:17:00 -0400 Received: from mail-ed1-f49.google.com ([209.85.208.49]:45728 "EHLO mail-ed1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbhGUEQe (ORCPT ); Wed, 21 Jul 2021 00:16:34 -0400 Received: by mail-ed1-f49.google.com with SMTP id x17so747539edd.12; Tue, 20 Jul 2021 21:57:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=G1CpyrlxbkQi8C3eKrGFY5ZV8sAO1WbnuAPLS/w9iyc=; b=jBAPrGNXTUYVryYWhW0yT82PbMHi6faQKRsQBZ69QIjwFn9LHNNOKiwdpXDgP8eODT mcjqoYgQVqE+/u2QizmTlciVzQ8XxSXZCQhaeMxhz0OVoU/CO8hro5tDPyt5buhTgBBr 6D79fsPpebjzEq+fElrM5fuOBHPrfoJWU+lMHYl4vSsjG+Rq9/LJsDMeC47jozKdCksK MpfWnuK60gJsgIXBRWBVj/YVlx+VR3ZEUxX00Tl2Aq9gtvEAe+9lBlAhXm0+vOVxe/Xz la8a+ectMxcWTj2nGpGNVq1BVW2ICDFn0qnDPCv7AqIhncIffoIROj1JWooEUGN5M4v4 s/vw== X-Gm-Message-State: AOAM530kArH/FdYWpIgzF5A83swCItLPHIOntOwM4p+KN2cA88y/oJzO B+8Vnx7gJyJRzWlAodWS3pD0yToTnTkuYxn+ X-Received: by 2002:aa7:c4c7:: with SMTP id p7mr45104066edr.290.1626843430294; Tue, 20 Jul 2021 21:57:10 -0700 (PDT) Received: from ?IPv6:2a0b:e7c0:0:107::70f? ([2a0b:e7c0:0:107::70f]) by smtp.gmail.com with ESMTPSA id s18sm7979195ejh.12.2021.07.20.21.57.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jul 2021 21:57:09 -0700 (PDT) Subject: Re: [Patch v4 2/3] Drivers: hv: add Azure Blob driver To: Long Li , "longli@linuxonhyperv.com" , "linux-fs@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" Cc: Jonathan Corbet , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Greg Kroah-Hartman , Bjorn Andersson , Hans de Goede , "Williams, Dan J" , Maximilian Luz , Mike Rapoport , Ben Widawsky , Andra Paraschiv , Siddharth Gupta , Hannes Reinecke , "linux-doc@vger.kernel.org" References: <1626751866-15765-1-git-send-email-longli@linuxonhyperv.com> <1626751866-15765-3-git-send-email-longli@linuxonhyperv.com> <90ed52d3-5095-9789-53f0-477ba70edc3b@kernel.org> From: Jiri Slaby Message-ID: <5c5dd1e5-2639-b293-b2e0-d7cfd5ca3c0c@kernel.org> Date: Wed, 21 Jul 2021 06:57:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21. 07. 21, 0:12, Long Li wrote: >> Subject: Re: [Patch v4 2/3] Drivers: hv: add Azure Blob driver >> >> On 20. 07. 21, 5:31, longli@linuxonhyperv.com wrote: >>> --- /dev/null >>> +++ b/include/uapi/misc/hv_azure_blob.h >>> @@ -0,0 +1,34 @@ >>> +/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ >>> +/* Copyright (c) 2021 Microsoft Corporation. */ >>> + >>> +#ifndef _AZ_BLOB_H >>> +#define _AZ_BLOB_H >>> + >>> +#include >>> +#include >> >> Quoting from >> https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore. >> kernel.org%2Flinux- >> doc%2FMWHPR21MB159375586D810EC5DCB66AF0D7039%40MWHPR21MB1 >> 593.namprd21.prod.outlook.com%2F&data=04%7C01%7Clongli%40micr >> osoft.com%7C7fdf2d6ed15d4d4122a308d94b6eeed0%7C72f988bf86f141af91 >> ab2d7cd011db47%7C1%7C0%7C637623762292949381%7CUnknown%7CTWFp >> bGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVC >> I6Mn0%3D%7C3000&sdata=kv0ZkU1QL6TxlJJZEQEsT7aqLFL9lmP2SStz8k >> U5sIs%3D&reserved=0: >> ===== >> Seems like a #include of asm/ioctl.h (or something similar) is needed so that >> _IOWR is defined. Also, a #include is needed for __u32, __aligned_u64, >> guid_t, etc. >> ===== > > The user-space code includes "sys/ioctl.h" for calling into ioctl(). "sys/ioctl.h" > includes , so it has no problem finding _IOWR. > > guid_t is defined in , included from (in this file) > __u32 and __aligned_u64 are defined in , which is included from (in this file) No, please don't rely on implicit include chains. Nor that userspace solves the includes for you. thanks, -- js suse labs