mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [cel:topic-rpc-with-tls 8/8] net/sunrpc/svcauth.c:39:10: error: 'RPC_AUTH_TLS' undeclared here (not in a function); did you mean 'RPC_AUTH_GSS'?
Date: Wed, 8 Dec 2021 06:07:52 +0800	[thread overview]
Message-ID: <202112080624.nH4NZavB-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux topic-rpc-with-tls
head:   21c40b0003975c1afe4b59126aba2c547103ccae
commit: 21c40b0003975c1afe4b59126aba2c547103ccae [8/8] SUNRPC: Teach server to recognize RPC_AUTH_TLS
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20211208/202112080624.nH4NZavB-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/commit/?id=21c40b0003975c1afe4b59126aba2c547103ccae
        git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
        git fetch --no-tags cel topic-rpc-with-tls
        git checkout 21c40b0003975c1afe4b59126aba2c547103ccae
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash net/sunrpc/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> net/sunrpc/svcauth.c:39:10: error: 'RPC_AUTH_TLS' undeclared here (not in a function); did you mean 'RPC_AUTH_GSS'?
      39 |         [RPC_AUTH_TLS]  = (struct auth_ops __force __rcu *)&svcauth_tls,
         |          ^~~~~~~~~~~~
         |          RPC_AUTH_GSS
>> net/sunrpc/svcauth.c:39:10: error: array index in initializer not of integer type
   net/sunrpc/svcauth.c:39:10: note: (near initialization for 'authtab')
--
   net/sunrpc/svcauth_unix.c: In function 'svcauth_tls_accept':
>> net/sunrpc/svcauth_unix.c:842:36: error: 'RPC_AUTH_TLS' undeclared (first use in this function); did you mean 'RPC_AUTH_GSS'?
     842 |         rqstp->rq_cred.cr_flavor = RPC_AUTH_TLS;
         |                                    ^~~~~~~~~~~~
         |                                    RPC_AUTH_GSS
   net/sunrpc/svcauth_unix.c:842:36: note: each undeclared identifier is reported only once for each function it appears in
   net/sunrpc/svcauth_unix.c: At top level:
>> net/sunrpc/svcauth_unix.c:849:27: error: 'RPC_AUTH_TLS' undeclared here (not in a function); did you mean 'RPC_AUTH_GSS'?
     849 |         .flavour        = RPC_AUTH_TLS,
         |                           ^~~~~~~~~~~~
         |                           RPC_AUTH_GSS

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for CRYPTO_SHA1_SSSE3
   Depends on CRYPTO && X86 && 64BIT
   Selected by
   - TLS_HANDSHAKE && NET && TLS && TLS_SOFTIRQ


vim +39 net/sunrpc/svcauth.c

    35	
    36	static struct auth_ops __rcu *authtab[RPC_AUTH_MAXFLAVOR] = {
    37		[RPC_AUTH_NULL] = (struct auth_ops __force __rcu *)&svcauth_null,
    38		[RPC_AUTH_UNIX] = (struct auth_ops __force __rcu *)&svcauth_unix,
  > 39		[RPC_AUTH_TLS]  = (struct auth_ops __force __rcu *)&svcauth_tls,
    40	};
    41	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2021-12-07 22:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202112080624.nH4NZavB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chuck.lever@oracle.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®