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=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham 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 7A78BC48BD6 for ; Thu, 27 Jun 2019 14:58:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4EC7E20B1F for ; Thu, 27 Jun 2019 14:58:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nW6rZQeC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726565AbfF0O6A (ORCPT ); Thu, 27 Jun 2019 10:58:00 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41893 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726443AbfF0O6A (ORCPT ); Thu, 27 Jun 2019 10:58:00 -0400 Received: by mail-lf1-f67.google.com with SMTP id 136so1790408lfa.8 for ; Thu, 27 Jun 2019 07:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NY6E3pRbAeGkJX9wIK/Nm1oM3Y/QGiVQ3g92XbhUcPI=; b=nW6rZQeCtWoyBm/C2/PgUsVj+WtjyS61O4kx+GtOpcXfcX7/axr5e62sd79lEVqg4Z PcHMo7wCJPGl3d59Pe7MFmWIbDmHBHDkMmlgAL3rQtmDoc3pn85lxNKKQ5V4jrSQA8Ce i6cVSFr9oyr/x65ELltX+Lk4HC4eBZMLzoyUA/LauWQXCWiE6U2UTklQDxNOCQMDpucg xnudwd14X9Upm6uxl5fGJygFr2dfB0as2tCqLB5DkXNOM1/EvZtn0Q/HfxS8lSzs1osF mEKNLoCw/DcBOzkPFLKxfieQjG7GBwoCgzwEZe5QbP52V9GXw/WUMb6rEJt5m1qGCquR 6MDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NY6E3pRbAeGkJX9wIK/Nm1oM3Y/QGiVQ3g92XbhUcPI=; b=KuFrpguc9PnceDyyX4w85rr3RQL8sz98Tv3Y1tmnJS1hEh1Ptwn9CKM0FVyGY9orVt GCJuJx2xp7uPE6kdLOs2fwiWiAR91DaqZdQYbW5i5Cslil8MqW4/1RV34B+EIt/pCwp2 2D+WFTt7fHvw88eq9U0MWfrHBf3Yj9TKSW8coc4w+IEnNOZeem0nufeWwcS2tstO9KKm H9C2B6KgnJNDERboydl7ErEItZPBeDUjCe8vM4Jz+xeGHB6lJ9wOxfX8SkK2/UZBNFTu zsnnOlMZkoEfnhzc0NrGthdUr4xe02u6dREjShFtfEdX8gkw5f3BGCsmOL0i+NWHA1Bo da8w== X-Gm-Message-State: APjAAAWm+DvQg7vOy4ZG/7osI2Y40ACxKmQ5Ng/U/+HNOso1R1hWGnTe vb54DCRu0df2tg+zNiEjKpE/bb44Jw5Dissy6rUXoQ== X-Google-Smtp-Source: APXvYqwPnv0vTnR6pIWZAn8g7t0sJZ5O7W58stX5I1NFpECaW1P5djVIeS/ctdViHMxD+FrzPeodPIw75oRBFzHewfI= X-Received: by 2002:ac2:5382:: with SMTP id g2mr2219936lfh.92.1561647478479; Thu, 27 Jun 2019 07:57:58 -0700 (PDT) MIME-Version: 1.0 References: <20190627181941.1222cb9c@canb.auug.org.au> In-Reply-To: <20190627181941.1222cb9c@canb.auug.org.au> From: Linus Walleij Date: Thu, 27 Jun 2019 15:57:46 +0100 Message-ID: Subject: Re: linux-next: build warning after merge of the gpio tree To: Stephen Rothwell Cc: Linux Next Mailing List , Linux Kernel Mailing List , Enrico Weigelt Content-Type: text/plain; charset="UTF-8" Sender: linux-next-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org On Thu, Jun 27, 2019 at 9:20 AM Stephen Rothwell wrote: > After merging the gpio tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/gpio/gpio-amd-fch.c: In function 'amd_fch_gpio_probe': > drivers/gpio/gpio-amd-fch.c:171:49: warning: passing argument 2 of 'devm_ioremap_resource' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] > priv->base = devm_ioremap_resource(&pdev->dev, &amd_fch_gpio_iores); > ^~~~~~~~~~~~~~~~~~~ > In file included from include/linux/platform_device.h:13, > from drivers/gpio/gpio-amd-fch.c:15: > include/linux/device.h:708:15: note: expected 'struct resource *' but argument is of type 'const struct resource *' > void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res); > ^~~~~~~~~~~~~~~~~~~~~ > > Introduced by commit > > 9bb2e0452508 ("gpio: amd: Make resource struct const") OK I dropped this commit until Enrico get some time to figure out what's going wrong here. Yours, Linus Walleij