From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765884AbdEXBsm (ORCPT ); Tue, 23 May 2017 21:48:42 -0400 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 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 Subject: Re: [PATCH] scsi: smartpqi: mark PM functions as __maybe_unused From: "Martin K. Petersen" Organization: Oracle Corporation References: <20170518083243.2927102-1-arnd@arndb.de> Date: Tue, 23 May 2017 21:48:24 -0400 In-Reply-To: <20170518083243.2927102-1-arnd@arndb.de> (Arnd Bergmann's message of "Thu, 18 May 2017 10:32:18 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: 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