Received: by 10.213.65.68 with SMTP id h4csp869193imn; Wed, 14 Mar 2018 02:34:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELsJXX5yjYrTpCdebJ4sit3yVNsCyi+NYGm60QfEPneMuMxfiP3nyqWXlkUp+O7NGByMbLUg X-Received: by 10.99.176.68 with SMTP id z4mr3074912pgo.74.1521020099240; Wed, 14 Mar 2018 02:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521020099; cv=none; d=google.com; s=arc-20160816; b=m/Dr3D0U5xfnn8Qzh3Khj9iRFdZcNuOXd5OKAkd2mK60ctfSNusPAjZWWr7rLYvYhW NmraK6cFSzb4JV0TmwAhsdF5eJAL47rZm+ah+l72p8SNUJAn0ark6MxoQDrFuOIZx6cd yJAGJ0iAL5OXX0zCUy0W95KJQpTYRccR7OBmT11LFQaoeaVbv/jDvILdAQbGSywEInf+ ORCvX7uTpdCqrsLXqDlnk6s3Qv97brzSylJU2YEbQEKrW/LKet2uFdP4w0VQW2Nu9mGW B1lDnPD7h3EVSFf79qgz0Kyr6sskO8cc4CR4CQFyS9DeGiMeSfOAyLrZGt/S/yqidYEe VI9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=IL/4q0QgSrF7BZAD5TDPDkVdXEwp2sZiXCHKzp3qZIg=; b=kN9j46WZteeUGB6gMEQguzGu8LDOB2N9P50hR9EMOGXcWnAmcQ8YKKh41ZJB52gEFe pEdRLRaXSZclZoEIvYBzvYSDazqJxzf8QySFcnvDaymw4se4Wr4Gr6bhpLNd0GwlBany DR1yonPBWzFhm6jEkz/7nxry/Qol9Cf1apJcJgfJyGlWUoyOR6wwal57Ju1BZTmXGC9a b/Fu+rpJ3L4BtOYbvsEzCmyByIC/SwEoJ0X2DrleWq/tFjZSMdrwOl0x0WfjwdNlX8UF mqouxXjv/c2Sbh4MbSlpyXq7kX1XVxxacWbuZC/BG214iTYCzTViofQQr0TcP/YsMs2L qQ3A== 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 p75si1781670pfi.293.2018.03.14.02.34.45; Wed, 14 Mar 2018 02:34:59 -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 S1751537AbeCNJ1u (ORCPT + 99 others); Wed, 14 Mar 2018 05:27:50 -0400 Received: from ozlabs.org ([103.22.144.67]:49557 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279AbeCNJ1r (ORCPT ); Wed, 14 Mar 2018 05:27:47 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 401RG939z2z9sD0; Wed, 14 Mar 2018 20:27:45 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 58935176ad17976b7a7f6ea25c0ceb2ca4308a30 In-Reply-To: <20180214211519.15683-1-malat@debian.org> To: Mathieu Malaterre From: Michael Ellerman Cc: Laurent Vivier , Mathieu Malaterre , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [v2] powerpc/via-pmu: Fix section mismatch warning Message-Id: <401RG939z2z9sD0@ozlabs.org> Date: Wed, 14 Mar 2018 20:27:45 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-02-14 at 21:15:18 UTC, Mathieu Malaterre wrote: > Make the struct via_pmu_driver const to avoid following warning: > > WARNING: vmlinux.o(.data+0x4739c): Section mismatch in reference from the variable via_pmu_driver to the function .init.text:pmu_init() > The variable via_pmu_driver references > the function __init pmu_init() > If the reference is valid then annotate the > variable with __init* or __refdata (see linux/init.h) or name the variable: > *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console > > Signed-off-by: Mathieu Malaterre > Suggested-by: Laurent Vivier > Reviewed-by: Laurent Vivier Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/58935176ad17976b7a7f6ea25c0ceb cheers