From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938743AbcKWOUz (ORCPT ); Wed, 23 Nov 2016 09:20:55 -0500 Received: from muru.com ([72.249.23.125]:51564 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938727AbcKWOUw (ORCPT ); Wed, 23 Nov 2016 09:20:52 -0500 Date: Wed, 23 Nov 2016 06:20:40 -0800 From: Tony Lindgren To: Arnd Bergmann Cc: Bin Liu , Greg Kroah-Hartman , Felipe Balbi , Johan Hovold , Rasmus Villemoes , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: musb: mark PM functions as __maybe_unused Message-ID: <20161123142040.GP7129@atomide.com> References: <20161122143028.1822041-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161122143028.1822041-1-arnd@arndb.de> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Arnd Bergmann [161122 06:30]: > Building without CONFIG_PM causes a harmless warning: > > drivers/usb/musb/musb_core.c:2041:12: error: ‘musb_run_resume_work’ defined but not used [-Werror=unused-function] > > Removing the #ifdef around the PM code and instead marking the suspend/resume > functions as __maybe_unused will do the right thing without warning. OK works for me: Acked-by: Tony Lindgren