lkml.org 
[lkml]   [2018]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] libosd: Remove ignored __weak attribute
From
Date
On 9/30/18 1:54 PM, Nathan Chancellor wrote:
> diff --git a/include/scsi/osd_types.h b/include/scsi/osd_types.h
> index 48e8a165e136..6b6fdcafa6cc 100644
> --- a/include/scsi/osd_types.h
> +++ b/include/scsi/osd_types.h
> @@ -28,7 +28,7 @@ struct osd_obj_id {
> osd_id id;
> };
>
> -static const struct __weak osd_obj_id osd_root_object = {0, 0};
> +static const struct osd_obj_id osd_root_object = {0, 0};

Structure definitions should occur in .c files instead of in header
files especially if the header file is included from multiple source
files. Please consider moving the definition of osd_root_object into a
.c file. Additionally, zero initializers should be left out to minimize
the size of object files.

Boaz, the most recent osd patch that is neither trivial nor treewide
refactoring is six years old (51976a8c85ce ("[SCSI] osd_uld: Add osdname
& systemid sysfs at scsi_osd class"). That suggests that nobody is using
this driver anymore. Can this driver be removed from the kernel tree?

Thanks,

Bart.

\
 
 \ /
  Last update: 2018-10-02 03:17    [W:0.393 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site