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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0479EB64DA for ; Mon, 26 Jun 2023 07:53:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbjFZHxc (ORCPT ); Mon, 26 Jun 2023 03:53:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbjFZHxb (ORCPT ); Mon, 26 Jun 2023 03:53:31 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A5F6196; Mon, 26 Jun 2023 00:53:30 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 72B8C67373; Mon, 26 Jun 2023 09:53:25 +0200 (CEST) Date: Mon, 26 Jun 2023 09:53:25 +0200 From: Christoph Hellwig To: Guenter Roeck Cc: Christoph Hellwig , Jens Axboe , Greg Kroah-Hartman , "Rafael J. Wysocki" , Mike Snitzer , Joern Engel , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Pavel Machek , Loic Poulain , dm-devel@redhat.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 08/24] init: pass root_device_name explicitly Message-ID: <20230626075325.GA26851@lst.de> References: <20230531125535.676098-1-hch@lst.de> <20230531125535.676098-9-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Fri, Jun 23, 2023 at 05:08:59PM -0700, Guenter Roeck wrote: > Hi, > > On Wed, May 31, 2023 at 02:55:19PM +0200, Christoph Hellwig wrote: > > Instead of declaring root_device_name as a global variable pass it as an > > argument to the functions using it. > > > > Signed-off-by: Christoph Hellwig > > This patch results in the following build error when trying to build > xtensa:tinyconfig. > > WARNING: modpost: vmlinux: section mismatch in reference: strcpy.isra.0+0x14 (section: .text.unlikely) -> initcall_level_names (section: .init.data) > ERROR: modpost: Section mismatches detected. I can reproduce these with gcc 13.1 on xtensa, but the report makes no sense to me. If I disable CONFIG_CC_OPTIMIZE_FOR_SIZE it now reports a similar warning for put_page intead of strcpy which seems just as arcance.