Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2651005pxk; Mon, 14 Sep 2020 21:04:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRazdReSHN3ncblwW/FuH6REpm0ZukpK2A/6Pd1CjUspIiSmpSbuCWYYixjAl53FESq5Ob X-Received: by 2002:a17:906:cb98:: with SMTP id mf24mr18674474ejb.90.1600142667534; Mon, 14 Sep 2020 21:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600142667; cv=none; d=google.com; s=arc-20160816; b=wrpReVhITk9zTXFa8N8ZWuTehEf3Jdci6ZvFlntPb9UYXXgVLrsTXLtkOqzjhbZAhb 1BsDQQ1PbjdZJTc0R/MbKHw7EVrxTwVg/vNTsRKUbv4hyeHV8yMeAtVSKazPynqNDLSH 900+499pNOt03/aw7TieKhmlrPaauLDBug6ZmewA9RUaWBXZ2mnLds1kqvKSXueGVw9N nkbM5QRTjrnS56aB5B/9vkgv+wcuCsp/Jvoo/AgLzuC+6wwhf8JIHX5I7VppYA0hwdB4 v/pZ4ppcNwBAuoyn2Dv4FHxnx/zEzRgoRO4+NnYKI0VcrDcBa0GZQBCwE2xmsG/eUS2f BbIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IdWyBJyS0oKhGVRiD+UrbYCxAhuM82RyBR7Rd+xcd8M=; b=osQQ/IV8TUp9IYKSJCsID0uipL1siQNGNkzIxbinq1mWj4VtMmDBIYCHcPRozVNMEQ Xjz0FTwDpz0QxWjf/OGOEZy3UHqgRw15F+uBeE4Rk8f498BIy8lgeTi5tVmmgaQKpziW 7TjEm2znCcRBBe4Wh66SrSbsb1amiieAINLh1xU93HrP4Yf0wcRij5qN0rKzpXdM7yBm RfQhlC+N4UAbzDlsf3YXykzlGC/lhT4zgaAnaUqOcmYrIbm/N7ISdqYL7oKsOhpgCWZS JUg32QPEXGZCpW+eLPlD5JvgvIeS5cMsIIMpyNguFWwGjgXzayILpeIa5Srtm24g3bQI eVpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hahHnwMl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si8643730ejc.572.2020.09.14.21.04.05; Mon, 14 Sep 2020 21:04:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hahHnwMl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726085AbgIOED1 (ORCPT + 99 others); Tue, 15 Sep 2020 00:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbgIOEDW (ORCPT ); Tue, 15 Sep 2020 00:03:22 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D95F0C061788 for ; Mon, 14 Sep 2020 21:03:21 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id l9so1968409wme.3 for ; Mon, 14 Sep 2020 21:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IdWyBJyS0oKhGVRiD+UrbYCxAhuM82RyBR7Rd+xcd8M=; b=hahHnwMl5tDjgeiwqIfxSVa4NhrpgF88zGK0AneZ4a/mNpNIMZoHBSsgM8RxI/Jff+ 3dRX6e9D6llaSDJMzaSosHZQpVXS465byBBtGRAMUMhCDUZ04SdRcw8XduyQHPPXl5i1 okEv0pQdTPYWTNOwjthyGUWrildF0hMjodSvcSEzms71NtuuJR7JpUuiUbwJSm9vsZkW /xDeq1xv/zfbKny0yIgrpONvzzeeKxfvqQ+O55x5Zc1D2r6vSBh+Jn2f23DXITEQgSWm kBZfJm4LXHY9rnyBjHOSNKVvV58Tn0fO9k/zegWigCO07UZKFe5XucnNNq3iejBOBAUf XosQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IdWyBJyS0oKhGVRiD+UrbYCxAhuM82RyBR7Rd+xcd8M=; b=N9TfsJehAlSZ5ZI6KJ0pFrWY9JU6eMbwA2lRSe6zNqVodW03bGQd/VDJQ0zrRSHqRY bqlzeEcPveYM7ArNCGMzCBSGM76ctofR8VrQ5ylEM69SLcUjhtJEOzVchjhmhBtBxgh1 JzViPjV+pqs0wqh2+m5Oxy7BKU6bZZN9OmHZsj7xMGldI3bJAElRsjCXF11lCyPXtHQ2 PIN+jTOTWzm5dHMF4/8jtv+0O2yvOtNk3KxH7erYdmAGdfj0IDtjqE/nqVnRY+fkwoFT 9cxjttEN0vZat4jN2jwNNRW877qz2eW/LFRas0n/e/ZP3upnlwtljaRH2bnfbjskJf6S CdvQ== X-Gm-Message-State: AOAM531IxKA37VMkIxc1pipGmGPfbiR5TkCEBuHQ7/2f9kgPy8N4Z3iE 2m36MH9s8T3BK+cLvbzZgNZPmIl0FXSc7vOe3WjT2w== X-Received: by 2002:a7b:c2aa:: with SMTP id c10mr2445837wmk.86.1600142600065; Mon, 14 Sep 2020 21:03:20 -0700 (PDT) MIME-Version: 1.0 References: <20200914170055.45a02b55@canb.auug.org.au> In-Reply-To: <20200914170055.45a02b55@canb.auug.org.au> From: David Gow Date: Tue, 15 Sep 2020 12:03:08 +0800 Message-ID: Subject: Re: linux-next: build warning after merge of the akpm-current tree To: Stephen Rothwell Cc: Andrew Morton , Patricia Alfonso , Linux Next Mailing List , Linux Kernel Mailing List , kasan-dev , KUnit Development Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+kasan-dev, +kunit-dev] On Mon, Sep 14, 2020 at 3:01 PM Stephen Rothwell wrote: > > Hi all, > > After merging the akpm-current tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > In file included from lib/test_kasan_module.c:16: > lib/../mm/kasan/kasan.h:232:6: warning: conflicting types for built-in function '__asan_register_globals'; expected 'void(void *, long int)' [-Wbuiltin-declaration-mismatch] > 232 | void __asan_register_globals(struct kasan_global *globals, size_t size); > | ^~~~~~~~~~~~~~~~~~~~~~~ > lib/../mm/kasan/kasan.h:233:6: warning: conflicting types for built-in function '__asan_unregister_globals'; expected 'void(void *, long int)' [-Wbuiltin-declaration-mismatch] > 233 | void __asan_unregister_globals(struct kasan_global *globals, size_t size); > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > lib/../mm/kasan/kasan.h:235:6: warning: conflicting types for built-in function '__asan_alloca_poison'; expected 'void(void *, long int)' [-Wbuiltin-declaration-mismatch] > 235 | void __asan_alloca_poison(unsigned long addr, size_t size); > | ^~~~~~~~~~~~~~~~~~~~ > lib/../mm/kasan/kasan.h:236:6: warning: conflicting types for built-in function '__asan_allocas_unpoison'; expected 'void(void *, long int)' [-Wbuiltin-declaration-mismatch] > 236 | void __asan_allocas_unpoison(const void *stack_top, const void *stack_bottom); > | ^~~~~~~~~~~~~~~~~~~~~~~ > lib/../mm/kasan/kasan.h:238:6: warning: conflicting types for built-in function '__asan_load1'; expected 'void(void *)' [-Wbuiltin-declaration-mismatch] > 238 | void __asan_load1(unsigned long addr); > | ^~~~~~~~~~~~ [...some more similar warnings truncated...] Whoops -- these are an issue with the patch: the test_kasan_module.c file should be built with -fno-builtin. I've out a new version of the series which fixes this: https://lore.kernel.org/linux-mm/20200915035828.570483-1-davidgow@google.com/T/#t Basically, the fix is just: diff --git a/lib/Makefile b/lib/Makefile index 8c94cad26db7..d4af75136c54 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -69,6 +69,7 @@ obj-$(CONFIG_KASAN_KUNIT_TEST) += test_kasan.o CFLAGS_test_kasan.o += -fno-builtin CFLAGS_test_kasan.o += $(call cc-disable-warning, vla) obj-$(CONFIG_TEST_KASAN_MODULE) += test_kasan_module.o +CFLAGS_test_kasan_module.o += -fno-builtin obj-$(CONFIG_TEST_UBSAN) += test_ubsan.o CFLAGS_test_ubsan.o += $(call cc-disable-warning, vla) UBSAN_SANITIZE_test_ubsan.o := y -- 2.28.0.618.gf4bc123cb7-goog > drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c: In function 'common_nfc_set_geometry': > drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c:514:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] > 514 | nanddev_get_ecc_requirements(&chip->base); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > I was unable to reproduce this warning: it looks unrelated, so I'm assuming it was attributed. > Introduced by commit > > 77e7d1c8c356 ("KASAN: Port KASAN Tests to KUnit") > > -- > Cheers, > Stephen Rothwell Sorry for the mess, -- David