Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp961455ybz; Wed, 15 Apr 2020 23:32:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJs0NtjdghNeJF8Sd+mg9DwSnx7coP8mIBYqfSVVfC7UJbQa+MS0yCobNns5bDNcSWCOpO+ X-Received: by 2002:a05:6402:684:: with SMTP id f4mr4415617edy.240.1587018758466; Wed, 15 Apr 2020 23:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587018758; cv=none; d=google.com; s=arc-20160816; b=YMWmYB16EcKMEGhOW3CFEqGGmiRW8VLnewqGIb81S4x1gd/X1BgmJtvAWjxLFooyL9 L2SKQYEy7TlIQ+H+z9k4jSsk6ZiiIx1kjQhMGOCXeBe5a1XA1h+9apHieBivbMoKIVHr /YmNGDYhpuHXlNoWPy673M7xjHxjCLiC46W9VSlglm20sTpBqb4oK7MU4o4/MqNYSmgd RYloUi58MnITdNyfn3K/lLOe2FmIyR/57OTnG76g+cYMX4VDmeBRl5mQ6+7unFN9lX8e Uw0xI0EZyqo2WgmqOXl1PVdHGzuKe3iKUmXgSmNJ1n3hjR9+gb9J8BjXbVzaA8Lhbfjt 3XHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=S5csDSpmV61zX0GmNjCPlc9CexTELcKrmOeBn1oqWYM=; b=MeU+3TVHosM9PxpvEV4tRNtysRkzk7A356fyxGIVCAf3uz6e0tMUIS/n99Ifr2viV7 mPJdBnDKpNyfj1ahtQHyRExyXiNTkPWdb/FzszynVT9uGDdr8GbheUNt7pbYXN+ojWOd 6mi45nTUc6p7iUdBKSDX7IqMMiIrU+UOTg9umJx1DG6JzRpQHJHzTSdjrz7EEbjcAYBU gFGZNgqnFoLgc+hoYtUH8+L61u2wj8TjXfbTycJRvV3lpecjBS2Ucukxkf/Fuu2F5pxW jV2KkbCCgqZKLO+uQ1KTsysGXfVMJtVpres/vmnZCfRm8uEoLQi0otQuWYyMA1EIgq1L TIHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cbdwHKeK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si13485125edq.456.2020.04.15.23.32.15; Wed, 15 Apr 2020 23:32:38 -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; dkim=pass header.i=@kernel.org header.s=default header.b=cbdwHKeK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408088AbgDPGal (ORCPT + 99 others); Thu, 16 Apr 2020 02:30:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:47144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407332AbgDPGah (ORCPT ); Thu, 16 Apr 2020 02:30:37 -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 8161720732; Thu, 16 Apr 2020 06:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587018637; bh=kqRpyAaduUyON5qHMIXra4FBqaXyvxk32qkeqxVv1Uw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cbdwHKeK/IH1ewqwP4nqBiVouDPSTrUtcYzQe8iu4qOM6FtNEF1uU7BJBh28xKst8 JA9NzFpRmUkMLHYDWKL6nPvpU4pyoFLYCEMNp7kKCqfF46Yk83CjubE8Tr8+rEvkat +xXVKkM3kxC5j5dhsVXoKUuQz7HxISVwn4yuRtr8= Date: Thu, 16 Apr 2020 08:30:34 +0200 From: Greg KH To: Scott Wood Cc: Christophe Leroy , Wang Wenhu , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kernel@vivo.com, Michael Ellerman Subject: Re: [PATCH v2,5/5] drivers: uio: new driver for fsl_85xx_cache_sram Message-ID: <20200416063034.GB299193@kroah.com> References: <20200415124929.GA3265842@kroah.com> <20200415152442.122873-1-wenhu.wang@vivo.com> <20200415152442.122873-6-wenhu.wang@vivo.com> <37b6b890-e537-7424-6b26-04565681f40a@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 02:27:51PM -0500, Scott Wood wrote: > > > + dev_err(&pdev->dev, "error no valid uio-map configured\n"); > > > + ret = -EINVAL; > > > + goto err_info_free_internel; > > > + } > > > + > > > + info->version = "0.1.0"; > > > > Could you define some DRIVER_VERSION in the top of the file next to > > DRIVER_NAME instead of hard coding in the middle on a function ? > > That's what v1 had, and Greg KH said to remove it. I'm guessing that he > thought it was the common-but-pointless practice of having the driver print a > version number that never gets updated, rather than something the UIO API > (unfortunately, compared to a feature query interface) expects. That said, > I'm not sure what the value is of making it a macro since it should only be > used once, that use is self documenting, it isn't tunable, etc. Though if > this isn't a macro, UIO_NAME also shouldn't be (and if it is made a macro > again, it should be UIO_VERSION, not DRIVER_VERSION). > > Does this really need a three-part version scheme? What's wrong with a > version of "1", to be changed to "2" in the hopefully-unlikely event that the > userspace API changes? Assuming UIO is used for this at all, which doesn't > seem like a great fit to me. No driver version numbers at all please, they do not make any sense when the driver is included in the kernel tree. greg k-h