Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2026616imm; Sat, 6 Oct 2018 16:34:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV602unhZ+Z7px2sgVvssmQG2+oUjTpDPR71KtuQMJhAe6TnhCqzCTQzjHnEfxzOJsqP1EuoE X-Received: by 2002:a17:902:a9c9:: with SMTP id b9-v6mr17430455plr.225.1538868891416; Sat, 06 Oct 2018 16:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538868891; cv=none; d=google.com; s=arc-20160816; b=yiN+ffzfH7OV+qhfKIdnqxTdqSCkui4OassmKOgrSG/S8VB3bRnZ4jxvCH3prThssi BnQRghHMqgL2Y4b5DsVCLRpM3tynhQtn8iMacL3U3hGroJj2DWI9cDWvufJMHt8K1m13 Jq0KPMltdzJw0+xpay56jSRnyXsrZLZ4FSit1qekMeaogQVVNY4R+AaaQf/xUu3LuRri 6CVzDb6j5SQA4aMJ9k9blrOtG+3IUGUcrWNOTaOGj2nKSkia+7yoywSpao7q6f7ahUtt BCjy1Cg5/9mablpt+wktmVIiJrUFPTM4XPtpD4TXzOCuHtUZ7+krkfdTe+YRAgiWtJrZ 5O5A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=/SLne0mnrsDWXdIjAUi1bGxH4OeDwTEqfbJU9GdKjI0=; b=bVnIp8ReOqSt1tSTIsHxIn87iMjk6UgTjQVgKnyMjIDPkYLRa56pF4WmySmIg8hCcy 7Gfhmh6gFLezMYWUYkXmleEXC7xkafULMciTDGJr/DXZ34TvRzcVptVNEb2XL+5v2xpW x6gicYetrD8H8KVPT338yO/Am8SPQGkj27ACaeoZIBaYeO9huekab4YSov1ALKfDimTJ lBXB8J9wwAkUFFv2Ex8awsNmFTX12HxDCg5Yw74rmMXQE/gEDMzsVkffmLfat7+gtMsl dSPltDBRZuDEpIz4yQ4HIbZN5EQNDpzKOjo5pyq+ruuZ16lKb8U6p11vkvjisyGW3EqW vYhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F8Qxp0ca; 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 l64-v6si12882403pge.169.2018.10.06.16.34.35; Sat, 06 Oct 2018 16:34:51 -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=F8Qxp0ca; 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 S1726351AbeJGGjk (ORCPT + 99 others); Sun, 7 Oct 2018 02:39:40 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34813 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbeJGGjj (ORCPT ); Sun, 7 Oct 2018 02:39:39 -0400 Received: by mail-wm1-f65.google.com with SMTP id z25-v6so6150941wmf.1; Sat, 06 Oct 2018 16:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/SLne0mnrsDWXdIjAUi1bGxH4OeDwTEqfbJU9GdKjI0=; b=F8Qxp0caR8mYktlLEdwayLhkzJCfGZcCFbU2wV5IMJVw3MBxH/zXQykCL9N1sOs8UD nM8v26YX/u47qln6iZ4mix2p3PTgbHlpvRuuUxdML09A/7zc18963yvdtUVuwv8NMKhn SVwwtbo1CPnpGdxR9WclDriUWYPd+hRysTY0t6d6EJjVF+CiVGSk0/pKFv1EulVxrkdu SppkZPH2pYTO1QybAQyU0JnxqQ25FUHc/z7xqTRIJnS0cO3DdH29y5H4F8vaw2G/gN+r fTCH3WmFV5pKNgVudsnU+dloKlGdPlFJtzGhKNwdZ3t767oyFwdHAaTSjfvhN7G73DLV Yhfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/SLne0mnrsDWXdIjAUi1bGxH4OeDwTEqfbJU9GdKjI0=; b=aVptqqJTvYbWDaIReYo100suPCA0gPHifS8r39R6aE0pKWWmHjnCpWYXuKxKrkZIK+ g/zCp38zkam28FEyN9nyNASEy4lWA8qeSg5BhS19ZBEpQ5orNArIF30CnuxDip2D0LtH PGrsEyZ2uvdWR5qn7xeLAYG5nXqbphrGg08w2zCH5Mp4mEgfE48JBZ7rMzIh7rRPWMAb Zh4/0UIddcsXwjlqZ4J9kZIuS4zIaZkiAV7Qq5OR5soyjRDQBaE7u8UyOGTgT2r3rSt2 o0pqp+nCmXsqHTiIOFNhRUz0sGgqYgDsZ+fFbS2cl5icCTyd+4i0tO7sLwhczdpewAXI b3cw== X-Gm-Message-State: ABuFfoi4yeQfcIV9WRBspAxEYA9sbeYMI5uMlEns9TrCxIGnz8FLWjq8 4SV0uyqvkm6/cZRNofLosVk= X-Received: by 2002:a1c:6c09:: with SMTP id h9-v6mr10880506wmc.95.1538868868897; Sat, 06 Oct 2018 16:34:28 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id a18sm9158672wrx.55.2018.10.06.16.34.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Oct 2018 16:34:28 -0700 (PDT) From: Nathan Chancellor To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH] netfilter: xt_quota: Don't use aligned attribute in sizeof Date: Sat, 6 Oct 2018 16:33:31 -0700 Message-Id: <20181006233331.13150-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clang warns: net/netfilter/xt_quota.c:47:44: warning: 'aligned' attribute ignored when parsing type [-Wignored-attributes] BUILD_BUG_ON(sizeof(atomic64_t) != sizeof(__aligned_u64)); ^~~~~~~~~~~~~ Use 'sizeof(__u64)' instead, as the alignment doesn't affect the size of the type. Fixes: e9837e55b020 ("netfilter: xt_quota: fix the behavior of xt_quota module") Signed-off-by: Nathan Chancellor --- net/netfilter/xt_quota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/xt_quota.c b/net/netfilter/xt_quota.c index 6afa7f468a73..fceae245eb03 100644 --- a/net/netfilter/xt_quota.c +++ b/net/netfilter/xt_quota.c @@ -44,7 +44,7 @@ static int quota_mt_check(const struct xt_mtchk_param *par) { struct xt_quota_info *q = par->matchinfo; - BUILD_BUG_ON(sizeof(atomic64_t) != sizeof(__aligned_u64)); + BUILD_BUG_ON(sizeof(atomic64_t) != sizeof(__u64)); if (q->flags & ~XT_QUOTA_MASK) return -EINVAL; -- 2.19.0