Received: by 10.223.176.5 with SMTP id f5csp1049373wra; Wed, 7 Feb 2018 11:46:15 -0800 (PST) X-Google-Smtp-Source: AH8x226NsVsEexWBFXmpXpqAZiIHr6E/UK9155ugDo05AkQtBo5Li5fjtJHg9PHxhlIW2DLkVenu X-Received: by 2002:a17:902:6716:: with SMTP id f22-v6mr7241534plk.180.1518032775568; Wed, 07 Feb 2018 11:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518032775; cv=none; d=google.com; s=arc-20160816; b=G8fIa/W/HkSsEzjfrL8uzkNl/bKYmYbOTKKz/IbLzgTgBuazicJijLsz8nMNfF9CNo T7xZ8Rp4toExgO4JroOEN8roFS+JPB4UXqNuzgCtuC6UNGEjNEnMxUcuPDy5Ta9iewAV PWJ+vhxfRro7krfyAGJ4sJwYqEDdcUBvQx4jlv+HdwLC5MprMN9Z3yWTVhLSAJRg0HRo aaOed1AKOVaVr8mnvhIYT+iCHX3B8nQj2KG7ZcfYfnEwrDLiubMiQdjj7QdFG/5vTknP Zb6SrrVp7lD+cKfPQm61fb2Qh5BPrtaALbEbUgVMH84hvs4cIZkcgjxgbRVzF7orBvF/ 4GGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Y4a4CzYH0Drx7R8rH06N3PXZ+qn2ExVpg5rLmCB9x6Q=; b=vcxvjLhWJa94uswe1bynJrtUJHVgDUmwdjTV1W8bkws6JoKa9OV+QApBa9lS9kvai9 T0YKdBQHESu2fBcMFsr2oOAmMwst3oxquL/5zrWnXtQz39RTpjYZtFDYPGMLjZeJx4ts gpepemTtzGBoz8zvkG+02MRw2RiRNHBSMMsKkpP0nIahGTQUk6gSlUMQqPaCRhUcnC3a 6O7moRJXo1TVrHaDun/oBmEBxfP9bih5LPG9ODMvHUJeME+wyso73zb2K9CR2XdNOoYw ix0fQs9EMUXQxrVmESZFAte/14zKTjm58AExSc3Vtw7jzipFpCHtJ6OB7RVs28duKuH/ rIug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LxBxKJMU; 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 d184si1313826pgc.595.2018.02.07.11.46.01; Wed, 07 Feb 2018 11:46:15 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=LxBxKJMU; 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 S932206AbeBGToy (ORCPT + 99 others); Wed, 7 Feb 2018 14:44:54 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35006 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754429AbeBGTow (ORCPT ); Wed, 7 Feb 2018 14:44:52 -0500 Received: by mail-wm0-f66.google.com with SMTP id r78so5602107wme.0 for ; Wed, 07 Feb 2018 11:44:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=Y4a4CzYH0Drx7R8rH06N3PXZ+qn2ExVpg5rLmCB9x6Q=; b=LxBxKJMUVUxzSY9MyELdOXYOqGv8arbOg3wpNlctJnYDr3KNNweWqgF8TsAOWZ3hj3 rT745LSRbnX7epIhGqZrW8ZBKR62gJ19T5H7tlvMkvtKhy+5uY4+Vda6tjgXh6la6/uk 7m1GGGavPnOgF8yQcSu3XoIa69f9ECye6pboe1RWmxTJ9uhxGH37qws813CA8EPjUzuB 21IAaEyPbmMcc0VxeCFG6w1VFXmtUrw0iSdRFHIgeb6XUMXIpe4ZqJd7Ka5PCCSo3Xn2 d10nrb0d+ZmK2v+l0l7sbsQEupXUJ22PgJ5hwC/zUnK/DWlMHhxGukxaE7YEoAvmjl3/ 1Nyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=Y4a4CzYH0Drx7R8rH06N3PXZ+qn2ExVpg5rLmCB9x6Q=; b=gSdyfrwzdp22PUwqQozHEOMLGqgs92zQMsGwQnTJvxemMSJT08HniZXoGc6qMzsohg rHSNN3mxtS4oxH3X7NJcJy6Z6m44BVttHLYda8AlkBCP/e7QQi4a9DTJpQ37cNAmfX5K eI494pnhGMm9Oo0mGeSJ/Nhw0/L+FswYJnfY9bUvLAE9ReXKYIRQ9nBWrvxi+isHTeiF LC1FOSAVeQ4hLyeKS0tPyQuXua6po6BmpEIkV3KLwc7S2snrV7q4xdxebryvPFPDyJiA FFTWj+71o3mPrPqiTmyTjb2RsYEUM6em1N/oXra4UnE/u3FV0oDy7JGfgRJNFh+1s1Vc x2Hw== X-Gm-Message-State: APf1xPATY/AmGcGxDlzQJA6rOzmWLeq0YXWroJgJqGzKCcEYqD4ANjAk ua7RPM6XgKsaJq1xDfNtOHk= X-Received: by 10.28.0.207 with SMTP id 198mr5714679wma.115.1518032691449; Wed, 07 Feb 2018 11:44:51 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id p21sm1928643wmc.28.2018.02.07.11.44.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 11:44:50 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id ED9C510C0388; Wed, 7 Feb 2018 20:44:49 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Cc: Mathieu Malaterre , Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/via-pmu: Fix section mismatch warning Date: Wed, 7 Feb 2018 20:44:38 +0100 Message-Id: <20180207194439.32680-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the __init annotation from pmu_init() to avoid the 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 --- drivers/macintosh/via-pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 08849e33c567..5f378272d5b2 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c @@ -378,7 +378,7 @@ static int pmu_probe(void) return vias == NULL? -ENODEV: 0; } -static int __init pmu_init(void) +static int pmu_init(void) { if (vias == NULL) return -ENODEV; -- 2.11.0