From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CD37C433E6 for ; Thu, 28 Jan 2021 18:17:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1EEAA64E71 for ; Thu, 28 Jan 2021 18:17:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231446AbhA1SR2 (ORCPT ); Thu, 28 Jan 2021 13:17:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbhA1SGL (ORCPT ); Thu, 28 Jan 2021 13:06:11 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24B6AC0611C0 for ; Thu, 28 Jan 2021 10:03:02 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id 7so6362297wrz.0 for ; Thu, 28 Jan 2021 10:03:02 -0800 (PST) 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=RnaBivPDyIR6gMAHAoH39HuDWPvuUIfAphuD3A1F0ZE=; b=GmTt6uepAz3Dn8NZmdm/BpZmoDDL7JOogKQSj/2DdscZhtv74SQ3r/PuDlDeSForKM o5+rbKyl5ATV6x06CbajjAu6abcqUq8sObBpfUXgwKD0GdKkoDwniAUcuFY2a0FwAAYu +Qa/Na6KUrTg9/jQlzFcZZHJdIRb1NImmmQTvvy4YdSjlu+lqINGVXOodnVNaPh74vkA AP7antxMT6B0JYzbuXNgSrb07xCThkY03NIQZ3aS9mvKs8mQacXQCIm9chMlc0BHDWot Yl4K3CbN5hKt54wYnGPI3eKRLPdl70gICFBfr34rg4I2NgmbT8mdl1H8PZl/DV6+75aI HMUA== 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=RnaBivPDyIR6gMAHAoH39HuDWPvuUIfAphuD3A1F0ZE=; b=XSTOMiMkQ2uaAQsJIlZyjo3I3XpC/rjj+cJ3V8IfMzJYUyWTOG3EvQ40i3CCanCH+q EHn2rb2F2PaX2V0ZUFr+Qdlwgeae/v93r1gBnCRS63o9cKkDjM/aj6WzJnvJ6Vuv7GwV gyo62KBdeZgpihhVireB2J9titklOE59ZGMNp0lYB0D1eWW9hrseH9oXiNBpqx+DJF1E ZEAnOQuBI0nF5U9BDiYVo59YtZjYTDhV+FTWQNaG0aQbL9MhJxJwRN2F2pYhh1prNCKm kNCBFZKHIfS0XR/AUJJte7UeMkyOvjOvw0ZzmIUh9dsSdPtQ6xwjbrHUoRM3sxlvaUfi bW8Q== X-Gm-Message-State: AOAM5319bQev2vK1o/N0MSIEf1CenyAnqDB5hGvV9SSQIx67NacH1GtJ 3qTXWBcMzji0at8pmp3atgr1wA== X-Google-Smtp-Source: ABdhPJyQoFfgxJ9wREOuyYhhU7/FmotdW8dZeHkvFg/1RJHmXWvNuU2KrLPJd6Ia32VJzLOcpRkxQg== X-Received: by 2002:a05:6000:108b:: with SMTP id y11mr233167wrw.379.1611856980901; Thu, 28 Jan 2021 10:03:00 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id u6sm8280794wro.75.2021.01.28.10.02.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 10:03:00 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Jens Axboe , linux-ide@vger.kernel.org Subject: [PATCH 15/20] ata: sata_highbank: Ignore -Woverride-init Date: Thu, 28 Jan 2021 18:02:34 +0000 Message-Id: <20210128180239.548512-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210128180239.548512-1-lee.jones@linaro.org> References: <20210128180239.548512-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 Some ATA drivers use the SCSI host template, a series of interwoven macros, to aid with initialisation. Some of these macros conflict, resulting in the over-writing of previously set values. This is known behaviour and can be safely ignored. Fixes the following W=1 kernel build warning(s): In file included from drivers/ata/sata_highbank.c:25: drivers/ata/ahci.h:387:16: warning: initialized field overwritten [-Woverride-init] drivers/ata/sata_highbank.c:442:2: note: in expansion of macro ‘AHCI_SHT’ drivers/ata/ahci.h:387:16: note: (near initialization for ‘ahci_highbank_platform_sht.can_queue’) drivers/ata/sata_highbank.c:442:2: note: in expansion of macro ‘AHCI_SHT’ drivers/ata/ahci.h:391:17: warning: initialized field overwritten [-Woverride-init] drivers/ata/sata_highbank.c:442:2: note: in expansion of macro ‘AHCI_SHT’ drivers/ata/ahci.h:391:17: note: (near initialization for ‘ahci_highbank_platform_sht.sdev_attrs’) drivers/ata/sata_highbank.c:442:2: note: in expansion of macro ‘AHCI_SHT’ Cc: Jens Axboe Cc: linux-ide@vger.kernel.org Signed-off-by: Lee Jones --- drivers/ata/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile index d46703777cdd4..cf851f5a4e7fd 100644 --- a/drivers/ata/Makefile +++ b/drivers/ata/Makefile @@ -5,6 +5,7 @@ CFLAGS_ahci_ceva.o = $(call cc-disable-warning, override-init) CFLAGS_ahci_dm816.o = $(call cc-disable-warning, override-init) CFLAGS_ahci_mtk.o = $(call cc-disable-warning, override-init) CFLAGS_ahci_platform.o = $(call cc-disable-warning, override-init) +CFLAGS_sata_highbank.o = $(call cc-disable-warning, override-init) CFLAGS_sata_sil24.o = $(call cc-disable-warning, override-init) obj-$(CONFIG_ATA) += libata.o -- 2.25.1