| 0ded2c2d | 12-Nov-2025 |
Alexander Hansen <alexander.hansen@9elements.com> |
Control.Mode: use PDI constants
Use PDI constants instead of local definitions.
Tested: Unit Tests Pass.
Change-Id: I556e87b2e4784a2653708adc919bdb5c10e9081a Signed-off-by: Alexander Hansen <alexa
Control.Mode: use PDI constants
Use PDI constants instead of local definitions.
Tested: Unit Tests Pass.
Change-Id: I556e87b2e4784a2653708adc919bdb5c10e9081a Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
show more ...
|
| 46a755fc | 27-Oct-2025 |
Alexander Hansen <alexander.hansen@9elements.com> |
Copyright: Move to SPDX-Identifier
Original copyright holders have been preserved, this patch moves the copyright notice to the compact SPDX notation.
Change-Id: I910cbc8ee0127e380099e1fbb3e3fb7c0a
Copyright: Move to SPDX-Identifier
Original copyright holders have been preserved, this patch moves the copyright notice to the compact SPDX notation.
Change-Id: I910cbc8ee0127e380099e1fbb3e3fb7c0abd24a9 Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
show more ...
|
| 92110f8d | 02-Jul-2025 |
George Liu <liuxiwei@ieisystem.com> |
Use api.hpp instead of api.h
Since the api.h file has been gradually deprecated, this submission will use api.hpp instead of api.h
Change-Id: Ic9c8ebe0ba96b0a11b9415cd52acdf58fe9d828e Signed-off-by
Use api.hpp instead of api.h
Since the api.h file has been gradually deprecated, this submission will use api.hpp instead of api.h
Change-Id: Ic9c8ebe0ba96b0a11b9415cd52acdf58fe9d828e Signed-off-by: George Liu <liuxiwei@ieisystem.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
| f8b6e551 | 27-Jun-2025 |
Ed Tanous <etanous@nvidia.com> |
Fix includes
Run misc-include-cleaner on the codebase and fix all the includes.
misc-include-cleaner gets some things wrong, so had edit those back to previous. It doesn't seem to like nlohmann or
Fix includes
Run misc-include-cleaner on the codebase and fix all the includes.
misc-include-cleaner gets some things wrong, so had edit those back to previous. It doesn't seem to like nlohmann or zone.hpp very much.
At some point in the future we could fix these, and get these enforced at CI time.
Change-Id: Ie087e03dd26570db09e44e5b3f0641fb77668711 Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
| d2768c57 | 26-Jun-2025 |
Ed Tanous <etanous@nvidia.com> |
Implement clang-tidy fixes
clang-tidy allows the CI robot to check many things via static analysis.
All changes here were made by the clang-tidy robot, and include a number of modernization fixes.
Implement clang-tidy fixes
clang-tidy allows the CI robot to check many things via static analysis.
All changes here were made by the clang-tidy robot, and include a number of modernization fixes. updating the tidy file will be done at a later date.
Signed-off-by: Ed Tanous <etanous@nvidia.com> Change-Id: I98cc4d600a3c589675507958f6d2350b2141216b
show more ...
|
| 7f1253cd | 08-Dec-2024 |
Jayanth Othayoth <ojayanth@gmail.com> |
clang-tidy: Fix Unused Variable Warnings
The following errors were reported during clang-tidy enablement due to multiple unused variables.
''' ipmi/dbus_mode.cpp:37:23: error: unused variable 'fail
clang-tidy: Fix Unused Variable Warnings
The following errors were reported during clang-tidy enablement due to multiple unused variables.
''' ipmi/dbus_mode.cpp:37:23: error: unused variable 'failsafeProperty' [-Werror ipmi/dbus_mode.cpp:36:23: error: unused variable 'manualProperty' [-Werror '''
This fix removes the unused variables to resolve the warnings.
Tested: Build and unit testing verified.
Change-Id: I3abf76b57b939df5cbeb4c71b7063705fe0ff3a8 Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
show more ...
|
| bd63bcac | 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I0f105c3310e87172c65a09a8787a2db5a4041cc0 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
| 8c051121 | 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: Icbc50d46e84ee7ef756705e2b19741439a325074 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
| 22579ca4 | 07-Nov-2022 |
Harvey Wu <Harvey.Wu@quantatw.com> |
fix cppcheck warning
- Fix warnings: [noExplicitConstructor] ipmi/manualcmds.hpp:20:5: style: Class 'ZoneControlIpmiHandler' has a constructor with 1 argument that is not explicit.
[red
fix cppcheck warning
- Fix warnings: [noExplicitConstructor] ipmi/manualcmds.hpp:20:5: style: Class 'ZoneControlIpmiHandler' has a constructor with 1 argument that is not explicit.
[redundantInitialization] dbus/dbusutil.cpp:96:15: style: Redundant initialization for 'layer'. The initialized value is overwritten before it is read.
[uninitMemberVar] pid/pidcontroller.hpp:23:5: warning: Member variable 'PIDController::_pid_info' is not initialized in the constructor.
[memsetClassFloat] pid/util.cpp:29:10: portability: Using memset() on struct which contains a floating point number.
[constParameter] ipmi/manualcmds.cpp:108:72: style: Parameter 'dataLen' can be declared as pointer to const
Signed-off-by: Harvey Wu <Harvey.Wu@quantatw.com> Change-Id: Ib368c6e3a609e446529573cd0b9fa03858232db1
show more ...
|
| a1ae4fa1 | 28-Oct-2022 |
Harvey.Wu <Harvey.Wu@quantatw.com> |
fix compile warning when meson build
- Fix compile warning: [-Werror=unused-variable], [-Werror=sign-compare] and deprecated INSTANTIATE_TEST_CASE_P
Signed-off-by: Harvey.Wu <Harvey.Wu@quantatw
fix compile warning when meson build
- Fix compile warning: [-Werror=unused-variable], [-Werror=sign-compare] and deprecated INSTANTIATE_TEST_CASE_P
Signed-off-by: Harvey.Wu <Harvey.Wu@quantatw.com> Change-Id: If8713f0b938cd5306bbe19a9078731db0c3667dc
show more ...
|
| b228bc30 | 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie36d234f4580029a7832a0cd179f3bb78a1a403f
show more ...
|
| e7507a8b | 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I16eeca31de290221c7a9184ee0c48cc923466832
show more ...
|
| ad971e1b | 28-Sep-2020 |
Patrick Venture <venture@google.com> |
bugfix: add virtual destructor to zoneinterface
ZoneInterface is a virtual abstract class and needs a virtual destructor.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I4159a88327d
bugfix: add virtual destructor to zoneinterface
ZoneInterface is a virtual abstract class and needs a virtual destructor.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I4159a88327d04bc344e484263f4c1d2875d81713
show more ...
|
| 09334bbe | 16-Aug-2020 |
Patrick Venture <venture@google.com> |
ipmi: add zone controller interface
Implementations of this interface can make the library mode testable and work in environments other than dbus.
The main entry point to the IPMI handler now expec
ipmi: add zone controller interface
Implementations of this interface can make the library mode testable and work in environments other than dbus.
The main entry point to the IPMI handler now expects to receive a handler pointer. The handler itself is implemented to process IPMI requests and responses in the expected way. The default object receives a dbus implementation for the zone controls.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I6d7be871bdc5cce3c3cc53c16d80b501aaaafc7d
show more ...
|
| d82d0b7d | 16-Aug-2020 |
Patrick Venture <venture@google.com> |
ipmi: split dbus get property into separate file
This is a step towards handling getting/setting dbus properties as an implementation of an interface, de-coupling from dbus.
Signed-off-by: Patrick
ipmi: split dbus get property into separate file
This is a step towards handling getting/setting dbus properties as an implementation of an interface, de-coupling from dbus.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I81a2c5100833235811d4b7e59152d70585c7abaf
show more ...
|
| 9bf5cef4 | 16-Aug-2020 |
Patrick Venture <venture@google.com> |
ipmi: split library constructor
Split out the library constuctor so that the code can be built into separate library modules.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I70ac51a
ipmi: split library constructor
Split out the library constuctor so that the code can be built into separate library modules.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I70ac51aaea200d4634f9220a642b0e2bef6748bd
show more ...
|
| 1277543a | 04-Aug-2020 |
Patrick Venture <venture@google.com> |
ipmi/manualcmds: fixup style for enum
Fixup the style for the enum.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I7eaf9337373a1f0a7d6fd0422d38364370249cf0 |
| a83a3ecc | 04-Aug-2020 |
Patrick Venture <venture@google.com> |
update clang-format from Latest in docs
Updates the clang-format file and then applies it.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Ia9faf13ce171f90bf07547efd781139bee23e8c7 |
| 37b247ab | 03-Aug-2020 |
Patrick Venture <venture@google.com> |
ipmi/manualcmds: cleanup return codes
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I5525518e41d9f74d022fb8a1981d3792a4e825b5 |
| 36ab6f6e | 03-Aug-2020 |
Patrick Venture <venture@google.com> |
move ipmi handler into namespace
Add a namespace for the ipmi code to enable re-use through linking into other libraries that may have similar object names.
Signed-off-by: Patrick Venture <venture@
move ipmi handler into namespace
Add a namespace for the ipmi code to enable re-use through linking into other libraries that may have similar object names.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I002b9bf84d5bc6cbe06b9dc8f41cb4532ec50927
show more ...
|
| 323f1d9c | 03-Jun-2020 |
William A. Kennington III <wak@google.com> |
Rename sdbusplus::message::variant -> std::variant
This was removed from sdbusplus and now breaks the build without conversion.
Change-Id: I084ede89ca200d3f9bc38d451e54d511418f7cda Signed-off-by: W
Rename sdbusplus::message::variant -> std::variant
This was removed from sdbusplus and now breaks the build without conversion.
Change-Id: I084ede89ca200d3f9bc38d451e54d511418f7cda Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
| 331143ce | 07-Feb-2019 |
William A. Kennington III <wak@google.com> |
Convert host-ipmid -> libipmid
phosphor-host-ipmid now exposes a library along with headers for interfacing with the ipmi daemon. Compile and link against the new library.
Change-Id: I747c3a585d646
Convert host-ipmid -> libipmid
phosphor-host-ipmid now exposes a library along with headers for interfacing with the ipmi daemon. Compile and link against the new library.
Change-Id: I747c3a585d646c7ff54efb14968c8f04daafe071 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
| 1f802f5e | 08-Feb-2019 |
James Feist <james.feist@linux.intel.com> |
Move all variant usage to std
This just a style change, remove variant_ns in favor of std.
Tested-by: it built
Change-Id: Id5a075e8b73a7724cbc5153fb7dfcf369e79c483 Signed-off-by: James Feist <jame
Move all variant usage to std
This just a style change, remove variant_ns in favor of std.
Tested-by: it built
Change-Id: Id5a075e8b73a7724cbc5153fb7dfcf369e79c483 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
| 9fa90c19 | 11-Jan-2019 |
James Feist <james.feist@linux.intel.com> |
Change all default_bus back to new_system bus
new_default now returns a reference to a single bus, phosphor-pid-control uses multiple busses so we do not want that. This was the way it was implement
Change all default_bus back to new_system bus
new_default now returns a reference to a single bus, phosphor-pid-control uses multiple busses so we do not want that. This was the way it was implemented prior to https://github.com/openbmc/sdbusplus/commit/8ca6025eed193c252149b2908c3d5e37b00b0107
Tested-by: swampd ran normally
These errors go away:
Jan 28 18:28:45 swampd[1760]: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError' Jan 28 18:28:45 swampd[1760]: what(): sd_bus_request_name: org.freedesktop.DBus.Error.InconsistentMessage: Bad message
Change-Id: I708cd5e6c45509f27d4fe783c0b0cfb52ff10336 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
| 7af157b1 | 30-Oct-2018 |
Patrick Venture <venture@google.com> |
style: function names should be lower camel
Fix function names to be lower camel.
Change-Id: I145e1f4c03d7740bc1525dcffbdce2f78fd61075 Signed-off-by: Patrick Venture <venture@google.com> |