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=-7.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, 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 790E2C4338F for ; Thu, 19 Aug 2021 08:07:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5245E60F11 for ; Thu, 19 Aug 2021 08:07:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236956AbhHSIIA (ORCPT ); Thu, 19 Aug 2021 04:08:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236766AbhHSIH7 (ORCPT ); Thu, 19 Aug 2021 04:07:59 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B292C061575 for ; Thu, 19 Aug 2021 01:07:23 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id v2so7477380edq.10 for ; Thu, 19 Aug 2021 01:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OtjuOGYz8mdzigYRNkIK7GLRvoHVrGb/XuXeve4DABk=; b=qMusC0PT0NE8HC6gfcOwUKjLI/5mgqdTxIQhX9bxUj74H+YKbuDOTBqeTWbx4qlEhF CLWp/wNbUjxAdg0DXBkLmDRRD3DOpo7j/SG/eKT6ik0z4Rpr52G7HVr6egh2zI4bvzx2 a6IcrpemxmMUTx5bv+5Uo0tXVUNXx7oY6twdD5Fn4EKa0rNfGQjNrGfZb2r6e9WBpIT8 9gpJCsyudPP/d4GYeVNEobUEZqM4y54nSpx48uQqN2w/Os0PmCGYb2lYZeVz0BhmMM9i CiaMmOBoBCC3OfJrtw2HrvtM19bPf2USxuLS0LmS19Ph6f10dJkJq7AshormU/l6lyt2 9WyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OtjuOGYz8mdzigYRNkIK7GLRvoHVrGb/XuXeve4DABk=; b=UqFJf3DYZwSJvRach9u2/vd8buSxsy/rZW8SXsz/724NM+P4tFiTaAsQHNsWISKf5A dFtptgQd+2Z+EhSHVs95I5Tp4VbMHFwHYZc+R/URpAZfmwH2BCbnC78c+qYlqZ8cvvp3 El0zp8C4cxsV5vagSUvKF99dSGk0PLriX+KSgoGggqWgOLyAL61TfHllEc6tb1p0c6tb fKromt90SipBY7UB1zJIgu347ukqbYZAk/QYBnyEZUPcDrds9eJnFoUNd5xevTAnp5Kl R2f47jPPjxSQar3bixTNJaTMe0ZCdaDd810Qcv2FXowKIYlLoVt7xRGYIv3oheBLPUAY rFTA== X-Gm-Message-State: AOAM530lx2LhXts3pHacm68LDvp7AgSaUhklPAeYeWwY+pZcUv2H1tsA 2e5uEkB7WP5QJ4CqoDbrqtFHenFNOJaZCmtSvuM= X-Google-Smtp-Source: ABdhPJxePO4Wyb92z133X8Jx07He22vIGGLU8AXd50XXAdW7u/Mu3Q7vuoifiLu0C2pQc27AJYWlaVbAm0Pohlk76uI= X-Received: by 2002:a05:6402:3483:: with SMTP id v3mr15077170edc.207.1629360441810; Thu, 19 Aug 2021 01:07:21 -0700 (PDT) MIME-Version: 1.0 References: <202108141955.XlQXw3y4-lkp@intel.com> <2f334887-5cc4-87ce-6eaa-61afc8c1265a@intel.com> In-Reply-To: <2f334887-5cc4-87ce-6eaa-61afc8c1265a@intel.com> From: Barry Song <21cnbao@gmail.com> Date: Thu, 19 Aug 2021 20:07:10 +1200 Message-ID: Subject: Re: [kbuild-all] Re: [driver-core:driver-core-testing 28/31] WARNING: modpost: vmlinux.o(.text.unlikely+0x156c): Section mismatch in reference from the function bitmap_equal() to the variable .init.data:initcall_level_names To: "Chen, Rong A" Cc: Andy Shevchenko , Greg Kroah-Hartman , Max Filippov , kernel test robot , Barry Song , "open list:STAGING SUBSYSTEM" , Andy Shevchenko , kbuild-all@lists.01.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 19, 2021 at 6:22 PM Chen, Rong A wrote: > > > > On 8/15/2021 8:04 AM, Barry Song wrote: > > On Sun, Aug 15, 2021 at 5:18 AM Andy Shevchenko > > wrote: > >> > >> On Sat, Aug 14, 2021 at 4:36 PM Greg Kroah-Hartman > >> wrote: > >>> On Sat, Aug 14, 2021 at 07:03:00PM +0800, kernel test robot wrote: > >>>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing > >>>> head: 3b35f2a6a625126c57475aa56b5357d8e80b404c > >>>> commit: 291f93ca339f5b5e6e90ad037bb8271f0f618165 [28/31] lib: test_bitmap: add bitmap_print_bitmask/list_to_buf test cases > >>>> config: xtensa-randconfig-r004-20210814 (attached as .config) > >>>> compiler: xtensa-linux-gcc (GCC) 11.2.0 > >>>> reproduce (this is a W=1 build): > >>>> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > >>>> chmod +x ~/bin/make.cross > >>>> # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=291f93ca339f5b5e6e90ad037bb8271f0f618165 > >>>> git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git > >>>> git fetch --no-tags driver-core driver-core-testing > >>>> git checkout 291f93ca339f5b5e6e90ad037bb8271f0f618165 > >>>> # save the attached .config to linux build tree > >>>> mkdir build_dir > >>>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash > >>>> > >>>> If you fix the issue, kindly add following tag as appropriate > >>>> Reported-by: kernel test robot > >>>> > >>>> All warnings (new ones prefixed by >>, old ones prefixed by <<): > >>>> > >>>>>> WARNING: modpost: vmlinux.o(.text.unlikely+0x156c): Section mismatch in reference from the function bitmap_equal() to the variable .init.data:initcall_level_names > >>>> The function bitmap_equal() references > >>>> the variable __initdata initcall_level_names. > >>>> This is often because bitmap_equal lacks a __initdata > >>>> annotation or the annotation of initcall_level_names is wrong. > >>>> > >>>> The below error/warnings are from parent commit: > >>>> << WARNING: modpost: vmlinux.o(.data+0x1a86d8): Section mismatch in reference from the variable qed_mfw_legacy_maps to the variable .init.rodata:__setup_str_initcall_blacklist > >>>> << WARNING: modpost: vmlinux.o(.data+0x1a87c8): Section mismatch in reference from the variable qed_mfw_ext_maps to the variable .init.rodata:__setup_str_initcall_blacklist > >>>> << WARNING: modpost: vmlinux.o(.data+0x1a8948): Section mismatch in reference from the variable qede_forced_speed_maps to the variable .init.rodata:__setup_str_initcall_blacklist > >> > >>> Barry, can I get a fix for this? > >> > >> Max already pointed out, but I guess you were not in Cc list, that > >> it's a GCC bug in his opinion, but GCC people don't ack it. > >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92938 > > > > I really don't understand what is going on here. My understanding is > > this report has nothing to do with the > > new commit and it doesn't report any valid place where kernel code is wrong. > > Hi Barry, > > Sorry for the misunderstanding, the warning only changed a little by > this commit, see: > > >>>> The below error/warnings are from parent commit: > >>>> << WARNING: modpost: vmlinux.o(.data+0x1a86d8): Section mismatch > in reference from the variable qed_mfw_legacy_maps to the variable > .init.rodata:__setup_str_initcall_blacklist > >>>> << WARNING: modpost: vmlinux.o(.data+0x1a87c8): Section mismatch > in reference from the variable qed_mfw_ext_maps to the variable > .init.rodata:__setup_str_initcall_blacklist > >>>> << WARNING: modpost: vmlinux.o(.data+0x1a8948): Section mismatch > in reference from the variable qede_forced_speed_maps to the variable > .init.rodata:__setup_str_initcall_blacklist > > we'll update the message to give a heavy hint. Rong, note we have another discussion over here: https://lore.kernel.org/lkml/20210815032132.14530-1-21cnbao@gmail.com/ and a gcc bug was reported one year ago: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92938 > > Best Regards, > Rong Chen > > > > > with xtensa gcc 11.1 which is the one i can easily download from here > > after google: > > http://kernel.c3sl.ufpr.br/pub/tools/crosstool/ > > > > i could somehow reproduce this kind of very odd section mismatch > > report from bitmap: > > $ ./build-xenta.sh > > ... > > MODPOST vmlinux.symvers > > WARNING: modpost: vmlinux.o(.text.unlikely+0x4d64): Section mismatch > > in reference from the function bitmap_equal() to the variable > > .init.rodata:__setup_str_initcall_blacklist > > The function bitmap_equal() references > > the variable __initconst __setup_str_initcall_blacklist. > > This is often because bitmap_equal lacks a __initconst > > annotation or the annotation of __setup_str_initcall_blacklist is wrong. > > > > ... > > WARNING: modpost: lib/find_bit_benchmark.o(.text.unlikely+0x0): > > Section mismatch in reference from the (unknown reference) (unknown) > > to the variable .init.data:bitmap2 > > The function (unknown)() references > > the variable __initdata bitmap2. > > This is often because (unknown) lacks a __initdata > > annotation or the annotation of bitmap2 is wrong. > > ... > > > > But after reverting my commit, it is *still* there: > > > > $ git revert 2069b8b9ce8b758e015ce49225b1fedac4accd9c > > [scheduler e158c85c6ccc] Revert "lib: test_bitmap: add > > bitmap_print_bitmask/list_to_buf test cases" > > 1 file changed, 150 deletions(-) > > > > $ ./build-xenta.sh > > ... > > MODPOST vmlinux.symvers > > WARNING: modpost: vmlinux.o(.text.unlikely+0x4d64): Section mismatch > > in reference from the function bitmap_equal() to the variable > > .init.rodata:__setup_str_initcall_blacklist > > The function bitmap_equal() references > > the variable __initconst __setup_str_initcall_blacklist. > > This is often because bitmap_equal lacks a __initconst > > annotation or the annotation of __setup_str_initcall_blacklist is wrong. > > ... > > WARNING: modpost: lib/find_bit_benchmark.o(.text.unlikely+0x0): > > Section mismatch in reference from the (unknown reference) (unknown) > > to the variable .init.data:bitmap2 > > The function (unknown)() references > > the variable __initdata bitmap2. > > This is often because (unknown) lacks a __initdata > > annotation or the annotation of bitmap2 is wrong. > > > > Kernel: arch/xtensa/boot/boot-elf/../Image.elf is ready > > GEN Module.symvers > > > >> > >> -- > >> With Best Regards, > >> Andy Shevchenko > > > > Thanks > > Barry > > _______________________________________________ > > kbuild-all mailing list -- kbuild-all@lists.01.org > > To unsubscribe send an email to kbuild-all-leave@lists.01.org > >