Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3251761yba; Mon, 8 Apr 2019 14:36:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZQ+oBF1PC7rZy2V6vz/Iyu40ozzrPCTDAeuwmSIMiVq29lftv7SLlXn1lW25bFqJZR4rW X-Received: by 2002:a17:902:2f84:: with SMTP id t4mr11864660plb.6.1554759375492; Mon, 08 Apr 2019 14:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554759375; cv=none; d=google.com; s=arc-20160816; b=cd9fNLyhtgs4e/RsiGNdsqiX2cYRekViH7kPH1Bx8wqbMU5F11FQq4SH+1hz2gulqI axYjl/G820QnzsgeTiDugvomg2yWsHxSG0vyyf8M/L61+NEM7Lz6/4HPACSgEB0h27wX dquSChexCjQdy2oMlfkoKcFRnL3kto9/HIPIgh3nNYYsdKCeoRAfjgak2HuHe/pu4jLW qGTHQPVdraa7WYGzMuAnaDI+y+m58oso2dgQWutmUdUsjuU1ESQPyYe0wlDo9FdU87Q8 aMO9Mn9fsyIBGPZdQiyGc9lPj9n/pHUcKZ9cWCMh1lpwW9ys3MdvFRiIrWvrGNr5OBOa 8FFA== 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 d21si22285345pgv.297.2019.04.08.14.36.00; Mon, 08 Apr 2019 14:36:15 -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 S1729399AbfDHV2d (ORCPT + 99 others); Mon, 8 Apr 2019 17:28:33 -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 Content-Transfer-Encoding: 8bit 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(-) 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