From patchwork Sat Nov 23 13:27:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 180098 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp736389ilf; Sat, 23 Nov 2019 05:28:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxjvutadAosa98JytQCC5fmQWg0uMWpI8uHLLhed6IRe5GkStoOu6GVQ8yVeadhS96b4pqC X-Received: by 2002:a05:6402:2049:: with SMTP id bc9mr7346347edb.56.1574515734809; Sat, 23 Nov 2019 05:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574515734; cv=none; d=google.com; s=arc-20160816; b=mrvfAQGnT/eJpEkQ5z38yfoXx0zH1ARi6BD8EDL5QW5bpvamBQxf6cxwMB0yg1C9JB 6DwkSqnwkLg5UepTn0iVFnS4xCK+FXtoDvsQaUffUJAAkNaNNCpp4Gossf2yiTZ9y2Uf f0tao44LhCdneDyz3rRuU7u08l5XNZ8IC9AaoKsu1A6aYYbhNUE/WqJd+hUaWaILpTTf LMZ6BLIK6Qn7ugNAq+MBuHig/PBHWfHAXbDD+wagGi8PU7s6u8JN/N72vNfw/3hXLx5t CQCkvWRU12tDskppU99hVXwXD6jvwcEVtiFKcX0y9ZyKKj6ly83zoVgkCGMJa/CFY5/z ScaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=yRF2y3vF9C7Zci91xsHHxMzbjmKu+VkByjExrmElrLw=; b=ufWr7rh2IJ5bSt71iwXtS6I9R4hdR+sQdxbTU7IJC7HfdzhQ7SupcoqQUNFRjx2jJ3 hauhS5n/Bu9dcZVWn/nm3WPQZkwx0gouIOqz6aAZQ9Cu2sEz9yAJGOUz8S8RW9C+dHm2 Ef2LIWmW6Kkjn+mEqABk2MBDISl3tIDfVH+g7YJfWUfR13yBVtakQ3roXsTRTTY8/EHp TmBaNelY2xpF5ZGkms3ooZkOjGAsrGS1MDl/6qsztejH01w9JbUe3fIUt56mOnsOCvwF KqkxKlmm35RM2H71gT7YXKZi3eC4UDy+7vrls1Cg2X8OzUW3sEUhhjPZ05gWH0fPHdoy LgfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="IBzj/6q7"; 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 s21si749395eju.82.2019.11.23.05.28.54; Sat, 23 Nov 2019 05:28:54 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="IBzj/6q7"; 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 S1727259AbfKWN2w (ORCPT + 26 others); Sat, 23 Nov 2019 08:28:52 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:39535 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbfKWN2A (ORCPT ); Sat, 23 Nov 2019 08:28:00 -0500 Received: from grover.flets-west.jp (softbank126093102113.bbtec.net [126.93.102.113]) (authenticated) by conuserg-10.nifty.com with ESMTP id xANDRbkh000733; Sat, 23 Nov 2019 22:27:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com xANDRbkh000733 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1574515662; bh=yRF2y3vF9C7Zci91xsHHxMzbjmKu+VkByjExrmElrLw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IBzj/6q7RtiAFwtZwDOxwgbmWOQJxTLhfJ/YpLZW8YexI1LOIFB8mmvB17aYxaoLf XEinzqXo9GkOUyfQmjUPSSj8PgbjlS9pt8GuXQdl02fsGxZATqidDHd+B6nTBxTKfH 3f2iTj/f4GPfMfvUi5YnurpMNdsriOPx830y+Hysphf19Z1LcTL6UO19y+IAmPXA5C zFNdcDVFspXn9IrR7KLIuukkRjf9FGYNj0WmN5vupnviOFnaNZUho5tVDRrMIk0Bfy 2mqdQ2Htlvsn542ufSmpmYeSHRiZ1MBbYhA82VJvwJHM0UUJlmiRKSIaNQUvgxJTPp qM1oejpG0s14A== X-Nifty-SrcIP: [126.93.102.113] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 08/16] scripts/kallsyms: make find_token() return (unsigned char *) Date: Sat, 23 Nov 2019 22:27:19 +0900 Message-Id: <20191123132727.30151-9-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191123132727.30151-1-yamada.masahiro@socionext.com> References: <20191123132727.30151-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The callers of this function expect (unsigned char *). I do not see a good reason to make this function return (void *). Signed-off-by: Masahiro Yamada --- scripts/kallsyms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index a007d901c3a5..c4f7f20ecfb7 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -489,7 +489,8 @@ static void build_initial_tok_table(void) table_cnt = pos; } -static void *find_token(unsigned char *str, int len, unsigned char *token) +static unsigned char *find_token(unsigned char *str, int len, + unsigned char *token) { int i;