Received: by 10.213.65.68 with SMTP id h4csp1338715imn; Wed, 14 Mar 2018 17:55:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELsCl/3VOPFA8e+EQ7qgQn7fWcOcxT1lavQUJC1bQepHf1xoFyMP0YCuhLjzMQRzcXOpHt1e X-Received: by 10.99.120.197 with SMTP id t188mr5292191pgc.358.1521075333620; Wed, 14 Mar 2018 17:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521075333; cv=none; d=google.com; s=arc-20160816; b=rTszLyIsHjosQymBt43IlEETDnJGikQ3TQEjh8K3ZW1Dx0bAn+u585kDbwXuf6pGCg jgk2ACX6z6xPqb3ZNMi5iTpq3FRUoM0Yjb2DfYhMvmybvMQW6SBRGcmfF4x3n6X6ni44 oIhMiUb7zr+kd/g+CO27qcSa85ne71CZ+B3woYvCZF7Iqha5MLa/AI5m1hqgQKALFzM/ BDmnadMlaly0JgW/NKjqb3KWLOW/wvYI67CTZwRA0dtJzErQEUoOH1hAKip98X9FdMw0 sL0lhwRQ312dGIY+eBG+iRJJ6MuDDDayeemcsJnmmYo8wYHSQAH2Lig55O0imrFwxGXt gtsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=slgKIq5Ht9ZRpWGkziRyWH1vvbtTeClTUDGGpN0bxy0=; b=pEq1OvZkGgnGMAucuZvuFtraNhUOO4T577cWdoxbHNjsojj4kaFngoWVZqECjpIUu/ OlN4dctTcOInE9gG67to4EvxK/2CDsQ/hd/7GSdzReRve9cLpjpyPjjc25u87NIDF74F Jf/R2mWkfeLQpYyiuO/GUTBI/oi5nXytjmFS5XKYADvYcP5/SDkUKktGBKdT8oWBsEHv IQEtpKTsFti1Ygl1UdgNmekxAvoeICBv+ODuo23b1CR1495yd7K6utEciCdqseW1QTgh 7GEfNdapguaIRd/+naHknLG4HHvFwump6t+JzELbEAQX+0H0lzEzWKDoP3/a3TukZNuE FYBg== 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 z7si2614083pgp.438.2018.03.14.17.55.18; Wed, 14 Mar 2018 17:55:33 -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 S1751620AbeCOAyK convert rfc822-to-8bit (ORCPT + 99 others); Wed, 14 Mar 2018 20:54:10 -0400 Received: from ozlabs.org ([103.22.144.67]:60999 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751394AbeCOAyI (ORCPT ); Wed, 14 Mar 2018 20:54:08 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 401qq30RVCz9sVF; Thu, 15 Mar 2018 11:54:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Mathieu Malaterre , Greg Kroah-Hartman Cc: Mathieu Malaterre , Jiri Slaby , linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: Mark the variable earlycon_acpi_spcr_enable maybe_unused In-Reply-To: <20180310180645.7014-1-malat@debian.org> References: <20180310180645.7014-1-malat@debian.org> Date: Thu, 15 Mar 2018 11:54:06 +1100 Message-ID: <87lgeuf9ap.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mathieu Malaterre writes: > Subject: Re: [PATCH] powerpc: Mark the variable earlycon_acpi_spcr_enable maybe_unused You're fixing an error on powerpc, but the patch is to the serial code, so the subject should probably be more like: serial: core: Mark the variable earlycon_acpi_spcr_enable maybe_unused cheers > Re-use the object-like macro EARLYCON_USED_OR_UNUSED to mark > `earlycon_acpi_spcr_enable` as maybe_unused. > > Fix the following warning (treated as error in W=1) > > CC arch/powerpc/kernel/setup-common.o > In file included from ./include/linux/serial_8250.h:14:0, > from arch/powerpc/kernel/setup-common.c:33: > ./include/linux/serial_core.h:382:19: error: ‘earlycon_acpi_spcr_enable’ defined but not used [-Werror=unused-const-variable=] > static const bool earlycon_acpi_spcr_enable; > ^~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > > Signed-off-by: Mathieu Malaterre > --- > include/linux/serial_core.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h > index b32df49a3bd5..1d356105f25a 100644 > --- a/include/linux/serial_core.h > +++ b/include/linux/serial_core.h > @@ -379,7 +379,7 @@ extern int of_setup_earlycon(const struct earlycon_id *match, > extern bool earlycon_acpi_spcr_enable __initdata; > int setup_earlycon(char *buf); > #else > -static const bool earlycon_acpi_spcr_enable; > +static const bool earlycon_acpi_spcr_enable EARLYCON_USED_OR_UNUSED; > static inline int setup_earlycon(char *buf) { return 0; } > #endif > > -- > 2.11.0