Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp600561lqb; Wed, 29 May 2024 05:37:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+T9oMFCWAv1Va8LCW1HmFFkvKXcBu9QR78Yrqf1LhwEHxujKcDIWtzTo+d708uxDrFpavXN1C7Rg3dvIFOYFO3Velw87/5ubYlbMcLg== X-Google-Smtp-Source: AGHT+IEThInbp2V93hPrYcXms/rLZJPSP5N/5uVPMWWq6JAl6y9hEz+ufZxPWyCh2Kw+XUx7iL7E X-Received: by 2002:a17:90a:bc8c:b0:2bf:6a1b:fcb8 with SMTP id 98e67ed59e1d1-2bf6a1bfffemr12333396a91.24.1716986239089; Wed, 29 May 2024 05:37:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716986239; cv=pass; d=google.com; s=arc-20160816; b=OgpQsnIL3OQ+j6GntH711MOYDWrMPBrxHb/EuwMvjAwogG/XyTF/sHkGzOG6SEWK18 vELlN5RQCWGYfyTEjQRzWgfVuNkRTFUmBE1PBpm3Gf9ZimsPRO0Tv2xA5H73Decwl8Hq d9TVcHbsyeOU1sclk+8SQXYFk1/wHXeceWuqJt6jvoUNfjZfSd96JxXmmN1o+KvEBqsp RsofvhObu5XCMn2CPB5OfN1WnbzNta8GdrQNJNW6ItUR7XJg8weXH+ZgTOH5i6MUpkoL TVFoLJ6PWDA9Jhy7EOPIgBSMlCmIVfHa4faZrKSs/1jcIe/983LA6lqfAApehPZ+KFPM KAfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=olMpVwRAcycNTnwZOlUv/a3tq9UZFjzc3lJy/rkEFNM=; fh=PRPHMJmxZXcirLkuzFKbT7UUjz+RwUDtSFhV54D/b18=; b=kSgy7l+rjwvGgmm0yKM/HYpSc3+wWdcJsscd7hDuhtZI5/nsrERDlnt40wh65wyy3k rLmdhqLhb0NtnYc8MX7xQg0faaGikTPLdLu0+t17nk9fbryIGolJcchYmADdxyRqfnHt n6Li50gn6vZdDQO6Y3VjV8Mtk3ykX6spt0i9u/6aawM1ARJHch3f9MdLCU5DZ97rSkEn CCzTYdZjeuqhHA6ikrsjM1T3QEaXg2FkATgaPeys81HjG3ogHxQ1xrKqkx7TQitkkThR xuLNBHyz18omQ+DY0ukCPEmHlojQPdGlMeFPHI7mPkNwjFECeu610pmOZCPlu36+hyEJ 7EUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b="ayX9n/3u"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=kFMiFhMN; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-194094-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194094-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bfe78cad39si4859554a91.122.2024.05.29.05.37.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 05:37:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194094-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b="ayX9n/3u"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=kFMiFhMN; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-194094-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194094-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B73A2288935 for ; Wed, 29 May 2024 12:37:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06E7E181314; Wed, 29 May 2024 12:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="ayX9n/3u"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="kFMiFhMN" Received: from wfhigh6-smtp.messagingengine.com (wfhigh6-smtp.messagingengine.com [64.147.123.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9103013F45C for ; Wed, 29 May 2024 12:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716986233; cv=none; b=ES3XXQRZuFNQr7BjWfSeaIyIu7FxI2HM4C0EI5E3GyhGLdlhpmPDrCuU4FNh2Jqyhuyd0tEvBC6jJfDJPG+2q6cTK1Hn0glkQ8pp5iHBQeXbXDjQmsWhkHT8PokH5LZ7dBo8VNgI2TlcTZldyvrQY5FbSuI+DhRvNUklUvIQlfM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716986233; c=relaxed/simple; bh=+qJDyavRqe7gbpZxTRvqO14ih1t6jxl7M7I6K1//B6g=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=XlzozJekOPuRu9QRzmJVYmAPm8T4SgR8NXRoQrc4QDbiZpETYnR7epBgN4vPb8PLtZdnnRZJR+tWszj0LXoI2fHtrgJvosJE9Es24Y5dGS2jbiRH4PNMZETdXIW16GBC53C4PQCBLKsTW+d/xCzSrnyn27xzG+2Vu/qIe3ONv3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=ayX9n/3u; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=kFMiFhMN; arc=none smtp.client-ip=64.147.123.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id 3D7921800128; Wed, 29 May 2024 08:37:10 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 29 May 2024 08:37:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1716986229; x=1717072629; bh=olMpVwRAcy cNTnwZOlUv/a3tq9UZFjzc3lJy/rkEFNM=; b=ayX9n/3ubzMeXnq46yh8XGVksw sPMw41hfHrkbbn4xrSl/LoJfgU5Cd/AmJvF7tq+0sGVkir0t5aqcwRAd7sEzdvLr 08WQy/fslLuMIK/WctgiI5dFuJ1XVloYXBIhTmh2nP2evm1WM0opXEB643m8PO0K EV/mTcTyiCw0nqaAafmvfoZmgdViFe5Iteo8el1kbbdmcssGfILeYACnuajEukO7 R0EAprGE1CYmMF2ku7OmY05fB/xIj98u+gpyyIsnhnca0I3v4HUMA0nUYpUJ4je4 mRJarSYQt3uCeShPXThkZb/dBIRR5F8Rb83D0LwSsQtHTeK3LevygWMySjjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716986229; x=1717072629; bh=olMpVwRAcycNTnwZOlUv/a3tq9UZ Fjzc3lJy/rkEFNM=; b=kFMiFhMND79jsStvXwmRXofFKdbfI9Lyl7HMYO53TlWq QoLe9Z5DVeyyWSasvshKsGpc0zZQpPMg9APu2boobiuk+b7e9Rib+ShH04q3D1KL QJHKaaPBl+PkZjzyyyRbyhPdUfgWCbXgdQqYigQ6gJXnHzPkVdEnJx3IM9Vdw0jn 3919rmb0S5BGafYfoL5TkyZPnvuj/bL5vh+p4BJZYOX0DbX5v9xYtU0VE1p+VIqj CHlPf/ppnEiNiZQnhsYQDSGJiIBDxRF9/IpmLBE3v4cOfpLY1O5znro54NhJYYfZ jkGjgGc1I6QCKz+NKt/vbeLDWbH3nXkOMcLmWNKAvA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekuddgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5736DB6008D; Wed, 29 May 2024 08:37:09 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-491-g033e30d24-fm-20240520.001-g033e30d2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <48738af1-545e-4261-a8b7-fe224071910f@app.fastmail.com> In-Reply-To: <20240529141323.7015f3d9@xps-13> References: <20240529095049.1915393-1-arnd@kernel.org> <20240529141323.7015f3d9@xps-13> Date: Wed, 29 May 2024 14:36:46 +0200 From: "Arnd Bergmann" To: "Miquel Raynal" , "Arnd Bergmann" Cc: "Richard Weinberger" , "Vignesh Raghavendra" , "David Woodhouse" , "Akinobu Mita" , "Artem Bityutskiy" , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: make mtd_test.c a separate module Content-Type: text/plain On Wed, May 29, 2024, at 14:13, Miquel Raynal wrote: > Hi Arnd, > > arnd@kernel.org wrote on Wed, 29 May 2024 11:50:39 +0200: > >> From: Arnd Bergmann >> >> This file gets linked into nine different modules, which causes a warning: >> >> scripts/Makefile.build:236: drivers/mtd/tests/Makefile: mtd_test.o is added to multiple modules: mtd_nandbiterrs mtd_oobtest mtd_pagetest mtd_readtest mtd_speedtest mtd_stresstest mtd_subpagetest mtd_torturetest > > I've never experienced this warning myself, how did you produce it? This warning is currently enabled when building with 'make W=1', but there are only a handful of drivers that run into it, so I have sent patches for each one, with the plan to enable it by default in the future. >> Make it a separate module instead. > > I'm not a total fan of this just because it now requires an additional > step to insert these test modules (they are likely used for > debugging/development purposes, so not properly installed in the > rootfs). Is there any chance we can find another way? This should only be a problem when using plain 'insmod' instead of 'modprobe' for loading the modules. Do you think this is commonly used here? Another option would be to turn all the helper functions into static inline versions and just include the header, but that does not avoid the duplication then. Arnd