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 8349439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:59:53+00:00 2026-06-09T07:59:53+00:00

I am getting some warnings when compiling a custom Linux kernel. I have reduced

  • 0

I am getting some warnings when compiling a custom Linux kernel. I have reduced my code (for debugging) to this:

int sw_totcp(struct ip_vs_service *svc)
{
        return(1);
}
EXPORT_SYMBOL(sw_totcp);

int (*sw_totcpcall)(struct ip_vs_service *) = &sw_totcp;
EXPORT_SYMBOL(sw_totcpcall);

And still getting these warnings (for both the function and the function pointer):

warning: data definition has no type or storage class [enabled by default]
warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL’ [-Wimplicit-int]
warning: parameter names (without types) in function declaration [enabled by default]

They are properly declared in a header file like:

extern int sw_totcp(struct ip_vs_service *);

extern int (*sw_totcpcall)(struct ip_vs_service *);

What may be wrong?

  • 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-09T07:59:54+00:00Added an answer on June 9, 2026 at 7:59 am

    It looks like you are not including the header where EXPORT_SYMBOL macro is defined. That is why the compiler is complaining about an implicit declaration: it thinks it’s a function returning an int.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting some warnings when I use this line of code. [UIView setAnimationTransition:UIViewAnimationCurveEaseInOut forView:nil
I am getting the following warning when compiling some legacy C code on Ubuntu
I have an issue with some compiler warnings I am getting when using T4
I have an issue with some compiler warnings I am getting when using T4
I have some problems with my script below, I am getting the following warnings,
We have some code in spatialite that looks like: static int cmp_pt_coords (const void
I'm getting some very strange behaviour using the following switch statement: string recognise_mti(int mti_code)
I've been tasked with maintaing some legacy fortran code, and I'm having trouble getting
My Problem I getting _OBJC_CLASS_$..., referenced from: linker error when compiling some Xcode projects
I'm upgrading a project to use the 10.5 SDK. I'm getting warnings of this

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.