Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3435496yba; Tue, 7 May 2019 00:52:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1tk8SU/qORTjmEWGnxGSPWznhQsMWk93DMlbYbL36/7SktYyNGs8aNKOxUiORuihe984i X-Received: by 2002:a62:e10f:: with SMTP id q15mr39688091pfh.56.1557215522614; Tue, 07 May 2019 00:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557215522; cv=none; d=google.com; s=arc-20160816; b=e/98yTFQpORLEOjkJc5awSI5Li7rYc32PMC6Sc4XYXDNjIg7FDJ3H1uDISjcJmJtVx afKNRY5uV/ccTaoqCAmGaNh2ExLsL01IRmzz3zeVa0NU10CwNoxq6DjMCy/qh05HY+da PzhaWTs2/9lsYuhCOOMpNZFAsLZ3vXY4qG1U9RMfjnq2RgO3cEgDw1X+9TQEYvIkWHaP ydGwez0Vly5gU4tPTPJez8P74Auu979p8147o7AObA0/lmMOw3Z3kN3Y5Oyzba2BQpWu lB8BAb91riGjJIy7lxPMFTSi8OIeoVxoTPQabx0mWJSQWPJPcSYSjteyJ7zkaVEMn/Ga zvmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=qgg0cE/KxBgZE4xU9juDgtY4EoLaab9pMoLyus797nw=; b=JwLFJ1v9OJaMu+zhPWPzLWU+lJQJkkQGJmaZ80WijAY8L5DI+uBxDL9uoM94Xe4U/I nly/nIS7G6IbXgu1MFT8ePTsJDg4z/BlDNLBoxpthpCkkl1uzbpmT27mugg+prG1HhgL Ind6LkHPsVdmibOKZ39yoJmvyDwNpg6czMDrOVi2oW75EHWxe/YFkGbsflucn9gojdnh 4fZ1dUsXlm+kbWfn3W+nWDe4fM0AANBEcEm3GXjbamCHuA07WV8ALMm6ftj786CJlMiB qrtNr3o4knZl5Qc3B99PXKEoIzr38G1Kp4tYe51kmTdZLYaVptR/ij+0j7VABnpxnovv c91Q== 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 p15si19030945plo.310.2019.05.07.00.51.47; Tue, 07 May 2019 00:52:02 -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 S1726977AbfEGHus (ORCPT + 99 others); Tue, 7 May 2019 03:50:48 -0400 Received: from shell.v3.sk ([90.176.6.54]:34514 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726773AbfEGHus (ORCPT ); Tue, 7 May 2019 03:50:48 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 351B5103E1A; Tue, 7 May 2019 09:50:44 +0200 (CEST) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id nohfolaQftHQ; Tue, 7 May 2019 09:50:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 9D22B103E16; Tue, 7 May 2019 09:50:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ytnwLJcCxEiL; Tue, 7 May 2019 09:50:37 +0200 (CEST) Received: from belphegor (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id 73CFA103D8C; Tue, 7 May 2019 09:50:37 +0200 (CEST) Message-ID: Subject: Re: [PATCH -next] x86: olpc: fix section mismatch warning From: Lubomir Rintel To: Rob Herring , Randy Dunlap Cc: LKML , X86 ML Date: Tue, 07 May 2019 09:50:35 +0200 In-Reply-To: References: <76cbb7d3-bb91-4900-0275-a9b09fd7c77b@infradead.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.1 (3.32.1-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-05-06 at 16:06 -0500, Rob Herring wrote: > +Lubomir > > On Mon, May 6, 2019 at 2:31 PM Randy Dunlap wrote: > > From: Randy Dunlap > > > > Fix section mismatch warning: > > > > WARNING: vmlinux.o(.text+0x36e00): Section mismatch in reference from the function olpc_dt_compatible_match() to the function .init.text:olpc_dt_getproperty() > > The function olpc_dt_compatible_match() references > > the function __init olpc_dt_getproperty(). > > This is often because olpc_dt_compatible_match lacks a __init > > annotation or the annotation of olpc_dt_getproperty is wrong. > > > > All calls to olpc_dt_compatible_match() are from __init functions, > > so it can be marked __init also. > > > > Signed-off-by: Randy Dunlap > > Cc: x86@kernel.org > > Cc: Rob Herring > > Fixes: a7a9bacb9a32 ("x86/platform/olpc: Use a correct version when > making up a battery node") > Acked-by: Rob Herring Thanks for this. Which tree does this apply to? I can't see the patch that introduce the problem in x86's for-next? I've a mostly equivalent patch lined up with an intent to send it over to x86 once the faulty commit reaches it: https://lists.01.org/pipermail/kbuild-all/2019-April/060269.html In any case; Reviewed-by: Lubomir Rintel > -int olpc_dt_compatible_match(phandle node, const char *compat) > +int __init olpc_dt_compatible_match(phandle node, const char *compat) My patch also marks olpc_dt_compatible_match() static. It should still be done if this one ends up being applied. Lubo