Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3044392imm; Mon, 24 Sep 2018 14:46:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV61dBhpviz7U3SnJhzl2LYr5GeHTXZ/MavRYEZRIo7YgGUiVLvyoXEujWs+8hSkERtSWohn2 X-Received: by 2002:a17:902:a413:: with SMTP id p19-v6mr590581plq.220.1537825596170; Mon, 24 Sep 2018 14:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537825596; cv=none; d=google.com; s=arc-20160816; b=h5/Z8jbU371UyCqVcyqWAs5fe2+I8UBUdqsZ33cBPyStEjqNeftIPs4NAIqvwXhwWO FNLyTSiMsd3ewYwVU8JHPoVA+gQBPb2CAzKNPtM8I8r7uCCJP3rS/77rW2bMVBkQvQC+ sG7gx8+Bhn9Aqfrqfa8nsacvhlS/Q+boQdcRzMAln3M2dVsPQfflYHy4lujJSPzMjxo4 O2ER44iYTr99UK3LVrsL2Fj0TBCPmSSxVLAwSTnanaA7ZA2utSOjFsl6CfCbgQIxQHFB XnP8ByY4A5440l+2J5BBX7AAPpyQ4AU6yYmXHbM28JnlohcFTeXdfAnvtgi1GuwtI3O0 aCAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7zKE30QQ0vHAE8ldty1xGeIpWSnXRlKdIlGk716QWrQ=; b=qehvMv0SbStzVk6VnQWt/9xslwXDBc7ZN4O03wNHgKgrcZ5uv5/Q+T7BO4quibd6Qd I98g5ff3DMXGDvjHWwnfCHJz+KTViqbWIqGdsvzwMeMkh6oVZc7uvP58CE1IlrObRjWx Fv+Q5GSSe7UNqN/UK9MuyHafK+d+mW62sxM5/dVFoOEybYvH0FFpPS7BVrZNHziwfonk 5BFsU4JeYhOiClj/IGgHvRHFNouu/RsHWpm1t75y2UjCzzQteNJ7PsGI/JHGZH1ePGFn JxWFEv0cw0w+JUthu6ZcPmDfsbZJf6M52U8CqwzKBUklpjbUv4D43OoU+dVE9m2+a1Vz S8mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bl6u0aX3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x26-v6si389919pfn.286.2018.09.24.14.46.16; Mon, 24 Sep 2018 14:46:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bl6u0aX3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728582AbeIYDsq (ORCPT + 99 others); Mon, 24 Sep 2018 23:48:46 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:34943 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbeIYDsp (ORCPT ); Mon, 24 Sep 2018 23:48:45 -0400 Received: by mail-wm1-f66.google.com with SMTP id o18-v6so11544650wmc.0; Mon, 24 Sep 2018 14:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7zKE30QQ0vHAE8ldty1xGeIpWSnXRlKdIlGk716QWrQ=; b=bl6u0aX3QTGRMy0daFI4Vj6Bxb4md24bNWzehv2OV3YwZzAZCqoTw0IzQRq12llZK1 1FLA9yYXEbTeVNBYJa81Q9wzw0bO70BxwDBCB6IT0D/2xz1mH+JUFkN7SI0QDvtEQTmt c0cdd96lBU3JXiW+IP2shNvtsrYpVXKRYAwkPZKHzJyNL6Lbh6yWsKfBEEUKQoSbc8U2 7ZJmbKsBfnTnLQwjAEzOG1XSS+cWkkEWA7nR2D7WdBAfV9pdx4NO842n3U0xY47EMOZJ yzJRQETdwEC3mZOfkXfYjqSOIop0aHEVSDGBNlN7mpgo+tTz4wGdFB+JA0LLg+ERS6di XVcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7zKE30QQ0vHAE8ldty1xGeIpWSnXRlKdIlGk716QWrQ=; b=XaPzI5w+Lik1W0oKy4eRgDpQ8CDDoLtLU5MhkwZ9OHjb8myfw5S3si7V6HI04O3ZSF /KpK7QAxQIAjdU5Qd2IH7gmWRcUaxD9UJSzGC/nzMngodkpurnmrpcpULdk0oGEkJYjV JGIOn8DKsSsomOJTHBsFvmQLVwh+C5QHjxeYsV2a661YZUEIIjnGI3SGDDhRJIjVvW60 aL0xSsWfe3KhmLgZRJnm1GN3b6um7bOaIPsQ2vIbuSm8L8fg9caTpq9Re1/nc/qyRXqV otqsKxGA6djEEAfM/ukOmHbioi19wmJc6j9n1kv1xI33OqFdiRlsRpwsNFXS+szZs1jo Li3w== X-Gm-Message-State: ABuFfogvtkGGFyMHQyWGgGbpmSfVjHGT3AVxLTGWPw56OjxmTfaE09u/ Vc8bO9y/PVOsLDLkaL8bgJo= X-Received: by 2002:a1c:a386:: with SMTP id m128-v6mr159894wme.139.1537825468135; Mon, 24 Sep 2018 14:44:28 -0700 (PDT) Received: from flashbox ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id m68-v6sm387828wmb.10.2018.09.24.14.44.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Sep 2018 14:44:27 -0700 (PDT) Date: Mon, 24 Sep 2018 14:44:25 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: ghook@amd.com, Thomas.Lendacky@amd.com, Gary.Hook@amd.com, Herbert Xu , linux-crypto@vger.kernel.org, LKML Subject: Re: [PATCH] crypto: ccp: Remove forward declaration Message-ID: <20180924214425.GA22651@flashbox> References: <20180924172615.25591-1-natechancellor@gmail.com> <33c9afa7-ea62-1248-1da4-381f93238627@amd.com> <20180924194040.GA17672@flashbox> <9cbc1f67-719e-de75-8b0c-2de4da71b2f8@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 24, 2018 at 02:42:56PM -0700, Nick Desaulniers wrote: > On Mon, Sep 24, 2018 at 2:22 PM Gary R Hook wrote: > > > > On 09/24/2018 02:40 PM, Nathan Chancellor wrote: > > > On Mon, Sep 24, 2018 at 07:18:23PM +0000, Gary R Hook wrote: > > >> On 09/24/2018 12:26 PM, Nathan Chancellor wrote: > > >>> Clang emits a warning about this construct: > > >>> > > >>> drivers/crypto/ccp/sp-platform.c:36:36: warning: tentative array > > >>> definition assumed to have one element > > >>> static const struct acpi_device_id sp_acpi_match[]; > > >>> ^ > > >>> 1 warning generated. > > >>> > > >>> Just remove the forward declarations and move the initializations up > > >>> so that they can be used in sp_get_of_version and sp_get_acpi_version. > > >> > > >> I'm not going to out and out object to this just yet. > > >> > > >> I am not a clang expert. Can you please provide a make command that > > >> would explain how you precipitated this complaint? > > >> > > > > > > Hi Gary, > > > > > > I can produce the warning with Clang 6.0 using the following set of > > > commands: > > > > > > make ARCH=arm64 CC=clang CROSS_COMPILE=aarch64-linux-gnu- allyesconfig > > > ./scripts/config -d CONFIG_CPU_BIG_ENDIAN > > > make ARCH=arm64 CC=clang CROSS_COMPILE=aarch64-linux-gnu- olddefconfig > > > make ARCH=arm64 CC=clang CROSS_COMPILE=aarch64-linux-gnu- drivers/crypto/ccp/sp-platform.o > > > > No, I"m not getting a warning on my system. I get this: > > > > ghook@taos:~/src/cryptodev-2.6/src$ make ARCH=arm64 CC=clang > > CROSS_COMPILE=aarch64-linux-gnu- CFLAGS=-v > > arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; > > kernel may be susceptible to erratum > > arch/arm64/Makefile:40: LSE atomics not supported by binutils > > ./scripts/config -d CONFIG_ARM64_LSE_ATOMICS > D'oh, I keep forgetting to update my gist with my commands... Thanks! > > arch/arm64/Makefile:48: Detected assembler with broken .inst; > > disassembly will be unreliable > > CALL scripts/checksyscalls.sh > > VDSOA arch/arm64/kernel/vdso/gettimeofday.o > > arch/arm64/kernel/vdso/gettimeofday.S: Assembler messages: > > arch/arm64/kernel/vdso/gettimeofday.S:28: Error: no such instruction: > > `vdso_data .req x6' > > arch/arm64/kernel/vdso/gettimeofday.S:29: Error: no such instruction: > > `seqcnt .req w7' > > arch/arm64/kernel/vdso/gettimeofday.S:30: Error: no such instruction: > > `w_tmp .req w8' > > ... > > > > The only reason I bring this up is that it would be helpful to be able > > to recreate results. I figure I'm not set up for this. > > > > That said... please see my response to Nick. > > > > -- > Thanks, > ~Nick Desaulniers