Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp144462pxf; Wed, 17 Mar 2021 01:18:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzs4/RD1Ot6cMo4K8SD+3XnlprqGySCpP4nY174uC5RnSYp0QhE+UeGbK/sulrVjUKDLFxD X-Received: by 2002:a05:6402:22b5:: with SMTP id cx21mr40730323edb.27.1615969136612; Wed, 17 Mar 2021 01:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615969136; cv=none; d=google.com; s=arc-20160816; b=uItLP1YvAVlgasCxGiODHw2DwsWeHkL9nVSBv0CHALHPJyHHeZQ8RlpwZMLuZ5911Y WmY2zNVyx7ONZLoNTI9RAnjlkzySUm4h1PyG/MfTw3WHOhg4Tb1dmKmTtaQrdosbh8Bp kRhGUHtEtvWRIZDUohQFyIv9wW6+0zhf15WytfAbCVAFBL/cM6soHjRE8RL7ta2KSkty Rew/PSJsTGKa3mtum6CIAmnNcSSqBD+0REZVqDjEJse3CCxk2dboff0BqrcOhCZtQB9o q9UrJkFzBXhgm2AkbGUZ1XhEzTFKls0oVRa00+65k1sYhyGf13nyWremULWNAjsb6o85 lAsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=WArI8y/fvYAh60qCKGOaziWR43Oi62DgHTvCf2UK6sY=; b=yK4ZvdgF2yqKIICGVoDb4CIJE1Va40uiOgOoJ0/g3fJfNXsQ7G8KNk6Ex5APXQEe2a l7oUxSSW6r3zOo8TNGLkRwyFs0ZZnpKzIHS0DxihgprLsS+yoFwvq1Zvh52k3+5M2tWk bxalLqSMDIvJJF1/zkDagcV9s1ce69I6//MaNuSX6dNOTItCSNd3Cj2lm3LKbVKFteVb Uj0NniXKpDpTAIYviuiQeerXw42yBJfMTCvipEIBlJvqMt2Tndh10nGSAkOlB0h3vr+C 4e4W3XqDJ7WqCtlfyJW5cdCzhql4VOmut7uQpoTJQCpFPQXSEQtFlL7zaJ78hUW2nWzz yzVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si16022493ejr.164.2021.03.17.01.18.34; Wed, 17 Mar 2021 01:18:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbhCQIRS (ORCPT + 99 others); Wed, 17 Mar 2021 04:17:18 -0400 Received: from mga06.intel.com ([134.134.136.31]:34626 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbhCQIRD (ORCPT ); Wed, 17 Mar 2021 04:17:03 -0400 IronPort-SDR: vS5HK3EkLj6IPBhT7afGLqcfEnwNtNCtPYwCpi2oODnqe02rlDIKif6EwJ+xkAgwZIMTWW2pxE qK7xDXX52Lag== X-IronPort-AV: E=McAfee;i="6000,8403,9925"; a="250777314" X-IronPort-AV: E=Sophos;i="5.81,255,1610438400"; d="scan'208";a="250777314" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2021 01:17:02 -0700 IronPort-SDR: e1PsqvAwC9dddgoN84+g4oj0/qAanFPE8+SBfYapaXmFVXe6hG+MSTOERmDRmdDH4HgW/qocrp JgAcDh9gH0Cw== X-IronPort-AV: E=Sophos;i="5.81,255,1610438400"; d="scan'208";a="412552370" Received: from chenyu-desktop.sh.intel.com (HELO chenyu-desktop) ([10.239.158.173]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2021 01:17:00 -0700 Date: Wed, 17 Mar 2021 16:21:05 +0800 From: Chen Yu To: Stephen Rothwell Cc: David Miller , Networking , Tony Nguyen , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the net-next tree Message-ID: <20210317082105.GA163071@chenyu-desktop> References: <20210317185605.3f9c70cc@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210317185605.3f9c70cc@canb.auug.org.au> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, On Wed, Mar 17, 2021 at 06:56:05PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the net-next tree, today's linux-next build (sparc64 > defconfig) produced this warning: > > drivers/net/ethernet/intel/e1000e/netdev.c:6926:12: warning: 'e1000e_pm_prepare' defined but not used [-Wunused-function] > static int e1000e_pm_prepare(struct device *dev) > ^~~~~~~~~~~~~~~~~ > > Introduced by commit > > ccf8b940e5fd ("e1000e: Leverage direct_complete to speed up s2ram") > > CONFIG_PM_SLEEP is not set for this build. > Thanks for reporting. I think we need to add the '__maybe_unused' attribute as in case CONFIG_PM_SLEEP is not set. Tony, it seems that the original v1 patch should eliminate this warning, could you please help double check and apply that version? thanks, Chenyu > -- > Cheers, > Stephen Rothwell