Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754769Ab1DOX4u (ORCPT ); Fri, 15 Apr 2011 19:56:50 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:35054 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752978Ab1DOX4s (ORCPT ); Fri, 15 Apr 2011 19:56:48 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=VkMOpkAYvBBaEmXFK8bt0hbyKGQWOZTwWTd75nhap6TB/r35DsUggVLAJkkMEaMBGk LanmpYwhZRwYG76FxjE/RsFGO8bAuu2bfiOrzYOf4n8PJCz+L9DTGnhA+pR6TNlk7OYQ MYg2AxEwfYOQ99K1UUDq6WxzBYaIUsTjsuFes= Message-ID: <4DA8DB3C.3060800@lwfinger.net> Date: Fri, 15 Apr 2011 18:56:44 -0500 From: Larry Finger User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 MIME-Version: 1.0 To: Larry Finger CC: LKML , wireless Subject: Re: Strange build error with new driver on 2.6.39-rc3 References: <4DA8C0DD.8090003@lwfinger.net> In-Reply-To: <4DA8C0DD.8090003@lwfinger.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 949 Lines: 22 On 04/15/2011 05:04 PM, Larry Finger wrote: > When building a new driver on kernel 2.6.39-rc3 when using a 32-bit system, I > get the following error: > > MODPOST 511 modules > FATAL: drivers/net/wireless/rtlwifi/rtl8192se/rtl8192se: sizeof(struct > usb_device_id)=20 is not a modulo of the size of section > __mod_usb_device_table=168. > Fix definition of struct usb_device_id in mod_devicetable.h > > This error is strange in that this device is PCI based and contains no mention > of usb_device_id. There is a USB-based driver in the rtlwifi tree, but there is > also another PCI driver and it does not get this error. I found the problem. It was a faulty MODULE_DEVICE_TABLE macro statement. Larry -- 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/