From patchwork Tue Jul 7 14:00:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235001 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp942062ilg; Tue, 7 Jul 2020 07:01:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybJoXBh7DTYUBoKewHs4epvuVJMcI3jykkldavCrAsIN/1dS8SAwJAyTdgCwobrwAxOPsY X-Received: by 2002:a17:906:29d8:: with SMTP id y24mr47022465eje.212.1594130468225; Tue, 07 Jul 2020 07:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594130468; cv=none; d=google.com; s=arc-20160816; b=l4bfjorSHIXR3i1jZQU0P5BPjQXHd//eNnNjga6Oynj5ECCfe+EtCiE2OvhuFZdSZ8 8rjrD8YY0TXQxZbxED21rGx790Vb6V26UP86zwG9QWFPOS4TXR8euLoIuZFuTaRAkVbN 6Xcx7EpOMqzNs6ikoehCPLQQecyy5BkQRe6SWa1aE9cdtBoQOrFKkvXB+JnbA8ahGBKN SzE2XByujCXIF13dWqmNJYzHsN1WiTCSzXdJ8HWkFXywbUk8+IWUHyB7nyjLj9mi/5dq Q8QN6riMt1Y86ye72IFNUDFnGLdtrZASjgJKMAKFu5cXsov1YqKoDIWAkX6ONxgmVvl6 h2vQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/cqZIdFqcpIXxhTbwotqjldLYbQ1H9RlyQjCdSkXyGs=; b=HcW3oj1Q5I9eWHA73fk/4vhbju164JUtInmXRKUAM186z/Yx7KN7pm5FAAcZVlvXlh bZDb9uwbubM6UAcR1d1SCzeFOgUm4KxwbFaAj3Zlz4Qs/1Wv6+vl/d0JbDCk/BUkU1MC cgvdxUfE3kDn9EBoTpgt4udroPM7Pt19Dby6HpbCDx0r83uGw7l6t/2tkDTmOgh1bt1p 36gq6BKdXXMLiLxd2eC5XQtoLKPydKYLjw7xou7xYNPV8sGMZlGcuaxzopTNDLfv27IL lAVMYh4Jiu9t70XsS5hFsYxgI2BBCIaX9NPBavgvzpAAHjYsO6YLiamOe8HvF/ems/WM FTgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DY/Y6rRC"; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si15637034edr.502.2020.07.07.07.01.08 for ; Tue, 07 Jul 2020 07:01:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DY/Y6rRC"; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728179AbgGGOBG (ORCPT ); Tue, 7 Jul 2020 10:01:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728155AbgGGOBE (ORCPT ); Tue, 7 Jul 2020 10:01:04 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF981C08C5E3 for ; Tue, 7 Jul 2020 07:01:03 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id 22so43400524wmg.1 for ; Tue, 07 Jul 2020 07:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/cqZIdFqcpIXxhTbwotqjldLYbQ1H9RlyQjCdSkXyGs=; b=DY/Y6rRCsOjNTJ4MkMoPwBn+t6tp8Ea3aR3cwKW07HPMrJatmNWyjsxXWn8QkYDC9A MjrEbwgrbgZZxlHsmKUvipQUvak0bqLJ9f+zQwDGAQFTgW54RkqkMz/JGF+4e5i78Q/c 2KBqbs2XOY808AW/smRWfFkGiaf9aMa713477C90tUkPIRj74nGwK2SRjYtBnft1e8i3 IVkvAi1yYxYJ37bqk704jsA8Ompe5sVbx1WP9CxrdUjsqIps8siu/zYqjiAuTHQrJdCb 41vt5Gk8sl8yd0WJ0DpcW5y/WTCY7ErzeiiIJe2KAXO8GRuw9+Oe0ws8P8hbK/NUezih UwYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/cqZIdFqcpIXxhTbwotqjldLYbQ1H9RlyQjCdSkXyGs=; b=IzCycpbrOfqPCPIISgru0kr7vzkWaSiV+Hh84ZE/lnr1XhvILA7FJzRaQpBEhZinZr 1dsicmN9VidG0GE1xTQMXPptQzqPgZfOfdNjVHDDIk6Aiv2DhrnwWypXOceYxoDlVzt1 CMeH3K1R6mms2Pk46DDqmmSEPGncs/mO981tT7YXsy8tREQYDuwJBTBfSBKVYtaMXSmZ x9HOMrIGZ24+nyWaw/8VeIuRVJCoF+Nq8rkq4rQHe9nBBM4g69yovsdrFlnr0U9t4ucd VPOufC+XSEJu3Sg2QEjNZaeExx9XFpNI4ics+4/9WaCyS558y4qMQFqBAJWdEdnGD80g 4tww== X-Gm-Message-State: AOAM531Cy7X6Z8nWsGL1sn2mTiQWieCwuNwCmzZUSeraRdl1bH/5t+q0 hz9Bk17uBtjsUc55IpgPA9/drw== X-Received: by 2002:a1c:49d4:: with SMTP id w203mr4610085wma.13.1594130462391; Tue, 07 Jul 2020 07:01:02 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id z25sm1102823wmk.28.2020.07.07.07.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 07:01:01 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones Subject: [PATCH 03/10] scsi: fdomain: Mark 'fdomain_pm_ops' as __maybe_unused Date: Tue, 7 Jul 2020 15:00:48 +0100 Message-Id: <20200707140055.2956235-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200707140055.2956235-1-lee.jones@linaro.org> References: <20200707140055.2956235-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Not all source files which include 'fdomain.h' make use of 'fdomain_pm_ops' leaving them defined but unused. Mark it as __maybe_unused to tell the compiler this is not only acceptable, but expected. Fixes the following W=1 kernel build warning(s): In file included from drivers/scsi/pcmcia/fdomain_cs.c:16: drivers/scsi/fdomain.h:106:32: warning: ‘fdomain_pm_ops’ defined but not used [-Wunused-const-variable=] 106 | static const struct dev_pm_ops fdomain_pm_ops; | ^~~~~~~~~~~~~~ Signed-off-by: Lee Jones --- drivers/scsi/fdomain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/scsi/fdomain.h b/drivers/scsi/fdomain.h index 6f63fc6b0d127..93afcee207aed 100644 --- a/drivers/scsi/fdomain.h +++ b/drivers/scsi/fdomain.h @@ -103,7 +103,7 @@ enum { #define REG_FIFO_COUNT 14 /* R: FIFO Data Count */ #ifdef CONFIG_PM_SLEEP -static const struct dev_pm_ops fdomain_pm_ops; +static const struct dev_pm_ops __maybe_unused fdomain_pm_ops; #define FDOMAIN_PM_OPS (&fdomain_pm_ops) #else #define FDOMAIN_PM_OPS NULL