Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1478033lqp; Mon, 15 Apr 2024 07:40:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU67/DR/g2ZUbdk2VCJZH+kD+StdtByaYu+87lA3JdBLTkBkbUheFPYhrhw0TgdPlPMtnzulNTrFWb1JxrQyUnvOYgh8fwobOy9i6Zzqg== X-Google-Smtp-Source: AGHT+IFUNvmPZgOZGwZv/jsK/lroHX2ylVJUgZdMgZ8faLFthLMYS+g0aHZNV47tLPV1B9US3Qk0 X-Received: by 2002:a17:90a:6c96:b0:299:3035:aede with SMTP id y22-20020a17090a6c9600b002993035aedemr7416454pjj.44.1713192052027; Mon, 15 Apr 2024 07:40:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713192052; cv=pass; d=google.com; s=arc-20160816; b=IZB1AtNlqbVhwG4VnW0ZNoqGQIhNDhKuP8jFoHzK//HT+uWz4fvgwkjWfhfZ9G0Jxw BmJikBFf7H7gH2CQKDd4d+jHtglRP2nB7dWzE/Sh+v9QSMaqd2koMx+afqOzR8cMV3DL LVGRAPZbuJAT/ccrdUZMZDIZhEViUt2uzkd9gdo3eWJgax/rbnV0D70j2/v3Mzdpz0w1 3mAYHiW0XBqQI2E9MbES5HdvVDow9O7Bj5I/m8VtMcJU1Qva/GIIlpz6Ry9cFIG2s0xO TYopQ/Xc6hkeLKnp9+S+rNLXgQXzTX8VaXMgfehrikXYCe721c1LTBQGNB9b+mtVs65B cR0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=kotei9YKQ19Ib35TAFg2A6VrU4WV5yfD0eMe1HoOqu0=; fh=qQ4FtTPKwM7HOKJRvNp72pkarmD+w/odfHO9ehsI1Hc=; b=fKjkA1R2+nwlSuP7jA5WI2OAc7DAr0xEsbIanE+jMJa7nnSgA+molXEvjiY648BbbB weOIj/jgZNHB1bOC7kO/mQXG7IptyLhlHInMQ7UVcTL0XGL617PtVM1Nr3cc7nCm6j6g c3HZqz3TnB7P1Xe1IOiMDpBELqzJRE6orLMSmCbDHeL304bGgip7WqlSOM3E+An4AWQS QX1uV7KU+cEUOL2JB8gJp6mXcZaI80tFbs4AY7YSWkeZiQmqccNkS7oN4ghkj90pVVk0 uad+lYrQfYS2KI+YimBzAo0ro4GbkoMMNijbUx8j9Yn7FZZw+aOGPgRsolEx9fgQVrSp BNsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-145374-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145374-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u8-20020a17090a0c4800b0029b80d93d0asi7836792pje.128.2024.04.15.07.40.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 07:40:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145374-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; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-145374-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145374-linux.lists.archive=gmail.com@vger.kernel.org" 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 F072F281745 for ; Mon, 15 Apr 2024 14:40:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5813982C63; Mon, 15 Apr 2024 14:37:49 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 1861D757E4 for ; Mon, 15 Apr 2024 14:37:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713191868; cv=none; b=ax/OW8FlORcmR/vJBs3DvOXbpswoRCs9a+uZwxsjK8R1lyRWbl8UdjS/jBCRnQhJ53zCzuSUrodTzv7R5oPrrcO4uaGdPi8fnBCEMcFyQLlFnQnIlmgsNktFY6holDUio5MRLKKI0xS+6gkiwZlFXgrygHwip9HzJVAPoZtT0dE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713191868; c=relaxed/simple; bh=hjfxd08kphO2ZnaWF+LecvTEE4++FOQ1HP7Po6y7ebA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P8uBJ8uF1doPptx+UKGU1D0iGLGwRJt64AaPjAbRUR/hJuzP0tG6ZHjmAyuuMsXmEZbOA3IQ9/2jPIZ48nPEKMMaqMQqTRrADgVeO0PSYHtPeUrM7PJHyB9ZaY4g57Ie8rtmnYDmr4kXVTOgEZExlPi8fWyZQjy4rMNv88AQVxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rwNSq-0001in-RF; Mon, 15 Apr 2024 16:37:44 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwNSq-00CRSb-Ek; Mon, 15 Apr 2024 16:37:44 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rwNSq-001gGo-1D; Mon, 15 Apr 2024 16:37:44 +0200 Date: Mon, 15 Apr 2024 16:37:44 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Sudip Mukherjee Cc: linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-kbuild@vger.kernel.org Subject: Re: [PATCH] parport: amiga: Mark driver struct with __refdata to prevent section mismatch Message-ID: References: <2e3783106bf6bd9a7bdeb12b706378fb16316471.1711748999.git.u.kleine-koenig@pengutronix.de> <49ab91032bf9b57cd5fb6d306c38884d059dce2f.1711748999.git.u.kleine-koenig@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="x73g7td6xugmykyl" Content-Disposition: inline In-Reply-To: <49ab91032bf9b57cd5fb6d306c38884d059dce2f.1711748999.git.u.kleine-koenig@pengutronix.de> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --x73g7td6xugmykyl Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Fri, Mar 29, 2024 at 10:54:39PM +0100, Uwe Kleine-K=F6nig wrote: > As described in the added code comment, a reference to .exit.text is ok > for drivers registered via module_platform_driver_probe(). Make this > explicit to prevent the following section mismatch warning >=20 > WARNING: modpost: drivers/parport/parport_amiga: section mismatch in ref= erence: amiga_parallel_driver+0x8 (section: .data) -> amiga_parallel_remove= (section: .exit.text) >=20 > that triggers on an allmodconfig W=3D1 build. >=20 > Signed-off-by: Uwe Kleine-K=F6nig I'd like to enable these warnings even for W=3D0 builds, so it would be great to get it into the main line soon. If you apply it, please notice that I fat-fingered the parameters to git send-email and it was sent in a thread. So (assuming you're using b4) you'd need: b4 am -P _ -v1 49ab91032bf9b57cd5fb6d306c38884d059dce2f.1711748999.= git.u.kleine-koenig@pengutronix.de Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --x73g7td6xugmykyl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmYdO7cACgkQj4D7WH0S /k467gf+NsLgkmiS5hL0PctMTidg2yX1F8QYX68gUe/srFG0DQdWvbGjfrZbp4XU IFjVcI6rzgJPNLNwkcnl5UD6Zy7ooPifvu3sGvvKbRhZtgUyCfOWPcx6N6DfC5fr qdrtIl7ExysT3XahWol5st/4Hql9e664lLKK0dWv2HByabN6ZZ09eN2WvFgCXg2y qL1x5NBvbhyPEc0v5DvwAmpD2ncea3aMXmSDixb/ElUcRM5e8QBDxussCUimiYb4 ZGiHE9b0oiOGesoOd3pp2DD7PJ6hNmdYZz6FrNleglsyYgazM0Urf15OqMY5wWbb gtBKd2yte2Apk5YKovwnreeKp40X4A== =hdUN -----END PGP SIGNATURE----- --x73g7td6xugmykyl--