Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752136AbdCHKVo (ORCPT ); Wed, 8 Mar 2017 05:21:44 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47342 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbdCHKVl (ORCPT ); Wed, 8 Mar 2017 05:21:41 -0500 Date: Wed, 8 Mar 2017 11:12:15 +0100 From: Greg Kroah-Hartman To: John Hubbard Cc: john.hubbard@gmail.com, Peter Zijlstra , Thomas Gleixner , Linus Torvalds , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/1] refcount: restore kref_get and kref_put to non-GPL status Message-ID: <20170308101215.GA15198@kroah.com> References: <20170308092549.28982-1-jhubbard@nvidia.com> <20170308094810.GB30552@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1230 Lines: 36 On Wed, Mar 08, 2017 at 01:59:33AM -0800, John Hubbard wrote: > > > On 03/08/2017 01:48 AM, Greg Kroah-Hartman wrote: > > On Wed, Mar 08, 2017 at 01:25:48AM -0800, john.hubbard@gmail.com wrote: > > > From: John Hubbard > > > > > > Hi, > > > > > > Say, I'm 99% sure that this was just an oversight, so > > > I'm sticking my neck out here and floating a patch to > > > Put Things Back. I'm hoping that there is not some > > > firm reason to GPL-protect the basic kref_get and > > > kref_put routines, because when designing some > > > recent new (open-source, yay!) device drivers, we relied > > > on this being available, even for MIT-licensed code. > > > > MIT-licensed code should be just fine with GPL symbols, just use the > > correct MODULE_LICENSE() setting and all is good. > > Actually, we're still using this license string: > > MODULE_LICENSE("MIT"); > > which I understand does *not* grant access to GPL symbols. So I guess we'd > have to switch over to "MIT/GPL", if I understand correctly, in order to be > all correct here. You need to write this as: MODULE_LICENSE("Dual MIT/GPL"); for the linker to handle this properly as that is the string it is looking for. thanks, greg k-h