Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3206157ybl; Sun, 2 Feb 2020 17:34:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxThGVZqZ5goCdmU04Kw7zZkGauQehihDQTxCCuitvubKc5wGl9GG2npcDooo5ckDI1C7v6 X-Received: by 2002:aca:c551:: with SMTP id v78mr13388238oif.161.1580693665679; Sun, 02 Feb 2020 17:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580693665; cv=none; d=google.com; s=arc-20160816; b=ySrNjG8PnxPKnzy0S/6urupSSkV9f9PrjXybu2qYcN7Zo5wcryEUO0ndpyJw+uoA0i hFC4J1o9EawohVdXR20STffFA4rDp06jZPZBKh3AfXRTJ4BM81XdlT1YqN2ladVAcGwi bXuSp2aVQP0cWtp9w3Sy6MnJVQUPXE/lRKfYtXv0sDJbTwM2mWotTKsK6KMlIranBr/8 yWZd7XT5on1xIWWTFJMQzpCJmx91RYUygk55AdY7ghrKjDKjKFDljGRlY1bBHXd4BAEh 6MXshMl2ZXn/qdd+dLszboQNnjn+F8v1z+KLCOHxBKXDko6pAuFAHCmrPSnlEoiX8Abx Zg8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=J1TW4DhvegigokDBSIrl79z9CWWoKlfgI2nEOi3XLc8=; b=cSbYzHwLShwb8ruYfb1dQKyfuDo1pmgct1e58Cg7Dth+QgjeWcoXZWNsyAkU3c4m17 rT+2A6N7IkdF/YP3p7t2D72kahCj/EBaVc4uMgHhRGDhnc9uLJj7nTYf9ExECbdNCVpq t84DXTk8/qwk/sYAT8TGfRhb6mQz0yn05l0oAeO6kXioOyDF4Rw/Iz5/Bx1avTUT1dch FAsQMfnk6+nMnDKgmMdABbDFrF+p7RRwLw05m/Q/zOsMbFUgooJA1wYLBG2WMaHGIc8i mV0VJfw8yIax7CGCK3XPoYfjWRZ8gW492G8mECI5NLInpYx48AB4Hr9xFVwnSqZHx6HE eoQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="uvZ/C2d1"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p28si8266947oth.296.2020.02.02.17.34.13; Sun, 02 Feb 2020 17:34:25 -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=@kernel.org header.s=default header.b="uvZ/C2d1"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727199AbgBCB2P (ORCPT + 99 others); Sun, 2 Feb 2020 20:28:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:52434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbgBCB2P (ORCPT ); Sun, 2 Feb 2020 20:28:15 -0500 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AE96F20661; Mon, 3 Feb 2020 01:28:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580693294; bh=W0peBJrDi6x/1N6YOstYcNVeYP8M7k/WABnYabfP5CM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uvZ/C2d1FMK5YyfCJvqaqy2sJ9zRxjWIu76YffAipKyFgniuU33gHbj4UVUzUwCZo 9k2Hrqc50r3+isR1lffpVOryBtg1NmHCI4tud0U79buOut1dlpEDh3RSC83nmwFF96 nSmo8o2kS2YmW4hWNZcMtDUUZ8MVRgtw/Z2TAbnY= Date: Mon, 3 Feb 2020 10:28:09 +0900 From: Masami Hiramatsu To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Greg Kroah-Hartman , Marc Zyngier , Masami Hiramatsu , Thomas Gleixner , Will Deacon , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] kallsyms: fix type of kallsyms_token_table[] Message-Id: <20200203102809.7626e0bf9b83afc84c031f4c@kernel.org> In-Reply-To: <20200202050922.12402-3-masahiroy@kernel.org> References: <20200202050922.12402-1-masahiroy@kernel.org> <20200202050922.12402-3-masahiroy@kernel.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2 Feb 2020 14:09:22 +0900 Masahiro Yamada wrote: > kallsyms_token_table[] only contains ASCII characters. It should be > char instead of u8. Indeed. Reviewed-by: Masami Hiramatsu Thank you, > > Signed-off-by: Masahiro Yamada > --- > > kernel/kallsyms.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c > index 136ce049c4ad..53f84f685841 100644 > --- a/kernel/kallsyms.c > +++ b/kernel/kallsyms.c > @@ -44,7 +44,7 @@ __attribute__((weak, section(".rodata"))); > extern const unsigned long kallsyms_relative_base > __attribute__((weak, section(".rodata"))); > > -extern const u8 kallsyms_token_table[] __weak; > +extern const char kallsyms_token_table[] __weak; > extern const u16 kallsyms_token_index[] __weak; > > extern const unsigned int kallsyms_markers[] __weak; > @@ -58,7 +58,8 @@ static unsigned int kallsyms_expand_symbol(unsigned int off, > char *result, size_t maxlen) > { > int len, skipped_first = 0; > - const u8 *tptr, *data; > + const char *tptr; > + const u8 *data; > > /* Get the compressed symbol length from the first symbol byte. */ > data = &kallsyms_names[off]; > -- > 2.17.1 > -- Masami Hiramatsu