Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Yue Haibing <yuehaibing@huawei.com>
Cc: kbuild-all@01.org, davem@davemloft.net, joe@perches.com,
	gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org, YueHaibing <yuehaibing@huawei.com>
Subject: Re: [PATCH -next] appletalk: use remove_proc_subtree to simplify procfs code
Date: Thu, 28 Feb 2019 02:32:36 +0800	[thread overview]
Message-ID: <201902280258.NGNqGI7X%fengguang.wu@intel.com> (raw)
In-Reply-To: <20190227150023.28420-1-yuehaibing@huawei.com>

[-- Attachment #1: Type: text/plain, Size: 3160 bytes --]

Hi YueHaibing,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on next-20190227]

url:    https://github.com/0day-ci/linux/commits/Yue-Haibing/appletalk-use-remove_proc_subtree-to-simplify-procfs-code/20190228-014856
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=8.2.0 make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   net//appletalk/atalk_proc.c: In function 'atalk_proc_init':
>> net//appletalk/atalk_proc.c:218:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (!proc_create_seq("atalk/interface", 0444, init_net.proc_net,
     ^~
   net//appletalk/atalk_proc.c:220:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
      goto out;
      ^~~~
   net//appletalk/atalk_proc.c:222:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (!proc_create_seq("atalk/route", 0444, init_net.proc_net,
     ^~
   net//appletalk/atalk_proc.c:224:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
      goto out;
      ^~~~
   net//appletalk/atalk_proc.c:226:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (!proc_create_seq("atalk/socket", 0444, init_net.proc_net,
     ^~
   net//appletalk/atalk_proc.c:228:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
      goto out;
      ^~~~
   net//appletalk/atalk_proc.c:230:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (!proc_create_seq_private("atalk/arp", 0444, init_net.proc_net,
     ^~
   net//appletalk/atalk_proc.c:233:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
      goto out;
      ^~~~

vim +/if +218 net//appletalk/atalk_proc.c

   212	
   213	int __init atalk_proc_init(void)
   214	{
   215		if (!proc_mkdir("atalk", init_net.proc_net))
   216			return -ENOMEM;
   217	
 > 218		if (!proc_create_seq("atalk/interface", 0444, init_net.proc_net,
   219				    &atalk_seq_interface_ops));
   220			goto out;
   221	
   222		if (!proc_create_seq("atalk/route", 0444, init_net.proc_net,
   223				    &atalk_seq_route_ops));
   224			goto out;
   225	
   226		if (!proc_create_seq("atalk/socket", 0444, init_net.proc_net,
   227				    &atalk_seq_socket_ops));
   228			goto out;
   229	
   230		if (!proc_create_seq_private("atalk/arp", 0444, init_net.proc_net,
   231					     &aarp_seq_ops,
   232					     sizeof(struct aarp_iter_state), NULL));
   233			goto out;
   234	
   235	out:
   236		remove_proc_subtree("atalk", init_net.proc_net);
   237		return -ENOMEM;
   238	}
   239	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 56809 bytes --]

  reply	other threads:[~2019-02-27 18:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-27 15:00 [PATCH -next] appletalk: use remove_proc_subtree to simplify procfs code Yue Haibing
2019-02-27 18:32 ` kbuild test robot [this message]
2019-02-27 23:28 ` kbuild test robot
2019-02-28  1:32   ` YueHaibing

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=201902280258.NGNqGI7X%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=davem@davemloft.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=joe@perches.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=yuehaibing@huawei.com \
    /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