Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2033005ybi; Thu, 4 Jul 2019 04:05:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNQ8/gor5+cLgbdN9r/QiaqfQQGOYwzknZ9PskoihjGJ6/IHXpnVatuvCq2jxKMmWwDL2D X-Received: by 2002:a17:90a:ae12:: with SMTP id t18mr19503589pjq.32.1562238345658; Thu, 04 Jul 2019 04:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562238345; cv=none; d=google.com; s=arc-20160816; b=fsMaT/+D9F5oUFBGgAtKRnevt2rwNWy280MJyo7kE8tr0hyzgH6z0iiWy+6UX710+R rbs/Lupx7tnLZjQUfzJGlYHUSO8s84PEiErrzH1IjMpMG3gB4xVDrafFuJbPas0276l3 zW9OR7A1oMYD3jP7P6VMHylBAvQdi9U5tmIe2et+FOxxwApEA+Dg38X5IIxMZ0Ivhe2Y uwBXdg0JbgiObPh8LjHCyD3RNU0ijhq98t3FDcia1IvCulVxP+ZYodbVc9pOoLgXaggz w9sShw5xX1utaqnA0719lrM48/ur1aZ64lSAmlCz8IIMnrQs4UaMK0SZf3qPD0/Zet4f 9JFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BaC2Sd2fftkonIZMz7KRcBJwjY2QWVrUulG7CZen7mM=; b=sF/rW3CN8DeF1B45HtX5dcwbGH1A7BomTX7gIYA1xu7CjXqkwkCLGaHMQH5sRLpnc+ PBc9VWpM8X71BdeyQFzWlEzakI3JHu8cL3p2PtGzv+hH9t32B2tBawqNEZVaUErgxPas z+e854BRw9l2HL2J8iwnGIurc1dAAdBNjuVllQVDh+kBx72ObCtTsdvG+kcwXaoti3wZ 6hMiVGttTjZuS0rx6+c7glSLBGPEfwnI05hbXvu4y31j0c0+BUd/LLGKXSKos0rqINCl ZoCYo3gmyL7Jm/C33xAoTh4KO1+kW3b2EXHniI+MjrGtAQr40g2s4IXM9kmvzWM88fyz lxNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=02zEdmnU; 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 t2si5022301pgp.343.2019.07.04.04.05.28; Thu, 04 Jul 2019 04:05:45 -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; dkim=pass header.i=@kernel.org header.s=default header.b=02zEdmnU; 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 S1727626AbfGDLEx (ORCPT + 99 others); Thu, 4 Jul 2019 07:04:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:41898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727499AbfGDLEx (ORCPT ); Thu, 4 Jul 2019 07:04:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7E312205C9; Thu, 4 Jul 2019 11:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562238292; bh=HOf3Gt574sW018UHM7jh+XFy1sW2z2WUCnb0QJPFYoI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=02zEdmnU0sRzYtS80yJ6C96y1XRaDizVgNgwTeOxUkCCgUaDD92ze6QDP5muTHIkR voz341lKhKUFLdPp6QW4EG/ymk0RSKBkOEZiMGHSoPyOlTt3dxePLhkLYH4dtxFZTB PtZLtlmeAo7O6EcPSqJc50zf3yNJndWayWbtLpFg= Date: Thu, 4 Jul 2019 13:04:49 +0200 From: Greg KH To: Wu Hao Cc: Moritz Fischer , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Zhang Yi Z , Xu Yilun , Alan Tull Subject: Re: [PATCH 06/15] fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support. Message-ID: <20190704110449.GC1404@kroah.com> References: <20190628004951.6202-1-mdf@kernel.org> <20190628004951.6202-7-mdf@kernel.org> <20190703180753.GA24723@kroah.com> <20190703233058.GA15825@hao-dev> <20190704053927.GB347@kroah.com> <20190704063106.GA24777@hao-dev> <20190704082013.GE6438@kroah.com> <20190704085855.GB7391@hao-dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190704085855.GB7391@hao-dev> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 04, 2019 at 04:58:55PM +0800, Wu Hao wrote: > > > Hope things could be more clear now. :) > > > > That's nice for the vfio stuff, but you are just a "normal" driver here. > > You want an ioctl that just does one thing, no arguments, no flags, no > > anything. No need for a size argument then at all. These ioctls don't > > even need a structure for them! > > > > Don't try to be fancy, it's not needed, it's not like you are running > > out of ioctl space... > > Thanks a lot for the comments and suggestions. > > That's true, it's a "normal" driver, maybe I overly considered the > extensibility of it. OK, Let me rework this patch to remove argsz from > these two ioctls. > > What about the existing ioctls for this driver, they have argsz too. > shall I prepare another patch to remove them as well? I am hoping you actually have users for those ioctls in userspace today? If not, and no one is using them, then yes, please fix those too. thanks, greg k-h