Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp313895imm; Thu, 7 Jun 2018 19:26:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJoyishSiSCjV+XLWjYJz+G9BOfMnKXUHuLl/oLQRVNIU5GGYC+LKd+M8H1+04mT1MSjDq1 X-Received: by 2002:a62:9bc9:: with SMTP id e70-v6mr4018034pfk.15.1528424777740; Thu, 07 Jun 2018 19:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528424777; cv=none; d=google.com; s=arc-20160816; b=SUHplLxcEFDFPUS1ldxl9bUGTvU9QkCiWJVIkX7Y+vg3yijJ3303H6ZqOSnphZwN7N KG23W6QmyC3GU2W33Q2gZlCJbCJpSXsthw2Dtw38N0DD44SliZRpSOSR5gT9z5309Kp9 maIS/y700jxCTelE8rBXcyWQeV6FSu9s6ToEK3qwIV28nMs4E+cIKWdSk1sdVepvpxXR AWKe8NxEmaBxIxsQaryW8ctIo4TpkpKRzIQpQkCdMzFb0Y1F4IU2XRB9B5faiCYwhPrC PPojP9XaE2vlAgn0spZtjkcjCNVbtm/ISJ8VcgnfG4V2B0QbF/OUuSGIB60Wl3D7WPVy 7WNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to:arc-authentication-results; bh=5bwh7/g9aUh9UToxtJGh45xmXWPoFod3U6QlczuSF2g=; b=QWoLDrJwQuhV3ojZ4OB/dlUosZkU9OzkkpkqtXM0GSkOpzHsBaAkrNYFd0EHFFiWq3 E8/LXRIcrsxXBhzBWIO78KvjSSZeigE/uT66PNtPyhnTWGAQ2mqwQy+/k7+95yOrjozX CLYF6CVKry37jt1FqUWOBM11EZ+QV25JopmbgcoGAZvgTaNH2x7KPNLDDgo7MM2y/dSI kVouyIpd57ecoGfBr1d++g0V5mTap92qcWWGfzR/qhh1CJOSoac8oUcQm4WpTmd56FCO kRQ52u0PE/w2w7W/paNnQ6/f/Bft1rmzS/8KCdRbpkNJsS1SbF91jjdjDNorr8B5HFTQ GIKw== 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 o17-v6si2915372pll.449.2018.06.07.19.26.03; Thu, 07 Jun 2018 19:26:17 -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 S1752615AbeFHCYb (ORCPT + 99 others); Thu, 7 Jun 2018 22:24:31 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:58490 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752329AbeFHCY3 (ORCPT ); Thu, 7 Jun 2018 22:24:29 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id 6FEE929D7C; Thu, 7 Jun 2018 22:24:28 -0400 (EDT) To: Benjamin Herrenschmidt Cc: Michael Schmitz , , , Message-Id: <68c2acba4f518626b02bb8f37c55d052643a99df.1528423341.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH v2 01/12] macintosh/via-pmu: Fix section mismatch warning Date: Thu, 7 Jun 2018 22:24:28 -0400 (EDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pmu_init() function has the __init qualifier, but the ops struct that holds a pointer to it does not. This causes a build warning. The driver works fine because the pointer is only dereferenced early. The function is so small that there's negligible benefit from using the __init qualifier. Remove it to fix the warning, consistent with the other ADB drivers. Tested-by: Stan Johnson Signed-off-by: Finn Thain Reviewed-by: Geert Uytterhoeven --- 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 433dbeddfcf9..fd3c5640d586 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.16.4