From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41f9P11XDjzF0gv for ; Mon, 30 Jul 2018 16:57:25 +1000 (AEST) From: Michael Ellerman To: Alexey Spirkov , Benjamin Herrenschmidt , Paul Mackerras , "linuxppc-dev\@lists.ozlabs.org" Cc: "trivial\@kernel.org" , "andrew\@ncrmnt.org" Subject: RE: [PATCH] Adds __init annotation at mmu_init_secondary func In-Reply-To: References: <87tvolrm43.fsf@concordia.ellerman.id.au> Date: Mon, 30 Jul 2018 16:57:22 +1000 Message-ID: <87r2jli52l.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Alexey Spirkov writes: > Without any additional option > > WARNING: modpost: Found 1 section mismatch(es). > > If detailed debug is switched on than: > > WARNING: vmlinux.o(.text+0x142ac): Section mismatch in reference from the function mmu_init_secondary() to the function .init.text:ppc44x_pin_tlb() > The function mmu_init_secondary() references > the function __init ppc44x_pin_tlb(). > This is often because mmu_init_secondary lacks a __init > annotation or the annotation of ppc44x_pin_tlb is wrong. Ah right, thanks. I checked ppc47x_pin_tlb() but didn't spot the call to ppc44x_pin_tlb(). cheers