Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp244254ybi; Wed, 29 May 2019 20:31:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwqvsQrLyHzkceLtQ9VgwFhDxnKws7vjRpUvDqJTvXg6sz8EdBLMF2I1pfelwGLTImPVZv X-Received: by 2002:a17:90b:8d7:: with SMTP id ds23mr1603321pjb.138.1559187096913; Wed, 29 May 2019 20:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559187096; cv=none; d=google.com; s=arc-20160816; b=ed4+P3dhsppWOG94INvVRs6LAgOjwqXOppPQoX3FIR4+34gynnbC2VTybocHLkTq8K 2KzLvw2nVee2QK7f/BvJXwP7zxxnMQW8NFyBQfJiXyTBLl3Ot4lydT8DracblURsqekZ YPGqDbPR+637mOCE0Wn33K8/IwGaQnnBJ9mqBrtMrHd9MKRZ6J1qi5fu6slvS3R7eNOo NWXMC3WSo9ejGQN0lfk/unz4D7EXtnQTYDZBTK88FvvSD1DYnNp8F5bzLQhXyhr/Nc2r dbNr9Q2FzlRIDD+bxYb7l1wlq6I3PcYUQ3+QJIwE9CKypQsaFo0KU5tir5ohVE+wtej7 c9/w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=W22Z9EcWKPr1WpWhL6+/Wmz2BnCbEyg8phO2Z6WyOgs=; b=EjzFKQRprsNiJ5MHwSJSQGFnd46p9skkgKLrBWfhDSMZd2Ts8NJdqeUf/iwq4jgRCy 26fDBj4Q5AwvzWOI+TvVccOxtAemvEx7cbUVJDyQ/65gBwjsymeekx1kWVovC/RRjdoa EdyhPQsfDa7PJab+QM+8Obz26DIjJKFu6FdeLpEaYwDZB8+dn+9uaKbjXCd1gRivfP1t cfV/f3CWCz3gLgVhErO4l4hxHFBgC8Xyb0j2R2X8py1g1n9ejmdV75miNCZDaTnA0fAw mkTqv9LmvOMKejuuTaVZPbaFxnlvqGC/frXyTLUw9Xj9/pWq08tZshqZ77oORDBPvaBp HgzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WfSMJitG; 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 l93si1779047pje.32.2019.05.29.20.31.20; Wed, 29 May 2019 20:31:36 -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=@kernel.org header.s=default header.b=WfSMJitG; 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 S2388162AbfE3DaL (ORCPT + 99 others); Wed, 29 May 2019 23:30:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:33432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732487AbfE3DVM (ORCPT ); Wed, 29 May 2019 23:21:12 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3FB9D249C6; Thu, 30 May 2019 03:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186472; bh=FFQlB1KNWWlylkGTfnI8jnt3hAUyqywfrEzgW1hv83M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WfSMJitGJ8bWQz2uC71EzyigVsn6o/AyPs02TRhMLVLefgXVuM5gsVCp2iNhuUJM5 +/nvAPJdD/e/j1isnDvavs//2E9BrcjoToruQHTHKJLNz0ksWZpATBsjkZML0Hdt9P pANNtj+aTB+5TNOb9918jWhyVaJbgdBVax2VfCNo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Nathan Chancellor , Sebastian Ott , Martin Schwidefsky , Sasha Levin Subject: [PATCH 4.9 084/128] s390: cio: fix cio_irb declaration Date: Wed, 29 May 2019 20:06:56 -0700 Message-Id: <20190530030449.840099800@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030432.977908967@linuxfoundation.org> References: <20190530030432.977908967@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit e91012ee855ad9f5ef2ab106a3de51db93fe4d0c ] 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 Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky Signed-off-by: Sasha Levin --- 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 f0e57aefb5f29..d167652a6a23d 100644 --- a/drivers/s390/cio/cio.h +++ b/drivers/s390/cio/cio.h @@ -114,7 +114,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.1