Received: by 10.223.185.116 with SMTP id b49csp1127153wrg; Fri, 23 Feb 2018 12:24:20 -0800 (PST) X-Google-Smtp-Source: AH8x225UVzmScPfpExA7PAm7/hHDzKqxjwSILv581fwpimpbF19ZX+vTHLW+DPqp0DB9vy1mIgKh X-Received: by 2002:a17:902:52cd:: with SMTP id a71-v6mr2762823pli.389.1519417460283; Fri, 23 Feb 2018 12:24:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417460; cv=none; d=google.com; s=arc-20160816; b=n8Uc7kWxcnR+pkpJp6wp6zAGicj6mp/zmyK2Fw9Yw6aXVHV0e1GODkfys40SS/nuul DgRHt4x/nj9s70ukqV07YYeG85KBzSwer/YTrVshI50wUGJqvhI8uokuc8Cxw5tWR6UA RV4P9Rg1JUvh1B0+84FCMOaB8W18w02O2248yz55/Cl/2BysU2162p8S1drg/Veqs1Mv dL9FCGzQF8GpJHDt1Sy51OM15uP7POho6grHmvH974TW2CGcEU/wRanr9WxD+QdQacj+ l8CUME0hWnqRwWvoLA381Ux2kSf3HxG0vzGBlFzpvZZnj3SkSMCstXNHTdnvLBi4uoMh DU7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=a12DaF6UnAUFC25id0VDihPkFUZazdfPGkOAimKj8F0=; b=lDf/63ht22iWuwG8TLtdjePlWN9wLPFZ3Qd0Bn5jsVChXTgd880x3Jb12diu+xID4p HkfUYlLoxVHaLHkkUgN0lGyG89LKr09LD2Jrzwpq07EPtH4KoGqWVMwz2U/byxNAZOBp x4heRVOXW/pW7QYmmCJFoey/qdlf/GmZxJ1yVvAqng6/KLTjLf84qlW77qdsVAeatDjT C91PG6g/SML2pC1sJxdrOCqkzsQquWpLfRxDId7ETJ/8tPWlqoc9P8OcJmIwcSIRCm1z 25i9Z2VhomPuIJf90cjbLPPPyRfSEgzvabSDgIovhUX2rdq0gm1OFjeRZcMyVoiAX0Rr rASQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si2247588plz.783.2018.02.23.12.24.06; Fri, 23 Feb 2018 12:24:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755287AbeBWUXb (ORCPT + 99 others); Fri, 23 Feb 2018 15:23:31 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38928 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754311AbeBWSiN (ORCPT ); Fri, 23 Feb 2018 13:38:13 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CFDD2100B; Fri, 23 Feb 2018 18:38:12 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Michael Buesch , Kalle Valo Subject: [PATCH 4.4 081/193] ssb: mark ssb_bus_register as __maybe_unused Date: Fri, 23 Feb 2018 19:25:14 +0100 Message-Id: <20180223170338.726633607@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit b7e2d195cc523bd92ed7a64aac089421dbab2a2d upstream. The SoC variant of the ssb code is now optional like the other ones, which means we can build the framwork without any front-end, but that results in a warning: drivers/ssb/main.c:616:12: warning: 'ssb_bus_register' defined but not used [-Wunused-function] This annotates the ssb_bus_register function as __maybe_unused to shut up the warning. A configuration like this will not work on any hardware of course, but we still want this to silently build without warnings if the configuration is allowed in the first place. Signed-off-by: Arnd Bergmann Fixes: 845da6e58e19 ("ssb: add Kconfig entry for compiling SoC related code") Acked-by: Michael Buesch Signed-off-by: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/ssb/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c @@ -613,9 +613,10 @@ out: return err; } -static int ssb_bus_register(struct ssb_bus *bus, - ssb_invariants_func_t get_invariants, - unsigned long baseaddr) +static int __maybe_unused +ssb_bus_register(struct ssb_bus *bus, + ssb_invariants_func_t get_invariants, + unsigned long baseaddr) { int err;