Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp765172ybj; Tue, 5 May 2020 07:15:17 -0700 (PDT) X-Google-Smtp-Source: APiQypJu0jZmVifwRXbxNxjYeybwoG73hHcaBqQeEVZc7M3WwiKRpMeqd/bmujVRLKH7tWeVEws1 X-Received: by 2002:a05:6402:3046:: with SMTP id bu6mr2842899edb.106.1588688117447; Tue, 05 May 2020 07:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588688117; cv=none; d=google.com; s=arc-20160816; b=BZCBi68ZbzcqBmDp6VHp6odoUEceKuGPfP9okhsDs8aZcDR1AV+/MUuNmkivnfFzJ6 RXOpY9vk5xrh30yb7BD3EAi4clkKMsPO8xIG8W0YgzBohG2CyVrqv0DFHsr7LUYVFvVK bS1z+RDhPg56wrHZpjAWgCjzDZcMS995VvTch82VaOTVMZxIgw7l444N4nwd6FXHeRNv 5PX+NpGoOtIH8unVJe+pvnvn4UMRz3Gp7rey/OWD3RPyQ04wzCI7r3OkaLCpc2mRneQ4 ydRXI80+9bNAJ9/jThtwLA5UB0BtogcJnQ0xM2XJcvXsPm5J0nVIPlIYqkefVcOyN1+C 5AdA== 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=Yjm2cmKVuwlkstPxfFd5MfjFWk/J8R1nDWAUw4Id7r8=; b=FvPSVhQem+q3W0APSb7qcV2/5jTmI6BBH0nzHYyZq+zT0ZA5HPYHD8iBiGzFpTQEfh FO6UTugCwkAJGX/5yBjDaaOLtHKYIqemuA4BYwb88/ZN39GOfZx1ecnIoq8+tHhVA2YL uGMPsLzuxOzedV3bRavs2XgptQaV62T5Q6GdCzOOerInG/84WCmO/WakUSYGuZ3YQJt7 birY8DAuEjFPQknN5N7qWV3EpCYyVA9DJSoEG1oHhAEt0DrD05ozbr8SJvA/YN2KLoeZ m6DXVMsLKobjZBfe1nK1IRpW4upFGjbFRJKkfPt6IKkxIYjoguZ/K6K0Wk/ZftgZhClg aVFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="gSAzcE/c"; 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 o18si1322244ejh.46.2020.05.05.07.14.43; Tue, 05 May 2020 07:15:17 -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="gSAzcE/c"; 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 S1729254AbgEEOMq (ORCPT + 99 others); Tue, 5 May 2020 10:12:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729089AbgEEOMp (ORCPT ); Tue, 5 May 2020 10:12:45 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C501C061A10 for ; Tue, 5 May 2020 07:12:45 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id x10so2070963oie.1 for ; Tue, 05 May 2020 07:12:45 -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=Yjm2cmKVuwlkstPxfFd5MfjFWk/J8R1nDWAUw4Id7r8=; b=gSAzcE/ceHx3DD0GHkL/zUqm0ntyLCzjEfid4HO8kPLsHnWLW/F0L8YI2ve23ScdUX SR0Z5J4h4hYUhRAu0sf2GUNqwtltdFruppAAsoH8zwvvowS4uwWSYI6fT1Q8LSRLegaC J6UdM/icnIHrSTh/q0fEzggv34Jrmx9+Lr8NMLddFudUi4U5QiM/RI/uAJB0oFvMPzbz izKi+kCspKWbqnxBLxwB8Elc4lL3Z7ABEXerd1WoTedVc/o4SczYSK0prr4dF5Pix0w4 ogM72D79j8OK39H5K1HkLXMQe39tDXPeZsYE5K/oiYsHvpadvrMniPLWrvwerrWTx8oq 1Nuw== 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=Yjm2cmKVuwlkstPxfFd5MfjFWk/J8R1nDWAUw4Id7r8=; b=ubqbrrwj2L1KzaBb6KNJS724MEF/jLfAyfFmNRwPAylClV3Lda2fcVZTqqRyd+Nsmg P4b23Its5IxCh6wRTdc7qQRwix7nfCpvvEJ/MmXOoBVHgrd1u+y1np2UZKUYqmz2S8ui GbZXJ6S0jJldKn9UknHt06c+UH48pd7UJ7xuoaeubKPrsFJV3K7QTEVL7qtLC71Wu4ml 9JJNOl6FFO94p1C4at/Uti51JP4uGXrl90LG8dD3wW9wC8jonKv3+0Br5NlnOiwO+zAR vkBFPLvh17eiejAacgkGjiB3Xc0U8leQQDAXV8S7ikvPbBiblP65wfB8TnlaK+Md3WQl S/uQ== X-Gm-Message-State: AGi0PuaLvmNTrMIsrlUEedIu4NxLRjm8H+3dqIfPvVFMXc09sYxckbey VGq5dhT1g/gXaCYvnDa/fVTyntn5nvjU66iuqGdPSQ== X-Received: by 2002:aca:1c08:: with SMTP id c8mr2558360oic.172.1588687963483; Tue, 05 May 2020 07:12:43 -0700 (PDT) MIME-Version: 1.0 References: <20200505140407.373983-1-arnd@arndb.de> In-Reply-To: <20200505140407.373983-1-arnd@arndb.de> From: Marco Elver Date: Tue, 5 May 2020 16:12:30 +0200 Message-ID: Subject: Re: [PATCH] omapfb: don't annotate dss_conv_list as __initdata To: Arnd Bergmann Cc: Bartlomiej Zolnierkiewicz , "Paul E. McKenney" , Allison Randal , Alexios Zavras , Greg Kroah-Hartman , Enrico Weigelt , Thomas Gleixner , linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel , LKML , clang-built-linux@googlegroups.com, Will Deacon 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 On Tue, 5 May 2020 at 16:04, Arnd Bergmann wrote: > > With the kcsan changes, __read_once_size() is not inlined, but > clang can decide to emit a version that hardcodes the address, which > in turn triggers a warning for dss_conv_list being __initdata but > __read_once_size() not being __init: > > WARNING: modpost: vmlinux.o(.text+0x6e4d7a): Section mismatch in > reference from the function __read_once_size() to the variable > .init.data:dss_conv_list > The function __read_once_size() references > the variable __initdata dss_conv_list. > This is often because __read_once_size lacks a __initdata > annotation or the annotation of dss_conv_list is wrong. > > This is clearly a false positive warning, but it's hard to tell > who is to blame for it. Work around it by removing the __initdata > annotation, wasting the space of two pointers in return for getting > rid of the warning. > > Fixes: dfd402a4c4ba ("kcsan: Add Kernel Concurrency Sanitizer infrastructure") > Signed-off-by: Arnd Bergmann [+Cc Will] I think Will is working on a series that completely overhauls READ_ONCE/WRITE_ONCE, also getting rid of __read_once_size() in the process, which would make this patch redundant. If we can live with this warning until the new READ_ONCE/WRITE_ONCE gets merged, we can probably keep things as-is for now. Thanks, -- Marco > --- > drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c b/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c > index 0ae0cab252d3..29fdff9c95f6 100644 > --- a/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c > +++ b/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c > @@ -19,7 +19,7 @@ > #include > #include > > -static struct list_head dss_conv_list __initdata; > +static struct list_head dss_conv_list; > > static const char prefix[] __initconst = "omapdss,"; > > -- > 2.26.0 >