From patchwork Tue May 5 14:03:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 186202 Delivered-To: patch@linaro.org Received: by 2002:a92:8d81:0:0:0:0:0 with SMTP id w1csp1167851ill; Tue, 5 May 2020 07:04:31 -0700 (PDT) X-Google-Smtp-Source: APiQypIByBtghKWrZ27LRcJC83zgKtdKbBZwazXEt+sECDMuZpmk6nCqDk9H9rP842KB15d1DJ4+ X-Received: by 2002:a62:32c1:: with SMTP id y184mr3114001pfy.306.1588687471668; Tue, 05 May 2020 07:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588687471; cv=none; d=google.com; s=arc-20160816; b=VNUmPxN/v+GDyfMlPrS4o40uX0bCVilqacuru0pTrQg8yMqxDyoQ1TcwaruJgt1tA/ NG4Qx8TtR0HVcRx7QTxKhS44M/UYjKVxMm+bSSeWOl/n7yYzOUpHfcvLlgWJkIS7qQkQ JdznMDpqZhmXOuB5pWwh4PhAViY81Ot0vzKfZrAx7r/2fwGFge80DpV9XFz7ZBZsa8UF Qc4XCQGEn3FeiwAI5b9+Et4GmIvKV1J3Dxq1O2mBc+aLViKUoVTFaQOYaXUBOjZbHzf4 SDicPksdarKppfgnHFoHLP61q8SGTgdNijbhA+y+In/mO2nCikL82cAuINhzXgpHp6g8 OMXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=FaHQfr/PkXBNuLYhtKCQsfBoaX3km5x901BW/Fk2u34=; b=W+JSZf+uHDw0gtDRk5e1Ei8HOCiKl3JsKR9EOX4vs1aii5I8NGtF8l59w5Ow2xHzGe j/MFQq+4LosdoluDZ5cd2asq1vqIK4DghnNG0Wptns/mCCZ+neK2V/juN7TASXJUTxlI mmMh/GrdklFH9Z9yxaR2+piS12rUPxxNfTl3yARUhPlLDuhZ7EyqPvA2VZZduc/7aqaz LQuKQEHk8TQDpk9TmjMKmeeTt2vy4gW1sleW9hIgOGUPln2OFj68sO3zzI/nhkWos+Fz BI9pJWh2Afs8AFb8EV/SUCxwWYcCOAoJsgs43895ihBN9l0Ry3NFDokrpfXwwZX/VBTI SY2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id o70si1765496pfg.266.2020.05.05.07.04.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 07:04:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 33D7F6E266; Tue, 5 May 2020 14:04:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 49F7B6E266 for ; Tue, 5 May 2020 14:04:28 +0000 (UTC) Received: from localhost.localdomain ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1Md6AP-1ixBSU2MgF-00aDyq; Tue, 05 May 2020 16:04:09 +0200 From: Arnd Bergmann To: Bartlomiej Zolnierkiewicz , Marco Elver Subject: [PATCH] omapfb: don't annotate dss_conv_list as __initdata Date: Tue, 5 May 2020 16:03:52 +0200 Message-Id: <20200505140407.373983-1-arnd@arndb.de> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:b7GTK4JxzyLmn2gIsYhgbVf/xIlBzgBQDzJn6IhgPioBvsvScLO hkBobGOJ16kEh5G53aN++eiN7fEy2+8WNjNT2oAAh+pto0naL3H5RGdPuiPGftRLYE+WWk6 AARHIaGwYWpgUPXoaHmYhwOoJNFWjRb9NvVIVNJ1vaGDXFt+mHz9QyUnAZl6/+oWiMZPV/U jTlT9OnyODlD3fxIq7spw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:kJXlH+hW/RM=:GF6iW7yf/Pyctg3y13GUV2 FqaS5odzEtD72BBRKOElhcz2U29q1LNd/0g9U9cvxHcoGNelA0e2X+cWbz9NoPViSRltONkbm LGFE+3SZlqFaNTw6HHnzmjvCuCr0ZCnNxcORk1uAX+Sey3pNmJg2E4YT1mR7/HMrhT54dR9ts J4X5/BFzLGeko86ZgOn9pIDklBlnCoK6I5TjvbVjBYP1n6iO1zpOuv4DVRQ1XIdvqm0Afyx6Q NN9DNF/UxpQnwNk6AxRh+ZAYljaQMy6P/nNk8rSnCKfInuMJvpLLRlzTGRQfwwH51hZ/qH6kJ GVRF5EJgFdrY/GmQxvz7qdg6pZRs5bnMigu8+zm028MNOcJmaGY7EZp4KW1fS8JHoRa1b7FKg zag7CBsFaMmPV22qZvJdIIDm0wl5M6BqnQYGxLhrc2Rr0CPFRbHNQ5IGfXehZbjPhZ9hfKqwJ B6HdayRKMOpYvsMoivRxljBAGW8MRnMNWtuWKgjAFTdWacPd9pqEdzEJv4rZXVo2ufbp//ZUb gHYy4n7XY5GyijCSW9fVbHqO7dYRzg84I3dRveYdKcWxkUqz4Hc6HXFkPgmW9DRysy9glOIZp D0GqunN4gpNaJQYpfCS7+U+LA4mR4UiyESvK+5oVfVIB+uAVYMijAw1/n2v5iEGvZfAD9ejp5 La0lZdiWAcQSxK+M/9XNjltEvLvOA3ImAHOawsmGo4wRlXMTXm/6Q4nTx48oalue2KSKvBOuj 0yjErUk/kCOrAMj0XMFmXosWZZFAbd/GbAaeFNtG3GQw0Y/IqMaFg9Slu2BZtppe+LVNj9Vb2 BAdW/soKwj4RV9o1kG+AcGs+1G+ryxdeSkhmSUU9+eHuQkZ5uY= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, Arnd Bergmann , "Paul E. McKenney" , clang-built-linux@googlegroups.com, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Alexios Zavras , Thomas Gleixner , linux-omap@vger.kernel.org, Enrico Weigelt , Allison Randal Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.26.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel 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,";