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.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 D9119C47247 for ; Tue, 5 May 2020 13:49:34 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 83640206A5 for ; Tue, 5 May 2020 13:49:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="bcbucLQW"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZtD7pkUp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 83640206A5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jVxwz-00076I-HF for kernelnewbies@archiver.kernel.org; Tue, 05 May 2020 09:49:33 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jVxv8-0004vi-6X for kernelnewbies@kernelnewbies.org; Tue, 05 May 2020 09:47:38 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 8B53E5C00B2; Tue, 5 May 2020 09:47:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 05 May 2020 09:47:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=XbgGN5eqFzVexxDSvm2n82zJ/JT h5VQ38JvjwDmtLDs=; b=bcbucLQWvMG1AghWMcqED18DaOkkb29Rlrb8MerLWA+ Sd4O0JajVjlKDxeYJdN8zTV+l8h9V016KDhOW8pmP715kjcCVhMpiRe1nvQ0uxhc HhTUphgsoPDYPoKIpA750zOon+p7PEBPPSIcGmtxm3LQI/ctmdMriVZgYwll1UW9 FmJm/LT0BVe71CteOCVpdFBisZGZwqNnlXaOtJKogJsshAsF/dccQ5DJoca6Wa22 qQ4jUSC1bQQWfqSGI/tQB3gdZ216NPlklo5SbfgLNff8TcMnygpZZEFP3/DhVXJo o/y1b3ndN1s9+db2N9yu+MNr+PDGJKUKRc6n7LDvr2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=XbgGN5 eqFzVexxDSvm2n82zJ/JTh5VQ38JvjwDmtLDs=; b=ZtD7pkUpDZWvu2ldzXDy+m 2QFnkOO1ifkJDz08892ukGfF0wxlxxsIRKQ5FdgLYTdlWTecPNzXt7+aobEzkBZ3 NJeBtJlNnE8lc+IN6W+6Fa3qEdmY5kZwGivFBLh7CYV5pDX8x5HRUgTi0HzgJFC8 78GRViVJkrWZbnWmJ+ADCPU/JGPPrMGI5Ajk9WlIvw8lbwBNYXY9EuR3Cp9ykeri 8Rbi7/WaIeLm64BRSvX8JNAE7IrGXNbWyGZG4vYDvzcXVabuYdMcejt4FD2+F7Ml BHYHcbCOLNw7TXlHP55wCMvHVU+Yxs0EGQKivqwlhmIgV68bzNxDCmBDCXD8rI9A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeeigdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghgucfm jfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepveeuheejgf ffgfeivddukedvkedtleelleeghfeljeeiueeggeevueduudekvdetnecukfhppeekfedr keeirdekledruddtjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id F1C31328006A; Tue, 5 May 2020 09:47:33 -0400 (EDT) Date: Tue, 5 May 2020 15:47:32 +0200 From: Greg KH To: Tomek The Messenger Subject: Re: the same name of external kernel module as one of source file Message-ID: <20200505134732.GA591475@kroah.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org On Tue, May 05, 2020 at 03:39:11PM +0200, Tomek The Messenger wrote: > Hi > If I have something like this in makefile: > obj-m := reset-core.o > reset-core-y := reset-core-main.o reset-core-utils.o > then module is built OK. > If I have something like that: > obj-m := reset-core.o > reset-core-y := reset-core.o reset-core-utils.o > then it is wrongly built. > So I will replace all source file characters '-' to '_' and I will have: > obj-m := reset-core.o > reset-core-y := reset_core.o reset_core_utils.o Yes, because "reset-core" and "reset_core" are different. > and everything will be OK, but it is a bit frustrating that code rules me > instead of me rules code. Maybe there is another solution? Nope, that's to be expected. greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies