Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8361713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:45:32+00:00 2026-06-09T11:45:32+00:00

When defining t_ioctl like this, I get no warning: long t_ioctl(struct file *filep, unsigned

  • 0

When defining t_ioctl like this, I get no warning:

long t_ioctl(struct file *filep, unsigned int cmd, unsigned long input){

When defining t_ioctl like this:

static long t_ioctl(struct file *filep, unsigned int cmd, unsigned long input){

I get the warning:

warning: 't_ioctl' defined but not used

but when it is up to t_read or t_write the static and non static function declaration doesn’t cause the warning. e.g:

static ssize_t t_read(struct file *filp, char __user * buf, size_t count, loff_t * f_pos);

Why do I get the warning in one case and not the other?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:45:33+00:00Added an answer on June 9, 2026 at 11:45 am

    Most likely you have a definition like this in the same file:

    static struct file_operations fileops = {
        .read     = t_read,
        .write    = t_write,
        /* etc. ... */
    };
    

    And you’re missing

    .compat_ioctl = t_ioctl, /* or .ioctl/.unlocked_ioctl, depending on version etc. */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Defining my boost::graph like the following, I get edge indices zero for all edges.
I'm defining a binary search tree class like this: template <class T> class BSTNode
I can't find a nice way to defining this, so I was hoping someone
Ruby doesn't seem to have a facility for defining a protected/private block like so:
Defining a form in my Play! controller when the compiler spit out this weird
Atleast defining my problem is simple... I have a Input control (Text) and a
I can't figure out how to do such a simple thing like defining constants
When defining associations in classes for Datamapper you don't seem to get the associated
While defining the following lambda function // file prog.hpp template<typename T> auto function =
I can't seem to get this code to work. How do I get the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.