Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp308667pxj; Fri, 28 May 2021 04:37:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG6BVIpljYSXXMkWWC334NqaC+u173XrvByMayUfJaicS49DT/ipKXsNkUH2tcNbGOMnbz X-Received: by 2002:a17:906:5a9a:: with SMTP id l26mr148990ejq.490.1622201879138; Fri, 28 May 2021 04:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622201879; cv=none; d=google.com; s=arc-20160816; b=O9oZVwJAaiHWoGbT1j+R0Vdo8lAgUUEmFEqE/uaeySiWxbRnf7AIC3xqLJ4P187ju5 PgXXYcvcbDNxjoKU18GxEUWgknfI16brSZ2D3sn0Uo+72LdG/VMnBQ0BDAnwBVTlTqE/ 2KE0KQNQrBeGZiv21S6AJo9d+xzprZBwA/pfucWzJkmT+wUly4ODmN4KByw/UAtMa2yB 45DfGSl0G1NZgBY108ds+tWzLKi8ctRzt8CKyWx5Xnkl/+FDZ0XKP4btS+Luh3dgvDUr ZiexbeSEF3EUVfuX1cUPmGiwyE2rhCJVc/c5pxt1OMM4LCxg0tB7nahsufphP7SN1oJ9 eYkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=baxUJEs65n3xyZIblZq95NtbRVPvoaWnTBTr98e1a+Q=; b=t/5AFETt98/ix8RTEglwNQWEPxDEVXx7fIAfEJV9Pbf014u1yPAZ8mDo14/FLWMA9/ U5J0tIjdsGGWK09eSHSQbi9y8K4mLRkyIBHjLOPWZrK0trxAtW0nwBYzr6GiDISzeOFG eTKSXPfBWIpPslXoE2jitRe1q/1wuDAWN8z+xIaxQjIIe4yy/WDignewB1rsEbLvFu6k RaqGdpFv2nfluAUKlU3WlQWWS8WhGAn4vjf8tFWYNjEaSWlW9uJ1nhhXbAaDcZpkwsSG Vfwu7SVnO86sjJQ/ZSyUqkg3TiKPH9s1Pcm0GAY7gahglZjAoQ74GAH+dE/9Ebmu9cx+ upnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Du15IUen; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si2539087eju.627.2021.05.28.04.37.34; Fri, 28 May 2021 04:37:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Du15IUen; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236429AbhE1JG5 (ORCPT + 99 others); Fri, 28 May 2021 05:06:57 -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 S236327AbhE1JGo (ORCPT ); Fri, 28 May 2021 05:06:44 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B419C0613ED for ; Fri, 28 May 2021 02:05:09 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id z17so2522000wrq.7 for ; Fri, 28 May 2021 02:05:09 -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=baxUJEs65n3xyZIblZq95NtbRVPvoaWnTBTr98e1a+Q=; b=Du15IUenyMTbo9/N8v6OxPcGKX6b5dxlbC12JobH5Gu8kyU0q3L+gg+YrhDXuP60Xx 8bxHY6ePO6u7651R0c4Sj8CWMrI9w+nHj09eNcfxsG7AKIqr+TeAgfQc5YIrYyofe3op 4TOZ52jJPeshmzZ9UMiOBBU6BP8q4WedrMmpeum5Y+LntkfepNyiOyEN4w4dU+5F9iWI s2MpqNLkr+mmnmF3V86K+g0/pzfOLeDPsFy8rhmvwdCeJMrfLrCD5w+8d8HoeBHfLAwM 2MGwxpLagGSVy2kOx2glWfmJRGnlLSjRnriN6UaIYMvzHS1bAB17SJBlfPmyqPjZo4tu rDyw== 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=baxUJEs65n3xyZIblZq95NtbRVPvoaWnTBTr98e1a+Q=; b=ALcDGwFYi9dsd+eMmmyVpx6ekXjRDWq873RruAo1berwzwgpYOEl8vnMCEONegbbVZ 1aidlVwsCmEMZBWznqv6+j+SnCtiXejFgwCQPfmZZSy+XlRk18sfNWDtY9NRfu8uVtQp GYg9n8d0YgpfRJiveQi2u7QcneajAXqaKa0Se8aG2FaanrfK/Qja00XT5d+NXAchCaRB A6O4tJUD79vrysKP2drTQ/aaCUvrQPct9WF9c7ovRx+0hdtbpw/8lwJZmbTHBSTGDDWw ib9aQCVJ5YhGu3h59m/zKv5xM+fErMskeoP36i251gqo3WqVgeLH2IeFx7YNKgkgnRcq 9Nbw== X-Gm-Message-State: AOAM530xrWThSER9y7huEPb6kuTcbvCAOCHiJhIoEOko+bXTy9/KkH5f 6Pblecj0WwGgEinZH8vdv3ZWJA== X-Received: by 2002:adf:a108:: with SMTP id o8mr6255604wro.290.1622192707653; Fri, 28 May 2021 02:05:07 -0700 (PDT) Received: from dell.default ([91.110.221.223]) by smtp.gmail.com with ESMTPSA id q11sm7193937wrx.80.2021.05.28.02.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 02:05:07 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Jens Axboe , linux-ide@vger.kernel.org Subject: [PATCH 03/11] ata: sata_sil24: Do not over-write initialise fields in 'sil24_sht' Date: Fri, 28 May 2021 10:04:54 +0100 Message-Id: <20210528090502.1799866-4-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: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): In file included from drivers/ata/sata_sil24.c:14: drivers/ata/sata_sil24.c:378:16: warning: initialized field overwritten [-Woverride-init] drivers/ata/sata_sil24.c:378:16: note: (near initialization for ‘sil24_sht.can_queue’) Cc: Jens Axboe Cc: linux-ide@vger.kernel.org Signed-off-by: Lee Jones --- drivers/ata/sata_sil24.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c index 560070d4f1d09..06a1e27c4f84a 100644 --- a/drivers/ata/sata_sil24.c +++ b/drivers/ata/sata_sil24.c @@ -374,11 +374,14 @@ static struct pci_driver sil24_pci_driver = { }; static struct scsi_host_template sil24_sht = { - ATA_NCQ_SHT(DRV_NAME), + __ATA_BASE_SHT(DRV_NAME), .can_queue = SIL24_MAX_CMDS, .sg_tablesize = SIL24_MAX_SGE, .dma_boundary = ATA_DMA_BOUNDARY, .tag_alloc_policy = BLK_TAG_ALLOC_FIFO, + .sdev_attrs = ata_ncq_sdev_attrs, + .change_queue_depth = ata_scsi_change_queue_depth, + .slave_configure = ata_scsi_slave_config }; static struct ata_port_operations sil24_ops = { -- 2.31.1