From patchwork Sun Jul 26 04:15:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 11685473 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD9BC138A for ; Sun, 26 Jul 2020 04:15:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C6C7F20773 for ; Sun, 26 Jul 2020 04:15:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UOlqdxAw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726072AbgGZEPy (ORCPT ); Sun, 26 Jul 2020 00:15:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725298AbgGZEPw (ORCPT ); Sun, 26 Jul 2020 00:15:52 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBCD7C0619D2; Sat, 25 Jul 2020 21:15:52 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id f7so1554254pln.13; Sat, 25 Jul 2020 21:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AHNauKg+pzBgKomC/E9u0fN8pT6l2XYrcJ9bfwf19oo=; b=UOlqdxAwF96Ez4btv0lRX7p12jkBkmh9nR/UBDaKr2L09+5EdsT5zXaIUE7AMSjl7E V8MGVeMMbDiRxgIdZYIgQhIxp+Sg9jc/CJxj0Osx+bF6JEkSALJYsQiCw1A1PGcavDej nW21qxFOgXlXyI+2PHBJAkuWGf7omvcYH5W0jPIvCagliFfaDS/Gh18xgO6GatZRPQuD ktPQFpRuzhUaHeLlMwFXx6BGFQkstnvtn14gPjO08dgXhNB7wOIt6vabgevqcMQcYlcH HikeC8WTG8D2flC6Qv7H56jFcOjkBYk8HVTyC4W6xsLvccMf8tCx9qax3TNY1AK1ioAP N17g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AHNauKg+pzBgKomC/E9u0fN8pT6l2XYrcJ9bfwf19oo=; b=MXO/8yKx3Fr6KiI1kzdtf6B/slDpLb3Xwdtzy4fyjY8NnEIN4YR8boQ1FugS+nBfzc Inx+UJoxrhJmk6qX9COC0TmgBljLBoysg7j0w/BqUALgHGj2PfMJZZ/SyPg+YSFwGuT7 9KT6ojYKoUf+FD6zgDtshvIJUj/P8DUjRPxEAXR1QzTCOGGo+VyfVEbW7bpHpOF0DRdQ xhNcBmIqnmfc949g0J0KDGRzFyYx1oEPkUQz37dF/9Rs31Ccu9TGLPzi7tI3N0oZ9fGJ YSJu4/BCoKeh26mZ6uI+Wh9zGc+7RFjVqYh5Arg1Hc9eEBpR8WpPyDF7O54bsyDQ4+zz JJ7w== X-Gm-Message-State: AOAM5324eznwfK3MT71zgKmgFQACRM37BEQNzPTFPfzv3Sby/iaO8ZNE rlUCfqNPiECjTBB4uhJHLGt+Q56G X-Google-Smtp-Source: ABdhPJz1Ju3upEoGdk1TgEwGv1VlvqoeSZUnFu2oCbe3HyL6uoeLWNol5m23a+47FX9WIM7oFDqj2A== X-Received: by 2002:a17:90b:3684:: with SMTP id mj4mr13117814pjb.66.1595736952441; Sat, 25 Jul 2020 21:15:52 -0700 (PDT) Received: from localhost.localdomain (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id d16sm10725568pfo.156.2020.07.25.21.15.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:15:51 -0700 (PDT) From: Florian Fainelli To: linux-mips@linux-mips.org Cc: Florian Fainelli , Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Thomas Bogendoerfer , linux-mips@vger.kernel.org (open list:BROADCOM BCM47XX MIPS ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/2] firmware: bcm47xx_sprom: Fix -Wmissing-prototypes warnings Date: Sat, 25 Jul 2020 21:15:20 -0700 Message-Id: <20200726041521.5398-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200726041521.5398-1-f.fainelli@gmail.com> References: <20200726041521.5398-1-f.fainelli@gmail.com> Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org bcm47xx_sprom.h did not include a prototype for bcm47xx_fill_sprom() therefore add one, and make sure we do include that header to fix -Wmissing-prototypes warnings. Reported-by: kernel test robot Signed-off-by: Florian Fainelli --- drivers/firmware/broadcom/bcm47xx_sprom.c | 1 + include/linux/bcm47xx_sprom.h | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/drivers/firmware/broadcom/bcm47xx_sprom.c b/drivers/firmware/broadcom/bcm47xx_sprom.c index 4787f86c8ac1..14fbcd11657c 100644 --- a/drivers/firmware/broadcom/bcm47xx_sprom.c +++ b/drivers/firmware/broadcom/bcm47xx_sprom.c @@ -27,6 +27,7 @@ */ #include +#include #include #include #include diff --git a/include/linux/bcm47xx_sprom.h b/include/linux/bcm47xx_sprom.h index b0f4424f34fc..f8254fd53e15 100644 --- a/include/linux/bcm47xx_sprom.h +++ b/include/linux/bcm47xx_sprom.h @@ -9,9 +9,19 @@ #include #include +struct ssb_sprom; + #ifdef CONFIG_BCM47XX_SPROM +void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, + bool fallback); int bcm47xx_sprom_register_fallbacks(void); #else +static inline void bcm47xx_fill_sprom(struct ssb_sprom *sprom, + const char *prefix, + bool fallback) +{ +} + static inline int bcm47xx_sprom_register_fallbacks(void) { return -ENOTSUPP; From patchwork Sun Jul 26 04:15:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 11685475 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C577D138A for ; Sun, 26 Jul 2020 04:15:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A846A20773 for ; Sun, 26 Jul 2020 04:15:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Mds+cXhH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725298AbgGZEP4 (ORCPT ); Sun, 26 Jul 2020 00:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726106AbgGZEPy (ORCPT ); Sun, 26 Jul 2020 00:15:54 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67BD3C0619D2; Sat, 25 Jul 2020 21:15:54 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id a9so7335400pjd.3; Sat, 25 Jul 2020 21:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4WYzTUUdMZgoaXQcj1WqQmcltrZ3z5zlJgG5BDAvVq0=; b=Mds+cXhHNoz5AXlWOYXU3s73JA7XvAoKNrtZ0EoUYw/9juGs858oarelVHf6MWejx/ K9qwRNU48Io3CpDFBwMxYkMly/guogRkDhKc5l4Cfga+EVXIORgOW2e12NUAcOcdZKr6 oK52z8X0jkbOo/87p2Q5o9O+QLCnpKDmL+Avmq9S07uECG3Kh6MTBpGsxOZlNaFT1Wcm EJSyRBFw2X/6m3tRl0UnAJOcRaT3+hed9IcREYVk5eKDgZjYcsT7x7BN9f2MLYFpfix/ PA82QHvi9dKmU48qqAmpIedC24aGdFnWkx/FnvfnLjgVb4TxRXGoe+N3HJpIIfJr3Vcy kE5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4WYzTUUdMZgoaXQcj1WqQmcltrZ3z5zlJgG5BDAvVq0=; b=CQGXSaFWZXDKL9shWKH2aJ0QQ3xjSUTTd6elt3lAZ40pGFJRKcqqQcDKmTVqc2CRN9 n0XM/k0vB7pJ37YowTgAvP0kmahesETFSSW2OqVO2odok/cFTRjIhoQHAY4Qj495JYzU me6y2Uw1DRe5DJ+AW5HJoe+1vkseAHNY/ECta9Hw2LjdrV5sI+zrw2sIJR5qdsOo7G2f zXIWGwrd9vbSQWJ4QLnbsbtDlr/WGGIv6ujQTkiosFYryFCSjVEyCVlkgFaeWRJXqnLR 1bKavAt3llRNCIeVp96JkKXlVV8zIcR7eBpCycJqC7WAQoP+1+7sCefZ872WtXVx9V5e Wjrw== X-Gm-Message-State: AOAM53084VzbBvpedeXI+i2J0u9eoRTKDK7AbSytwZ1a+6HWIo2V7Moo fmbEnuSe3HOqiVaRtsmrCK0= X-Google-Smtp-Source: ABdhPJysTVPd/ymZRoYHMSRlnRVchHuwkNi4184gSgJMYsFYwQOSJsmMh6BDWtCwUSoGz2ypa3V9tg== X-Received: by 2002:a17:90a:648d:: with SMTP id h13mr11662239pjj.44.1595736954007; Sat, 25 Jul 2020 21:15:54 -0700 (PDT) Received: from localhost.localdomain (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id d16sm10725568pfo.156.2020.07.25.21.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:15:53 -0700 (PDT) From: Florian Fainelli To: linux-mips@linux-mips.org Cc: Florian Fainelli , Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Thomas Bogendoerfer , linux-mips@vger.kernel.org (open list:BROADCOM BCM47XX MIPS ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] MIPS: BCM47xx: Include bcm47xx_sprom.h Date: Sat, 25 Jul 2020 21:15:21 -0700 Message-Id: <20200726041521.5398-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200726041521.5398-1-f.fainelli@gmail.com> References: <20200726041521.5398-1-f.fainelli@gmail.com> Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Now that bcm47xx_sprom.h contains a prototype for bcm47xx_fill_sprom, include that header file directly from bcm47xx.h. Signed-off-by: Florian Fainelli --- arch/mips/include/asm/mach-bcm47xx/bcm47xx.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/mips/include/asm/mach-bcm47xx/bcm47xx.h b/arch/mips/include/asm/mach-bcm47xx/bcm47xx.h index d7f1ef246d5c..93817bfb7fb2 100644 --- a/arch/mips/include/asm/mach-bcm47xx/bcm47xx.h +++ b/arch/mips/include/asm/mach-bcm47xx/bcm47xx.h @@ -10,6 +10,7 @@ #include #include #include +#include enum bcm47xx_bus_type { #ifdef CONFIG_BCM47XX_SSB @@ -32,9 +33,6 @@ union bcm47xx_bus { extern union bcm47xx_bus bcm47xx_bus; extern enum bcm47xx_bus_type bcm47xx_bus_type; -void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, - bool fallback); - void bcm47xx_set_system_type(u16 chip_id); #endif /* __ASM_BCM47XX_H */