From patchwork Mon Apr 8 21:26:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 161952 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4172463jan; Mon, 8 Apr 2019 14:28:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwG8tEGQrpWQLOedKm4FqzUePn5U5TBVcH0X4nY8QNfUpS+KXldbgL/SWnxIhmJVwQwnt3n X-Received: by 2002:a65:6105:: with SMTP id z5mr31220599pgu.378.1554758914997; Mon, 08 Apr 2019 14:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554758914; cv=none; d=google.com; s=arc-20160816; b=NSydrMEh6EFLG/1yCVr+2Q0CnPjMKPEjpxLxfpJiUOz5ET8htpcUA17D16NxXnHYZ5 eTMrVIOMwqc5ITa8yRjfnej7k+wmBFvHGKOJdFArwte8IhVITSwwDXtV1YBn4FnXL+44 6ThdNc0RUqLILxC+Ti4vNVds/qKA8c9VDeAYxnKI/kiBNpJtsFwlPI2BXxshm5Mjh/D7 TGeZ9vdg0/EbJHMDgrdg4J/wc2ZA5Hh4Tn8fjs32cCiUxaZxY8pNpIQK+9yImrheHWxl ELj8AalCDesG1fsg7YVJl6fmQz8j2G9+8nMSnRAbQPoMQ3G9W0BPCHrxAEviLK9stUox Wi5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=tDqdk0TrBxuf0p6OMAEBEUgTLxVqvoNIK0FscxU+59A=; b=rQEh4tq2a26lhMHI2vxOwIx+cFVAkNLbNGLllC3JbZEJWT3Tvvjn3W1jDZa+ILZgek bhjuJsgC+CSlzghZfV4N3i6I3gxd81BgxjZ5oMTCpkuSo+RsRqpeTRDsD6ZQKvuh/A63 hLzBgkYmuMRNlX3HWBeOD1gA80v9BktHo/J1M5sAb1nN9gxyezaT6GvXjQAj/mmQHpBi y0W8KpU5dkrRi6/YurO2aSuBmcpfzzzu71qJkG3zPA3ck/jCI/YtdNvolGeK8OBhQaTh rmlbAfJ0kEWI4CpBxxPcTf8kIlb5+oXFi5ZfqStQAOsCEKMIMxcjXQ/n7adDGyvwurw+ IakQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3si17045048pgh.113.2019.04.08.14.28.34; Mon, 08 Apr 2019 14:28:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729404AbfDHV2e (ORCPT + 31 others); Mon, 8 Apr 2019 17:28:34 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:33649 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726930AbfDHV2d (ORCPT ); Mon, 8 Apr 2019 17:28:33 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1N6Kl7-1gp0TL0O2T-016jYr; Mon, 08 Apr 2019 23:28:26 +0200 From: Arnd Bergmann To: Martin Schwidefsky , Heiko Carstens , Sebastian Ott , Peter Oberparleiter Cc: clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , linux-s390@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 07/12] s390: cio: fix cio_irb declaration Date: Mon, 8 Apr 2019 23:26:20 +0200 Message-Id: <20190408212648.2407234-7-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190408212648.2407234-1-arnd@arndb.de> References: <20190408212648.2407234-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:Ha6PNgK0PYpqwPhlNU5XWyfhsmbCXU4naSHTKfBYwheY6UWeYAT r+vInJvVpAWCMC4Tp4cuBYykXoLxXiWEgJ8tTEOUTfbCxA2PbaRJxriXiZSirRyZHzXZDOl WUTkzwc/NdsdtVOV0ALHzQqV42zFSNjNJL8sEGzz6HfMy1Wqpbrc013M+rL8aCAMdro4nuE 3w3wjFfHMYViSa9JpLVIA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:ggJ9BSGwLmo=:aEmq0SVEfr/yQYnHXxiXHi DWaBMfkP0YN8Y/XH3dqZMG0wG/ZLxgDICXH81SkxxRvxUSsyyAdc2WUH1QuyGDlvpU8wg2MVq D6/SpnuWOqjHKbNBM0rPe2gSx3n8m3Hcc9R5E1zb/ZDEjkZxDtvfqEtfQJV/54zf1cKX3yK4J dNnp759ZBKcsFoEXheOnT960pUQJcRvmM4Kk19xSQ9Va0HEsJf82pCgpKhS+xlFwQwBk/ksY1 Ehs/JsQbbOVdGJiPKrm3jZ+gu/6ff015MD2fDF4NUAH+IHkVE6DIojwoJkI5YfV4/01OMvpM5 OLum7Lz1j3xkEywUJI31jo9/iVAoGEOeV4iPmhbhLAMHK70Fc3oVSE1mRsdM03l1i+6VWXlt3 m2g8aO5/RiCz8ScQnNUJE3sjBEEv+elj2lK2q0JP+79DbbnJE7NG5efOY1ygzzViEsPGnc9TM Yc4V5LcxGYEK00R3XLYwoYd1Di9/GuEdbbp2r5nlYVHCunnQ6PhEX+pmpve8DL6lrwZPlzPgB 3Q+cU5k0Io4pjFZZ96npDafp08hGaKbBcmc0LJTK87jBqBWl4SAPiu+2d4MRqcoFeDDpGOdf0 BhIMDm79LwEgbfgFrFX6keHgNf7cmYmATMTMFKerC7zRvA3mV38/ZRb+RLWtx8zmn1B/tV23W /20EeBSzIgxwoWsr4TOUqxTesn8Nw6zDPoVtT+g6a6Zq278r2dqQYjRiozxz1COvPLpbJvA0m 1c7saP9TW+2sFH3QlE4ADPeSn4APUMUWFbHz3g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/s390/cio/cio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 Reviewed-by: Nathan Chancellor 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)