Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2397883ybl; Sat, 1 Feb 2020 21:11:37 -0800 (PST) X-Google-Smtp-Source: APXvYqy0DjT7N6FrzKsrv6GudZIQ98KXXpwjNNIBTRbbNK0Y6OXYdDHKBBCIC3t1M3MrJU1hrwPh X-Received: by 2002:aca:af09:: with SMTP id y9mr10445657oie.101.1580620297365; Sat, 01 Feb 2020 21:11:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580620297; cv=none; d=google.com; s=arc-20160816; b=A67N+4uyjagu79/zp2yXoRfvhVTLBtiW5sXEXuSEvL3k2G8Yp4wC/ojutaSlomi0Gw U3aG5Vq4lkSXhQPkFuVRgD+U0c7ooqQA52AtoD4uqIrt6FOaitsGh7QPkyfFfPpA3KC7 0s/9FyJE7aZ4XGUgp8vvZHcEUvvVeYO4rPUfzrrGsIcgStAFhjBaCb/m3jbYp9suNhgb QQ0Snjg3IlRzo2gC+hyzpi1dEFE0zddGJNnOFwwKuCCCDP27tI7tOcU4bGSWNW6V5qEp rlQej2XNjkbtJwQaFkWqqNiVfMLsASn0gQIdj39cYGUfDkSriByTDx9Rf/uPVIrlF9/z 7eIQ== 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=2v/7U9X2Qp7z2QLvT/nW2vuRmHa6cW+zJRprBKgnT/Y=; b=v53gyZIXS6L8eujhIEcbCHWC+daY7QjQxL802/oBHhfA8DVy+9GFV4zOeN3El6FcLh G8u4sTB5O1j+ozqg90O/tX9UUIzZr+4wELXNreGfltbKiTQ+iPkWcd4Mexd+/+qfkrTK ripW2vEdAreMKBLHn7vOUi9A0hembvtoh784l5nNwqxyZGFbcuRd7a/Op/KM/Smgyctx eEWfQfyqOtLAbjGLnIvaWNwe5MkD4NR/ZPA4jqNWN3fEBqkFyP8mfX1s3myHzGsPkRys ZhZL3pzXWhl72tST76yxPrwP07WHpFyQL1tBjx0+QGycVCNSLDl6DxKoqPQKADIFW6/s BmMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="WMhW0/Cs"; 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=fail (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 t3si6653787oig.25.2020.02.01.21.11.05; Sat, 01 Feb 2020 21:11:37 -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="WMhW0/Cs"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726921AbgBBFKJ (ORCPT + 99 others); Sun, 2 Feb 2020 00:10:09 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:58679 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgBBFKI (ORCPT ); Sun, 2 Feb 2020 00:10:08 -0500 Received: from grover.flets-west.jp (softbank126093102113.bbtec.net [126.93.102.113]) (authenticated) by conuserg-11.nifty.com with ESMTP id 01259SCb026546; Sun, 2 Feb 2020 14:09:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com 01259SCb026546 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1580620170; bh=2v/7U9X2Qp7z2QLvT/nW2vuRmHa6cW+zJRprBKgnT/Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WMhW0/CsotXG4ZcVQGOMx8A5baPUx6bkpXJ3dKGgnDmY3vO2+SsPevLkAQoFQx/Zh /vjbnpWVYI5ugvU3uo/GfH5EanX0PUErp0G4QKnC38jYRklLZ9/AKr64jOhBvgfGGf A6PuPtu4wf1FEY2qITNhnbe5c+xIMFwsTTHoxoKeomXsXZ0qRaSIO5PXNnDb47SKKi 507rPjZ1SGQty1hweR4ZshgU4rv0zrb1dNy+Uu7LYUIR4AC80audAhsgOu+uE1O9Jm bNyY59vMSSnMABQ38pMs53B2UtAmagFB7tlN2CtLXWv4NYBjgn9CBuUJK5A4GujoDm 6BNxlwQAusQwQ== X-Nifty-SrcIP: [126.93.102.113] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Greg Kroah-Hartman , Marc Zyngier , Masami Hiramatsu , Thomas Gleixner , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] kallsyms: fix type of kallsyms_token_table[] Date: Sun, 2 Feb 2020 14:09:22 +0900 Message-Id: <20200202050922.12402-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200202050922.12402-1-masahiroy@kernel.org> References: <20200202050922.12402-1-masahiroy@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kallsyms_token_table[] only contains ASCII characters. It should be char instead of u8. 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