Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945986AbXBBQ6W (ORCPT ); Fri, 2 Feb 2007 11:58:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1945983AbXBBQ6V (ORCPT ); Fri, 2 Feb 2007 11:58:21 -0500 Received: from rgminet01.oracle.com ([148.87.113.118]:32223 "EHLO rgminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1945986AbXBBQ6U (ORCPT ); Fri, 2 Feb 2007 11:58:20 -0500 Date: Fri, 2 Feb 2007 08:53:51 -0800 From: Randy Dunlap To: Jan Engelhardt Cc: Paul Rolland , "'Linux Kernel Mailing List'" , "'Andrew Morton'" , "'Jon Masters'" , "'Alexey Dobriyan'" Subject: Re: [PATCH] Ban module license tag string termination trick Message-Id: <20070202085351.3215815f.randy.dunlap@oracle.com> In-Reply-To: References: <011601c746d9$dc5453b0$4b00a8c0@donald> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.3.0 (GTK+ 2.8.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 802 Lines: 27 On Fri, 2 Feb 2007 16:11:11 +0100 (MET) Jan Engelhardt wrote: > > On Feb 2 2007 15:53, Paul Rolland wrote: > > > >If that is really one important point, why not simply adding a : > >MODULE_IS_UNDER_GPL_LICENSE("yes|no") > >and a > >MODULE_IS_UNDER_GPL_LIKE_LICENSE("yes|no") > > > >or use 0 and 1 instead of yes and no, and thus clearly avoid all the > >C string mess ? > > MODULE_IS_UNDER_GPL_LICENSE("yes\0 but only this .c file"); if (MODULE_LICENSE_contains_null(license)) printk(KERN_WARNING "this module's license is suspicious\n"); --- ~Randy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/