Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1707126rwb; Thu, 29 Sep 2022 00:42:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7fCuYUeD2gnFKeSqdTmbZpFGyDMxu4RuzI2R5U6EDUJ5Pv3fTWFIkOBNgRLYHoCYJRlXkh X-Received: by 2002:a65:63ce:0:b0:43a:2103:b7b8 with SMTP id n14-20020a6563ce000000b0043a2103b7b8mr1828940pgv.59.1664437343044; Thu, 29 Sep 2022 00:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664437343; cv=none; d=google.com; s=arc-20160816; b=h1xonlMzEauvoBRmO/1+seC8UcyzX+99lzPNh1GwXP/ultFX/4Did/hQ1q9n37rn6m QNsIpS5Uvt0Rx+ivO1bc+dcSUEsm/7DUP4TeUUikjtvA1q+besn1v5b3KZBhBO/xVhuL TwUS6UZlttRm6nQDunApK2Q2XkL5Fx91UI1M1cFzQZql0RgePmfU0N2kxM0vDDxDKe7E uwMvW8oEMGu6UGsNOKo0zIkd5G5eo12JE9IO5k9f/+Z0dVGNVNVp0N05dU8f6feqVVGK x/3QeBGGnO9XeUfCTmm2TCSDqLZ13gtGkADl+2iM/MdEH6NSXRwK/eSUyqdfJcU/SQcp DXjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=wnvQ7k9ncZ3uP8DsKeaazEkgQqcgKtqq8IaJeL7tqqM=; b=UaZWZoCAbnsUBNQ/Rer1qgZWPq0QXmQeh9dCWOgTr9903vjXN7HZMCycEY13vn8Ur7 vikeP2FGQncipuq4z2L0sYPFNeh1M7nvGUn0qaiHZK7E71JgIAFPYN0o8sXMRY564c1a 2JVqRmanQJGiOMTpJviw83Dod9rSFiE+ycJxK7VAw708oJqjbaAll+NoFQ/LxDnRXYmR V3LjXvKbyyANJdhEwjZnJVpLyoDTH0VNDUY4tWZmSNsZmgdoBfsDJ5EpHdoW3OzQaqP6 VE67yhzilItDT8d2N/SpGIk4FJz+pcu3M7Nn5FWE1x/cNtBfw8BPoEVpaFJ7mCc6nTjW Pnaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r7-20020a63fc47000000b0043c64129466si7943068pgk.381.2022.09.29.00.42.11; Thu, 29 Sep 2022 00:42:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235339AbiI2HkM (ORCPT + 99 others); Thu, 29 Sep 2022 03:40:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235350AbiI2HkH (ORCPT ); Thu, 29 Sep 2022 03:40:07 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EC10F41D22; Thu, 29 Sep 2022 00:40:05 -0700 (PDT) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxTWvOSzVjdKwjAA--.5668S3; Thu, 29 Sep 2022 15:39:59 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] MIPS: Silence missing prototype warning Date: Thu, 29 Sep 2022 15:39:57 +0800 Message-Id: <1664437198-31260-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1664437198-31260-1-git-send-email-yangtiezhu@loongson.cn> References: <1664437198-31260-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8AxTWvOSzVjdKwjAA--.5668S3 X-Coremail-Antispam: 1UD129KBjvJXoW7Kw45Ar4ktF4kCF47Ary3twb_yoW8ZrWDpa 1j9an7KFW0g3W8KF98Zryvqr45Jrn0ka4jqFW2yr1jvFyDXa15Jr1xA3sxGr1fGr9ayFy2 kFy5XF1UKF4Iyw7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUB0b7Iv0xC_tr1lb4IE77IF4wAFF20E14v26r4j6ryUM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI 8067AKxVWUGwA2048vs2IY020Ec7CjxVAFwI0_Jrv_JF4l8cAvFVAK0II2c7xJM28CjxkF 64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcV CY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv 6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c 02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE 4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc2xSY4AK67AK6r4xMxAIw28IcxkI7V AKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCj r7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUXVWUAwCIc40Y0x0EwIxGrwCI42IY6x IIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAI w20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x 0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU2MmhUUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Silence the following two warnings when make W=1: CC arch/mips/lib/bswapsi.o arch/mips/lib/bswapsi.c:5:22: warning: no previous prototype for '__bswapsi2' [-Wmissing-prototypes] unsigned int notrace __bswapsi2(unsigned int u) ^~~~~~~~~~ CC arch/mips/lib/bswapdi.o arch/mips/lib/bswapdi.c:5:28: warning: no previous prototype for '__bswapdi2' [-Wmissing-prototypes] unsigned long long notrace __bswapdi2(unsigned long long u) ^~~~~~~~~~ AR arch/mips/lib/built-in.a Reported-by: kernel test robot Signed-off-by: Tiezhu Yang --- arch/mips/lib/bswapdi.c | 4 +++- arch/mips/lib/bswapsi.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/mips/lib/bswapdi.c b/arch/mips/lib/bswapdi.c index fcef7408..1d020e1 100644 --- a/arch/mips/lib/bswapdi.c +++ b/arch/mips/lib/bswapdi.c @@ -2,6 +2,9 @@ #include #include +/* To silence -Wmissing-prototypes. */ +unsigned long long __bswapdi2(unsigned long long u); + unsigned long long notrace __bswapdi2(unsigned long long u) { return (((u) & 0xff00000000000000ull) >> 56) | @@ -13,5 +16,4 @@ unsigned long long notrace __bswapdi2(unsigned long long u) (((u) & 0x000000000000ff00ull) << 40) | (((u) & 0x00000000000000ffull) << 56); } - EXPORT_SYMBOL(__bswapdi2); diff --git a/arch/mips/lib/bswapsi.c b/arch/mips/lib/bswapsi.c index 22d8e4f..02d9df4 100644 --- a/arch/mips/lib/bswapsi.c +++ b/arch/mips/lib/bswapsi.c @@ -2,6 +2,9 @@ #include #include +/* To silence -Wmissing-prototypes. */ +unsigned int __bswapsi2(unsigned int u); + unsigned int notrace __bswapsi2(unsigned int u) { return (((u) & 0xff000000) >> 24) | @@ -9,5 +12,4 @@ unsigned int notrace __bswapsi2(unsigned int u) (((u) & 0x0000ff00) << 8) | (((u) & 0x000000ff) << 24); } - EXPORT_SYMBOL(__bswapsi2); -- 2.1.0