Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3302588yba; Mon, 8 Apr 2019 15:54:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqysg6N9GkMNAeI1tDhbDdpjDoHY14dxGS7TuwLTYm8dEQy27X+BIEkCQJ33G8uo3YW6Kb+1 X-Received: by 2002:a17:902:b948:: with SMTP id h8mr32940090pls.39.1554764082066; Mon, 08 Apr 2019 15:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554764082; cv=none; d=google.com; s=arc-20160816; b=OFUMvBhpKgLrxUzjOyApNaFgcvOreyYirMdmcX6C8BxzyK0Q/JwhSC/i7tVGAHaCbH QHfcMtSIZLMLOL3V2nGte1ltFQsa3YOCf6jbOiIif77mXliawmIn6HDxUu5tsPdwgQeh cmCfSw5wqg43rnxvigm0VYXEbJhF0++TkqVfq3zPJB4j578VX0aQ4i4D0ZINE/B87k5p GMWooiSFcX/EHAcO0goTLPY58ZOz8f9WerRvhPhjIldI4dd95JZKhd+cjeQKCWu6NhDo WXDJC4J0Ip2f00X1CnM8CZFBBP/qdC88hX2fsE6bkeSR6IpyHAkxCWT67Ol+rv0Bj9H3 fgRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AJTWu+gzIUIvtWlNqA1e99iCU+3wNgpuuBcFCKmYYzI=; b=IP5j5gCdfDgGRN0Dn9leIsQFUxUJNXndITPMlx17hFBrDjhsBbng6HNjZd5bWbTxft mH/L23o0+/i852SNz7g/rupRaAqO/z09zbl1RMudjjVsUSpGdy+UTNq9QxpypuqZWK6l uJei+Ik1ByiUdqhtufgWrJ/VJhZnCUYvXqT8P42nVk5yVW5uq/LzsAPpbRcWxc0c5mWz mrdFLHZFlWx+eOpx0OIVMY5JDPClzQMlecb/eT48qUWmicg2e4q0Lv6gxdaGqhYAhtGk vjQS/8gMvaE3n4g43zQo7NM5kSLnmI81PLSNzTezj/ahBrNdUeIQb30i1cpJOoJEWXcR 6kNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MchLEDOs; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f14si1908618pgf.519.2019.04.08.15.54.27; Mon, 08 Apr 2019 15:54:42 -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=@gmail.com header.s=20161025 header.b=MchLEDOs; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727722AbfDHWfZ (ORCPT + 99 others); Mon, 8 Apr 2019 18:35:25 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:41475 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbfDHWfZ (ORCPT ); Mon, 8 Apr 2019 18:35:25 -0400 Received: by mail-ed1-f67.google.com with SMTP id u2so8744178eds.8; Mon, 08 Apr 2019 15:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=AJTWu+gzIUIvtWlNqA1e99iCU+3wNgpuuBcFCKmYYzI=; b=MchLEDOssAovwrDCxnZWnsSB99u9map72+dURApDIZfwla/M44b+uoSu8mZPqdUIh0 f+8dJVyfY4PvKjGep8ULxvPKEuU/ilL5ZUbUe0LnVRSqxowkUqHSkU48j5vUSX3RSwP3 0IpzytEHiuOR7HkgUb5G56uH0PDbuTP2zd3AB3Sm/mlWTMqp4+DiLY1HAHLXrgGKGp3d PIYa5wCtsx3GIrA3p0nx9HQgTYPFurXN9gHG1dGs5rCHFAvu/bubxqONmrRgJXmY+/v/ n6ByH4UcOQAO1NND8IAagMANBJPE/nQijnY5hTMCTUMZCi2gdccBS1DB60CVcvZ62i8k z6mA== 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:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=AJTWu+gzIUIvtWlNqA1e99iCU+3wNgpuuBcFCKmYYzI=; b=NltfdMFoUUMIuPMhDZhp45jaFf91kyx2ZvSHu8y0Fgd5Do5+PEmKMwE5CojkCAvxzS AYnxT+JK30Q8fn/TcIc0TJOxEOtbASdelNhlfKtr5zRWuJvRsBiGEZpMxyc+udy96JCl JtzQbY0gA9AOjTe27rgQQ++KrDkY5IPBEnlB0KKIRcmiH4wOQwvOQ+8GWK7593X4P6H+ pLrQdr45tTIcJFCo8yeuQfaAW/wxhck3sfydztVfAG7KJ5kXXv+FkphLtaLn+QNfgpS5 RIErtIOyNZEcDxlbIaTXgUn/GumVjcwqy6yh9V3DMG96L1QPdqQjvFR2oFA/dH/OB+Ne AqjQ== X-Gm-Message-State: APjAAAVL67LVTU+HJqXINlAlXWPD2gNprAr2MFs1ffAFZSBau8ya6tJa DZoXjcXGxJazAOBiJouERzYJgwPdc8t7ng== X-Received: by 2002:a50:912b:: with SMTP id e40mr21122665eda.44.1554762923695; Mon, 08 Apr 2019 15:35:23 -0700 (PDT) Received: from archlinux-i9 ([2a01:4f9:2b:2b84::2]) by smtp.gmail.com with ESMTPSA id i1sm8904250edi.15.2019.04.08.15.35.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Apr 2019 15:35:22 -0700 (PDT) Date: Mon, 8 Apr 2019 15:35:20 -0700 From: Nathan Chancellor To: Arnd Bergmann Cc: Martin Schwidefsky , Heiko Carstens , Sebastian Ott , Peter Oberparleiter , clang-built-linux@googlegroups.com, Nick Desaulniers , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/12] s390: cio: fix cio_irb declaration Message-ID: <20190408223520.GE18333@archlinux-i9> References: <20190408212648.2407234-1-arnd@arndb.de> <20190408212648.2407234-7-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190408212648.2407234-7-arnd@arndb.de> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 08, 2019 at 11:26:20PM +0200, Arnd Bergmann wrote: > clang points out that the declaration of cio_irb does not match the > definition exactly, it is missing the alignment attribute: > > ../drivers/s390/cio/cio.c:50:1: warning: section does not match previous declaration [-Wsection] > DEFINE_PER_CPU_ALIGNED(struct irb, cio_irb); > ^ > ../include/linux/percpu-defs.h:150:2: note: expanded from macro 'DEFINE_PER_CPU_ALIGNED' > DEFINE_PER_CPU_SECTION(type, name, PER_CPU_ALIGNED_SECTION) \ > ^ > ../include/linux/percpu-defs.h:93:9: note: expanded from macro 'DEFINE_PER_CPU_SECTION' > extern __PCPU_ATTRS(sec) __typeof__(type) name; \ > ^ > ../include/linux/percpu-defs.h:49:26: note: expanded from macro '__PCPU_ATTRS' > __percpu __attribute__((section(PER_CPU_BASE_SECTION sec))) \ > ^ > ../drivers/s390/cio/cio.h:118:1: note: previous attribute is here > DECLARE_PER_CPU(struct irb, cio_irb); > ^ > ../include/linux/percpu-defs.h:111:2: note: expanded from macro 'DECLARE_PER_CPU' > DECLARE_PER_CPU_SECTION(type, name, "") > ^ > ../include/linux/percpu-defs.h:87:9: note: expanded from macro 'DECLARE_PER_CPU_SECTION' > extern __PCPU_ATTRS(sec) __typeof__(type) name > ^ > ../include/linux/percpu-defs.h:49:26: note: expanded from macro '__PCPU_ATTRS' > __percpu __attribute__((section(PER_CPU_BASE_SECTION sec))) \ > ^ > Use DECLARE_PER_CPU_ALIGNED() here, to make the two match. > > Signed-off-by: Arnd Bergmann Reviewed-by: Nathan Chancellor > --- > drivers/s390/cio/cio.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/s390/cio/cio.h b/drivers/s390/cio/cio.h > index 9811fd8a0c73..92eabbb5f18d 100644 > --- a/drivers/s390/cio/cio.h > +++ b/drivers/s390/cio/cio.h > @@ -115,7 +115,7 @@ struct subchannel { > struct schib_config config; > } __attribute__ ((aligned(8))); > > -DECLARE_PER_CPU(struct irb, cio_irb); > +DECLARE_PER_CPU_ALIGNED(struct irb, cio_irb); > > #define to_subchannel(n) container_of(n, struct subchannel, dev) > > -- > 2.20.0 >