Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp352717imm; Thu, 10 May 2018 22:20:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr0sulzTB36lviqFc1dCApaZj2Z74yOAlcfXCU1ku3MTrxVdYsALsTRdZsKC8iEVDmk3+Wo X-Received: by 2002:a63:6fc9:: with SMTP id k192-v6mr3337719pgc.143.1526016051654; Thu, 10 May 2018 22:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526016051; cv=none; d=google.com; s=arc-20160816; b=Qqqf5AmHCSM9yp3a7BRFsTDpyi/sBr2HdYi2txRGP/j5rDyJaq88aYCth++eDwdU6F uhma/RlT+BczOZ9X12xl+80Ek6QWBXcjLUvuEpSNuAX/RQmQppPukdaI42pLD4IsF4K8 6au82lWJvxqkYf2TQiR6xXlQaeeR1dIgIPnGogtqJZADTCoCMqY3f5kYlfg7IPhL23+y MY77wYVIHR5r8PihxWrLaahMTRgz0deNM9xPSv2WgTUaKwvsPxN+1jzkLSFq5bhvRIaW UsA22wDc7whf+rt3N8zPnQ/wvQgEHm6QLYkrVgOrdyzOrYVRFWqBQ9IIAs4hPZWZrJms 4s9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=VZp+wvvrZ/kuOJpF7k4xhMwaza6Pw2dEcioyGpyGc1c=; b=auc1J1tIEsOcgsOcYLog2zJ+WhBhyUlsP5K6Udt2BDI+gx4yr3dRGp9dm78/m4+/ly vPgTc1fWD/Q08nYdevwlI5uyKue28MJBVHODW9GHAbuqntoQPP1Hle/zFIJGCj8VpFKk D7zeEtg+Bq/o0kxFvpa1dZi0qHjIAGYHYCOoN6iWuYnBr1R7GV2IoFBJ8id1QSotx0rB mifmfoVBXZUbGcYMuROpx/1Sm6IwARHfLT88b5BFqw4BZOjJTJ2TJh0BPnIpSGjwckao v03zNj9+77FUR0F7GfZQNKkBVWBdSYxMc0DdLiIYwxYaN+v3XOwT7TWuWDlxVeniFnW7 nAdw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8-v6si2032298pgc.693.2018.05.10.22.20.37; Thu, 10 May 2018 22:20:51 -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; 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 S1752028AbeEKFU0 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 11 May 2018 01:20:26 -0400 Received: from ozlabs.org ([203.11.71.1]:44275 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750758AbeEKFUY (ORCPT ); Fri, 11 May 2018 01:20:24 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40hz1y2F0fz9s0y; Fri, 11 May 2018 15:20:22 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Alastair D'Silva , linuxppc-dev@lists.ozlabs.org Cc: mikey@neuling.org, arnd@arndb.de, linux-doc@vger.kernel.org, malat@debian.org, gregkh@linuxfoundation.org, corbet@lwn.net, vaibhav@linux.vnet.ibm.com, npiggin@gmail.com, linux-kernel@vger.kernel.org, fbarrat@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, andrew.donnellan@au1.ibm.com, pombredanne@nexb.com, felix@linux.vnet.ibm.com, sukadev@linux.vnet.ibm.com, Alastair D'Silva Subject: Re: [PATCH v4 6/7] ocxl: Add an IOCTL so userspace knows what OCXL features are available In-Reply-To: <20180509053506.9754-7-alastair@au1.ibm.com> References: <20180509004212.4506-1-alastair@au1.ibm.com> <20180509053506.9754-1-alastair@au1.ibm.com> <20180509053506.9754-7-alastair@au1.ibm.com> Date: Fri, 11 May 2018 15:20:21 +1000 Message-ID: <871seisr8q.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Alastair D'Silva" writes: > diff --git a/include/uapi/misc/ocxl.h b/include/uapi/misc/ocxl.h > index 8d2748e69c84..bb80f294b429 100644 > --- a/include/uapi/misc/ocxl.h > +++ b/include/uapi/misc/ocxl.h > @@ -72,5 +75,6 @@ struct ocxl_ioctl_irq_fd { > #define OCXL_IOCTL_IRQ_SET_FD _IOW(OCXL_MAGIC, 0x13, struct ocxl_ioctl_irq_fd) > #define OCXL_IOCTL_GET_METADATA _IOR(OCXL_MAGIC, 0x14, struct ocxl_ioctl_metadata) > #define OCXL_IOCTL_ENABLE_P9_WAIT _IOR(OCXL_MAGIC, 0x15, struct ocxl_ioctl_p9_wait) > +#define OCXL_IOCTL_GET_FEATURES _IOR(OCXL_MAGIC, 0x16, struct ocxl_ioctl_platform) I don't have ocxl_ioctl_platform ? ../include/uapi/misc/ocxl.h:78:56: error: invalid application of ‘sizeof’ to incomplete type ‘struct ocxl_ioctl_platform’ #define OCXL_IOCTL_GET_FEATURES _IOR(OCXL_MAGIC, 0x16, struct ocxl_ioctl_platform) ^ ../include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro ‘_IOC’ ((size) << _IOC_SIZESHIFT)) ^~~~ ../include/uapi/asm-generic/ioctl.h:86:56: note: in expansion of macro ‘_IOC_TYPECHECK’ #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) ^~~~~~~~~~~~~~ ../include/uapi/misc/ocxl.h:78:33: note: in expansion of macro ‘_IOR’ #define OCXL_IOCTL_GET_FEATURES _IOR(OCXL_MAGIC, 0x16, struct ocxl_ioctl_platform) ^~~~ ../drivers/misc/ocxl/file.c:262:7: note: in expansion of macro ‘OCXL_IOCTL_GET_FEATURES’ case OCXL_IOCTL_GET_FEATURES: ^~~~~~~~~~~~~~~~~~~~~~~ cheers