From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH] scsi: smartpqi: mark PM functions as __maybe_unused Date: Tue, 23 May 2017 21:48:24 -0400 Message-ID: References: <20170518083243.2927102-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:50766 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758528AbdEXBsl (ORCPT ); Tue, 23 May 2017 21:48:41 -0400 In-Reply-To: <20170518083243.2927102-1-arnd@arndb.de> (Arnd Bergmann's message of "Thu, 18 May 2017 10:32:18 +0200") Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Arnd Bergmann Cc: Don Brace , "James E.J. Bottomley" , "Martin K. Petersen" , Kevin Barnett , Scott Benesh , Scott Teel , esc.storagedev@microsemi.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Arnd, > The newly added suspend/resume support causes harmless warnings when > CONFIG_PM is disabled: > We can avoid the warnings by removing the #ifdef around the handlers > and instead marking them as __maybe_unused, which will let gcc drop > the unused code silently. Applied to 4.13/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering