Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264266AbTIIRP3 (ORCPT ); Tue, 9 Sep 2003 13:15:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264271AbTIIRP3 (ORCPT ); Tue, 9 Sep 2003 13:15:29 -0400 Received: from fw.osdl.org ([65.172.181.6]:38290 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S264266AbTIIRPY (ORCPT ); Tue, 9 Sep 2003 13:15:24 -0400 Date: Tue, 9 Sep 2003 10:13:37 -0700 (PDT) From: Linus Torvalds To: Arnaldo Carvalho de Melo cc: Russell King , Eyal Lebedinsky , Kernel Mailing List Subject: Re: Linux 2.6.0-test5: CONFIG_PCMCIA_WL3501 build fails In-Reply-To: <20030909132809.B4216@flint.arm.linux.org.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2606 Lines: 92 On Tue, 9 Sep 2003, Russell King wrote: > On Tue, Sep 09, 2003 at 10:12:11PM +1000, Eyal Lebedinsky wrote: > > allmodconfig, i386: > > > > CC [M] drivers/net/wireless/wl3501_cs.o > > drivers/net/wireless/wl3501_cs.c: In function `wl3501_mgmt_join': > > drivers/net/wireless/wl3501_cs.c:641: unknown field `id' specified in > > initializer > > I notice that this driver uses .foo.bar = baz type initialisers. These > do not work on gcc 2.95 (and last time I checked, the kernels minimum > compiler version was still 2.95.x) Yeah, the ".foo.bar = baz" thing should go. Something like the following, but it would be good to have somebody verify that this was all of it and that it actually works. Linus ---- ===== drivers/net/wireless/wl3501_cs.c 1.70 vs edited ===== --- 1.70/drivers/net/wireless/wl3501_cs.c Tue Aug 19 07:24:34 2003 +++ edited/drivers/net/wireless/wl3501_cs.c Tue Sep 9 10:12:46 2003 @@ -638,8 +638,10 @@ .sig_id = WL3501_SIG_JOIN_REQ, .timeout = 10, .ds_pset = { - .el.id = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET, - .el.len = 1, + .el = { + .id = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET, + .len = 1, + }, .chan = this->chan, }, }; @@ -655,13 +657,17 @@ .beacon_period = 400, .dtim_period = 1, .ds_pset = { - .el.id = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET, - .el.len = 1, + .el = { + .id = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET, + .len = 1, + }, .chan = this->chan, }, .bss_basic_rset = { - .el.id = IW_MGMT_INFO_ELEMENT_SUPPORTED_RATES, - .el.len = 2, + .el = { + .id = IW_MGMT_INFO_ELEMENT_SUPPORTED_RATES, + .len = 2, + }, .data_rate_labels = { [0] = IW_MGMT_RATE_LABEL_MANDATORY | IW_MGMT_RATE_LABEL_1MBIT, @@ -670,8 +676,10 @@ }, }, .operational_rset = { - .el.id = IW_MGMT_INFO_ELEMENT_SUPPORTED_RATES, - .el.len = 2, + .el = { + .id = IW_MGMT_INFO_ELEMENT_SUPPORTED_RATES, + .len = 2, + }, .data_rate_labels = { [0] = IW_MGMT_RATE_LABEL_MANDATORY | IW_MGMT_RATE_LABEL_1MBIT, @@ -680,8 +688,10 @@ }, }, .ibss_pset = { - .el.id = IW_MGMT_INFO_ELEMENT_IBSS_PARAMETER_SET, - .el.len = 2, + .el = { + .id = IW_MGMT_INFO_ELEMENT_IBSS_PARAMETER_SET, + .len = 2, + }, .atim_window = 10, }, .bss_type = wl3501_fw_bss_type(this), - 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/