From patchwork Sat Dec 5 00:40:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 7773911 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CEC91BEEE1 for ; Sat, 5 Dec 2015 00:40:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 10E7B2063B for ; Sat, 5 Dec 2015 00:40:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2AB3E20639 for ; Sat, 5 Dec 2015 00:40:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932094AbbLEAkZ (ORCPT ); Fri, 4 Dec 2015 19:40:25 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:48765 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754700AbbLEAkY (ORCPT ); Fri, 4 Dec 2015 19:40:24 -0500 Received: from akpm3.mtv.corp.google.com (unknown [216.239.45.65]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DFA71722; Sat, 5 Dec 2015 00:40:22 +0000 (UTC) Date: Fri, 4 Dec 2015 16:40:22 -0800 From: Andrew Morton To: kbuild test robot Cc: Andrey Ryabinin , kbuild-all@01.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Sasha Levin , Randy Dunlap , Rasmus Villemoes , Jonathan Corbet , Michal Marek , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Yury Gribov , Dmitry Vyukov , Konstantin Khlebnikov , Kostya Serebryany , x86@kernel.org, linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH v4 3/3] UBSAN: run-time undefined behavior sanity checker Message-Id: <20151204164022.ae404aa5a78dd87d979ed60f@linux-foundation.org> In-Reply-To: <201512042231.PdGxWJsA%fengguang.wu@intel.com> References: <1449157807-20298-4-git-send-email-aryabinin@virtuozzo.com> <201512042231.PdGxWJsA%fengguang.wu@intel.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Fri, 4 Dec 2015 22:27:36 +0800 kbuild test robot wrote: > [auto build test WARNING on next-20151203] > [cannot apply to tip/x86/core kbuild/rc-fixes v4.4-rc3 v4.4-rc2 v4.4-rc1 v4.4-rc3] > > url: https://github.com/0day-ci/linux/commits/Andrey-Ryabinin/UBSAN-run-time-undefined-behavior-sanity-checker/20151204-202547 > config: i386-allmodconfig (attached as .config) > reproduce: > # save the attached .config to linux build tree > make ARCH=i386 > > All warnings (new ones prefixed by >>): > > lib/ubsan.c: In function 'val_to_string': > >> lib/ubsan.c:121:8: warning: unused variable 'val' [-Wunused-variable] > u_max val = get_unsigned_val(type, value); I did this. --- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/lib/ubsan.c~ubsan-run-time-undefined-behavior-sanity-checker-fix +++ a/lib/ubsan.c @@ -118,11 +118,11 @@ static u_max get_unsigned_val(struct typ static void val_to_string(char *str, size_t size, struct type_descriptor *type, unsigned long value) { - u_max val = get_unsigned_val(type, value); - if (type_is_int(type)) { if (type_bit_width(type) == 128) { #ifdef CONFIG_ARCH_SUPPORTS_INT128 + u_max val = get_unsigned_val(type, value); + scnprintf(str, size, "0x%08x%08x%08x%08x", (u32)(val >> 96), (u32)(val >> 64),