Project

General

Profile

Actions

Cleanup #55657

open

rgw: remove potentially conficting definition of dout_subsys

Added by J. Eric Ivancich almost 2 years ago. Updated over 1 year ago.

Status:
Pending Backport
Priority:
Normal
Target version:
-
% Done:

0%

Tags:
backport_processed
Backport:
quincy,pacific
Reviewed:
Affected Versions:
Pull request ID:

Description

dout_subsys should strictly be defined in .cc files. There was a
definition of dout_subsys in rgw_log.h, which is included in a variety
of .cc due to transitive includes. When a subsystem wants a
conflicting definition, a compiler warning was generated.


Related issues 2 (1 open1 closed)

Copied to rgw - Backport #55677: pacific: rgw: remove potentially conficting definition of dout_subsysRejectedJ. Eric IvancichActions
Copied to rgw - Backport #55678: quincy: rgw: remove potentially conficting definition of dout_subsysIn ProgressKonstantin ShalyginActions
Actions #1

Updated by J. Eric Ivancich almost 2 years ago

An example issue....

/home2/ceph-work1/ceph/src/rgw/rgw_flight.cc:17: warning: "dout_subsys" redefined
   17 | #define dout_subsys ceph_subsys_arrow_flight
      | 
In file included from /home2/ceph-work1/ceph/src/rgw/rgw_rados.h:23,
                 from /home2/ceph-work1/ceph/src/rgw/rgw_role.h:14,
                 from /home2/ceph-work1/ceph/src/rgw/rgw_sts.h:7,
                 from /home2/ceph-work1/ceph/src/rgw/rgw_rest_s3.h:30,
                 from /home2/ceph-work1/ceph/src/rgw/rgw_auth_s3.h:18,
                 from /home2/ceph-work1/ceph/src/rgw/rgw_auth_registry.h:15,
                 from /home2/ceph-work1/ceph/src/rgw/rgw_process.h:9,
                 from /home2/ceph-work1/ceph/src/rgw/rgw_frontend.h:13,
                 from /home2/ceph-work1/ceph/src/rgw/rgw_flight.h:12,
                 from /home2/ceph-work1/ceph/src/rgw/rgw_flight.cc:13:
/home2/ceph-work1/ceph/src/rgw/rgw_log.h:13: note: this is the location of the previous definition
   13 | #define dout_subsys ceph_subsys_rgw
Actions #2

Updated by J. Eric Ivancich almost 2 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Backport Bot almost 2 years ago

  • Copied to Backport #55677: pacific: rgw: remove potentially conficting definition of dout_subsys added
Actions #4

Updated by Backport Bot almost 2 years ago

  • Copied to Backport #55678: quincy: rgw: remove potentially conficting definition of dout_subsys added
Actions #5

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions

Also available in: Atom PDF