Netdev List
 help / color / mirror / Atom feed
From: "Madarassy László" <madar@cjb.hu>
To: netdev@vger.kernel.org
Subject: include/uapi/linux/ethtool.h problem
Date: Sun, 1 Apr 2018 16:57:22 +0200	[thread overview]
Message-ID: <d16fde19-04fe-63e2-686e-316a4efc1dbf@cjb.hu> (raw)
In-Reply-To: <82efe0c7-c000-fea1-984b-f549de269aac@cjb.hu>

Hi,

I have the following problem:

I included include/uapi/linux/mii.h from my source and when I compiled I
got this error:

ethtool.h:1556:35: error: comparison between signed and unsigned integer
expressions [-Werro
   return speed <= INT_MAX || speed == SPEED_UNKNOWN;

speed declared as unsigned int32, but SPEED_UNKNOWN defined to -1.

Without -Wno-sign-compare I can't compile.

Regards,
Laszlo

           reply	other threads:[~2018-04-01 15:26 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <82efe0c7-c000-fea1-984b-f549de269aac@cjb.hu>]

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=d16fde19-04fe-63e2-686e-316a4efc1dbf@cjb.hu \
    --to=madar@cjb.hu \
    --cc=netdev@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