Message ID | 20210528090502.1799866-9-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <linux-ide-owner@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-ide-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=qPwRtiIf; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4FrzKv64srz9sVb for <incoming@patchwork.ozlabs.org>; Fri, 28 May 2021 19:05:23 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236384AbhE1JG4 (ORCPT <rfc822;incoming@patchwork.ozlabs.org>); Fri, 28 May 2021 05:06:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236389AbhE1JGu (ORCPT <rfc822;linux-ide@vger.kernel.org>); Fri, 28 May 2021 05:06:50 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 035CCC06138D for <linux-ide@vger.kernel.org>; Fri, 28 May 2021 02:05:14 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id c3so2516915wrp.8 for <linux-ide@vger.kernel.org>; Fri, 28 May 2021 02:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LMvYDOyB4q/E0pHYpqQ2C8W3ut3TbG5YnHO9reTpRZ8=; b=qPwRtiIf356iO0N+o9+zvphIFonH4vM3b0l/Wm8lkkXPMvtKqTx7RrFhPVxumltpXR VF9TrkdFn28SjLwsutgtc05Tv26h2BxpulbdyjwiP4gmJ+adG0gauJa0WphZ+X1VS1sv 1I5S+ZWRTHIYmss1XIadDgwugFsSHevT3Nd9pIY+98oy3O6Lh6wcn32HVpY1s0gCCd4H BO8VM07NAgAPdUeobdNXSJ8vmTG6swKG3Xuh1vsBWvzpnREcxfP7mt12WNGzMVSRlVie c9jctBZyXuyLvfNIYCTr7UXReGFGA8MSVxace6YmgQJ9d6b2InxEuZm81AU0rYmSG66t yaLA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=LMvYDOyB4q/E0pHYpqQ2C8W3ut3TbG5YnHO9reTpRZ8=; b=sv/FSNGN75T5kAb67d+brOVMlWx3h/4xBRiiFk+RlR9LHx/akaWoUtiPN5oeEMUoR4 dRej2DYO56Vf0PB5JQXmMvSlf4CR1nGpxiN67gLNQ5neH1bdKfHSb6ZsdIlVof+QSClV yAy34aG+9LCdNpyaYDvcQaW8uuaSjDklpOEZzYp0dFFyolwgB4+i78nK6hI1ho6mRhBK OM3ZPXs3vPkjqOLuBVdwfFiZXRfwqrcj6Y289UjHdTtFANGkbsmj1T+ErB+HsH0eroUr XHWXCqWGI4Idk8Ac4PkcD7LkGOJAk8tfupHzoIRjX6XEFN8mXdWgNk35uZTpoWWfDqXo SiHA== X-Gm-Message-State: AOAM532pSHQqDctkeGJPhAZ/EDmeeX43X+Tuj5Rpvm2RiI2B6AbvwReQ LkkBRYq7U288QcUZ2VNMjsR5xg== X-Google-Smtp-Source: ABdhPJyKTUIMwgZkSCn1R0n+vDSqNCDl85dzoFS0BmFDVM3BYet+SaT4QFvnV2pRfb5VNTpQg8ZnQA== X-Received: by 2002:a5d:4304:: with SMTP id h4mr7872787wrq.210.1622192712642; Fri, 28 May 2021 02:05:12 -0700 (PDT) Received: from dell.default ([91.110.221.223]) by smtp.gmail.com with ESMTPSA id q11sm7193937wrx.80.2021.05.28.02.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 02:05:12 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Jens Axboe <axboe@kernel.dk>, linux-ide@vger.kernel.org Subject: [PATCH 08/11] ata: pata_cs5530: Avoid overwriting initialised field in 'cs5530_sht' Date: Fri, 28 May 2021 10:04:59 +0100 Message-Id: <20210528090502.1799866-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210528090502.1799866-1-lee.jones@linaro.org> References: <20210528090502.1799866-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-ide.vger.kernel.org> X-Mailing-List: linux-ide@vger.kernel.org |
Series |
Rid W=1 warnings from ATA
|
expand
|
diff --git a/drivers/ata/pata_cs5530.c b/drivers/ata/pata_cs5530.c index a1b4aaccaa50a..d5b7ac14e78f5 100644 --- a/drivers/ata/pata_cs5530.c +++ b/drivers/ata/pata_cs5530.c @@ -147,8 +147,9 @@ static unsigned int cs5530_qc_issue(struct ata_queued_cmd *qc) } static struct scsi_host_template cs5530_sht = { - ATA_BMDMA_SHT(DRV_NAME), + ATA_BASE_SHT(DRV_NAME), .sg_tablesize = LIBATA_DUMB_MAX_PRD, + .dma_boundary = ATA_DMA_BOUNDARY, }; static struct ata_port_operations cs5530_port_ops = {
Fixes the following W=1 kernel build warning(s): drivers/ata/pata_cs5530.c:151:18: warning: initialized field overwritten [-Woverride-init] drivers/ata/pata_cs5530.c:151:18: note: (near initialization for ‘cs5530_sht.sg_tablesize’) Cc: Jens Axboe <axboe@kernel.dk> Cc: linux-ide@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/ata/pata_cs5530.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)