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=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 3D3C5C33C8C for ; Mon, 6 Jan 2020 15:51:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17B2920731 for ; Mon, 6 Jan 2020 15:51:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727024AbgAFPvj (ORCPT ); Mon, 6 Jan 2020 10:51:39 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:50570 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbgAFPvi (ORCPT ); Mon, 6 Jan 2020 10:51:38 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.3) (envelope-from ) id 1ioUf9-000FuE-A9; Mon, 06 Jan 2020 16:51:27 +0100 Message-ID: <8f17a0bca11604d9818326b01267186bd91236c9.camel@sipsolutions.net> Subject: Re: [PATCH] iwlwifi: remove object duplication in Makefile From: Johannes Berg To: Masahiro Yamada , Emmanuel Grumbach , Luca Coelho , Intel Linux Wireless , linux-wireless@vger.kernel.org Cc: "David S. Miller" , Kalle Valo , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Date: Mon, 06 Jan 2020 16:51:25 +0100 In-Reply-To: <20200106075439.20926-1-masahiroy@kernel.org> (sfid-20200106_090403_620011_D178F66E) References: <20200106075439.20926-1-masahiroy@kernel.org> (sfid-20200106_090403_620011_D178F66E) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-01-06 at 16:54 +0900, Masahiro Yamada wrote: > The objects in $(iwlwifi-objs) $(iwlwifi-y) $(iwlwifi-m) are linked to > iwlwifi.ko . > > This line adds $(iwlwifi-m) to iwlwifi-objs, so the objects from > $(iwlwifi-m) are listed twice as the dependency of the module. Are you sure? We have obj-$(CONFIG_IWLWIFI) += iwlwifi.o and then "iwlwifi-y += ...", but I was under the impression that iwlwifi.o didn't really pick up iwlwifi-m automatically, that's not something that you'd normally do, normally -m only makes sense to build a module using "obj-m", just here we do it for the mvm sub level stuff... johannes