From patchwork Thu Oct 25 18:05:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10656347 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6157713BF for ; Thu, 25 Oct 2018 18:06:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 558992C330 for ; Thu, 25 Oct 2018 18:06:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48D7F2C338; Thu, 25 Oct 2018 18:06:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DC9B92C330 for ; Thu, 25 Oct 2018 18:06:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4HM1UZcYtSEGwlWZhcXrg4OQyhiV8gi0zWvlECcZTaI=; b=rZTce21BhNcoYh /xnQF/3SWG5+oUqVXLU5C0N+1kl6llAkGF31FBvq3bUmrNJcVWr4Uj/Ko3vrJCUii7l82cxFKj1TF pAwVcDBCNW9j4Eio/3w9mGPG1BqzI61wEBnsthdnJmpU5DnaB9i8YePL/8WjNvcAjctXvBly1D6cS vKN4C4NByikx+cgsEHpoZjh+YFHsnBIOvcE/qJvIo0rnt53OgI2GO8TgUlhSICARSTX1DSF1G+fs0 kLSVU+BuUxtinmNoy05agJzyEDnx6puKjSlVaTZSLffNrVAsl0Hlz6UfJp5eSpH08mf6pTJn6Hj5l oWoHNJF1wZidN3e0t9ZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFk1d-0001ee-LS; Thu, 25 Oct 2018 18:06:29 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFk1Z-0001cO-PT for linux-arm-kernel@lists.infradead.org; Thu, 25 Oct 2018 18:06:27 +0000 Received: by mail-wr1-x444.google.com with SMTP id l6-v6so10291721wrt.1 for ; Thu, 25 Oct 2018 11:06:15 -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=rBKz2T//G9OngGCPqFlxdVwY9Ric2yMKcHTmbAq8Sgg=; b=sHr1rJuPzRqJkiF1vqAPT+VUCzVJNGfyWJxzM5Dzy7Fsx+6/boAOx3AbcfyLSBM5+W Dk/IV/grPlz/aSKh6UvYaCJ72z3/zRhtX9c9shd0grFjcCWDFtiiVWQuH3dJHB2kLLPi lsQnwbxdypLr8QFWN6GHQ5lfmEDifuimoQF1zui58aQNGWnKDvverqk7ogJRJiOyr8en Lqr1viCkDQ+kiQJBFmgotqiWSIDyWNgT5HIB6+l7uD5OUCuPy3gt19HHr0YW02N/3+Pr jEuGGGt5NhmlgajoCcQGhrm15YMkVOf/AUjWNcVxcitnJKUwhXEjthZJlI9d/qJNW1N4 R/pw== 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=rBKz2T//G9OngGCPqFlxdVwY9Ric2yMKcHTmbAq8Sgg=; b=DESp1DWFq+Tz3IABe9nX1LME0RO8v9Ea3DxmlOmYa0E7oNWTWr27rZ1Xs/Y96GLd0D HB9Gz34jJDxdOrH8muT3DcLVFAEbnNMadQw/7XP/N3oz20xbIygOlwHtBvKp59i/3QKI Ovgk8YFxDtt9QKYY1o+opjbkfSgPXu8jOegBAIf59sUn4Hxzqd/jKISMwDRIHrmdiqME pSpmR6Rc8mmi+AMG5RO1sb1zvdlv2ExJN2H6oXaTyxyfcsxC6fGVBo9Jv8if1ZV2aU5L EVPGG8IuBjvYIq/Q3Qsd2fhFItzGZbnIIGz/GWwlQuarYaPQGHXc9QI7XhdMJRmelhq+ H2AQ== X-Gm-Message-State: AGRZ1gKcaZm1Jp4GVqAjfdLvPmb9uIE4+Tvwn5d8VC4D5G0wzU4N38JU rbIYOYVaLGvAAtgq0GjfEORng9kC X-Google-Smtp-Source: AJdET5dP2wRD54Y8gYRq0P762UrAEybiFTC2qP1aAlYWMoAmnWMb326VWJfrBxSxVx+xEjhedp5NbA== X-Received: by 2002:a5d:4d46:: with SMTP id a6-v6mr2962047wru.316.1540490773251; Thu, 25 Oct 2018 11:06:13 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id j46-v6sm14732393wre.91.2018.10.25.11.06.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 11:06:12 -0700 (PDT) From: Nathan Chancellor To: Vinod Koul Subject: [PATCH] dmaengine: xilinx_dma: Remove __aligned attribute on zynqmp_dma_desc_ll Date: Thu, 25 Oct 2018 11:05:25 -0700 Message-Id: <20181025180525.28378-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181025_110625_829230_D85F9DF9 X-CRM114-Status: GOOD ( 13.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nick Desaulniers , Michal Simek , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Dan Williams , Nathan Chancellor , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Clang warns: drivers/dma/xilinx/zynqmp_dma.c:166:4: warning: attribute 'aligned' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes] }; __aligned(64) ^ ./include/linux/compiler_types.h:200:38: note: expanded from macro '__aligned' #define __aligned(x) __attribute__((aligned(x))) ^ 1 warning generated. As Nick pointed out in the previous version of this patch, the author likely intended for this struct to be 8-byte (64-bit) aligned, not 64-byte, which is the default. Remove the hanging __aligned attribute. Fixes: b0cc417c1637 ("dmaengine: Add Xilinx zynqmp dma engine driver support") Reported-by: Nick Desaulniers Suggested-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers --- drivers/dma/xilinx/zynqmp_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c index c74a88b65039..73de6a6179fc 100644 --- a/drivers/dma/xilinx/zynqmp_dma.c +++ b/drivers/dma/xilinx/zynqmp_dma.c @@ -163,7 +163,7 @@ struct zynqmp_dma_desc_ll { u32 ctrl; u64 nxtdscraddr; u64 rsvd; -}; __aligned(64) +}; /** * struct zynqmp_dma_desc_sw - Per Transaction structure