Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1943679rwd; Thu, 15 Jun 2023 18:56:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5WOH43SVzkeCd1FbhM42ZHCIOg56aOgtyWs5gzeiIaVJdBZVZFH2dRlQQZ8+ZQ4egYjwPv X-Received: by 2002:a05:6358:a19:b0:129:cb15:c2fd with SMTP id 25-20020a0563580a1900b00129cb15c2fdmr419012rwa.10.1686880593402; Thu, 15 Jun 2023 18:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686880593; cv=none; d=google.com; s=arc-20160816; b=hJ7WnvRAAgHFD4uAsRX+QbN42vtmnkTnbp8jco8mvGVT+3X06ojApovbhbHaZzlwlS IfWlIBIRvpQh+pL35YPhcQ8SExxI8LKhjKRvaLk8zu/a8P5D1G/72z3u52h/Pq/mFF6h 2muSY2t7PPX7hJQ/3uxIXvdnylZJj+GYnLfGymeHp9sOs44a4c0IWv0U12fQY9SigrXE igcsUyYa7RuJMRpeZvSwbp5XLA24xq5M2fB9n+uo2BzkQAgaHGhwPhIiiOOnPiEa+seH NFUSCXw8c56fhLSCBOugK6KwdjzSFFJUkacp64kjRXzsY4Og5mIp6mTOG1Rp+n4TukXE RW2Q== 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=W/61duY75gA0ZVR8XnVHh+SjgPV7+y0iCACM7YmbJPY=; b=ktYBAZCrkLSmb8L84oD9qjiLjIbUNqcxJtT6RaTcbwVXed46/NKvm7YqCYqfDSb8LQ FAst9RrcmH0yNbHJXWKj/MO74a2J6UDWxmt9vhdThiB9RE0fVyRLd178YjgXR4TkfM78 JG34piI1QhBmPwu21a7Wfqo05PM7/s56sp6uf8YvICJp5bNldVyRJKilFmzvKuRQuuIP fg5z8+xiAej5/KpdAbQmrNiB/tnovJK7Df2tC9yPsimMIpOI+k4eo5LKGqMoKYAlYY+U Bz9NM0Yth2jWLlpf+tfgureOEcF4LHHVH86EyVCg/NjHEW3YJkXLky9Nj03EBnvvTobz s02A== 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 81-20020a630054000000b0054fe14d3b02si3715401pga.543.2023.06.15.18.56.20; Thu, 15 Jun 2023 18:56:33 -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 S238285AbjFPBvo (ORCPT + 99 others); Thu, 15 Jun 2023 21:51:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjFPBvk (ORCPT ); Thu, 15 Jun 2023 21:51:40 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95EC8296E; Thu, 15 Jun 2023 18:51:37 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8CxOuonwItk5skFAA--.12478S3; Fri, 16 Jun 2023 09:51:35 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxPMolwItke7wcAA--.6951S3; Fri, 16 Jun 2023 09:51:34 +0800 (CST) From: Tiezhu Yang To: Luis Chamberlain Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH 1/2] module: Make is_mapping_symbol() return bool Date: Fri, 16 Jun 2023 09:51:32 +0800 Message-Id: <1686880293-29594-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1686880293-29594-1-git-send-email-yangtiezhu@loongson.cn> References: <1686880293-29594-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8AxPMolwItke7wcAA--.6951S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Xr1xtr1fZw1rXw1kGFWDZFc_yoW3Zwb_u3 4xGr45WryrZFy8uw4Iv3ZrJF1Sgw4rGFsxXFykXa1xAa4qyFs8K340qr93tw4UGFZ7CrWf Ga1fWF1SgFy7uosvyTuYvTs0mTUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb7xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8 JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4 xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v2 6r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwI xGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480 Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7 IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k2 6cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxV AFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jOb18UUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The return value of is_mapping_symbol() is true or false, so change its type to reflect that. Suggested-by: Xi Zhang Signed-off-by: Tiezhu Yang --- include/linux/module_symbol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/module_symbol.h b/include/linux/module_symbol.h index 7ace7ba..96d2896 100644 --- a/include/linux/module_symbol.h +++ b/include/linux/module_symbol.h @@ -3,7 +3,7 @@ #define _LINUX_MODULE_SYMBOL_H /* This ignores the intensely annoying "mapping symbols" found in ELF files. */ -static inline int is_mapping_symbol(const char *str) +static inline bool is_mapping_symbol(const char *str) { if (str[0] == '.' && str[1] == 'L') return true; -- 2.1.0