From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EAB3C33CA2 for ; Wed, 8 Jan 2020 15:48:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0616420720 for ; Wed, 8 Jan 2020 15:48:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578498519; bh=ZSk0FHsAvkuMsSPninpuKhMudaTUG+Kc1Y7RjR7+1XQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=RNXXvBaXc7eePk7Laj4+hFWDWc0zlnUGo9pQi/unrPpGJ5SHHu9SL7oQV8p98fJ95 enYEr9Ws32P6o8Sj2iYtbCWQ8xLfA0z9OtByROb56kR8ZoShIpIdVxJUJUZnrMdIha g0GCyZ40o8GZChjyrL2IzYvDzqd4riNzSiwjS+94= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727901AbgAHPsi (ORCPT ); Wed, 8 Jan 2020 10:48:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:44118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbgAHPsh (ORCPT ); Wed, 8 Jan 2020 10:48:37 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E3E4F2067D; Wed, 8 Jan 2020 15:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578498517; bh=ZSk0FHsAvkuMsSPninpuKhMudaTUG+Kc1Y7RjR7+1XQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zHJi4TTvjmOavWugKmlA/ISMIGZZdwTYuL6S4qq9+XsRdwKdE3a9VJXOA8Jv6MVfQ /sMUNHgYBOaCg/lAfTZ5Sc4IzOZ4otXTbzgFjoAk2X9u1g+NZCVEh7zY0jelAIgNbO PrXIRu96H+VElRWZIhbyT4fPz95F+LufxxsRvyp4= Date: Wed, 8 Jan 2020 16:48:35 +0100 From: Greg Kroah-Hartman To: Christoph Hellwig Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, Fumiya Shigemitsu , Yongxin Liu , Michal Marek , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kbuild: allow modules to link *.a archives Message-ID: <20200108154835.GA2449518@kroah.com> References: <20200106032324.3147-1-masahiroy@kernel.org> <20200108154406.GA21695@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200108154406.GA21695@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 08, 2020 at 07:44:06AM -0800, Christoph Hellwig wrote: > On Mon, Jan 06, 2020 at 12:23:24PM +0900, Masahiro Yamada wrote: > > Since commit 69ea912fda74 ("kbuild: remove unneeded link_multi_deps"), > > modules cannot link *.a archives. > > > > I do not see such a usecase in the upstream code, but multiple people > > reported this issue, so it seems to be a desired feature for external > > modules. > > Kernel policy is to not keep around infrastructure not used upstream. > And linking archives in the kernel doesn't really make any sense, so > this shouldn't go in in any form. Yeah, I agree, it's just going to bit-rot and people really shouldn't be doing stuff like this in their kernel modules. If they want to, they need to figure out how to do it themselves :) greg k-h