Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3490007pxb; Wed, 14 Apr 2021 06:44:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpC+v7yts2AY67g5yIU4zrHoHmL5AfhV1xdoTlL91UvGYfDPipst+AsnroUATHpMJqLWbY X-Received: by 2002:aa7:d599:: with SMTP id r25mr41515564edq.68.1618407881032; Wed, 14 Apr 2021 06:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618407881; cv=none; d=google.com; s=arc-20160816; b=wYplMgA7P/yUe8VslSV8Yyfp0Kg5+MHsLy8aesrHuRT0UvacKu1wGTT35fNhVq4Jx+ 69rX0ch3Il6ZiSosbj/RQ/sii1eqAXqfl+DXo2JfB/SvjMGea3Ns6+LE46G1LJQi3gzJ KsruyYn7T5CJ82aFyw1O/MNBoa+bMODKxdKQCOXUN+xXMMQ6yO57EmmgXw5b8vbmIIq8 +5pOuqyUbBR12CH0ge8JFLnXqhImE/oMYqMo2cePlqGJfsaNJdifIPlDPMSancrmloUR CdEj4iQp0UlKntDFNY7Pwviyh1Sfy8d9rbLzmqnjSiLOHygIialuwz9rn/wrokgtU60Z fBLw== 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=Znc1xrjMq6JEg0B8glmn/hh6qTgqKno6RW/kH5lBGRg=; b=v2Ze8VAVGIEItlL9FF7k7Lw4M+7KhbpGSHBwQUcY/5p/tVHIRL2RT9jshRlsn50CsA u6alCsB5Rgyr4cIwu796U5WVsASrgQ2/uBSMFaLZO4cfjOdwFWou/Bwq6itg+l5naTKM fmV5BBu4l/XlC3ODW3jwK01cyC4l57cygzgpVy08vWx3aX80XIk3M0JhAYp6Kyin6eD7 P1dLJoOmbv7R+oXUgp62kCQa/0w5RwQxEW/NZDB42I1kpnAYBWDZVd01JyxGN9t3KdAb JYhuBAUyeUgAzCgPPkehxxm4NXKlW694bM/Zz0cYQQ048KCd7An3y4r3B7nsA65c0nOt GyBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kgs86P2u; 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 m9si13748103ejj.281.2021.04.14.06.44.17; Wed, 14 Apr 2021 06:44:41 -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=k20201202 header.b=Kgs86P2u; 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 S1348927AbhDNFyd (ORCPT + 99 others); Wed, 14 Apr 2021 01:54:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:57896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347991AbhDNFxi (ORCPT ); Wed, 14 Apr 2021 01:53:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2EF4C60BBB; Wed, 14 Apr 2021 05:53:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618379596; bh=ifghnpZF4cab51wf/GaXfpPHxzkiE0Xm9QeqXGQPtgc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Kgs86P2usKXy+79WZ7fLegeuNMGJUONny7PUPqyU4JZ1XVKgYUXBSPqI654aQ/40P 1pyxe9z+GPUF96ddcIdONrzpGBAEzr2H2ZsmfkR4zZQeLe83pwrqpS3jYQXQCebw6X WeOx/fnVkTQ0QWJHA2y5wBJ4zHm+lOdRHslFR9Ka0bIB35yqWAUD+r5Q1iUS+JO92Y PuLRP7KJ26dZeHUpMWSN4rc7S4bCwPqwrhxhuMAA+8d63DXLNzJdFiexDPdKeyTtW0 sNMvC5aSECkqq68BjS4duzoAkyv6T2xhL2gdcerrd/hnYg6xEPRFfnyKVxSVIBP3Ho YVnJpaNQBDOsg== Received: by mail-wr1-f52.google.com with SMTP id g9so2577800wrx.0; Tue, 13 Apr 2021 22:53:16 -0700 (PDT) X-Gm-Message-State: AOAM531xdsOyXGS3A+bos6H8H/ADcs0zdvOng4z4mqY0H3tiuD3P7j/n uKpMcQ4bCpHiAbO6Yw7fLlLgT3AMdcl11VQl+yY= X-Received: by 2002:adf:e483:: with SMTP id i3mr13495285wrm.286.1618379594859; Tue, 13 Apr 2021 22:53:14 -0700 (PDT) MIME-Version: 1.0 References: <20210413141627.2414092-1-arnd@kernel.org> <20210413154204.1ae59d6a@hermes.local> In-Reply-To: <20210413154204.1ae59d6a@hermes.local> From: Arnd Bergmann Date: Wed, 14 Apr 2021 07:52:58 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next] net: Space: remove hp100 probe To: Stephen Hemminger Cc: "David S. Miller" , Jakub Kicinski , Greg Kroah-Hartman , Networking , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 14, 2021, 00:42 Stephen Hemminger wrote: > > On Tue, 13 Apr 2021 16:16:17 +0200 Arnd Bergmann wrote: > > > */ > > static struct devprobe2 isa_probes[] __initdata = { > > -#if defined(CONFIG_HP100) && defined(CONFIG_ISA) /* ISA, EISA */ > > - {hp100_probe, 0}, > > -#endif > > #ifdef CONFIG_3C515 > > {tc515_probe, 0}, > > #endif > > Thanks, do we even need to have the static initialization anymore? I actually did some more cleanups after I sent the above patch when I found out that this code still exists. It turned out that above half of the static initializations are completely pointless because the drivers never rely on the netdev= command line arguments and can simply be changed to always using module_init() instead of relying on net_olddevs_init() for the built-in case. The remaining ones are all ISA drivers: 3c515, Ultra, WD80x3, NE2000, Lance, SMC9194, CS89x0, NI65 and COPS. With my cleanups, I move the netdev_boot_setup infrastructure into drivers/net/Space.c and only compile it when at least one of these eight drivers is enabled. All these drivers also support being built as loadable modules, but in that configuration they only support a single device (back in the day you could copy the module and just load it twice to support more than one instance, not sure we still want to support that). None of these drivers have a maintainer listed, but I suppose there are still some PC/104 machines with NE2000 network cards that could theoretically run a modern kernel. Arnd