Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2848805yba; Mon, 6 May 2019 12:33:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWl+XV8uq/bVRorhMv5BU4C/VMNI0cfWyDw8LQBm79La64kpjMqU4Pz92aJ4rbNwie/Ojh X-Received: by 2002:a17:902:4381:: with SMTP id j1mr34428207pld.173.1557171182727; Mon, 06 May 2019 12:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557171182; cv=none; d=google.com; s=arc-20160816; b=eUlPO0jB1V4/CXXA+TzRrEKuAQDz6AciXL+TnE8IOOJEr3LO0ydqQwvS+ffP8+fGYt DRHkiPSsraEqz3fvaia9Y1lnwjxy1Ra7V3ffFaChYXoJOWgbr52f2g5H5dGsQjZN7YHt 7m/JNNKDwtlwdfyOJTBbA52sNEWZo2oQEGV2FQSSMLppKHaKLSx9mfCSYlUmj0PwigmC po0pJXFUNKacq8JQxLjGKnPbH9VpV3j26qZ+ZQpakze92ncIYesmBtrE/CmD9UTMpw7j 5F8ZI3I7H9Zh8sU4kIJeWhneLKJLCeA0ntW8c5CO2iojng0ROfT4OujkKCtW21nc8MSO u52A== 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 :content-language:mime-version:user-agent:date:message-id:subject :from:to:dkim-signature; bh=gZ+PznOa1NPjwtyprbc4xPeHY4zz9L/0ME3WLNqb0aA=; b=q//RMC78ADPSkjQ3gXO0n7bTA2Oy1G432xKABoTt1lug4rgbf+d9V6cvYeuNrsiu+m 6s+AOUqdJOt6MabqDQu3wW8rvupGRniD6zd8GnV7W9Ky7tuwD/OJmChMF6DnAWkanz9m ETzm7U02tx15+Z3+mNjCrjhp4rORqTXqeTLpsb5Mvp9QH9Dcno0a31T0BIl4ZeRsK/HL fLQAfR70cn2W8oBzU982w7CF58jZFYBegfAgRV+tlpUQqnqxTEUjCP4w/qtgzbA+pqr7 2SPqc58o6qYY7bDboocojIBbv6Z6fa4mspNY5l/sK5r90paCMh3Bs7MgORz3KPLzpuK6 cF/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=rg74RFa+; 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 bc8si15014051plb.169.2019.05.06.12.32.47; Mon, 06 May 2019 12:33: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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=rg74RFa+; 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 S1726608AbfEFTb2 (ORCPT + 99 others); Mon, 6 May 2019 15:31:28 -0400 Received: from merlin.infradead.org ([205.233.59.134]:58866 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbfEFTb2 (ORCPT ); Mon, 6 May 2019 15:31:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gZ+PznOa1NPjwtyprbc4xPeHY4zz9L/0ME3WLNqb0aA=; b=rg74RFa+90w0Nw3xnzbjpJ8v6i KTB6rv1ErhwxB+owHswOKFjpS88NMEarvqWtjhl0donO1sfb4HH5TfrKgK8y2SfOVFy4W3HkEFmLJ lrZlgBYYAtfSkn2tk30kjrsbEg6Q/Oe9NjoCneCzyacU5IwQdbSS8f5HUqn7ioebEafQ5y7uzy8FM Awxinlg4oyPq9iH5PejF8x8bI8y9ep2pJ+64PBSgq00De78MRLU1fqk4iH9cmw0plZvg6q7CfZtdF 6KAFObr9ILkjwJE94jh8zGy0FveUCKx1wLZ3iTBLnWpLKiXgDL2aDBq+hv0lEBaFZbRBJDTE1uPhu myKi9A0Q==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNjKh-0008GU-35; Mon, 06 May 2019 19:31:27 +0000 To: LKML , X86 ML , Rob Herring From: Randy Dunlap Subject: [PATCH -next] x86: olpc: fix section mismatch warning Message-ID: <76cbb7d3-bb91-4900-0275-a9b09fd7c77b@infradead.org> Date: Mon, 6 May 2019 12:31:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/x86/platform/olpc/olpc_dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20190506.orig/arch/x86/platform/olpc/olpc_dt.c +++ linux-next-20190506/arch/x86/platform/olpc/olpc_dt.c @@ -220,7 +220,7 @@ static u32 __init olpc_dt_get_board_revi return be32_to_cpu(rev); } -int olpc_dt_compatible_match(phandle node, const char *compat) +int __init olpc_dt_compatible_match(phandle node, const char *compat) { char buf[64], *p; int plen, len;