From patchwork Sat Nov 23 16:04:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 180114 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp887021ilf; Sat, 23 Nov 2019 08:05:52 -0800 (PST) X-Google-Smtp-Source: APXvYqyToRczzVzmPBEiNPkDab5h3P0ZTstHs7bAnfjhqkTMYy9i8SrDI/0axTYCqPew4G4IJDEt X-Received: by 2002:a17:906:5604:: with SMTP id f4mr1832513ejq.255.1574525152133; Sat, 23 Nov 2019 08:05:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574525152; cv=none; d=google.com; s=arc-20160816; b=jA4FJWEfebWdFbveQcDA27oH+7ab79yF74cx1RQYS1Crsgz5WFi4dHUxUb9M1UZ2YC lkb2pT34boTs+WM1mfTNud9LWJtlitt+vCnRMNLhzDHt0Ku9xPsIh1vU/6lttcOo7fw8 XXgjeDwaT28PwnwEL5Lg2da/9asy+vyk/ML6Scg6eLEZoZLVxrlL0Thw4ekow/fVijuP kQ4I4iTh/vwfxWVUjYkkJ0210nVH9QwRx0abXhCVgTyAKp4TWGUsqnwpmY9n86taEByK Qq9+CqeV5Glj1AvC17cQnuqoCA1CoktGyvVZTsFKjuL4fr9H88vbJlzf7GXFLFHqR6Uk pqIA== 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=ST5LRkJJeHH7On7Bbq1YlVG0Rs9L/Y4/DythexYfliU=; b=Filja+BfKbAlOAR00CeFqr3oiVv4mPLbnWynG6S6559zJj8BZMhzFUkL82t6e0dlgi dU84mSok+ppEebdiUMkT8ZnsMt2sd9pjAGHYDqRoAs0oVm6qD/Dn/QMzVVd7AuWg4Yj2 zQXJ3k+UOdptgABChX7xRiH0LUTxt/gDtWxrHFBTN4I2vSmMKMX4GGkJBPyzGoprLwQa PhfelgGc0qnPOwGjcpCFbQZrBsGsGOYaQVYfqOQfOpKdRjTbw/lDrx8nEUIle+mvlyEd KJX+BjTwE5aeLUY+V+u8ld+RDzzGhz9Pj9VNNGqEEkklamE7Sh20iJfA4jFPH4w0oiq3 pORA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=NQSJuzMy; 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 i14si1057566edr.68.2019.11.23.08.05.51; Sat, 23 Nov 2019 08:05:52 -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=NQSJuzMy; 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 S1727233AbfKWQFq (ORCPT + 26 others); Sat, 23 Nov 2019 11:05:46 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:49446 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbfKWQFB (ORCPT ); Sat, 23 Nov 2019 11:05:01 -0500 Received: from grover.flets-west.jp (softbank126093102113.bbtec.net [126.93.102.113]) (authenticated) by conuserg-12.nifty.com with ESMTP id xANG4l5Q019106; Sun, 24 Nov 2019 01:04:52 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com xANG4l5Q019106 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1574525092; bh=ST5LRkJJeHH7On7Bbq1YlVG0Rs9L/Y4/DythexYfliU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NQSJuzMyjfcrZ60At93JKcETtagGnDncoY8ShgTiWSEH3PwcQnMWfM9HSyaIwVt/+ ooeDAihoomWwymaLfST4PPkx7zou4KtnMlCsbXXM2zjW7IqiPaOG/vKq6mss9QUx8N XKaAVfU1tYwz/tEeoR3GCGo5e+L9XS58/uZHwpMtQgQkZ56oWYZkoKZkh2hp6O8m1S xkJco+A9rwomJJH0w/zYJ9fCHkk5F0JIIKEvkUs5SKs+ncqYcmtI81PNKWNRHBya65 j+Xqc0JhhFGsH5m5ozQpRjFDNWHcqgcnSPmhlybii0wLlP9IjGpktiMmORvhk1zex1 Pnu0KkPAkgcjA== 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 v2 09/16] scripts/kallsyms: make find_token() return (unsigned char *) Date: Sun, 24 Nov 2019 01:04:37 +0900 Message-Id: <20191123160444.11251-10-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191123160444.11251-1-yamada.masahiro@socionext.com> References: <20191123160444.11251-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 --- Changes in v2: None 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 89cc7c098c51..274a77bfbd63 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -503,7 +503,8 @@ static void build_initial_tok_table(void) learn_symbol(table[i].sym, table[i].len); } -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;