Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1147985ybi; Fri, 12 Jul 2019 10:31:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKMesQM3swt1gjM7k8CiWKxK12WnnxTwSRNXNKLd+Uy4DEyDf/rBlf3KbqczRD2YWfxGk4 X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr12761683plb.283.1562952687897; Fri, 12 Jul 2019 10:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562952687; cv=none; d=google.com; s=arc-20160816; b=PoCD22MROdDWSJPeVABYSit6YLcN7BuwXwU0PFkd2+SsQs7GeQDcveP6+hla++utmZ jQSB41HfbzaREo6MIbUtiajHn2NeCJ8Jc1EjqB8hk/Cq9A+93kMy2hfD2Ap226hrxPnt iOToOT+GpezXk4UnTfniReffXkGoq7FC+XKZkKr73HSEkDlyy6PlJGv7edKlPCCvTnmA +K813K/GJoxI94LGovWBNbGKVhF/Kh6ED3BQHahPhKYfqsxj1Sa7hW3rFVMTHu0wpM/h j9WLq2burkTUoSCO93SGgrl+/9YtWKuHy4y6rVrbYqdZkhPMONSNcHXi3OD/+Ko3Pi/D oniA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=fliyxzDfAGBMmN1oXsqyomaZR3XENMW0vd2GXXQScuA=; b=WCieSIWFidzqK1T9QPt3KUzf5BfyqBV1mfMeWhZXDyRURzgrO+yiHJpdoMksYKDQsW GwyHbKFhhw7V2iPRfnfGacUuzoDVnCIilbb9RLzVb3ovlw9lnlvUoigbsY5K9RlWpOug 70CE2Z4dT1ByDzVnI1o4rRSYELNELt/i4fSjTJtXFr1eVCNK1yHK5aVcBoKZjyFRhtFv sWMVGX2190eUEoi8KDNFGDv89hAIyD7uj85iezgF3QZpotVcKO0X/0ZxhgBTn1iUb5u0 Udggbiw6NDN4UXSb4+enQ2/y2R2NiocJsIyo7ltcoOwFrdMyb5KrJAT0stA66/bFdeRj IAxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WHv3WsVc; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si8538365pfr.182.2019.07.12.10.31.12; Fri, 12 Jul 2019 10:31:27 -0700 (PDT) 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=@google.com header.s=20161025 header.b=WHv3WsVc; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727141AbfGLRaT (ORCPT + 99 others); Fri, 12 Jul 2019 13:30:19 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:47074 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726449AbfGLRaT (ORCPT ); Fri, 12 Jul 2019 13:30:19 -0400 Received: by mail-pg1-f196.google.com with SMTP id i8so4809873pgm.13 for ; Fri, 12 Jul 2019 10:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=fliyxzDfAGBMmN1oXsqyomaZR3XENMW0vd2GXXQScuA=; b=WHv3WsVcfVvezkKKS3H0aawILgSQZgZE2JrppFVVLLcybTbjvszHp0YHwdEC8Mf8eo JzxgpasgG5Kxq8s70uaXFGQwXCn+ZNp6bXxCYCYHm3tvKGeeeKApuaseG/7BdcZluyVt tEnoDzmgETCjXgOnUchBlcdeExxDDA9aXuRU9ET0a8kLQEMR7SrFpRC/HVhVPAKSxzId NT26/oYZHx6T4E4JDMsaL1qhRowsZUv76rpP49r0WACj4E05JY8YPi9rBPXhIE2FuyZt TczgW3dgHLYaGMpEBmIDg6jZRBL6mFGK/4L+ao21+6sqhrKuga8q3qawuZSb3J/F/fLZ h+BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=fliyxzDfAGBMmN1oXsqyomaZR3XENMW0vd2GXXQScuA=; b=B3hrLor4yFRp4UC+2Cq1r8+3y/jVCkzYG6vncL9HvD6DF4Dq8tL4N0UF4/4+F1/ezO q9sTKMlMOrSZPl5HwnNoflc1+8ONYPzMxpITED0IvA7tGZoE04Cl09zyp86K5X4H43M0 MPamgWGmdvYeGS/oIXpoCe/f6an1f/DGQoVgxjC0ND077g+oNFXESzL/YXhPBpFr9fZT jim93YcM0GYbBZODYvOtC+zXo+EEb1P6EykG5JIdm3fGD6YteS0p6jt79K1L2DBZ5iul zcDW918c6O/+/1Ls63WvWqmjfd3ectC5hR8LAoVlQdwKC+/Rc2UTXZx40qEWbXl83IrF BTeg== X-Gm-Message-State: APjAAAU5iYvBssHXYBnQCWsn9EIRRMFCwMHEqxa03tOzFpXiZGB1aabl GxutE0HecZRalw+yMJkxgjM/9g== X-Received: by 2002:a17:90a:360b:: with SMTP id s11mr13024964pjb.51.1562952618502; Fri, 12 Jul 2019 10:30:18 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id v5sm8405051pgq.66.2019.07.12.10.30.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 12 Jul 2019 10:30:17 -0700 (PDT) Date: Fri, 12 Jul 2019 10:30:17 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Arnd Bergmann cc: Christoph Lameter , Pekka Enberg , Joonsoo Kim , Andrew Morton , Stephen Rothwell , Roman Gushchin , Shakeel Butt , Vladimir Davydov , Andrey Konovalov , linux-mm@kvack.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] slab: work around clang bug #42570 In-Reply-To: <20190712090455.266021-1-arnd@arndb.de> Message-ID: References: <20190712090455.266021-1-arnd@arndb.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 12 Jul 2019, Arnd Bergmann wrote: > Clang gets rather confused about two variables in the same special > section when one of them is not initialized, leading to an assembler > warning later: > > /tmp/slab_common-18f869.s: Assembler messages: > /tmp/slab_common-18f869.s:7526: Warning: ignoring changed section attributes for .data..ro_after_init > > Adding an initialization to kmalloc_caches is rather silly here > but does avoid the issue. > > Link: https://bugs.llvm.org/show_bug.cgi?id=42570 > Signed-off-by: Arnd Bergmann Acked-by: David Rientjes Let me followup on the clang bug as well.