Received: by 10.213.65.68 with SMTP id h4csp1477312imn; Thu, 15 Mar 2018 00:10:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELuGhbubj1Nb8Fq1MYARLZSrzk1kSaD8HGrIbAn5z4CFmvK1KRMOGsVKmafKls08h8pNct1J X-Received: by 10.98.156.148 with SMTP id u20mr6756976pfk.167.1521097821115; Thu, 15 Mar 2018 00:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521097821; cv=none; d=google.com; s=arc-20160816; b=dSJr1n1nRFCzwQ5rUTIWW7FM1/SzEWeqCh6QTmnTrpjF09CytmUYBmCyaiBdFBJUQo XeiN9nOTYlFYJElYA/U0TD4SG3VPockeOqqe2g7zPZeVzaMEgLxWckDJyXtxkYIgkSCU KzFRz3jDYaMtEWAh5aSq2ljF689E0GqBYsX8437rlaZNAkX/WxzF72YJ5/pTwqr45tqF K3Dpyrx0Cmki+USy0TLllzrgWdrE1y3XKwhpC541YxUNMpOri3VSVPQr//h22lTbKcIH aMtmuo/qZP9iHJydFFeo7iyZXQDA1ZsWW/UVjjh1Vzbp3KAD0szb1o40wTQb8k6jhKTy gL7g== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=IUH+XzlI7K4+MOMO8b1kbjq4CvrATaQ+mvpmLhZ4ubM=; b=Lq0pX+TcLpLAhcgjHtBX6KihJrz0uM3SIhQsOrZ2MMGH5c5vqZ6DEvXSN1IksCxj+w JiAP/q5IrxbDUsqDoAWahV9rTQwkYfY3qb6Xa9OsqeRjhpKdk8u0PYPZoFjTxYUEPD/b 89sxZN5uE+4YqtSolZNgq13YIZTk/i4PsAU8lIOe67F08LqASTQIWa/nLSXPgOpdOxnV x65pNNhhOXn0GOZzBkkWlB7PN7CcH+AOLssVplHQwKPwv4qyYonCJoUH5j4h1MWFEdeN b4WmbP4qIgrqGi3N7fGChOWd54dokuUxihnOJ8HmJBx5Dfo4GA5TTdNODLsTr/hXxx4K AvPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IGEtKVKy; 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 o12si3081005pgc.381.2018.03.15.00.10.03; Thu, 15 Mar 2018 00:10:21 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IGEtKVKy; 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 S1751481AbeCOHIv (ORCPT + 99 others); Thu, 15 Mar 2018 03:08:51 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:34119 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbeCOHIu (ORCPT ); Thu, 15 Mar 2018 03:08:50 -0400 Received: by mail-ot0-f194.google.com with SMTP id v4-v6so2708973otj.1 for ; Thu, 15 Mar 2018 00:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=IUH+XzlI7K4+MOMO8b1kbjq4CvrATaQ+mvpmLhZ4ubM=; b=IGEtKVKyUHizTUACUfkP35VhK8layOiGOJ28eM8KtIjoK7Mg/qVHV4/4J005rDCgiV XGj8zLr7kkf+xi6Njio8dzyvwCJUlV6EZCb24UAeeilgSzHUw9HApe6ZR+aSVmHJfQo5 qkSHL3mj4dDI9kvAj0WiapCZ7zpGM8FH05bcw5G5Tm7Nu/EbPwXTkdZvDR7IGrLuspcB 6RX1nG3/+ZLpRmlGJSSR1l2UACKuPncQ7AsBACO9Mz+xdg8OVEVHQdz1YEjWAGX0wCfG 8rIbSiC6BMeBL9OcP05fDki0DioIbpSaghnHU5PjxqVdtzG6GzWMDsnYT2cyT2qmhsCH Ey0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=IUH+XzlI7K4+MOMO8b1kbjq4CvrATaQ+mvpmLhZ4ubM=; b=TlkjYUk9hGqvUJcfXsxWHABNIneM991rjHFtkiuGWAbq7zBZdYS1J7N6Fa/KL7fCVo sANto7+vIpt0xx6MIBFCilBZfEBmEH1I23WtguYYuHnR0UAFNSNG53VYycjBHKx3hNAN i+nOVEop6Z4cxrdkT9Na4usfeMeZglYKgebuyAur5CX86Ovl/pAljnXII5fnFEK1s3BE fbCesAI4Kd2Y/ORDswaaSWUhJqs+SNhspNn4spfd/U/qQlEM10CCSulGQ2GvgBYooEs1 5IsexqmkJeqNNQ11Z+Mc7ssQ9vKU1AafHbW9gtLCWxGYYeaphnajNqRo7Bq0bEH2N3zr 9HKw== X-Gm-Message-State: AElRT7FRN7MO0hJ0WXAgXgjgLROyGYpSfuG9OcaZMBMXbEXZ0O2wS85k Ocs496VeYGszqqu6V5TGBXEkHPewDqIOyL1e+yM= X-Received: by 10.157.48.118 with SMTP id w51mr4722469otd.281.1521097730085; Thu, 15 Mar 2018 00:08:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.201.20.79 with HTTP; Thu, 15 Mar 2018 00:08:29 -0700 (PDT) In-Reply-To: <87lgeuf9ap.fsf@concordia.ellerman.id.au> References: <20180310180645.7014-1-malat@debian.org> <87lgeuf9ap.fsf@concordia.ellerman.id.au> From: Mathieu Malaterre Date: Thu, 15 Mar 2018 08:08:29 +0100 X-Google-Sender-Auth: 1vAahNKs4iV6SzDdrDTgi6y3TNs Message-ID: Subject: Re: [PATCH] powerpc: Mark the variable earlycon_acpi_spcr_enable maybe_unused To: Michael Ellerman Cc: Greg Kroah-Hartman , Jiri Slaby , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 1:54 AM, Michael Ellerman wrot= e: > Mathieu Malaterre writes: >> Subject: Re: [PATCH] powerpc: Mark the variable earlycon_acpi_spcr_enabl= e 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 Ah, right. I should have double-checked when re-sending this one. Greg, do you want a v2 ? > 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=3D1) >> >> 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: =E2=80=98earlycon_acpi_spcr= _enable=E2=80=99 defined but not used [-Werror=3Dunused-const-variable=3D] >> 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_i= d *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