Message ID | 1686880293-29594-2-git-send-email-yangtiezhu@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1043323vqr; Thu, 15 Jun 2023 19:27:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ70iL56Z9n1dIXXRlFOCgAE2uKRHrPJ+e9rQFvTTbMb+1xU+EtjoHbvUCm7PP48P21ZcG5y X-Received: by 2002:a05:6a21:170c:b0:10e:a8e6:35c5 with SMTP id nv12-20020a056a21170c00b0010ea8e635c5mr855129pzb.59.1686882451729; Thu, 15 Jun 2023 19:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686882451; cv=none; d=google.com; s=arc-20160816; b=SLqvo6jG+1TfO8p1L66UqSmY6czniIh/uKL4ivDEa5S1ieAC1pYaNH/5BEZiXzz/Rt 31m2z6J0Hf42DdF9RnmaQKOiCELVvfxdrTg/db1brYtsXthaitx7wf4Asf425+jQwl3S 1+nz0kFwr7L+SFjHg/H3ka1I4obr6VLZKe+YrM6Fk8B/Lz9DonVEWu87PwC/xCsax4/d D1D9jkaTDRmyUe/rdB3zphzwVheMhjfI6fLiO6clTP/ig46N8+mSER9eAkqYt4EfURJ4 t6wBji870mnQMlDd5D6D6YGUkVbQBvVL1gOOkmujkoh3O0lz768Efj9vS7ad3HZevp6v HOxg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020aa797a7000000b006666b36b0desi3957257pfq.361.2023.06.15.19.26.49; Thu, 15 Jun 2023 19:27:31 -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 S238338AbjFPBvp (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Thu, 15 Jun 2023 21:51:45 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <yangtiezhu@loongson.cn> To: Luis Chamberlain <mcgrof@kernel.org> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768824453474168884?= X-GMAIL-MSGID: =?utf-8?q?1768824453474168884?= |
Series |
module: Do some small changes
|
|
Commit Message
Tiezhu Yang
June 16, 2023, 1:51 a.m. UTC
The return value of is_mapping_symbol() is true or false,
so change its type to reflect that.
Suggested-by: Xi Zhang <zhangxi@kylinos.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
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;