Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp478399imm; Wed, 13 Jun 2018 03:41:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIBmX+koDvSKWRAKT8kHlqrxWt5+0TiZhxxnzhg6t0KUZHhJttxkU5AzXSF60/DJMXPLcY7 X-Received: by 2002:a17:902:28ea:: with SMTP id f97-v6mr4465405plb.55.1528886511414; Wed, 13 Jun 2018 03:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528886511; cv=none; d=google.com; s=arc-20160816; b=0G9wMiFUHSjVMovjEf+f/UjjilfI3jfFXiAFfVHyxd5Ydfr11HY7IWUElw7abd+llL OlmBhjtP2xd1ETMSp4Y6ej+uLHO5SZXd69BcacRaY5AOlDp+JtXKehbMPgxcXYrbYJ92 YzBE6ZCbU2YHOpIuQnXKvaKN2gaVNud9abHKc1mIVXkqpBM42+/OfVDow756xOP9G4vX qkjPnaOUyyxFCmVt9PezKu+yu9n+k/kbsUAi/5ty5L8NcwAtJRkP8NwoBzoHrVYT4Tt8 UdEmxXq5RNX5dowBo7Y7KkaV0fiS7Cj2ED8YF4aiWoD/EHkZBUbwNoPKwHa4UHKJ9TU0 FfnQ== 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=L1asyJKpEx6r3C9JS3zzEsnxGvTyqE7fFyLlVNql03P/uRriM4cVAV50NgUXlABLWj n5OtdB2Y3Auz/a6y8ls6a2uhDObtZHMyEeEniIlu02VKeQEuM8uPd6RdsM5T3ABPARkw BskPekljKTl4wBGLz9EU1tWudxszERZFMd/BlSWo0V+ecnFQ4dgheh+vheDy5PcH96Uh KA3LiF5sbm3ZroJfYgmRpC4j2mRInL1Qh/OK7Z494ajBUk7cr34pleAqqv/kCRbiwi/M B+vsxVYhQ13MKnvqT6/s0suEFLRnqmizdU7rGGgpyZ2b/pfZqh/eeDgvn4DZc3RjViSN O8SQ== 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 34-v6si2619329plz.479.2018.06.13.03.41.37; Wed, 13 Jun 2018 03:41: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 S935413AbeFMKju (ORCPT + 99 others); Wed, 13 Jun 2018 06:39:50 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:47890 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935166AbeFMKiC (ORCPT ); Wed, 13 Jun 2018 06:38:02 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id 98DFB28582; Wed, 13 Jun 2018 06:38:01 -0400 (EDT) To: Benjamin Herrenschmidt Cc: Michael Schmitz , , , Message-Id: <68c2acba4f518626b02bb8f37c55d052643a99df.1528885172.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH v3 01/12] macintosh/via-pmu: Fix section mismatch warning Date: Wed, 13 Jun 2018 06:38:01 -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