Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3675484imm; Mon, 2 Jul 2018 03:37:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcZXsW+XsIONFiXV7m2rUz9EYa8StRoXF7x+uCTwJvE3B7EVhp3Y/0isZPr3jZEvXH7lHo7 X-Received: by 2002:a65:5784:: with SMTP id b4-v6mr21616972pgr.315.1530527871971; Mon, 02 Jul 2018 03:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530527871; cv=none; d=google.com; s=arc-20160816; b=xwsCaGk71ge5WTpy5ErfSiImnvwmAyygKwMLMEJRnBESoBZOCRm1lfX+lAyrR9ILo5 AIpiOsq1P9dwHEA+LO43M2nqKakvi6oKEOcwnVlekooFYSkCQXvEjNZo9GStAov9Ac2V OJ+UtmrV9i+cXT8DTvUVW6DK3b4ZOBucVYl2PW0SadRYJUuNl7QAmcheDgeoGriK1bZm /56JuxyKWtNaVF+fydzGq1xGU148PUVFfU8VvY0OZCemsIWXc4uJbek5Jn2ixkVgTcSa H2ZYZalgY6FvkU+5g1ajHC16pZoVN1HxmooKdl3lxqgryDCMMCd4RIoJD+obDfxOYmjG Xrrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=evua5Z4l3ryXBHcNwSdemEPnzM2540/rq3smKiWoMek=; b=rvtAoHCDQDVOdRoayc4at3gpogoPhx7BEqRVkAyWg3mcKlz/hv+PWpe+WYTQFDziYk sAfNSLfJr3uPr8fx5zWWRdTHV5Eb/BOivhXpk7CTX0QvU3pd4R6obG54SVQQCH1TszDY ECEz385fBqUDv7NbKlDLDrLji+WyIAA9Yu5eQ156g80OPqT4Y6JrIboMb4fk5eIZ32lI AYnwXnLvRvNdEsWP+vT81neqTwpjNzf/WJGpKTU4QeTUas3oeNPeEbTRMuieTUYLM5d5 YqXXntuzslPFOXS8Y+HrgUh3BM/kV8xhO6nUkvP0R380t61VsPxJ0v/NalVWXqGOt+df g8dQ== 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 v65-v6si16079234pfb.324.2018.07.02.03.37.37; Mon, 02 Jul 2018 03:37:51 -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 S1030331AbeGBKfT (ORCPT + 99 others); Mon, 2 Jul 2018 06:35:19 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:44728 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965467AbeGBKfR (ORCPT ); Mon, 2 Jul 2018 06:35:17 -0400 Received: by mail-oi0-f66.google.com with SMTP id s198-v6so11568761oih.11 for ; Mon, 02 Jul 2018 03:35:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=evua5Z4l3ryXBHcNwSdemEPnzM2540/rq3smKiWoMek=; b=kgNSDX2oAhPQ25OlEn/E0xDCc9AbKXqw/mxfthjWdO4HUrEjLG7uDz7wBwdQ/zFLeS 0V7l+eCoYEkGPgP3faeCwV30/tatGiDy9uFKI+Kbm8YtEFzwAMTdnH/LDeA8BzyltIVQ MOd8fcam6LJpx4ROxLj3pzhqM6JycttK05iCoC6MqkJtUFeFW07Pv9LqV3rLdXhdy1f7 x5qe7TgYl2YqYmYmjpHfNCxORJVpyag6m+HywfBnriy/04DFxObOqVRAOFWr5XNCO/JE BcFKLwc7PvGOq9c5s/59pQ28TDVhiI/E5vydFDYgDHZXwY04/pV13K+dR/R1Ip8aj1S0 8GzA== X-Gm-Message-State: APt69E33xibHaAFwqC/TJe/C6VU2LsDbwhyNP1XOHkNExkd6gpkrinwt o/6S9NKR6Ts6JasOV46xwq9a2OfsDFxPxXtA1uA= X-Received: by 2002:aca:45d5:: with SMTP id s204-v6mr14312197oia.289.1530527716897; Mon, 02 Jul 2018 03:35:16 -0700 (PDT) MIME-Version: 1.0 References: <720e9899186bed184fb9b5cce070e2dc519f9665.1530519301.git.fthain@telegraphics.com.au> In-Reply-To: <720e9899186bed184fb9b5cce070e2dc519f9665.1530519301.git.fthain@telegraphics.com.au> From: Mathieu Malaterre Date: Mon, 2 Jul 2018 12:35:04 +0200 Message-ID: Subject: Re: [PATCH v4 01/11] macintosh/via-pmu: Fix section mismatch warning To: fthain@telegraphics.com.au Cc: Benjamin Herrenschmidt , Michael Schmitz , linux-m68k@lists.linux-m68k.org, linuxppc-dev , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 2, 2018 at 10:25 AM Finn Thain wrote: > > 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. Would you mind copy/pasting the warning you are seeing. Make sure you have: 58935176ad17 powerpc/via-pmu: Fix section mismatch warning Thanks > 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 25c1ce811053..f8a2c917201f 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 >