Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1218538

Re: [GIT] Networking

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Linus Torvalds <torvalds@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [GIT] Networking
Date Thu, 03 Sep 2015 21:50:02 +0200
Message-ID <q4IGe-4OA-1@gated-at.bofh.it> (permalink)
References <q4vpF-2GW-25@gated-at.bofh.it> <q4FS3-M8-27@gated-at.bofh.it> <q4GO6-28h-25@gated-at.bofh.it> <q4HqO-37a-19@gated-at.bofh.it> <q4HAu-3ib-17@gated-at.bofh.it> <q4Iwy-4D6-15@gated-at.bofh.it>
X-Original-To Julia Lawall <julia.lawall@lip6.fr>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=LNNzL9Sf95SPLVqdWz84R/zulhG3WlnmhOFBu9loPLI=; b=1JnkZwsVNiw7QYGY3dBeHGaaPkNoRLtyAR0twpBEhX2VFdnIAglZJa02hzJjKvBmb0 9gHW9tkvGYhd1mlp+SuCPu53TUQuSXqaOBbrPm/jmawcognFSSvVM8rfkUOfbj02zHIB pZvuCCMm4/NotDsOVcKmUXL0qdUGMkTC6qomPraVm2smdLL/00P3NlbiexY3NEQeoaZB 3QxxszgfVXIHPf0QHTHrw0WF/Y2FQYxxPou9xFYvaoUj9GXj+EDYmkk9GuBfNtqSdGnC Odo2QUr+opkw32RdWsWPjGobPOSi9FXdVrG4YurHgnMCet+YFh+BEfZy/OURRMu4zdCA V86w==
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=LNNzL9Sf95SPLVqdWz84R/zulhG3WlnmhOFBu9loPLI=; b=XtAtgDZZ1MBSYBOoiAKK1ml32jlnnkmc3iGA1HoRJb+7jiR2aBMD+4e4cl2UD7ngeE JRvgHLhmKjLFbWyPzsEEtyHUxaTCA08Cu4E0GP5HVz6noKg5jYsyjjylrEnElQE/6fCB yy4bqE7lW1gdohv2uh5xt9zfzJq5IdJluTKJU=
MIME-Version 1.0
X-Received by 10.107.167.134 with SMTP id q128mr1689003ioe.137.1441309695796; Thu, 03 Sep 2015 12:48:15 -0700 (PDT)
X-Google-Sender-Auth 13Dab94vGrmibhKQKKcmpwIQM-E
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 32
Organization linux.* mail to news gateway
X-Original-Cc Joe Perches <joe@perches.com>, David Miller <davem@davemloft.net>, Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>, Johannes Berg <johannes.berg@intel.com>, Andrew Morton <akpm@linux-foundation.org>, Network Development <netdev@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
X-Original-Date Thu, 3 Sep 2015 12:48:15 -0700
X-Original-Message-ID <CA+55aFy9L9U+bkk_VLRdWmepRH8LRkDw1sBo8t-byKUTZKWwBw@mail.gmail.com>
X-Original-References <20150902.223522.1792493140210966693.davem@davemloft.net> <CA+55aFx=xh4+vCNOgwXyfeV-t=6anXimqBxH_i71RjYy+Gy9-w@mail.gmail.com> <20150903.104032.767889134756094076.davem@davemloft.net> <CA+55aFxtD2VYW2R0JwjFkZkvzQzcN7qK3m6ReR+BBXtfyDHx7g@mail.gmail.com> <1441305296.9666.14.camel@perches.com> <alpine.DEB.2.02.1509032121120.2035@localhost6.localdomain6>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1218538

Show key headers only | View raw


On Thu, Sep 3, 2015 at 12:32 PM, Julia Lawall <julia.lawall@lip6.fr> wrote:
>
> I find 518 occurrences of a function parameter declaration that contains
> an explicit size.  But only the sizeof(mcs_mask) where there is a sizeof
> on such a parameter.  I also checked for ARRAY_SIZE on such parameters,
> and didn't find any occurrences of that either.

Are there any cases of multi-dimensional arrays? Because those
actually have semantic meaning outside of sizeof(), just in things
like adding offsets.

Eg something like

     int fn(int a[][10])

ends up being equivalent to something like

     int fn(int (*a)[10])

and "a+1" is actually 40 bytes ahead of "a", so it does *not* act like
an "int *".

(And I might have screwed that up mightily - C multidimensional arrays
and the conversions to pointers are really easy to get confused about.
Which is why I hope we don't have them)

                  Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [GIT] Networking Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-03 18:50 +0200
  Re: [GIT] Networking David Miller <davem@davemloft.net> - 2015-09-03 19:50 +0200
    Re: [GIT] Networking Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-03 20:30 +0200
      Re: [GIT] Networking Joe Perches <joe@perches.com> - 2015-09-03 20:40 +0200
        Re: [GIT] Networking Julia Lawall <julia.lawall@lip6.fr> - 2015-09-03 21:40 +0200
          Re: [GIT] Networking Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-03 21:50 +0200
            Re: [GIT] Networking Julia Lawall <julia.lawall@lip6.fr> - 2015-09-03 23:00 +0200
              Re: [GIT] Networking Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-03 23:10 +0200
                Re: [GIT] Networking Julia Lawall <julia.lawall@lip6.fr> - 2015-09-03 23:30 +0200
      Re: [GIT] Networking Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-03 20:40 +0200
        Re: [GIT] Networking Marcel Holtmann <marcel@holtmann.org> - 2015-09-03 23:10 +0200
          RE: [GIT] Networking David Laight <David.Laight@ACULAB.COM> - 2015-09-04 11:10 +0200
            Re: [GIT] Networking "Rustad, Mark D" <mark.d.rustad@intel.com> - 2015-09-04 19:40 +0200
      Re: [GIT] Networking David Miller <davem@davemloft.net> - 2015-09-03 20:50 +0200
  Re: [GIT] Networking Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> - 2015-09-05 18:20 +0200

csiph-web