Received: by 10.213.65.68 with SMTP id h4csp3357132imn; Mon, 9 Apr 2018 19:55:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx49bf8zz/2t9B/0hw5ngfTYu1Mr9kXOun5uzAmneWYOlac85nD7UdbAq7gCSner2saWww5uy X-Received: by 2002:a17:902:6b86:: with SMTP id p6-v6mr40340916plk.32.1523328914713; Mon, 09 Apr 2018 19:55:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523328914; cv=none; d=google.com; s=arc-20160816; b=sB2D59SdOuShnxvEwnuOtx06dGBnesP7ZrISOz82i0fvBmGsh7EbYgYYonwWxn8u3G RUVCvWF+z0HuW6QzC1p4G+eYrSqV7stWzxyHNuQzdBlTGwGa+2RezZqQKwxBkZGus6Kx G/EDdLTZLsjt532S+ZmYwEk4Mpv+sk8nc3D0Tvi8UuSTR9yg2rWE3bVfpAG7OpZYxb9/ Yf/6iJrf74tf64jFItIBLLjfL6vcMkZps+MQiECYuf6xjmH0OP1CpW8Thk4tx8q+/avL wKHOsLJaqmi06B8xX/S0DYiJO6wk7dYAAEUMbJQ3NoOSsV0c5K4K7cePvsMiAbKWo4Nj n/7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=nXOOWnNBPnikXGarjqeCmvnJy3mJm+scV6v50BqY8ac=; b=kL2nXdNSIyhb9Z3xMkyOQbCrrYGcVXt8VcpP4w4+qLRQBdYgoYkj96OWcJuzAyXkem jxO4SIuM0iffcWK/J3IGbTgo60fWRb9ajhCHwkbmZ590SWA5xTriQ6SEVL4OqvZpGYbP G+n68SRtoFMuZs1L16tvSyuUlP5hs1h+TOPs9xHp0qFuDPLMEU9EjJpYu+K4HWmhYnxV 1+GC+kL1TdXvNrki1fej1p3VxzOQ+p/EMpLcS13HX0lfnhUGqlsABIqhE9y9t8BgfFaK stC/kB+mDmZeRKQ+f5nAV3IWr44Hi2UTGthLZYHRsOAc1J1vF+kHWdlm+Dim6inrDmo3 mp2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u25si1123651pgn.488.2018.04.09.19.54.37; Mon, 09 Apr 2018 19:55:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751851AbeDJCvh (ORCPT + 99 others); Mon, 9 Apr 2018 22:51:37 -0400 Received: from ozlabs.org ([103.22.144.67]:55319 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751455AbeDJCvf (ORCPT ); Mon, 9 Apr 2018 22:51:35 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40KsBZ0Y5Qz9s1l; Tue, 10 Apr 2018 12:51:34 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Mauricio Faria de Oliveira , linux-kernel@vger.kernel.org, jeyu@kernel.org Cc: jeyu@redhat.com, akpm@linux-foundation.org, npiggin@gmail.com, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v3] powerpc/64: Fix section mismatch warnings for early boot symbols In-Reply-To: <1522943439-26235-1-git-send-email-mauricfo@linux.vnet.ibm.com> References: <1522943439-26235-1-git-send-email-mauricfo@linux.vnet.ibm.com> Date: Tue, 10 Apr 2018 12:51:31 +1000 Message-ID: <87lgdvbwp8.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mauricio Faria de Oliveira writes: > Some of the boot code located at the start of kernel text is "init" > class, in that it only runs at boot time, however marking it as normal > init code is problematic because that puts it into a different section > located at the very end of kernel text. > > e.g., in case the TOC is not set up, we may not be able to tolerate a > branch trampoline to reach the init function. > > Credits: code and message are based on 2016 patch by Nicholas Piggin, > and slightly modified so not to rename the powerpc code/symbol names. > > Subject: [PATCH] powerpc/64: quieten section mismatch warnings > From: Nicholas Piggin > Date: Fri Dec 23 00:14:19 AEDT 2016 > > This resolves the following section mismatch warnings: > > WARNING: vmlinux.o(.text+0x2fa8): Section mismatch in reference from the variable __boot_from_prom to the function .init.text:prom_init() > The function __boot_from_prom() references > the function __init prom_init(). > This is often because __boot_from_prom lacks a __init > annotation or the annotation of prom_init is wrong. > > WARNING: vmlinux.o(.text+0x3238): Section mismatch in reference from the variable start_here_multiplatform to the function .init.text:early_setup() > The function start_here_multiplatform() references > the function __init early_setup(). > This is often because start_here_multiplatform lacks a __init > annotation or the annotation of early_setup is wrong. > > WARNING: vmlinux.o(.text+0x326c): Section mismatch in reference from the variable start_here_common to the function .init.text:start_kernel() > The function start_here_common() references > the function __init start_kernel(). > This is often because start_here_common lacks a __init > annotation or the annotation of start_kernel is wrong. Thanks for picking this one up. I hate to be a pain ... but before we merge this and proliferate these names, I'd like to change the names of some of these early asm functions. They're terribly named due to historical reasons. I haven't actually thought of good names yet though :) I'll try and come up with some and post a patch doing the renames. cheers