Received: by 10.223.185.111 with SMTP id b44csp1631096wrg; Sat, 10 Mar 2018 10:08:29 -0800 (PST) X-Google-Smtp-Source: AG47ELuiuW/Pezv4xAn5hP6GMG+G/SpWGWSgBZ9P6a1ll+KwjniLwBI2h//FTqa3C3QtRPjueSU+ X-Received: by 10.99.108.199 with SMTP id h190mr2170184pgc.295.1520705309782; Sat, 10 Mar 2018 10:08:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520705309; cv=none; d=google.com; s=arc-20160816; b=raJfuqHgFNXafQRbym04hYepp6/RtwVHGdNAHf09C4pCLSW4p4Hdwuuwt+5A3pPdaj IHKBWqW3JiQupEeEqVMS6mn3OUvTUGBejRH9nMkjN6mJyvQ05HDJUOqyQb857l6l6YCa jFlvCT1eKHWdNS5aB5oPUfeap+cl1t4ZtVEQtGUIszQQhUy2wM5ENXfeowQ/cjCS/ZNv i7nowWjwa2qfUnJjAP1ltSFOV6cewJVZtYjwLa2Dqb1sz43SfYnPxJgf1QdtKskv7zSM cIFZv3FkGJMLN+SIgn9rofa0nbvJXma/NmWcP+IRTtjpwRkAN7Z6anldGc5JyGGHmRPT Hnpw== 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:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=5xyIAtWit3saSnYf8qXkPiyHk7gO+xkDoCcTM1SKbA8=; b=yGlcf7TUasyY6PIiEiaTNraGkyMZ9y9le6Ae2wlFkcnQSCMdo1dz/9sQjiPEwHvzKx 47pvCrq0J39AmGxSD9IpId5fs9QuvLIwGKx1NcHwLxbFZocopGJwbV5wjciXsBHMpeGv HBe/2ZK1lssTmKBzmcKpy+6iOQrHuRTGJovtAeorM0pv70USdyJ84SE9+fSpvfSLZVB0 wf72GHUXCaalI0OdAyxU4j4hUJdTfoIug+zVlMFpaufAiUvscwXeb8+wwwtiMr7ALU/j RdwGZbx2n25BxrGIoQXOopEND670yEFpM5Gqa66F/VLMAds61/XkMPpjhnF3wRwyeXrl v92w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NxQzfaSB; 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 c7-v6si2986689plo.432.2018.03.10.10.08.12; Sat, 10 Mar 2018 10:08:29 -0800 (PST) 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=NxQzfaSB; 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 S1751242AbeCJSHR (ORCPT + 99 others); Sat, 10 Mar 2018 13:07:17 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54073 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750703AbeCJSHQ (ORCPT ); Sat, 10 Mar 2018 13:07:16 -0500 Received: by mail-wm0-f65.google.com with SMTP id e194so9277692wmd.3 for ; Sat, 10 Mar 2018 10:07:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5xyIAtWit3saSnYf8qXkPiyHk7gO+xkDoCcTM1SKbA8=; b=NxQzfaSB0gw6YwndU5/+oTNUgFzgJmHYLQFBOCBG3ycCASQbWDwKSQgl4PEcPh3c/r J5G1bwqlO8wWM+pKTSig/qD0XCjMKb2UZY8GrqoBm9bm+bruVhljPcv1GCkERtinthxx 2cM9p+CGKNIjeRskjofYIR1IKzp2ZI6xXMOcT+6mWL83zo8S32KWh4wWEm9YVdx5b7xW 7xAFE1zK3GAvSPUQ73h00x7IgQfnADijW62FOWJNCNqFSdI78/1XLh83OGtlRi1pX5XE eQOTPWLW4HBcsvEw/zWdsmBXfB/JqYhoBYBCF7J0tRokHMsjr2EMEwlXWrEtPzF6PcfW 1pNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=5xyIAtWit3saSnYf8qXkPiyHk7gO+xkDoCcTM1SKbA8=; b=l+XWrzkkECXdxe92Ifz+LpgzbK8gNTiPtsJSGKwy3wbtfxVXhtDH5+3e8K5bLb2wXt p99BLnbcHWNqihLTBoReMpg8YG+3eaeQ96u8Ph5fN5KyerUUk923AofhhrRfCkWhAm9j apNBAtjcP9g84i8Q4k6zQsXsMNP90TasgabwTEc+vyoxO9QRjXHnBnNVB2VavWUC6zn/ J1JrmKqZpB9zrR9AMUrXpoh2cZGm25HQbnaCYs/wyXCj35utxzg4tommb91FrqVnjx0W BH7NPtnA0J5IdthSYGNIx6vm8BhkmcnZw0nPB6ugnZI6DHb3kfUYxI6lUXHC6jFeXFVu +eZQ== X-Gm-Message-State: AElRT7F6aaIbZ1RjJOnRZegt8n+wSHKx97zuoy27OCI0OXjGngq3P+Ys Gq2eyNYAhBDiew8eJWBg+yc= X-Received: by 10.28.24.207 with SMTP id 198mr1740546wmy.113.1520705235206; Sat, 10 Mar 2018 10:07:15 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id c192sm1693420wma.12.2018.03.10.10.07.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Mar 2018 10:07:13 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 56A9310C03A5; Sat, 10 Mar 2018 19:07:12 +0100 (CET) From: Mathieu Malaterre To: Greg Kroah-Hartman Cc: Michael Ellerman , Mathieu Malaterre , Jiri Slaby , linux-kernel@vger.kernel.org Subject: [PATCH] powerpc: Mark the variable earlycon_acpi_spcr_enable maybe_unused Date: Sat, 10 Mar 2018 19:06:45 +0100 Message-Id: <20180310180645.7014-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 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 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