Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp138440pxx; Wed, 28 Oct 2020 00:17:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgrPpJXHbVr5EnoRfdtKJ4JAUwlaz7HmJW7efbQ/1IAxbt5Bwx+AfjaerfWp7qI1wrlTjD X-Received: by 2002:a17:906:ad8c:: with SMTP id la12mr6393669ejb.450.1603869473807; Wed, 28 Oct 2020 00:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603869473; cv=none; d=google.com; s=arc-20160816; b=T/NQK1bNLfftxY8zT7JL7WYN1ExoqoofInkqkOeqQT4dffy94WJ48CpCfhkPipRH0z zzjz5YmHoiNgU7CowzRGIAEavQ6ieFYiXDMTuYuWyU7CLV7C7dnvSS0HeFfuUNUObd7v 67noz6Gk6NaO1kOu2mZojjV/qeFO6VxHWQDUYforYtt+xb9AGjwAHB37IqT/tJrP6IiN DJK6ByB5IVrbTzWDPLAHCZkhFoLzlXiAl45qKFU0hlwbCEe/19/Q2CeL1HlaFz/JHWvR Ge4cPZUops5uvEhct7EEk21LlZUuxhvRcH0+BSujo3mcKk7aU1fb+HH4OqwJ5jQJe7bI 3odw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7iey/s4qUzBnCiDwtFRCoABpYiPyNkosnPuHKQEzyPk=; b=BSgChsUOCfi6zB1SYxn4fRITBHloDynB5Nq7FQzLcE15A481r4PQN6T2C5f98BpzS5 ygTlXxbLJfFKpk9dBxvce95ss/YM0mxUF5isHGr7HbCZESg12e6uOxUlYdU8z702FTIM cdiZ34at6DczkI2YVb1adprZJL2qBf2KSsU/LR4N5e6tmkKOT0O89wDq9vaXl+pYECum CCBzP7naxvT/IwMAVMqyPQiMpACfYlJrYNg2R6r7FE5VALflL6KmW8fOGyK8R2iQtwhM 0cUMQqcn0H2L0yh+5gmh06ZO/dRgDtaMb/9eXmbrfja6eWlXsbIXm0a5qKR363MTD76g s1gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dCosEtnA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si3177197edi.564.2020.10.28.00.17.31; Wed, 28 Oct 2020 00:17:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dCosEtnA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2899615AbgJ0LvZ (ORCPT + 99 others); Tue, 27 Oct 2020 07:51:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:51154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394050AbgJ0LvY (ORCPT ); Tue, 27 Oct 2020 07:51:24 -0400 Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B6104207C3; Tue, 27 Oct 2020 11:51:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603799483; bh=Jkm9KTP2d4FaPkRwRtL8+peWn2RqI0SjRbGNKFX9l24=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dCosEtnAGgQAyhH9LGV1mSx7fyOoQg67erOLZ5nhJ9pAl4C/m5CDPgZST/+vZ9adV K8M2M/90d09rfYz+GXQD7YY9GUxSDV2xiBMYpUJRXvkBLqXVAEgyJ8NfoqfDg/vHCI 5NjvzJW3bIoPfH5zZTyVx4T/HyWn+zxjxGHRR6Yk= Received: by mail-qk1-f182.google.com with SMTP id z6so796595qkz.4; Tue, 27 Oct 2020 04:51:23 -0700 (PDT) X-Gm-Message-State: AOAM530z7ZQ1ghPUuZZfCacrvX5ttM7MQ2KSPPqVJh8XLTWHVIfMQ0Ak RtxA7X/rJJq+HG13mqBWyW2nzGMa3hXYw9HyQd0= X-Received: by 2002:a05:620a:b13:: with SMTP id t19mr1552663qkg.3.1603799482840; Tue, 27 Oct 2020 04:51:22 -0700 (PDT) MIME-Version: 1.0 References: <20201026213040.3889546-1-arnd@kernel.org> <20201026213040.3889546-4-arnd@kernel.org> <03c5bc171594c884c903994ef82d703776bfcbc0.camel@sipsolutions.net> In-Reply-To: <03c5bc171594c884c903994ef82d703776bfcbc0.camel@sipsolutions.net> From: Arnd Bergmann Date: Tue, 27 Oct 2020 12:51:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next 04/11] wimax: fix duplicate initializer warning To: Johannes Berg Cc: Inaky Perez-Gonzalez , linux-wimax@intel.com, "David S. Miller" , Jakub Kicinski , Networking , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 27, 2020 at 8:22 AM Johannes Berg wrote: > > On Mon, 2020-10-26 at 22:29 +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > gcc -Wextra points out multiple fields that use the same index '1' > > in the wimax_gnl_policy definition: > > > > net/wimax/stack.c:393:29: warning: initialized field overwritten [-Woverride-init] > > net/wimax/stack.c:397:28: warning: initialized field overwritten [-Woverride-init] > > net/wimax/stack.c:398:26: warning: initialized field overwritten [-Woverride-init] > > > > This seems to work since all four use the same NLA_U32 value, but it > > still appears to be wrong. In addition, there is no intializer for > > WIMAX_GNL_MSG_PIPE_NAME, which uses the same index '2' as > > WIMAX_GNL_RFKILL_STATE. > > That's funny. This means that WIMAX_GNL_MSG_PIPE_NAME was never used, > since it is meant to be a string, and that won't (usually) fit into 4 > bytes... > > I suppose that's all an artifact of wimax being completely and utterly > dead anyway. We should probably just remove it. Makes sense. I checked https://en.wikipedia.org/wiki/List_of_WiMAX_networks, and it appears that these entries are all stale, after everyone has migrated to LTE or discontinued their service altogether. NetworkManager appears to have dropped userspace support in 2015 https://bugzilla.gnome.org/show_bug.cgi?id=747846, the www.linuxwimax.org site had already shut down earlier. WiMax is apparently still being deployed on airport campus networks ("AeroMACS"), but in a frequency band that was not supported by the old Intel 2400m (used in Sandy Bridge laptops and earlier), which is the only driver using the kernel's wimax stack. Inaky, do you have any additional information about possible users? If we are sure there are none, then I'd suggest removing all the wimax code directly, otherwise it could go through drivers/staging/ for a release or two (and move it back in case there are users after all). I can send a patch if you like. > So as far as the warning fix is concerned: > > Acked-by: Johannes Berg > Thanks! Arnd