Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754281AbaA0UaI (ORCPT ); Mon, 27 Jan 2014 15:30:08 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:59812 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754007AbaA0UaF (ORCPT ); Mon, 27 Jan 2014 15:30:05 -0500 Date: Mon, 27 Jan 2014 12:30:01 -0800 From: Dmitry Torokhov To: Greg Kroah-Hartman Cc: Tom Gundersen , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, kay@vrfy.org, Rusty Russell Subject: Re: [RFC][PATCH] module: allow multiple calls to MODULE_DEVICE_TABLE() per module Message-ID: <20140127203001.GA18575@core.coreip.homeip.net> References: <1390849795-2155-1-git-send-email-teg@jklm.no> <20140127195422.GB21018@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140127195422.GB21018@kroah.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 27, 2014 at 11:54:22AM -0800, Greg Kroah-Hartman wrote: > On Mon, Jan 27, 2014 at 08:09:55PM +0100, Tom Gundersen wrote: > > Commit 78551277e4df5: "Input: i8042 - add PNP modaliases" had a bug, where the > > second call to MODULE_DEVICE_TABLE() overrode the first resulting in not all > > the modaliases being exposed. > > > > This fixes the problem by including the name of the device_id table in the > > __mod_*_device_table alias, allowing us to export several device_id tables > > per module. > > > > Suggested-by: Kay Sievers > > Cc: Dmitry Torokhov > > Cc: Greg Kroah-Hartman > > Cc: Rusty Russell > > --- > > include/linux/module.h | 2 +- > > scripts/mod/file2alias.c | 14 +++++++++----- > > 2 files changed, 10 insertions(+), 6 deletions(-) > > Ah, very nice, I've wanted this for a while now, it would make a number > of different drivers much smaller and simpler to add new device ids to > (no multiple lists of ids, one for the module loader and one for the > sub-driver that is in the single file.) > > If this doesn't break any userspace tools, I have no objection to it at > all: > > Acked-by: Greg Kroah-Hartman Looks great to me as long as module tools keep working. Thanks. -- Dmitry -- 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/