Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp668699ybz; Wed, 22 Apr 2020 05:53:50 -0700 (PDT) X-Google-Smtp-Source: APiQypIKBYq+kwNlGIdA0n9YkwopnrI9X8OgvnqHTyTBoieQhApty3+nT+RmWCu25QpwWXi7HmY+ X-Received: by 2002:a17:907:41b6:: with SMTP id na6mr25237858ejb.119.1587560030379; Wed, 22 Apr 2020 05:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587560030; cv=none; d=google.com; s=arc-20160816; b=A2/9yNDMLwjEuuaQnklN0XAX7WDxCGNRja0QoaoOhX46WcNTjM9l4js42/EKp1BrVT RspbppORSPOsRG3x2lMQWsruuxDJWe9lVu0wGR0e4YFzdbasxQepTwF5gWv2WAenH3Ss W3BrT4Fjuht1QHw/vg6ESrn8XrFhAyTRB1G7p/o7tV0a6AXFkRwvW8UsJ3rGMqOlLpQ/ tAb2pqkEyX9Vpstgh7l+NSzsKTAyP4iRPfsSeadDHNUGShiXRhXjMQFSuf4di/L5aB6R p0uZNfUbaXchBQTgUfbuZF9jFQFI+gpBUu+zmPBXBVPbkgLcMzYA3aeyFWmpjIqVlb4/ k06A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ent6+GWTAd1CN2cQFL7owIeVj6EL283gNxioSTs4l5o=; b=ntOCxoaaYK39W9WSzntF616wbsT/wzaXoHxLt//sqxJxRCKBRw/w9nwfTltPqZ3k2F nV9/i1VA/G0FF64RZrvTFMS6KEGnDfEi1GPhARM+s96QWz6+z5jxFCrcwYz7ypyztdhL geLxm5+pjPm/cF4Rvu1rYiXFqc1VTBOOzFFs1Yd3uxqcxOQ6Dv6C9RWCpCTpRizXtXdn QD9ljmiOqQOxi3EHLCoFH9JSTM2Ig8tWyloPW9YHTV3PSEZ7n6Pp5X99PYKGTmKIlgAP JUBFptEFz0btjgz5nwSoXD9irLBSkOKt6oAjnDtwjA0uYL0l2hLvKsfeOrN7bhXp+pM8 /SXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F32Qzgth; 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 r15si3246973edx.362.2020.04.22.05.53.27; Wed, 22 Apr 2020 05:53:50 -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=F32Qzgth; 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 S1729704AbgDVKrZ (ORCPT + 99 others); Wed, 22 Apr 2020 06:47:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729738AbgDVKPv (ORCPT ); Wed, 22 Apr 2020 06:15:51 -0400 Received: from mail-ua1-x942.google.com (mail-ua1-x942.google.com [IPv6:2607:f8b0:4864:20::942]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FE03C03C1AA for ; Wed, 22 Apr 2020 03:15:51 -0700 (PDT) Received: by mail-ua1-x942.google.com with SMTP id y10so1016289uao.8 for ; Wed, 22 Apr 2020 03:15:51 -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:content-transfer-encoding; bh=ent6+GWTAd1CN2cQFL7owIeVj6EL283gNxioSTs4l5o=; b=F32QzgthXD2jgAuQ+ulZ7jjKUc5cEILBetXy1JuSILGE0igdjC2J+lnu2jSNRH5O+P iUF47dndUkLlazROwjFbGHDTMtiDDzdTJikSM1TF/CvtD9WvqW2VEQhu2wAO7wiglWL6 MMekwxK9vV8suAiRek8nAFqL0lJwXKAZSg3US0Bj/E8at5iKP/lc/QmsNULdHi2kp33H l7srBJ5x4usVwd4oulnyViwGb5/3CGCvs0VwhB5f6oXkQD2pcAy+Y2XagtstUjUHbi+e 4bHO8GzDRl86l2mdjcRT43iujjarSg946/pa9aUENTDs7od6CaGTzGwAuHdVlQUIjgtm v/yA== 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:content-transfer-encoding; bh=ent6+GWTAd1CN2cQFL7owIeVj6EL283gNxioSTs4l5o=; b=sey+Go+j5bRbein0JCBtuAO9N6/prJFIApMI+wDFvVU0h1PT016wXCyR2ak+KFap7Z E25kbVng6RGb9FlzHNe6O1dQu1vfyR0NSgO+/0fAKblwbhv8LW0ONhXDRa0QLvT9r3pX EVkU+h/yjdimcnTzd2px/CUk7zwmqrQNde4n6A1WGKW91R6ZdJiCitJohrLyNS0SEkxw YgK3xtpjn3UbvVykny8n+fOHjq5XKNxPGXhlhpkn/bTmbSs01xHs1eFMMAz9FyO7XzMM edoXo7VAJpBWOi6Bp1GLw4y3IwiuXHySFrI/3AC6MzzhChQTqwNW9k0/D7PxFCFew2YX 4Unw== X-Gm-Message-State: AGi0PubAChVQRHYe+IaotIhRUyma6HjV1FYhwrS1cBRdpwCus6GTsg7Y p8KJ5NCEa3BpnVodLFRFxfWyRcRxylo6QyePpkAkVQ== X-Received: by 2002:ab0:2ea:: with SMTP id 97mr15760020uah.129.1587550548143; Wed, 22 Apr 2020 03:15:48 -0700 (PDT) MIME-Version: 1.0 References: <20200417145017.3932443d@canb.auug.org.au> <995a958c-15a1-cb05-e276-065c7f6e57fd@infradead.org> In-Reply-To: From: Ulf Hansson Date: Wed, 22 Apr 2020 12:15:12 +0200 Message-ID: Subject: Re: linux-next: Tree for Apr 17 (mmc/host/sdhci-of-at91.c) To: Masahiro Yamada Cc: Adrian Hunter , Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Ludovic Desroches , linux-mmc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Apr 2020 at 14:28, Masahiro Yamada wrote: > > On Mon, Apr 20, 2020 at 7:28 PM Adrian Hunter w= rote: > > > > On 20/04/20 12:12 pm, Ulf Hansson wrote: > > > + Masahiro Yamada, Adrian Hunter > > > > > > On Fri, 17 Apr 2020 at 16:48, Randy Dunlap wr= ote: > > >> > > >> On 4/16/20 9:50 PM, Stephen Rothwell wrote: > > >>> Hi all, > > >>> > > >>> Changes since 20200416: > > >>> > > >> > > >> on i386: > > >> > > >> CC drivers/mmc/host/sdhci-of-at91.o > > >> In file included from ../include/linux/build_bug.h:5:0, > > >> from ../include/linux/bitfield.h:10, > > >> from ../drivers/mmc/host/sdhci-of-at91.c:9: > > >> ../drivers/mmc/host/sdhci-of-at91.c: In function =E2=80=98sdhci_at91= _set_clks_presets=E2=80=99: > > >> ../include/linux/compiler.h:394:38: error: call to =E2=80=98__compil= etime_assert_63=E2=80=99 declared with attribute error: FIELD_PREP: value t= oo large for the field > > >> _compiletime_assert(condition, msg, __compiletime_assert_, __COUNT= ER__) > > >> ^ > > >> ../include/linux/compiler.h:375:4: note: in definition of macro =E2= =80=98__compiletime_assert=E2=80=99 > > >> prefix ## suffix(); \ > > >> ^~~~~~ > > >> ../include/linux/compiler.h:394:2: note: in expansion of macro =E2= =80=98_compiletime_assert=E2=80=99 > > >> _compiletime_assert(condition, msg, __compiletime_assert_, __COUNT= ER__) > > >> ^~~~~~~~~~~~~~~~~~~ > > >> ../include/linux/build_bug.h:39:37: note: in expansion of macro =E2= =80=98compiletime_assert=E2=80=99 > > >> #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg= ) > > >> ^~~~~~~~~~~~~~~~~~ > > >> ../include/linux/bitfield.h:49:3: note: in expansion of macro =E2=80= =98BUILD_BUG_ON_MSG=E2=80=99 > > >> BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ > > >> ^~~~~~~~~~~~~~~~ > > >> ../include/linux/bitfield.h:94:3: note: in expansion of macro =E2=80= =98__BF_FIELD_CHECK=E2=80=99 > > >> __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ > > >> ^~~~~~~~~~~~~~~~ > > >> ../drivers/mmc/host/sdhci-of-at91.c:185:11: note: in expansion of ma= cro =E2=80=98FIELD_PREP=E2=80=99 > > >> caps1 |=3D FIELD_PREP(SDHCI_CLOCK_MUL_MASK, clk_mul); > > > > My guess is the compiler has decided clk_mul is constant (probably (uns= igned > > int)-1) because there is no CONFIG_COMMON_CLK i.e. clk_get_rate() is 0 > > > > So maybe add to config MMC_SDHCI_OF_AT91 > > > > depends on COMMON_CLK > > > > >> ^~~~~~~~~~ > > > > I checked include/linux/clk.h > > > clk_get_rate() is guarded by CONFIG_HAVE_CLK. > > I think > > depends on HAVE_CLK Do you have the possibility of sending a patch, asap. Otherwise I can help to do it!? Kind regards Uffe