Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17490154rwd; Tue, 27 Jun 2023 03:55:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7TYuVaQMi/8KjsM8LFk0N7IBxWp33kEh68nGQs5kpU3WJDlXlekR7Ys+AAt638y1bvls1J X-Received: by 2002:a17:906:8a6c:b0:991:f489:3d24 with SMTP id hy12-20020a1709068a6c00b00991f4893d24mr2511274ejc.32.1687863355004; Tue, 27 Jun 2023 03:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687863354; cv=none; d=google.com; s=arc-20160816; b=o+HBh8zfvwmllchAXRKb4wYuJd3RvbpSogVDP+jlnWxqtDnMehd/vn6r4rTeapAUkU m+g0TpYW50TyGLBLivfJhsVDh9G7n/eQHOoa6ABGf45k9TkoJwKiHDAWk63Sq/Li+t0a k+7hplRv17C2kEGtjsvo2FZKJgZ+ylKxew24kG6mlHjHxpUqy082Ed1AsmekwWDmQBmU VT04eGT5OK63owAhe/llLRmzfeTlKLpF8tNBmFvnbHkM1XB4dJC9qWDE41sGIeKskwxM 2r4fDm1lmkHKtc1og6K9tsBPizXYU/g+n9oxSiuTzPtp7ZvSOVXrukyCDr+GFZdeCWJm JBfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rCgvLgi3BLx22tE+6LcdRjHHTXAUCqzO3DhXE5/At3c=; fh=J805dj+CcABVDFU/gnQrdQFhmPoYojA6SqGqLwBHD+4=; b=FzNyt4pkc+CX23zzBC6dZdGHtaDCCgol+pdrEiHQtUO0DIB9gh6BDDfasOiZhN/J0Z XTEoJiIgLjgkFN2ePkIbrEIdLwjxHmC4AP96ScXvcknpcDcvxjQgkMl/i6h0Hn9rpXqc wmUeirP6CZoYYZYUls/GneE+UwiDeBHY1cEEdXRIOvRvQ6DZS9v3FvTPuf1f3c6Q6uT/ VOIVwGKgTXQsxWJ6e7N9/svJ1QZujKJ3S6Wf2fUsQnoWyQkc3dZuSDUU1QF2Q2O3s7Jd EAf4aRm9R9UEmFTTka+ASjhXAFifAztiz8mOvlpsSC44+3AFzEKtVb/n7ytLgZo5uA3M zYfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="j4V/TgPY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qn10-20020a170907210a00b0098e229400acsi3051081ejb.324.2023.06.27.03.55.28; Tue, 27 Jun 2023 03:55:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="j4V/TgPY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229971AbjF0KjH (ORCPT + 99 others); Tue, 27 Jun 2023 06:39:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbjF0KjE (ORCPT ); Tue, 27 Jun 2023 06:39:04 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77BCCE5F; Tue, 27 Jun 2023 03:39:02 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3a0423ea749so3545687b6e.0; Tue, 27 Jun 2023 03:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687862341; x=1690454341; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rCgvLgi3BLx22tE+6LcdRjHHTXAUCqzO3DhXE5/At3c=; b=j4V/TgPYZOOMjOgLDAi/Fq1Y8RqRGFE7b4qGJRTHhPIZyNGDGr5yqNQrewztFtf4+H ad9pajr2f7m4EQWCIIZ7UZtZio4GJYgTjDdtTPHRGE4J1sMKSakHqDbNf898iQmg84X0 oZdd9dQqPDhhXjPDGdGXik6nfCbkAaHgghtffDg3ccxxkGJQf524luAiz9KkLkiLd579 lMYpgQWhUnJhY6/kXmGgYvSBMyPZsdHMrkRhn0njqEixyf3AQPrdjzrW8+zSLjuVEOu1 FIRpBegrkGSWtArlAliOUuhNUyJLd7Q/kZI1AwHQBoLKNwl9o8TL/uhfCE7FAt29AuY3 GNUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687862341; x=1690454341; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rCgvLgi3BLx22tE+6LcdRjHHTXAUCqzO3DhXE5/At3c=; b=T9JErj7YzEUXHieuFPmwfDGAPn8ndARjFsyv9aRwv+Dioxud26OV/dw12J+96r+ABc l06EWfB5TeldSJX6FH3OZ5KyBhJ3+3te9JSu7mA9bP/5GP3Sp1BnL2bHO9DUDI8N/Dni DAnMw6vFmjKcqJCVHMmQPiUtDIrid8jCS9fVB5Eyjp96zThZcg2zZYLwfdhq9+KuNgqC 4olIgUK4fsAtKjeLn8mePAlYM2la8/zBOY07Vn3JmDavIN/Zuu7dsEx4R9n5m6AN7FIU uW7ls5n6z2F8UIDCeZIL/1yiTqUJJIsBnyGxM3ev++LXhmgMp/AOfHPwk/CXaNdjzpem tP4A== X-Gm-Message-State: AC+VfDzLSnSmwYBxniSlMWtc+4p8XA6fJYUX5m9LgUBkEfsWwcD4q1xe WR1SB8MJkDRHTGuBHbW5MvFXnVf0uYz36xhSGuWStQNIQqQ= X-Received: by 2002:a05:6808:424d:b0:38e:a824:27d3 with SMTP id dp13-20020a056808424d00b0038ea82427d3mr30392455oib.27.1687862341491; Tue, 27 Jun 2023 03:39:01 -0700 (PDT) MIME-Version: 1.0 References: <20230531125535.676098-1-hch@lst.de> <20230531125535.676098-9-hch@lst.de> <20230626075325.GA26851@lst.de> <7e708dfa-4019-fe28-afbd-91ad847fada0@roeck-us.net> In-Reply-To: <7e708dfa-4019-fe28-afbd-91ad847fada0@roeck-us.net> From: Max Filippov Date: Tue, 27 Jun 2023 03:38:50 -0700 Message-ID: Subject: Re: [PATCH 08/24] init: pass root_device_name explicitly 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 26, 2023 at 8:10=E2=80=AFAM Guenter Roeck = wrote: > > On 6/26/23 00:53, Christoph Hellwig wrote: > > 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.da= ta) > >> 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 report= s > > a similar warning for put_page intead of strcpy which seems just as > > arcance. > > > > I don't see that (I tried 11.3, 11.4, 12.3, and 13.1), but then I am not = sure > if this is worth tracking down. I just force CONFIG_SECTION_MISMATCH_WARN= _ONLY=3Dy > for xtensa builds instead. I believe it's yet another manifestation of the following issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92938 Hunting is still on my todo list, but it's quite low, so I guess forcing CONFIG_SECTION_MISMATCH_WARN_ONLY=3Dy for xtensa is the right thing to do for now. --=20 Thanks. -- Max