mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] fs: delete unused members in <linux/stat.h>
Date: Mon, 15 Mar 2021 09:06:44 +0100	[thread overview]
Message-ID: <20210315080644.GI23724@pengutronix.de> (raw)
In-Reply-To: <20210312114027.22734-1-a.fatoum@pengutronix.de>

On Fri, Mar 12, 2021 at 12:40:27PM +0100, Ahmad Fatoum wrote:
> Most of the struct is stuff we don't use and likely won't any
> time soon. Drop them.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  fs/fs.c              |  1 -
>  include/linux/stat.h | 12 ------------
>  2 files changed, 13 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/fs/fs.c b/fs/fs.c
> index 3db24b7b6822..a5dbc3aac478 100644
> --- a/fs/fs.c
> +++ b/fs/fs.c
> @@ -909,7 +909,6 @@ EXPORT_SYMBOL(readdir);
>  
>  static void stat_inode(struct inode *inode, struct stat *s)
>  {
> -	s->st_dev = 0;
>  	s->st_ino = inode->i_ino;
>  	s->st_mode = inode->i_mode;
>  	s->st_uid = inode->i_uid;
> diff --git a/include/linux/stat.h b/include/linux/stat.h
> index 87fe06839671..f5043d8bcea7 100644
> --- a/include/linux/stat.h
> +++ b/include/linux/stat.h
> @@ -45,8 +45,6 @@ extern "C" {
>  #define S_IRWXUGO	(S_IRWXU|S_IRWXG|S_IRWXO)
>  
>  struct stat {
> -	unsigned short st_dev;
> -	unsigned short __pad1;
>  	unsigned long st_ino;
>  	unsigned short st_mode;
>  	unsigned short st_nlink;
> @@ -55,16 +53,6 @@ struct stat {
>  	unsigned short st_rdev;
>  	unsigned short __pad2;
>  	loff_t  st_size;
> -	unsigned long  st_blksize;
> -	unsigned long  st_blocks;
> -	unsigned long  st_atime;
> -	unsigned long  __unused1;
> -	unsigned long  st_mtime;
> -	unsigned long  __unused2;
> -	unsigned long  st_ctime;
> -	unsigned long  __unused3;
> -	unsigned long  __unused4;
> -	unsigned long  __unused5;
>  };
>  
>  #ifdef __cplusplus
> -- 
> 2.29.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


      reply	other threads:[~2021-03-15  8:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12 11:40 Ahmad Fatoum
2021-03-15  8:06 ` Sascha Hauer [this message]

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=20210315080644.GI23724@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.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