Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp820053ybi; Thu, 30 May 2019 07:16:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNcZ4YatUjUat8o2KnncxgMbZziCIf9qzqOogrQHpk/s/X9SD7wz/Oxg4NzI24NjDmlfum X-Received: by 2002:a17:902:1cb:: with SMTP id b69mr4034480plb.158.1559225771949; Thu, 30 May 2019 07:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559225771; cv=none; d=google.com; s=arc-20160816; b=rH7wxrN3wINPuZ9uI56wSoSUlGZHoKlUF/8HXq9X7MfwvucHSfFGEGAFXtxd5kwF4z FVkrsxldqM3bkACOBCHS1N00D/oV5kSc7JKhegfOC32blCcF1wWMtCZRawP2YSunBiOX YPUzIzwdBc3W74z7gZPXBelmubjvHNoQZIYVgaUDEUoUijOafdQG63sTNMXdTOVyTF1M XO6v0/a9HKc3q/ynrJYmSbc/lnTUdCuXIUTun5988z1wf5TzgGbh8/cGLLrK8uPfguKb fofIetnn2bJY24kqaR58oIE3hzTlV5127/1qev5NoN8ufDdY7piClgykQOAS/4YLyhBc y0IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FYJPRskixwn1nFPNV2wbt36LZ1ahlZ4OUxU9DsdvakQ=; b=eAaFwO/WCPwqzZM1Xbf0bD+l39Eja0O7dkMrOsOJetgjKLeGOfBFfG1UPIUvGY1ApG W+eXdwAVab1XchZKRPPnVCfR+u2WRSemBCgKBm3CQgJxzCaTnPazYruHvf5mthaIpYvr VDP8hZpr5xrKT+SIxAsr3DrLygerA+FZTxS8yB7UwAcCVbm33HxZVC09wsDO8QqnJyeT zF/BMczvMhDkVSBOjGL/iw2mXee75rP9ewv4KBTSRRSm/GNc1oQVL1ZdqHQZdObS7k7C QO6VMHzuJ5hpXWY8u6yrHEy944Y5raIkkvvyFkEP1Vk84yJ72+sGONQ8AS+jfTtWA8o3 uCKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rA9bA+qW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si3371882pfn.207.2019.05.30.07.15.51; Thu, 30 May 2019 07:16:11 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rA9bA+qW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726842AbfE3ONc (ORCPT + 99 others); Thu, 30 May 2019 10:13:32 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:42179 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbfE3ONc (ORCPT ); Thu, 30 May 2019 10:13:32 -0400 Received: by mail-yb1-f195.google.com with SMTP id c7so702642ybs.9 for ; Thu, 30 May 2019 07:13:32 -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=FYJPRskixwn1nFPNV2wbt36LZ1ahlZ4OUxU9DsdvakQ=; b=rA9bA+qWjeYMvUekVTww//KlxVzlp/lmiBQ0SfyqIX/VLdFSNCXP38de2h9355NuVD ny4cdDMmCaTNXv4aonL8PkiCqH69daWrUkkJm5XRDO5GccDjB+Ds5PLeq2BMpcK6e3FZ ilBB7du8Z8YVnievNdukT1liMNkKtDYx5+XnrASMQxnNmFuiEC4GQU8kPOF+EJ5eT7no p2Sabns5mZbI+9LEbz2/Rhluk186KFEmcQGlwyEGjlargIb+o3xxL8hNDhjWrZmJYD/q 8/hVXe3tZEmERQo+Vo7v5+n1DoDopc7KEFssE6GtYrbCLVfG6qtKnNKus79azZlOBwxB mzhQ== 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=FYJPRskixwn1nFPNV2wbt36LZ1ahlZ4OUxU9DsdvakQ=; b=GcuIiztfcoIxqQkY1RXKium4g3YvI3MNBaUlBKSyIVvFz3YdN6/H8mjyTkX8bnYSHW 3903i1N5fCGNJ5bQ7IA831iU9xkPAW+b/IzNpP0vpEKSwWMQLdmZ4le+ZFNq0CVnRaaG 3PJreALfa55I0aOCgHsqRz1ccdFh9DfEV+sUMJQTBl+y6iY8wwnykCZK7euE2pEyxUmk tvVcK7s3RYtnQ0TsBzzaGvdz5m6F011YDOPVMsuwSitebUpJv3xjawKf9xyYSatDGKCY zOkoXqgS2CLzVjdKuBps82K2sWiQ4DGGUq0bvTzc6nIHD3qaTu3iDWaLF2x2wnjEpSss niww== X-Gm-Message-State: APjAAAX+QSYow/aXO5qxQTv4xhF3/gFGvhaRL3Ja+krcoqqn9CuNBJeY KGMjzGHh3aM8imYFD0UKWRoP1ycOBpkWLk1SxnA= X-Received: by 2002:a25:1f42:: with SMTP id f63mr1589876ybf.25.1559225611715; Thu, 30 May 2019 07:13:31 -0700 (PDT) MIME-Version: 1.0 References: <1559220098-9955-1-git-send-email-linux@roeck-us.net> In-Reply-To: <1559220098-9955-1-git-send-email-linux@roeck-us.net> From: Max Filippov Date: Thu, 30 May 2019 07:13:20 -0700 Message-ID: Subject: Re: [PATCH] xtensa: Fix section mismatch between memblock_reserve and mem_reserve To: Guenter Roeck Cc: Chris Zankel , "open list:TENSILICA XTENSA PORT (xtensa)" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guenter, On Thu, May 30, 2019 at 5:41 AM Guenter Roeck wrote: > > Since commit 9012d011660ea5cf2 ("compiler: allow all arches to enable > CONFIG_OPTIMIZE_INLINING"), xtensa:tinyconfig fails to build with section > mismatch errors. > > WARNING: vmlinux.o(.text.unlikely+0x68): Section mismatch in reference > from the function ___pa() > to the function .meminit.text:memblock_reserve() > WARNING: vmlinux.o(.text.unlikely+0x74): Section mismatch in reference > from the function mem_reserve() > to the function .meminit.text:memblock_reserve() > FATAL: modpost: Section mismatches detected. > > This was not seen prior to the above mentioned commit because mem_reserve() > was always inlined. > > Mark mem_reserve(() as __init_memblock to have it reside in the same > section as memblock_reserve(). > > Signed-off-by: Guenter Roeck > --- > arch/xtensa/kernel/setup.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Thank you for this fix! Applied to my xtensa tree. -- Thanks. -- Max