Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp810141ybt; Tue, 7 Jul 2020 00:26:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuw6sYkzRyyo7qPaFFjoRlbPOhTOx8PIEyr/Y4r94fbbCcguP0u9aFJIJVd0V4jGGZ/1BM X-Received: by 2002:a17:906:f94c:: with SMTP id ld12mr45101973ejb.426.1594106789957; Tue, 07 Jul 2020 00:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594106789; cv=none; d=google.com; s=arc-20160816; b=Yf63kHw1Q7oMBmkBjncshj2uQgLoJwv0Bt7/jFGi22aOWtS0GfFrvjWObWwgl5UhvO UTh1YL+YVlGBGLSDdO5URxmTCnClnAoGDqVm/jpA67tjc/gmyK2xv64Z1v1tlR2PRxVv ykW9rvL5mswvGfaGn2iGsZT47Cn/VaEmkt2xksppC7UNU73MOH0OZK5UEWo3IW4M6Ga/ x1W2n2oSutcttlEFdWRH+fmPKHWWAslAqm16ERLMzljo4g3sA9niDSRHbaf6AlrLP9Az vRqQ7bIYrkzREvUmw4fbSPbHeeytQIAATGtj84MqsqRm5uWyUoTPpCr5mSk5nWAeGWKx 8RnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=eTRuakPnfWXbOPA0YuwVEGPF6BELfW2YGI8FV22a3D8=; b=cbUKdqiveIX0jeZrP8MfP1R6rVatwRtBfIDozDN9mfc7HDKxBUZF1j7tLUj3EjzLKd tCtmm5C2/pLlKgLTDtplyanXhZ9XubbO4GMoJG4gRdEDLevqVW7xUFTE+iMYqLTVP/K6 ZMkDBxRuuAvHTHP4z/PC7mRERGvafOpSTq1DF3bd2QWdZZycO2W6WsrL9g2BYekobrBO lXalxljtAkk8FE+tBNZZbQCE91HI3brbbBvd5asdvVl+nuDtB1NwQ++nmuoQR+0AS4g8 lBY07iG3FRC96THlC9aWRkitgan+UF7MunbYVpiWVQ6BOYvaVTv0Yp9rrxvli+80Iizz U8cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DX1im+xZ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bv8si5433175ejb.476.2020.07.07.00.26.05; Tue, 07 Jul 2020 00:26:29 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DX1im+xZ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728283AbgGGHXg (ORCPT + 99 others); Tue, 7 Jul 2020 03:23:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbgGGHXg (ORCPT ); Tue, 7 Jul 2020 03:23:36 -0400 Received: from mail-vk1-xa44.google.com (mail-vk1-xa44.google.com [IPv6:2607:f8b0:4864:20::a44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 199CEC061755; Tue, 7 Jul 2020 00:23:36 -0700 (PDT) Received: by mail-vk1-xa44.google.com with SMTP id h1so9091732vkn.12; Tue, 07 Jul 2020 00:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eTRuakPnfWXbOPA0YuwVEGPF6BELfW2YGI8FV22a3D8=; b=DX1im+xZt1K0FqBnN82RJezZvsKYs0Ot3lUUcTTGBlMKlp+7o+X/rD0/E+KA+LvbOs 0LK4bY9K2Rx2nQL1KZy5N1IPbLnTB8RgRjZK+Zg2QmdfbTR//xPfQKb8gV66Y0vcP+2s bE7AQYkBA2ACbzQiJnBDUsEp3MWpblmDAKIlcn56SW1XK9qy6L3YZni32LMm8YRYFoNk MVAQo7SSFj2C9T5mSDI5zr+BzgQJQWDBnKkFJWV3v7uBZqNRLLe5tHqGh5Z15/xXGsyv tCAVvPqYQ/ZKp+7hqT/2Zqax3U9WMNyWw+M1keUkQ7vkrG3TVmRv44A0aci2goBrlK5Y YCAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eTRuakPnfWXbOPA0YuwVEGPF6BELfW2YGI8FV22a3D8=; b=tyihyG+CT/fSaC2UF2JJGwB0qNnKD0Mn2gj3zyDqPpPi/vY0cjNPb2wzWaGI1mkFcV mlqiYJqC3WPYb/HvqLOlQN3n+XmbC4l6fFcMWswd5Ghjj5/T0/KdU86f94wqSYBVmhDp nYpCu2epzw3aCnNAh3RHBAfyEQgYhjH/V2InZi0k6OFuk0eO+c76f741KC36643qgPB1 2UBNK0IbKEAVeKQ7Ik/b4oyuiXXOu57SD5iSk4SHDX9k4KIvXFgcnMjPrBj/rjZaU6E+ 0fVrwxolf26KRVRd8Ohj4uc/IVFQdlmNwR4NtPSx8vkM0eJvPx2KvPA0TON3QqtPM7Nm 0FNw== X-Gm-Message-State: AOAM5313kbmd74mODc3yF9vHqD/8MOtzm4QqTPgBGXZvKJMXIQp599iU iAfwLOO+ZVzpGLx84dQZnsDEekIKbLz//DDTQtyP7j6MpDY= X-Received: by 2002:a1f:2409:: with SMTP id k9mr8926758vkk.80.1594106615240; Tue, 07 Jul 2020 00:23:35 -0700 (PDT) MIME-Version: 1.0 References: <20200707170650.692c98f0@canb.auug.org.au> In-Reply-To: <20200707170650.692c98f0@canb.auug.org.au> From: Vaibhav Gupta Date: Tue, 7 Jul 2020 12:51:53 +0530 Message-ID: Subject: Re: linux-next: build warning after merge of the net-next tree To: Stephen Rothwell Cc: David Miller , Networking , Linux Next Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 7, 2020 at 12:36 PM Stephen Rothwell wrote: > > Hi all, > > After merging the net-next tree, today's linux-next build (sparc64 > defconfig) produced this warning: > > drivers/net/ethernet/sun/niu.c:9903:12: warning: 'niu_resume' defined but not used [-Wunused-function] > static int niu_resume(struct device *dev_d) > ^~~~~~~~~~ > drivers/net/ethernet/sun/niu.c:9876:12: warning: 'niu_suspend' defined but not used [-Wunused-function] > static int niu_suspend(struct device *dev_d) > ^~~~~~~~~~~ > > Introduced by commit > > b0db0cc2f695 ("sun/niu: use generic power management") This warning should not have come as the earlier definition of.suspend() and .resume(), they were not inside "#ifdef CONFIG_PM" container. Or any other container. Hence I thought adding the "__maybe_unused" attribute to them would be unnecessary. I am sending a patch to do the same. -- Vaibhav Gupta > > -- > Cheers, > Stephen Rothwell