Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp250218ybi; Wed, 29 May 2019 20:38:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyp88/5gttSTRnjagCi0/UYEkn8QnqsoGzxkImf2+M79hfeqsYTt7U4CXwkPLxTPdheIis+ X-Received: by 2002:a62:e00e:: with SMTP id f14mr1496587pfh.257.1559187530646; Wed, 29 May 2019 20:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559187530; cv=none; d=google.com; s=arc-20160816; b=u1Q1OE+K+8wAJIQs6Hj9HuorOs60eKEUxfX1WCfDXH7w0TV8y3ErILoeWMQD7k1xAx YxnCpF9VQ/XVkZuk3nsUaCzfQemhGnsolFE1cG8FHVkFYfUtQ/r0yYN/3r0MhWaVltkr EyPmu7IciMUz/C7G4WB9PPB+AldstuCThfecLzoOa31rB6Q607/0R7BuBkW6rWTJ1ln7 2tSxssCFbiIyaVgpeH+EwTcsTQkFak5yqkrEDhE/5lNuaOhrpjzWd1KC7/b434CckGFg wFFI9Fx3Cbbe/MxTNHXcdiKhHImiTCPNhEqiy1yIBLtch5zv8j6mQ9aZ4iMLVT+bI7z5 2uuw== 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=Td1EQwEbTNKHQxjtoo8pgcOjcF3JGh8msaUWGJcf7DY=; b=SGHkIi2gqhJF4M3fqeGsATgU5Bs4QUrcvq9lWytM+filswEVzhDh50QY/QXzAbLkxK yH7f0AElfD7xw/nObGdiToO+jsK9YT/CML9WDroQcOREgtm21bmydDYV+HRlh962mn7d gZ5xdA8ByMASbYKZ48PFPTyY1DXWhK0JEqXnbqr12evvy5YpdhPrDEQbkQnP2XMuchpc gMfPFn+UOZdVqkSvXkdJIusqEphLHu8Cj4pzZilremKH3YrHiwolYn91N9iCZE8EbJlT YQh++o1Suqgt6ramq9ffqcbStszME8FLxInJPVcb7MkPScmaOd71E0hA2sg738qonnHG TYdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DYym+EQY; 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 h4si1720184pju.48.2019.05.29.20.38.33; Wed, 29 May 2019 20:38:50 -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=DYym+EQY; 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 S1732332AbfE3DYE (ORCPT + 99 others); Wed, 29 May 2019 23:24:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:48304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731247AbfE3DRr (ORCPT ); Wed, 29 May 2019 23:17:47 -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 A03DA246EA; Thu, 30 May 2019 03:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186266; bh=Mslr04vKCV+c1HCoGRdDiyNkQPaY5BPKy2YaXll0TQI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DYym+EQYVcXfSrFV5xivohwe2IeatPF60eXhREfe55aCZXosDl9kVUtkNcFnuKlhP OCVh7Cw9MH40KwKIarRhe/FLYtiXzQvlAd857kfgdPLeMrfF19fOyVREE2b+nKwUBq 3RgogmLpvATh9JrDHs4xj3ZeqfH4B7KO+1CDPXCE= 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.19 176/276] s390: cio: fix cio_irb declaration Date: Wed, 29 May 2019 20:05:34 -0700 Message-Id: <20190530030536.330327323@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030523.133519668@linuxfoundation.org> References: <20190530030523.133519668@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 9811fd8a0c731..92eabbb5f18d4 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.1